diff options
Diffstat (limited to 'arch/sh/boards/mach-se/7722/setup.c')
-rw-r--r-- | arch/sh/boards/mach-se/7722/setup.c | 55 |
1 files changed, 23 insertions, 32 deletions
diff --git a/arch/sh/boards/mach-se/7722/setup.c b/arch/sh/boards/mach-se/7722/setup.c index b1cb9425b600..80a4e571b310 100644 --- a/arch/sh/boards/mach-se/7722/setup.c +++ b/arch/sh/boards/mach-se/7722/setup.c | |||
@@ -25,26 +25,17 @@ | |||
25 | #include <cpu/sh7722.h> | 25 | #include <cpu/sh7722.h> |
26 | 26 | ||
27 | /* Heartbeat */ | 27 | /* Heartbeat */ |
28 | static struct heartbeat_data heartbeat_data = { | 28 | static struct resource heartbeat_resource = { |
29 | .regsize = 16, | 29 | .start = PA_LED, |
30 | }; | 30 | .end = PA_LED, |
31 | 31 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_16BIT, | |
32 | static struct resource heartbeat_resources[] = { | ||
33 | [0] = { | ||
34 | .start = PA_LED, | ||
35 | .end = PA_LED, | ||
36 | .flags = IORESOURCE_MEM, | ||
37 | }, | ||
38 | }; | 32 | }; |
39 | 33 | ||
40 | static struct platform_device heartbeat_device = { | 34 | static struct platform_device heartbeat_device = { |
41 | .name = "heartbeat", | 35 | .name = "heartbeat", |
42 | .id = -1, | 36 | .id = -1, |
43 | .dev = { | 37 | .num_resources = 1, |
44 | .platform_data = &heartbeat_data, | 38 | .resource = &heartbeat_resource, |
45 | }, | ||
46 | .num_resources = ARRAY_SIZE(heartbeat_resources), | ||
47 | .resource = heartbeat_resources, | ||
48 | }; | 39 | }; |
49 | 40 | ||
50 | /* SMC91x */ | 41 | /* SMC91x */ |
@@ -165,32 +156,32 @@ device_initcall(se7722_devices_setup); | |||
165 | 156 | ||
166 | static void __init se7722_setup(char **cmdline_p) | 157 | static void __init se7722_setup(char **cmdline_p) |
167 | { | 158 | { |
168 | ctrl_outw(0x010D, FPGA_OUT); /* FPGA */ | 159 | __raw_writew(0x010D, FPGA_OUT); /* FPGA */ |
169 | 160 | ||
170 | ctrl_outw(0x0000, PORT_PECR); /* PORT E 1 = IRQ5 ,E 0 = BS */ | 161 | __raw_writew(0x0000, PORT_PECR); /* PORT E 1 = IRQ5 ,E 0 = BS */ |
171 | ctrl_outw(0x1000, PORT_PJCR); /* PORT J 1 = IRQ1,J 0 =IRQ0 */ | 162 | __raw_writew(0x1000, PORT_PJCR); /* PORT J 1 = IRQ1,J 0 =IRQ0 */ |
172 | 163 | ||
173 | /* LCDC I/O */ | 164 | /* LCDC I/O */ |
174 | ctrl_outw(0x0020, PORT_PSELD); | 165 | __raw_writew(0x0020, PORT_PSELD); |
175 | 166 | ||
176 | /* SIOF1*/ | 167 | /* SIOF1*/ |
177 | ctrl_outw(0x0003, PORT_PSELB); | 168 | __raw_writew(0x0003, PORT_PSELB); |
178 | ctrl_outw(0xe000, PORT_PSELC); | 169 | __raw_writew(0xe000, PORT_PSELC); |
179 | ctrl_outw(0x0000, PORT_PKCR); | 170 | __raw_writew(0x0000, PORT_PKCR); |
180 | 171 | ||
181 | /* LCDC */ | 172 | /* LCDC */ |
182 | ctrl_outw(0x4020, PORT_PHCR); | 173 | __raw_writew(0x4020, PORT_PHCR); |
183 | ctrl_outw(0x0000, PORT_PLCR); | 174 | __raw_writew(0x0000, PORT_PLCR); |
184 | ctrl_outw(0x0000, PORT_PMCR); | 175 | __raw_writew(0x0000, PORT_PMCR); |
185 | ctrl_outw(0x0002, PORT_PRCR); | 176 | __raw_writew(0x0002, PORT_PRCR); |
186 | ctrl_outw(0x0000, PORT_PXCR); /* LCDC,CS6A */ | 177 | __raw_writew(0x0000, PORT_PXCR); /* LCDC,CS6A */ |
187 | 178 | ||
188 | /* KEYSC */ | 179 | /* KEYSC */ |
189 | ctrl_outw(0x0A10, PORT_PSELA); /* BS,SHHID2 */ | 180 | __raw_writew(0x0A10, PORT_PSELA); /* BS,SHHID2 */ |
190 | ctrl_outw(0x0000, PORT_PYCR); | 181 | __raw_writew(0x0000, PORT_PYCR); |
191 | ctrl_outw(0x0000, PORT_PZCR); | 182 | __raw_writew(0x0000, PORT_PZCR); |
192 | ctrl_outw(ctrl_inw(PORT_HIZCRA) & ~0x4000, PORT_HIZCRA); | 183 | __raw_writew(__raw_readw(PORT_HIZCRA) & ~0x4000, PORT_HIZCRA); |
193 | ctrl_outw(ctrl_inw(PORT_HIZCRC) & ~0xc000, PORT_HIZCRC); | 184 | __raw_writew(__raw_readw(PORT_HIZCRC) & ~0xc000, PORT_HIZCRC); |
194 | } | 185 | } |
195 | 186 | ||
196 | /* | 187 | /* |