aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-rpc/riscpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-rpc/riscpc.c')
-rw-r--r--arch/arm/mach-rpc/riscpc.c45
1 files changed, 15 insertions, 30 deletions
diff --git a/arch/arm/mach-rpc/riscpc.c b/arch/arm/mach-rpc/riscpc.c
index 3d44a59fc0df..731552d68adf 100644
--- a/arch/arm/mach-rpc/riscpc.c
+++ b/arch/arm/mach-rpc/riscpc.c
@@ -98,15 +98,9 @@ static void __init rpc_map_io(void)
98} 98}
99 99
100static struct resource acornfb_resources[] = { 100static struct resource acornfb_resources[] = {
101 { /* VIDC */ 101 /* VIDC */
102 .start = 0x03400000, 102 DEFINE_RES_MEM(0x03400000, 0x00200000),
103 .end = 0x035fffff, 103 DEFINE_RES_IRQ(IRQ_VSYNCPULSE),
104 .flags = IORESOURCE_MEM,
105 }, {
106 .start = IRQ_VSYNCPULSE,
107 .end = IRQ_VSYNCPULSE,
108 .flags = IORESOURCE_IRQ,
109 },
110}; 104};
111 105
112static struct platform_device acornfb_device = { 106static struct platform_device acornfb_device = {
@@ -120,11 +114,7 @@ static struct platform_device acornfb_device = {
120}; 114};
121 115
122static struct resource iomd_resources[] = { 116static struct resource iomd_resources[] = {
123 { 117 DEFINE_RES_MEM(0x03200000, 0x10000),
124 .start = 0x03200000,
125 .end = 0x0320ffff,
126 .flags = IORESOURCE_MEM,
127 },
128}; 118};
129 119
130static struct platform_device iomd_device = { 120static struct platform_device iomd_device = {
@@ -134,18 +124,25 @@ static struct platform_device iomd_device = {
134 .resource = iomd_resources, 124 .resource = iomd_resources,
135}; 125};
136 126
127static struct resource iomd_kart_resources[] = {
128 DEFINE_RES_IRQ(IRQ_KEYBOARDRX),
129 DEFINE_RES_IRQ(IRQ_KEYBOARDTX),
130};
131
137static struct platform_device kbd_device = { 132static struct platform_device kbd_device = {
138 .name = "kart", 133 .name = "kart",
139 .id = -1, 134 .id = -1,
140 .dev = { 135 .dev = {
141 .parent = &iomd_device.dev, 136 .parent = &iomd_device.dev,
142 }, 137 },
138 .num_resources = ARRAY_SIZE(iomd_kart_resources),
139 .resource = iomd_kart_resources,
143}; 140};
144 141
145static struct plat_serial8250_port serial_platform_data[] = { 142static struct plat_serial8250_port serial_platform_data[] = {
146 { 143 {
147 .mapbase = 0x03010fe0, 144 .mapbase = 0x03010fe0,
148 .irq = 10, 145 .irq = IRQ_SERIALPORT,
149 .uartclk = 1843200, 146 .uartclk = 1843200,
150 .regshift = 2, 147 .regshift = 2,
151 .iotype = UPIO_MEM, 148 .iotype = UPIO_MEM,
@@ -167,21 +164,9 @@ static struct pata_platform_info pata_platform_data = {
167}; 164};
168 165
169static struct resource pata_resources[] = { 166static struct resource pata_resources[] = {
170 [0] = { 167 DEFINE_RES_MEM(0x030107c0, 0x20),
171 .start = 0x030107c0, 168 DEFINE_RES_MEM(0x03010fd8, 0x04),
172 .end = 0x030107df, 169 DEFINE_RES_IRQ(IRQ_HARDDISK),
173 .flags = IORESOURCE_MEM,
174 },
175 [1] = {
176 .start = 0x03010fd8,
177 .end = 0x03010fdb,
178 .flags = IORESOURCE_MEM,
179 },
180 [2] = {
181 .start = IRQ_HARDDISK,
182 .end = IRQ_HARDDISK,
183 .flags = IORESOURCE_IRQ,
184 },
185}; 170};
186 171
187static struct platform_device pata_device = { 172static struct platform_device pata_device = {