[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RESEND][PATCH 8/9] strongarm: add PCMCIA support
From: |
Dmitry Eremin-Solenikov |
Subject: |
[Qemu-devel] [RESEND][PATCH 8/9] strongarm: add PCMCIA support |
Date: |
Mon, 25 Apr 2011 13:06:34 +0400 |
Add PCMCIA support to StrongARM SoCs reusing PXA devices.
Signed-off-by: Dmitry Eremin-Solenikov <address@hidden>
---
hw/strongarm.c | 5 ++++-
hw/strongarm.h | 1 +
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/hw/strongarm.c b/hw/strongarm.c
index de08bdf..dbc253c 100644
--- a/hw/strongarm.c
+++ b/hw/strongarm.c
@@ -29,6 +29,7 @@
#include "arm-misc.h"
#include "sysemu.h"
#include "ssi.h"
+#include "pcmcia.h"
//#define DEBUG
@@ -40,7 +41,6 @@
- Implement sleep mode/Wake sources
- Implement reset control
- Implement memory control regs
- - PCMCIA handling
- Maybe support MBGNT/MBREQ
- DMA channels
- GPCLK
@@ -1583,6 +1583,9 @@ StrongARMState *sa1110_init(unsigned int sdram_size,
const char *rev)
qdev_get_gpio_in(s->pic, SA_PIC_SSP), NULL);
s->ssp_bus = (SSIBus *)qdev_get_child_bus(s->ssp, "ssi");
+ s->pcmcia[1] = pxa2xx_pcmcia_init(0x30000000, 1);
+ s->pcmcia[0] = pxa2xx_pcmcia_init(0x20000000, 0);
+
return s;
}
diff --git a/hw/strongarm.h b/hw/strongarm.h
index a81b110..d1ce538 100644
--- a/hw/strongarm.h
+++ b/hw/strongarm.h
@@ -57,6 +57,7 @@ typedef struct {
DeviceState *ppc;
DeviceState *ssp;
SSIBus *ssp_bus;
+ DeviceState *pcmcia[2];
} StrongARMState;
StrongARMState *sa1110_init(unsigned int sdram_size, const char *rev);
--
1.7.4.1
- [Qemu-devel] [RESEND][PATCH 1/9] pxa2xx_pcmcia: qdevify, Dmitry Eremin-Solenikov, 2011/04/25
- [Qemu-devel] [RESEND][PATCH 2/9] PCMCIA: start qdev'ication, Dmitry Eremin-Solenikov, 2011/04/25
- [Qemu-devel] [RESEND][PATCH 3/9] microdrive: qdevify, Dmitry Eremin-Solenikov, 2011/04/25
- [Qemu-devel] [RESEND][PATCH 4/9] pcmcia: move all card callbacks to PCMCIACardInfo, Dmitry Eremin-Solenikov, 2011/04/25
- [Qemu-devel] [RESEND][PATCH 5/9] pcmcia: move attach and detach socket methods to PCMCIASocket, Dmitry Eremin-Solenikov, 2011/04/25
- [Qemu-devel] [RESEND][PATCH 6/9] pxa: change order of pcmcia devices instantiation, so that the socket 0 will be default, Dmitry Eremin-Solenikov, 2011/04/25
- [Qemu-devel] [RESEND][PATCH 7/9] ide-core: allocate metadata storage for CFATA drives, Dmitry Eremin-Solenikov, 2011/04/25
- [Qemu-devel] [RESEND][PATCH 9/9] collie: add support for PCMCIA bus, Dmitry Eremin-Solenikov, 2011/04/25
- [Qemu-devel] [RESEND][PATCH 8/9] strongarm: add PCMCIA support,
Dmitry Eremin-Solenikov <=
- Re: [Qemu-devel] [RESEND][PATCH 1/9] pxa2xx_pcmcia: qdevify, Dmitry Eremin-Solenikov, 2011/04/29