diff options
Diffstat (limited to 'arch/sh/boards')
37 files changed, 488 insertions, 142 deletions
diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index ae194869fd60..50467f9d0d0b 100644 --- a/arch/sh/boards/Kconfig +++ b/arch/sh/boards/Kconfig | |||
@@ -128,6 +128,7 @@ config SH_RTS7751R2D | |||
128 | 128 | ||
129 | config SH_RSK7203 | 129 | config SH_RSK7203 |
130 | bool "RSK7203" | 130 | bool "RSK7203" |
131 | select GENERIC_GPIO | ||
131 | depends on CPU_SUBTYPE_SH7203 | 132 | depends on CPU_SUBTYPE_SH7203 |
132 | 133 | ||
133 | config SH_SDK7780 | 134 | config SH_SDK7780 |
@@ -162,6 +163,7 @@ config SH_SH7785LCR_29BIT_PHYSMAPS | |||
162 | config SH_MIGOR | 163 | config SH_MIGOR |
163 | bool "Migo-R" | 164 | bool "Migo-R" |
164 | depends on CPU_SUBTYPE_SH7722 | 165 | depends on CPU_SUBTYPE_SH7722 |
166 | select GENERIC_GPIO | ||
165 | help | 167 | help |
166 | Select Migo-R if configuring for the SH7722 Migo-R platform | 168 | Select Migo-R if configuring for the SH7722 Migo-R platform |
167 | by Renesas System Solutions Asia Pte. Ltd. | 169 | by Renesas System Solutions Asia Pte. Ltd. |
@@ -169,6 +171,7 @@ config SH_MIGOR | |||
169 | config SH_AP325RXA | 171 | config SH_AP325RXA |
170 | bool "AP-325RXA" | 172 | bool "AP-325RXA" |
171 | depends on CPU_SUBTYPE_SH7723 | 173 | depends on CPU_SUBTYPE_SH7723 |
174 | select GENERIC_GPIO | ||
172 | help | 175 | help |
173 | Renesas "AP-325RXA" support. | 176 | Renesas "AP-325RXA" support. |
174 | Compatible with ALGO SYSTEM CO.,LTD. "AP-320A" | 177 | Compatible with ALGO SYSTEM CO.,LTD. "AP-320A" |
@@ -184,6 +187,13 @@ config SH_EDOSK7705 | |||
184 | bool "EDOSK7705" | 187 | bool "EDOSK7705" |
185 | depends on CPU_SUBTYPE_SH7705 | 188 | depends on CPU_SUBTYPE_SH7705 |
186 | 189 | ||
190 | config SH_EDOSK7760 | ||
191 | bool "EDOSK7760" | ||
192 | depends on CPU_SUBTYPE_SH7760 | ||
193 | help | ||
194 | Select if configuring for a Renesas EDOSK7760 | ||
195 | evaluation board. | ||
196 | |||
187 | config SH_SH4202_MICRODEV | 197 | config SH_SH4202_MICRODEV |
188 | bool "SH4-202 MicroDev" | 198 | bool "SH4-202 MicroDev" |
189 | depends on CPU_SUBTYPE_SH4_202 | 199 | depends on CPU_SUBTYPE_SH4_202 |
@@ -228,6 +238,7 @@ config SH_X3PROTO | |||
228 | config SH_MAGIC_PANEL_R2 | 238 | config SH_MAGIC_PANEL_R2 |
229 | bool "Magic Panel R2" | 239 | bool "Magic Panel R2" |
230 | depends on CPU_SUBTYPE_SH7720 | 240 | depends on CPU_SUBTYPE_SH7720 |
241 | select GENERIC_GPIO | ||
231 | help | 242 | help |
232 | Select Magic Panel R2 if configuring for Magic Panel R2. | 243 | Select Magic Panel R2 if configuring for Magic Panel R2. |
233 | 244 | ||
diff --git a/arch/sh/boards/Makefile b/arch/sh/boards/Makefile index 463022c7df3c..d9efa3923721 100644 --- a/arch/sh/boards/Makefile +++ b/arch/sh/boards/Makefile | |||
@@ -6,3 +6,4 @@ obj-$(CONFIG_SH_MAGIC_PANEL_R2) += board-magicpanelr2.o | |||
6 | obj-$(CONFIG_SH_RSK7203) += board-rsk7203.o | 6 | obj-$(CONFIG_SH_RSK7203) += board-rsk7203.o |
7 | obj-$(CONFIG_SH_SH7785LCR) += board-sh7785lcr.o | 7 | obj-$(CONFIG_SH_SH7785LCR) += board-sh7785lcr.o |
8 | obj-$(CONFIG_SH_SHMIN) += board-shmin.o | 8 | obj-$(CONFIG_SH_SHMIN) += board-shmin.o |
9 | obj-$(CONFIG_SH_EDOSK7760) += board-edosk7760.o | ||
diff --git a/arch/sh/boards/board-ap325rxa.c b/arch/sh/boards/board-ap325rxa.c index fd1612590bf4..7c7874e6ac36 100644 --- a/arch/sh/boards/board-ap325rxa.c +++ b/arch/sh/boards/board-ap325rxa.c | |||
@@ -18,11 +18,13 @@ | |||
18 | #include <linux/delay.h> | 18 | #include <linux/delay.h> |
19 | #include <linux/i2c.h> | 19 | #include <linux/i2c.h> |
20 | #include <linux/smc911x.h> | 20 | #include <linux/smc911x.h> |
21 | #include <linux/gpio.h> | ||
21 | #include <media/soc_camera_platform.h> | 22 | #include <media/soc_camera_platform.h> |
22 | #include <media/sh_mobile_ceu.h> | 23 | #include <media/sh_mobile_ceu.h> |
23 | #include <asm/sh_mobile_lcdc.h> | 24 | #include <video/sh_mobile_lcdc.h> |
24 | #include <asm/io.h> | 25 | #include <asm/io.h> |
25 | #include <asm/clock.h> | 26 | #include <asm/clock.h> |
27 | #include <cpu/sh7723.h> | ||
26 | 28 | ||
27 | static struct smc911x_platdata smc911x_info = { | 29 | static struct smc911x_platdata smc911x_info = { |
28 | .flags = SMC911X_USE_32BIT, | 30 | .flags = SMC911X_USE_32BIT, |
@@ -52,20 +54,33 @@ static struct platform_device smc9118_device = { | |||
52 | }, | 54 | }, |
53 | }; | 55 | }; |
54 | 56 | ||
57 | /* | ||
58 | * AP320 and AP325RXA has CPLD data in NOR Flash(0xA80000-0xABFFFF). | ||
59 | * If this area erased, this board can not boot. | ||
60 | */ | ||
55 | static struct mtd_partition ap325rxa_nor_flash_partitions[] = { | 61 | static struct mtd_partition ap325rxa_nor_flash_partitions[] = { |
56 | { | 62 | { |
57 | .name = "uboot", | 63 | .name = "uboot", |
58 | .offset = 0, | 64 | .offset = 0, |
59 | .size = (1 * 1024 * 1024), | 65 | .size = (1 * 1024 * 1024), |
60 | .mask_flags = MTD_WRITEABLE, /* Read-only */ | 66 | .mask_flags = MTD_WRITEABLE, /* Read-only */ |
67 | }, { | ||
68 | .name = "kernel", | ||
69 | .offset = MTDPART_OFS_APPEND, | ||
70 | .size = (2 * 1024 * 1024), | ||
71 | }, { | ||
72 | .name = "free-area0", | ||
73 | .offset = MTDPART_OFS_APPEND, | ||
74 | .size = ((7 * 1024 * 1024) + (512 * 1024)), | ||
61 | }, { | 75 | }, { |
62 | .name = "kernel", | 76 | .name = "CPLD-Data", |
63 | .offset = MTDPART_OFS_APPEND, | 77 | .offset = MTDPART_OFS_APPEND, |
64 | .size = (2 * 1024 * 1024), | 78 | .mask_flags = MTD_WRITEABLE, /* Read-only */ |
79 | .size = (1024 * 128 * 2), | ||
65 | }, { | 80 | }, { |
66 | .name = "other", | 81 | .name = "free-area1", |
67 | .offset = MTDPART_OFS_APPEND, | 82 | .offset = MTDPART_OFS_APPEND, |
68 | .size = MTDPART_SIZ_FULL, | 83 | .size = MTDPART_SIZ_FULL, |
69 | }, | 84 | }, |
70 | }; | 85 | }; |
71 | 86 | ||
@@ -96,17 +111,7 @@ static struct platform_device ap325rxa_nor_flash_device = { | |||
96 | #define FPGA_LCDREG 0xB4100180 | 111 | #define FPGA_LCDREG 0xB4100180 |
97 | #define FPGA_BKLREG 0xB4100212 | 112 | #define FPGA_BKLREG 0xB4100212 |
98 | #define FPGA_LCDREG_VAL 0x0018 | 113 | #define FPGA_LCDREG_VAL 0x0018 |
99 | #define PORT_PHCR 0xA405010E | ||
100 | #define PORT_PLCR 0xA4050114 | ||
101 | #define PORT_PMCR 0xA4050116 | ||
102 | #define PORT_PRCR 0xA405011C | ||
103 | #define PORT_PSCR 0xA405011E | ||
104 | #define PORT_PZCR 0xA405014C | ||
105 | #define PORT_HIZCRA 0xA4050158 | ||
106 | #define PORT_MSELCRB 0xA4050182 | 114 | #define PORT_MSELCRB 0xA4050182 |
107 | #define PORT_PSDR 0xA405013E | ||
108 | #define PORT_PZDR 0xA405016C | ||
109 | #define PORT_PSELD 0xA4050154 | ||
110 | 115 | ||
111 | static void ap320_wvga_power_on(void *board_data) | 116 | static void ap320_wvga_power_on(void *board_data) |
112 | { | 117 | { |
@@ -116,8 +121,7 @@ static void ap320_wvga_power_on(void *board_data) | |||
116 | ctrl_outw(FPGA_LCDREG_VAL, FPGA_LCDREG); | 121 | ctrl_outw(FPGA_LCDREG_VAL, FPGA_LCDREG); |
117 | 122 | ||
118 | /* backlight */ | 123 | /* backlight */ |
119 | ctrl_outw((ctrl_inw(PORT_PSCR) & ~0x00C0) | 0x40, PORT_PSCR); | 124 | gpio_set_value(GPIO_PTS3, 0); |
120 | ctrl_outb(ctrl_inb(PORT_PSDR) & ~0x08, PORT_PSDR); | ||
121 | ctrl_outw(0x100, FPGA_BKLREG); | 125 | ctrl_outw(0x100, FPGA_BKLREG); |
122 | } | 126 | } |
123 | 127 | ||
@@ -281,12 +285,84 @@ static struct platform_device *ap325rxa_devices[] __initdata = { | |||
281 | }; | 285 | }; |
282 | 286 | ||
283 | static struct i2c_board_info __initdata ap325rxa_i2c_devices[] = { | 287 | static struct i2c_board_info __initdata ap325rxa_i2c_devices[] = { |
288 | { | ||
289 | I2C_BOARD_INFO("pcf8563", 0x51), | ||
290 | }, | ||
284 | }; | 291 | }; |
285 | 292 | ||
286 | static int __init ap325rxa_devices_setup(void) | 293 | static int __init ap325rxa_devices_setup(void) |
287 | { | 294 | { |
288 | clk_always_enable("mstp200"); /* LCDC */ | 295 | /* LD3 and LD4 LEDs */ |
289 | clk_always_enable("mstp203"); /* CEU */ | 296 | gpio_request(GPIO_PTX5, NULL); /* RUN */ |
297 | gpio_direction_output(GPIO_PTX5, 1); | ||
298 | gpio_export(GPIO_PTX5, 0); | ||
299 | |||
300 | gpio_request(GPIO_PTX4, NULL); /* INDICATOR */ | ||
301 | gpio_direction_output(GPIO_PTX4, 0); | ||
302 | gpio_export(GPIO_PTX4, 0); | ||
303 | |||
304 | /* SW1 input */ | ||
305 | gpio_request(GPIO_PTF7, NULL); /* MODE */ | ||
306 | gpio_direction_input(GPIO_PTF7); | ||
307 | gpio_export(GPIO_PTF7, 0); | ||
308 | |||
309 | /* LCDC */ | ||
310 | clk_always_enable("mstp200"); | ||
311 | gpio_request(GPIO_FN_LCDD15, NULL); | ||
312 | gpio_request(GPIO_FN_LCDD14, NULL); | ||
313 | gpio_request(GPIO_FN_LCDD13, NULL); | ||
314 | gpio_request(GPIO_FN_LCDD12, NULL); | ||
315 | gpio_request(GPIO_FN_LCDD11, NULL); | ||
316 | gpio_request(GPIO_FN_LCDD10, NULL); | ||
317 | gpio_request(GPIO_FN_LCDD9, NULL); | ||
318 | gpio_request(GPIO_FN_LCDD8, NULL); | ||
319 | gpio_request(GPIO_FN_LCDD7, NULL); | ||
320 | gpio_request(GPIO_FN_LCDD6, NULL); | ||
321 | gpio_request(GPIO_FN_LCDD5, NULL); | ||
322 | gpio_request(GPIO_FN_LCDD4, NULL); | ||
323 | gpio_request(GPIO_FN_LCDD3, NULL); | ||
324 | gpio_request(GPIO_FN_LCDD2, NULL); | ||
325 | gpio_request(GPIO_FN_LCDD1, NULL); | ||
326 | gpio_request(GPIO_FN_LCDD0, NULL); | ||
327 | gpio_request(GPIO_FN_LCDLCLK_PTR, NULL); | ||
328 | gpio_request(GPIO_FN_LCDDCK, NULL); | ||
329 | gpio_request(GPIO_FN_LCDVEPWC, NULL); | ||
330 | gpio_request(GPIO_FN_LCDVCPWC, NULL); | ||
331 | gpio_request(GPIO_FN_LCDVSYN, NULL); | ||
332 | gpio_request(GPIO_FN_LCDHSYN, NULL); | ||
333 | gpio_request(GPIO_FN_LCDDISP, NULL); | ||
334 | gpio_request(GPIO_FN_LCDDON, NULL); | ||
335 | |||
336 | /* LCD backlight */ | ||
337 | gpio_request(GPIO_PTS3, NULL); | ||
338 | gpio_direction_output(GPIO_PTS3, 1); | ||
339 | |||
340 | /* CEU */ | ||
341 | clk_always_enable("mstp203"); | ||
342 | gpio_request(GPIO_FN_VIO_CLK2, NULL); | ||
343 | gpio_request(GPIO_FN_VIO_VD2, NULL); | ||
344 | gpio_request(GPIO_FN_VIO_HD2, NULL); | ||
345 | gpio_request(GPIO_FN_VIO_FLD, NULL); | ||
346 | gpio_request(GPIO_FN_VIO_CKO, NULL); | ||
347 | gpio_request(GPIO_FN_VIO_D15, NULL); | ||
348 | gpio_request(GPIO_FN_VIO_D14, NULL); | ||
349 | gpio_request(GPIO_FN_VIO_D13, NULL); | ||
350 | gpio_request(GPIO_FN_VIO_D12, NULL); | ||
351 | gpio_request(GPIO_FN_VIO_D11, NULL); | ||
352 | gpio_request(GPIO_FN_VIO_D10, NULL); | ||
353 | gpio_request(GPIO_FN_VIO_D9, NULL); | ||
354 | gpio_request(GPIO_FN_VIO_D8, NULL); | ||
355 | |||
356 | gpio_request(GPIO_PTZ7, NULL); | ||
357 | gpio_direction_output(GPIO_PTZ7, 0); /* OE_CAM */ | ||
358 | gpio_request(GPIO_PTZ6, NULL); | ||
359 | gpio_direction_output(GPIO_PTZ6, 0); /* STBY_CAM */ | ||
360 | gpio_request(GPIO_PTZ5, NULL); | ||
361 | gpio_direction_output(GPIO_PTZ5, 1); /* RST_CAM */ | ||
362 | gpio_request(GPIO_PTZ4, NULL); | ||
363 | gpio_direction_output(GPIO_PTZ4, 0); /* SADDR */ | ||
364 | |||
365 | ctrl_outw(ctrl_inw(PORT_MSELCRB) & ~0x0001, PORT_MSELCRB); | ||
290 | 366 | ||
291 | platform_resource_setup_memory(&ceu_device, "ceu", 4 << 20); | 367 | platform_resource_setup_memory(&ceu_device, "ceu", 4 << 20); |
292 | 368 | ||
@@ -300,18 +376,6 @@ device_initcall(ap325rxa_devices_setup); | |||
300 | 376 | ||
301 | static void __init ap325rxa_setup(char **cmdline_p) | 377 | static void __init ap325rxa_setup(char **cmdline_p) |
302 | { | 378 | { |
303 | /* LCDC configuration */ | ||
304 | ctrl_outw(ctrl_inw(PORT_PHCR) & ~0xffff, PORT_PHCR); | ||
305 | ctrl_outw(ctrl_inw(PORT_PLCR) & ~0xffff, PORT_PLCR); | ||
306 | ctrl_outw(ctrl_inw(PORT_PMCR) & ~0xffff, PORT_PMCR); | ||
307 | ctrl_outw(ctrl_inw(PORT_PRCR) & ~0x03ff, PORT_PRCR); | ||
308 | ctrl_outw(ctrl_inw(PORT_HIZCRA) & ~0x01C0, PORT_HIZCRA); | ||
309 | |||
310 | /* CEU */ | ||
311 | ctrl_outw(ctrl_inw(PORT_MSELCRB) & ~0x0001, PORT_MSELCRB); | ||
312 | ctrl_outw(ctrl_inw(PORT_PSELD) & ~0x0003, PORT_PSELD); | ||
313 | ctrl_outw((ctrl_inw(PORT_PZCR) & ~0xff00) | 0x5500, PORT_PZCR); | ||
314 | ctrl_outb((ctrl_inb(PORT_PZDR) & ~0xf0) | 0x20, PORT_PZDR); | ||
315 | } | 379 | } |
316 | 380 | ||
317 | static struct sh_machine_vector mv_ap325rxa __initmv = { | 381 | static struct sh_machine_vector mv_ap325rxa __initmv = { |
diff --git a/arch/sh/boards/board-edosk7760.c b/arch/sh/boards/board-edosk7760.c new file mode 100644 index 000000000000..35dc0994875d --- /dev/null +++ b/arch/sh/boards/board-edosk7760.c | |||
@@ -0,0 +1,193 @@ | |||
1 | /* | ||
2 | * Renesas Europe EDOSK7760 Board Support | ||
3 | * | ||
4 | * Copyright (C) 2008 SPES Societa' Progettazione Elettronica e Software Ltd. | ||
5 | * Author: Luca Santini <luca.santini@spesonline.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
20 | */ | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/types.h> | ||
23 | #include <linux/platform_device.h> | ||
24 | #include <linux/smc91x.h> | ||
25 | #include <linux/interrupt.h> | ||
26 | #include <linux/i2c.h> | ||
27 | #include <linux/mtd/physmap.h> | ||
28 | #include <asm/machvec.h> | ||
29 | #include <asm/io.h> | ||
30 | #include <asm/addrspace.h> | ||
31 | #include <asm/delay.h> | ||
32 | #include <asm/i2c-sh7760.h> | ||
33 | #include <asm/sizes.h> | ||
34 | |||
35 | /* Bus state controller registers for CS4 area */ | ||
36 | #define BSC_CS4BCR 0xA4FD0010 | ||
37 | #define BSC_CS4WCR 0xA4FD0030 | ||
38 | |||
39 | #define SMC_IOBASE 0xA2000000 | ||
40 | #define SMC_IO_OFFSET 0x300 | ||
41 | #define SMC_IOADDR (SMC_IOBASE + SMC_IO_OFFSET) | ||
42 | |||
43 | #define ETHERNET_IRQ 5 | ||
44 | |||
45 | /* NOR flash */ | ||
46 | static struct mtd_partition edosk7760_nor_flash_partitions[] = { | ||
47 | { | ||
48 | .name = "bootloader", | ||
49 | .offset = 0, | ||
50 | .size = SZ_256K, | ||
51 | .mask_flags = MTD_WRITEABLE, /* Read-only */ | ||
52 | }, { | ||
53 | .name = "kernel", | ||
54 | .offset = MTDPART_OFS_APPEND, | ||
55 | .size = SZ_2M, | ||
56 | }, { | ||
57 | .name = "fs", | ||
58 | .offset = MTDPART_OFS_APPEND, | ||
59 | .size = SZ_26M, | ||
60 | }, { | ||
61 | .name = "other", | ||
62 | .offset = MTDPART_OFS_APPEND, | ||
63 | .size = MTDPART_SIZ_FULL, | ||
64 | }, | ||
65 | }; | ||
66 | |||
67 | static struct physmap_flash_data edosk7760_nor_flash_data = { | ||
68 | .width = 4, | ||
69 | .parts = edosk7760_nor_flash_partitions, | ||
70 | .nr_parts = ARRAY_SIZE(edosk7760_nor_flash_partitions), | ||
71 | }; | ||
72 | |||
73 | static struct resource edosk7760_nor_flash_resources[] = { | ||
74 | [0] = { | ||
75 | .name = "NOR Flash", | ||
76 | .start = 0x00000000, | ||
77 | .end = 0x00000000 + SZ_32M - 1, | ||
78 | .flags = IORESOURCE_MEM, | ||
79 | } | ||
80 | }; | ||
81 | |||
82 | static struct platform_device edosk7760_nor_flash_device = { | ||
83 | .name = "physmap-flash", | ||
84 | .resource = edosk7760_nor_flash_resources, | ||
85 | .num_resources = ARRAY_SIZE(edosk7760_nor_flash_resources), | ||
86 | .dev = { | ||
87 | .platform_data = &edosk7760_nor_flash_data, | ||
88 | }, | ||
89 | }; | ||
90 | |||
91 | /* i2c initialization functions */ | ||
92 | static struct sh7760_i2c_platdata i2c_pd = { | ||
93 | .speed_khz = 400, | ||
94 | }; | ||
95 | |||
96 | static struct resource sh7760_i2c1_res[] = { | ||
97 | { | ||
98 | .start = SH7760_I2C1_MMIO, | ||
99 | .end = SH7760_I2C1_MMIOEND, | ||
100 | .flags = IORESOURCE_MEM, | ||
101 | },{ | ||
102 | .start = SH7760_I2C1_IRQ, | ||
103 | .end = SH7760_I2C1_IRQ, | ||
104 | .flags = IORESOURCE_IRQ, | ||
105 | }, | ||
106 | }; | ||
107 | |||
108 | static struct platform_device sh7760_i2c1_dev = { | ||
109 | .dev = { | ||
110 | .platform_data = &i2c_pd, | ||
111 | }, | ||
112 | |||
113 | .name = SH7760_I2C_DEVNAME, | ||
114 | .id = 1, | ||
115 | .resource = sh7760_i2c1_res, | ||
116 | .num_resources = ARRAY_SIZE(sh7760_i2c1_res), | ||
117 | }; | ||
118 | |||
119 | static struct resource sh7760_i2c0_res[] = { | ||
120 | { | ||
121 | .start = SH7760_I2C0_MMIO, | ||
122 | .end = SH7760_I2C0_MMIOEND, | ||
123 | .flags = IORESOURCE_MEM, | ||
124 | }, { | ||
125 | .start = SH7760_I2C0_IRQ, | ||
126 | .end = SH7760_I2C0_IRQ, | ||
127 | .flags = IORESOURCE_IRQ, | ||
128 | }, | ||
129 | }; | ||
130 | |||
131 | static struct platform_device sh7760_i2c0_dev = { | ||
132 | .dev = { | ||
133 | .platform_data = &i2c_pd, | ||
134 | }, | ||
135 | .name = SH7760_I2C_DEVNAME, | ||
136 | .id = 0, | ||
137 | .resource = sh7760_i2c0_res, | ||
138 | .num_resources = ARRAY_SIZE(sh7760_i2c0_res), | ||
139 | }; | ||
140 | |||
141 | /* eth initialization functions */ | ||
142 | static struct smc91x_platdata smc91x_info = { | ||
143 | .flags = SMC91X_USE_16BIT | SMC91X_IO_SHIFT_1 | IORESOURCE_IRQ_LOWLEVEL, | ||
144 | }; | ||
145 | |||
146 | static struct resource smc91x_res[] = { | ||
147 | [0] = { | ||
148 | .start = SMC_IOADDR, | ||
149 | .end = SMC_IOADDR + SZ_32 - 1, | ||
150 | .flags = IORESOURCE_MEM, | ||
151 | }, | ||
152 | [1] = { | ||
153 | .start = ETHERNET_IRQ, | ||
154 | .end = ETHERNET_IRQ, | ||
155 | .flags = IORESOURCE_IRQ , | ||
156 | } | ||
157 | }; | ||
158 | |||
159 | static struct platform_device smc91x_dev = { | ||
160 | .name = "smc91x", | ||
161 | .id = -1, | ||
162 | .num_resources = ARRAY_SIZE(smc91x_res), | ||
163 | .resource = smc91x_res, | ||
164 | |||
165 | .dev = { | ||
166 | .platform_data = &smc91x_info, | ||
167 | }, | ||
168 | }; | ||
169 | |||
170 | /* platform init code */ | ||
171 | static struct platform_device *edosk7760_devices[] __initdata = { | ||
172 | &smc91x_dev, | ||
173 | &edosk7760_nor_flash_device, | ||
174 | &sh7760_i2c0_dev, | ||
175 | &sh7760_i2c1_dev, | ||
176 | }; | ||
177 | |||
178 | static int __init init_edosk7760_devices(void) | ||
179 | { | ||
180 | plat_irq_setup_pins(IRQ_MODE_IRQ); | ||
181 | |||
182 | return platform_add_devices(edosk7760_devices, | ||
183 | ARRAY_SIZE(edosk7760_devices)); | ||
184 | } | ||
185 | __initcall(init_edosk7760_devices); | ||
186 | |||
187 | /* | ||
188 | * The Machine Vector | ||
189 | */ | ||
190 | struct sh_machine_vector mv_edosk7760 __initmv = { | ||
191 | .mv_name = "EDOSK7760", | ||
192 | .mv_nr_irqs = 128, | ||
193 | }; | ||
diff --git a/arch/sh/boards/board-magicpanelr2.c b/arch/sh/boards/board-magicpanelr2.c index f3b8b07ea5d6..3de22ccdeb7e 100644 --- a/arch/sh/boards/board-magicpanelr2.c +++ b/arch/sh/boards/board-magicpanelr2.c | |||
@@ -13,12 +13,14 @@ | |||
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <linux/gpio.h> | ||
16 | #include <linux/mtd/mtd.h> | 17 | #include <linux/mtd/mtd.h> |
17 | #include <linux/mtd/partitions.h> | 18 | #include <linux/mtd/partitions.h> |
18 | #include <linux/mtd/physmap.h> | 19 | #include <linux/mtd/physmap.h> |
19 | #include <linux/mtd/map.h> | 20 | #include <linux/mtd/map.h> |
20 | #include <asm/magicpanelr2.h> | 21 | #include <mach/magicpanelr2.h> |
21 | #include <asm/heartbeat.h> | 22 | #include <asm/heartbeat.h> |
23 | #include <cpu/sh7720.h> | ||
22 | 24 | ||
23 | #define LAN9115_READY (ctrl_inl(0xA8000084UL) & 0x00000001UL) | 25 | #define LAN9115_READY (ctrl_inl(0xA8000084UL) & 0x00000001UL) |
24 | 26 | ||
@@ -170,7 +172,14 @@ static void __init setup_port_multiplexing(void) | |||
170 | /* R7 A25; R6 A24; R5 A23; R4 A22; | 172 | /* R7 A25; R6 A24; R5 A23; R4 A22; |
171 | * R3 A21; R2 A20; R1 A19; R0 A0; | 173 | * R3 A21; R2 A20; R1 A19; R0 A0; |
172 | */ | 174 | */ |
173 | ctrl_outw(0x0000, PORT_PRCR); /* 00 00 00 00 00 00 00 00 */ | 175 | gpio_request(GPIO_FN_A25, NULL); |
176 | gpio_request(GPIO_FN_A24, NULL); | ||
177 | gpio_request(GPIO_FN_A23, NULL); | ||
178 | gpio_request(GPIO_FN_A22, NULL); | ||
179 | gpio_request(GPIO_FN_A21, NULL); | ||
180 | gpio_request(GPIO_FN_A20, NULL); | ||
181 | gpio_request(GPIO_FN_A19, NULL); | ||
182 | gpio_request(GPIO_FN_A0, NULL); | ||
174 | 183 | ||
175 | /* S7 (x); S6 (x); S5 (x); S4 GPO(EEPROM_CS2); | 184 | /* S7 (x); S6 (x); S5 (x); S4 GPO(EEPROM_CS2); |
176 | * S3 GPO(EEPROM_CS1); S2 SIOF0_TXD; S1 SIOF0_RXD; S0 SIOF0_SCK; | 185 | * S3 GPO(EEPROM_CS1); S2 SIOF0_TXD; S1 SIOF0_RXD; S0 SIOF0_SCK; |
diff --git a/arch/sh/boards/board-rsk7203.c b/arch/sh/boards/board-rsk7203.c index ffbedc59a973..ded799cf3eae 100644 --- a/arch/sh/boards/board-rsk7203.c +++ b/arch/sh/boards/board-rsk7203.c | |||
@@ -16,8 +16,10 @@ | |||
16 | #include <linux/mtd/physmap.h> | 16 | #include <linux/mtd/physmap.h> |
17 | #include <linux/mtd/map.h> | 17 | #include <linux/mtd/map.h> |
18 | #include <linux/smc911x.h> | 18 | #include <linux/smc911x.h> |
19 | #include <linux/gpio.h> | ||
19 | #include <asm/machvec.h> | 20 | #include <asm/machvec.h> |
20 | #include <asm/io.h> | 21 | #include <asm/io.h> |
22 | #include <asm/sh7203.h> | ||
21 | 23 | ||
22 | static struct smc911x_platdata smc911x_info = { | 24 | static struct smc911x_platdata smc911x_info = { |
23 | .flags = SMC911X_USE_16BIT, | 25 | .flags = SMC911X_USE_16BIT, |
@@ -122,6 +124,15 @@ static struct platform_device *rsk7203_devices[] __initdata = { | |||
122 | 124 | ||
123 | static int __init rsk7203_devices_setup(void) | 125 | static int __init rsk7203_devices_setup(void) |
124 | { | 126 | { |
127 | /* Select pins for SCIF0 */ | ||
128 | gpio_request(GPIO_FN_TXD0, NULL); | ||
129 | gpio_request(GPIO_FN_RXD0, NULL); | ||
130 | |||
131 | /* Lit LED0 */ | ||
132 | gpio_request(GPIO_PE10, NULL); | ||
133 | gpio_direction_output(GPIO_PE10, 0); | ||
134 | gpio_export(GPIO_PE10, 0); | ||
135 | |||
125 | set_mtd_partitions(); | 136 | set_mtd_partitions(); |
126 | return platform_add_devices(rsk7203_devices, | 137 | return platform_add_devices(rsk7203_devices, |
127 | ARRAY_SIZE(rsk7203_devices)); | 138 | ARRAY_SIZE(rsk7203_devices)); |
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c index b95d674ee704..408bbddaf325 100644 --- a/arch/sh/boards/board-sh7785lcr.c +++ b/arch/sh/boards/board-sh7785lcr.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/i2c-pca-platform.h> | 19 | #include <linux/i2c-pca-platform.h> |
20 | #include <linux/i2c-algo-pca.h> | 20 | #include <linux/i2c-algo-pca.h> |
21 | #include <asm/heartbeat.h> | 21 | #include <asm/heartbeat.h> |
22 | #include <asm/sh7785lcr.h> | 22 | #include <mach/sh7785lcr.h> |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * NOTE: This board has 2 physical memory maps. | 25 | * NOTE: This board has 2 physical memory maps. |
diff --git a/arch/sh/boards/board-shmin.c b/arch/sh/boards/board-shmin.c index 16e5dae8ecfb..5cc0867de5ab 100644 --- a/arch/sh/boards/board-shmin.c +++ b/arch/sh/boards/board-shmin.c | |||
@@ -8,7 +8,7 @@ | |||
8 | #include <linux/init.h> | 8 | #include <linux/init.h> |
9 | #include <linux/irq.h> | 9 | #include <linux/irq.h> |
10 | #include <asm/machvec.h> | 10 | #include <asm/machvec.h> |
11 | #include <asm/shmin.h> | 11 | #include <mach/shmin.h> |
12 | #include <asm/clock.h> | 12 | #include <asm/clock.h> |
13 | #include <asm/io.h> | 13 | #include <asm/io.h> |
14 | 14 | ||
diff --git a/arch/sh/boards/mach-edosk7705/io.c b/arch/sh/boards/mach-edosk7705/io.c index 541cea2a652f..7d153e50a01b 100644 --- a/arch/sh/boards/mach-edosk7705/io.c +++ b/arch/sh/boards/mach-edosk7705/io.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | #include <asm/io.h> | 13 | #include <asm/io.h> |
14 | #include <asm/edosk7705/io.h> | 14 | #include <mach/edosk7705.h> |
15 | #include <asm/addrspace.h> | 15 | #include <asm/addrspace.h> |
16 | 16 | ||
17 | #define SMC_IOADDR 0xA2000000 | 17 | #define SMC_IOADDR 0xA2000000 |
diff --git a/arch/sh/boards/mach-edosk7705/setup.c b/arch/sh/boards/mach-edosk7705/setup.c index f076c45308dd..ab3f47bffdf3 100644 --- a/arch/sh/boards/mach-edosk7705/setup.c +++ b/arch/sh/boards/mach-edosk7705/setup.c | |||
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <asm/machvec.h> | 12 | #include <asm/machvec.h> |
13 | #include <asm/edosk7705/io.h> | 13 | #include <mach/edosk7705.h> |
14 | 14 | ||
15 | static void __init sh_edosk7705_init_irq(void) | 15 | static void __init sh_edosk7705_init_irq(void) |
16 | { | 16 | { |
diff --git a/arch/sh/boards/mach-highlander/irq-r7780mp.c b/arch/sh/boards/mach-highlander/irq-r7780mp.c index ae1cfcb29700..83c28bcd4d2a 100644 --- a/arch/sh/boards/mach-highlander/irq-r7780mp.c +++ b/arch/sh/boards/mach-highlander/irq-r7780mp.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <asm/r7780rp.h> | 15 | #include <mach/highlander.h> |
16 | 16 | ||
17 | enum { | 17 | enum { |
18 | UNUSED = 0, | 18 | UNUSED = 0, |
diff --git a/arch/sh/boards/mach-highlander/irq-r7780rp.c b/arch/sh/boards/mach-highlander/irq-r7780rp.c index 9d3921fe27c0..b721e86b5af4 100644 --- a/arch/sh/boards/mach-highlander/irq-r7780rp.c +++ b/arch/sh/boards/mach-highlander/irq-r7780rp.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <asm/r7780rp.h> | 15 | #include <mach/highlander.h> |
16 | 16 | ||
17 | enum { | 17 | enum { |
18 | UNUSED = 0, | 18 | UNUSED = 0, |
diff --git a/arch/sh/boards/mach-highlander/irq-r7785rp.c b/arch/sh/boards/mach-highlander/irq-r7785rp.c index 896c045aa39d..3811b060a39b 100644 --- a/arch/sh/boards/mach-highlander/irq-r7785rp.c +++ b/arch/sh/boards/mach-highlander/irq-r7785rp.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <asm/r7780rp.h> | 15 | #include <mach/highlander.h> |
16 | 16 | ||
17 | enum { | 17 | enum { |
18 | UNUSED = 0, | 18 | UNUSED = 0, |
diff --git a/arch/sh/boards/mach-highlander/psw.c b/arch/sh/boards/mach-highlander/psw.c index be8d5477fc65..37b1a2ee71a5 100644 --- a/arch/sh/boards/mach-highlander/psw.c +++ b/arch/sh/boards/mach-highlander/psw.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
16 | #include <asm/r7780rp.h> | 16 | #include <mach/highlander.h> |
17 | #include <asm/push-switch.h> | 17 | #include <asm/push-switch.h> |
18 | 18 | ||
19 | static irqreturn_t psw_irq_handler(int irq, void *arg) | 19 | static irqreturn_t psw_irq_handler(int irq, void *arg) |
diff --git a/arch/sh/boards/mach-highlander/setup.c b/arch/sh/boards/mach-highlander/setup.c index bc79afb6fc4c..c5a40f7906d7 100644 --- a/arch/sh/boards/mach-highlander/setup.c +++ b/arch/sh/boards/mach-highlander/setup.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/i2c.h> | 20 | #include <linux/i2c.h> |
21 | #include <net/ax88796.h> | 21 | #include <net/ax88796.h> |
22 | #include <asm/machvec.h> | 22 | #include <asm/machvec.h> |
23 | #include <asm/r7780rp.h> | 23 | #include <mach/highlander.h> |
24 | #include <asm/clock.h> | 24 | #include <asm/clock.h> |
25 | #include <asm/heartbeat.h> | 25 | #include <asm/heartbeat.h> |
26 | #include <asm/io.h> | 26 | #include <asm/io.h> |
diff --git a/arch/sh/boards/mach-hp6xx/hp6xx_apm.c b/arch/sh/boards/mach-hp6xx/hp6xx_apm.c index 177f4f028e0d..e85212faf40a 100644 --- a/arch/sh/boards/mach-hp6xx/hp6xx_apm.c +++ b/arch/sh/boards/mach-hp6xx/hp6xx_apm.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/apm-emulation.h> | 14 | #include <linux/apm-emulation.h> |
15 | #include <linux/io.h> | 15 | #include <linux/io.h> |
16 | #include <asm/adc.h> | 16 | #include <asm/adc.h> |
17 | #include <asm/hp6xx.h> | 17 | #include <mach/hp6xx.h> |
18 | 18 | ||
19 | /* percentage values */ | 19 | /* percentage values */ |
20 | #define APM_CRITICAL 10 | 20 | #define APM_CRITICAL 10 |
diff --git a/arch/sh/boards/mach-hp6xx/pm.c b/arch/sh/boards/mach-hp6xx/pm.c index e96684def788..64af1f2eef05 100644 --- a/arch/sh/boards/mach-hp6xx/pm.c +++ b/arch/sh/boards/mach-hp6xx/pm.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/time.h> | 12 | #include <linux/time.h> |
13 | #include <asm/io.h> | 13 | #include <asm/io.h> |
14 | #include <asm/hd64461.h> | 14 | #include <asm/hd64461.h> |
15 | #include <asm/hp6xx.h> | 15 | #include <mach/hp6xx.h> |
16 | #include <cpu/dac.h> | 16 | #include <cpu/dac.h> |
17 | #include <asm/pm.h> | 17 | #include <asm/pm.h> |
18 | 18 | ||
diff --git a/arch/sh/boards/mach-hp6xx/setup.c b/arch/sh/boards/mach-hp6xx/setup.c index 475b46caec1f..48fece78ff54 100644 --- a/arch/sh/boards/mach-hp6xx/setup.c +++ b/arch/sh/boards/mach-hp6xx/setup.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <asm/hd64461.h> | 15 | #include <asm/hd64461.h> |
16 | #include <asm/io.h> | 16 | #include <asm/io.h> |
17 | #include <asm/irq.h> | 17 | #include <asm/irq.h> |
18 | #include <asm/hp6xx.h> | 18 | #include <mach/hp6xx.h> |
19 | #include <cpu/dac.h> | 19 | #include <cpu/dac.h> |
20 | 20 | ||
21 | #define SCPCR 0xa4000116 | 21 | #define SCPCR 0xa4000116 |
diff --git a/arch/sh/boards/mach-lboxre2/irq.c b/arch/sh/boards/mach-lboxre2/irq.c index 5a1c3bbe7b50..8aa171ab833e 100644 --- a/arch/sh/boards/mach-lboxre2/irq.c +++ b/arch/sh/boards/mach-lboxre2/irq.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/irq.h> | 15 | #include <linux/irq.h> |
16 | #include <asm/irq.h> | 16 | #include <asm/irq.h> |
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | #include <asm/lboxre2.h> | 18 | #include <mach/lboxre2.h> |
19 | 19 | ||
20 | /* | 20 | /* |
21 | * Initialize IRQ setting | 21 | * Initialize IRQ setting |
diff --git a/arch/sh/boards/mach-lboxre2/setup.c b/arch/sh/boards/mach-lboxre2/setup.c index c74440d38ee9..2b0b5818e1e4 100644 --- a/arch/sh/boards/mach-lboxre2/setup.c +++ b/arch/sh/boards/mach-lboxre2/setup.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/ata_platform.h> | 16 | #include <linux/ata_platform.h> |
17 | #include <asm/machvec.h> | 17 | #include <asm/machvec.h> |
18 | #include <asm/addrspace.h> | 18 | #include <asm/addrspace.h> |
19 | #include <asm/lboxre2.h> | 19 | #include <mach/lboxre2.h> |
20 | #include <asm/io.h> | 20 | #include <asm/io.h> |
21 | 21 | ||
22 | static struct resource cf_ide_resources[] = { | 22 | static struct resource cf_ide_resources[] = { |
diff --git a/arch/sh/boards/mach-microdev/io.c b/arch/sh/boards/mach-microdev/io.c index 9f8a540f7e14..52dd748211c7 100644 --- a/arch/sh/boards/mach-microdev/io.c +++ b/arch/sh/boards/mach-microdev/io.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/pci.h> | 15 | #include <linux/pci.h> |
16 | #include <linux/wait.h> | 16 | #include <linux/wait.h> |
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | #include <asm/microdev.h> | 18 | #include <mach/microdev.h> |
19 | 19 | ||
20 | /* | 20 | /* |
21 | * we need to have a 'safe' address to re-direct all I/O requests | 21 | * we need to have a 'safe' address to re-direct all I/O requests |
diff --git a/arch/sh/boards/mach-microdev/irq.c b/arch/sh/boards/mach-microdev/irq.c index 4d335077a3ff..702753cbd28f 100644 --- a/arch/sh/boards/mach-microdev/irq.c +++ b/arch/sh/boards/mach-microdev/irq.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <asm/system.h> | 15 | #include <asm/system.h> |
16 | #include <asm/io.h> | 16 | #include <asm/io.h> |
17 | #include <asm/microdev.h> | 17 | #include <mach/microdev.h> |
18 | 18 | ||
19 | #define NUM_EXTERNAL_IRQS 16 /* IRL0 .. IRL15 */ | 19 | #define NUM_EXTERNAL_IRQS 16 /* IRL0 .. IRL15 */ |
20 | 20 | ||
diff --git a/arch/sh/boards/mach-microdev/setup.c b/arch/sh/boards/mach-microdev/setup.c index fc8cd06d66cf..a9202fe3cb59 100644 --- a/arch/sh/boards/mach-microdev/setup.c +++ b/arch/sh/boards/mach-microdev/setup.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | #include <linux/ioport.h> | 15 | #include <linux/ioport.h> |
16 | #include <video/s1d13xxxfb.h> | 16 | #include <video/s1d13xxxfb.h> |
17 | #include <asm/microdev.h> | 17 | #include <mach/microdev.h> |
18 | #include <asm/io.h> | 18 | #include <asm/io.h> |
19 | #include <asm/machvec.h> | 19 | #include <asm/machvec.h> |
20 | 20 | ||
diff --git a/arch/sh/boards/mach-migor/lcd_qvga.c b/arch/sh/boards/mach-migor/lcd_qvga.c index 6e9609596448..de9014a8a93e 100644 --- a/arch/sh/boards/mach-migor/lcd_qvga.c +++ b/arch/sh/boards/mach-migor/lcd_qvga.c | |||
@@ -17,8 +17,10 @@ | |||
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <asm/sh_mobile_lcdc.h> | 20 | #include <linux/gpio.h> |
21 | #include <asm/migor.h> | 21 | #include <video/sh_mobile_lcdc.h> |
22 | #include <cpu/sh7722.h> | ||
23 | #include <mach/migor.h> | ||
22 | 24 | ||
23 | /* LCD Module is a PH240320T according to board schematics. This module | 25 | /* LCD Module is a PH240320T according to board schematics. This module |
24 | * is made up of a 240x320 LCD hooked up to a R61505U (or HX8347-A01?) | 26 | * is made up of a 240x320 LCD hooked up to a R61505U (or HX8347-A01?) |
@@ -30,9 +32,9 @@ | |||
30 | 32 | ||
31 | static void reset_lcd_module(void) | 33 | static void reset_lcd_module(void) |
32 | { | 34 | { |
33 | ctrl_outb(ctrl_inb(PORT_PHDR) & ~0x04, PORT_PHDR); | 35 | gpio_set_value(GPIO_PTH2, 0); |
34 | mdelay(2); | 36 | mdelay(2); |
35 | ctrl_outb(ctrl_inb(PORT_PHDR) | 0x04, PORT_PHDR); | 37 | gpio_set_value(GPIO_PTH2, 1); |
36 | mdelay(1); | 38 | mdelay(1); |
37 | } | 39 | } |
38 | 40 | ||
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 714dce91cc9b..769d63043424 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c | |||
@@ -17,14 +17,16 @@ | |||
17 | #include <linux/smc91x.h> | 17 | #include <linux/smc91x.h> |
18 | #include <linux/delay.h> | 18 | #include <linux/delay.h> |
19 | #include <linux/clk.h> | 19 | #include <linux/clk.h> |
20 | #include <linux/gpio.h> | ||
20 | #include <media/soc_camera_platform.h> | 21 | #include <media/soc_camera_platform.h> |
21 | #include <media/sh_mobile_ceu.h> | 22 | #include <media/sh_mobile_ceu.h> |
23 | #include <video/sh_mobile_lcdc.h> | ||
22 | #include <asm/clock.h> | 24 | #include <asm/clock.h> |
23 | #include <asm/machvec.h> | 25 | #include <asm/machvec.h> |
24 | #include <asm/io.h> | 26 | #include <asm/io.h> |
25 | #include <asm/sh_keysc.h> | 27 | #include <asm/sh_keysc.h> |
26 | #include <asm/sh_mobile_lcdc.h> | 28 | #include <mach/migor.h> |
27 | #include <asm/migor.h> | 29 | #include <cpu/sh7722.h> |
28 | 30 | ||
29 | /* Address IRQ Size Bus Description | 31 | /* Address IRQ Size Bus Description |
30 | * 0x00000000 64MB 16 NOR Flash (SP29PL256N) | 32 | * 0x00000000 64MB 16 NOR Flash (SP29PL256N) |
@@ -35,7 +37,7 @@ | |||
35 | */ | 37 | */ |
36 | 38 | ||
37 | static struct smc91x_platdata smc91x_info = { | 39 | static struct smc91x_platdata smc91x_info = { |
38 | .flags = SMC91X_USE_16BIT, | 40 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, |
39 | }; | 41 | }; |
40 | 42 | ||
41 | static struct resource smc91x_eth_resources[] = { | 43 | static struct resource smc91x_eth_resources[] = { |
@@ -169,7 +171,7 @@ static void migor_nand_flash_cmd_ctl(struct mtd_info *mtd, int cmd, | |||
169 | 171 | ||
170 | static int migor_nand_flash_ready(struct mtd_info *mtd) | 172 | static int migor_nand_flash_ready(struct mtd_info *mtd) |
171 | { | 173 | { |
172 | return ctrl_inb(PORT_PADR) & 0x02; /* PTA1 */ | 174 | return gpio_get_value(GPIO_PTA1); /* NAND_RBn */ |
173 | } | 175 | } |
174 | 176 | ||
175 | struct platform_nand_data migor_nand_flash_data = { | 177 | struct platform_nand_data migor_nand_flash_data = { |
@@ -286,22 +288,15 @@ static struct clk *camera_clk; | |||
286 | 288 | ||
287 | static void camera_power_on(void) | 289 | static void camera_power_on(void) |
288 | { | 290 | { |
289 | unsigned char value; | ||
290 | |||
291 | camera_clk = clk_get(NULL, "video_clk"); | 291 | camera_clk = clk_get(NULL, "video_clk"); |
292 | clk_set_rate(camera_clk, 24000000); | 292 | clk_set_rate(camera_clk, 24000000); |
293 | clk_enable(camera_clk); /* start VIO_CKO */ | 293 | clk_enable(camera_clk); /* start VIO_CKO */ |
294 | 294 | ||
295 | /* use VIO_RST to take camera out of reset */ | ||
295 | mdelay(10); | 296 | mdelay(10); |
296 | value = ctrl_inb(PORT_PTDR); | 297 | gpio_set_value(GPIO_PTT3, 0); |
297 | value &= ~0x09; | ||
298 | #ifndef CONFIG_SH_MIGOR_RTA_WVGA | ||
299 | value |= 0x01; | ||
300 | #endif | ||
301 | ctrl_outb(value, PORT_PTDR); | ||
302 | mdelay(10); | 298 | mdelay(10); |
303 | 299 | gpio_set_value(GPIO_PTT3, 1); | |
304 | ctrl_outb(value | 8, PORT_PTDR); | ||
305 | } | 300 | } |
306 | 301 | ||
307 | static void camera_power_off(void) | 302 | static void camera_power_off(void) |
@@ -309,7 +304,7 @@ static void camera_power_off(void) | |||
309 | clk_disable(camera_clk); /* stop VIO_CKO */ | 304 | clk_disable(camera_clk); /* stop VIO_CKO */ |
310 | clk_put(camera_clk); | 305 | clk_put(camera_clk); |
311 | 306 | ||
312 | ctrl_outb(ctrl_inb(PORT_PTDR) & ~0x08, PORT_PTDR); | 307 | gpio_set_value(GPIO_PTT3, 0); |
313 | } | 308 | } |
314 | 309 | ||
315 | #ifdef CONFIG_I2C | 310 | #ifdef CONFIG_I2C |
@@ -458,75 +453,135 @@ static struct i2c_board_info migor_i2c_devices[] = { | |||
458 | 453 | ||
459 | static int __init migor_devices_setup(void) | 454 | static int __init migor_devices_setup(void) |
460 | { | 455 | { |
456 | /* Lit D11 LED */ | ||
457 | gpio_request(GPIO_PTJ7, NULL); | ||
458 | gpio_direction_output(GPIO_PTJ7, 1); | ||
459 | gpio_export(GPIO_PTJ7, 0); | ||
460 | |||
461 | /* Lit D12 LED */ | ||
462 | gpio_request(GPIO_PTJ5, NULL); | ||
463 | gpio_direction_output(GPIO_PTJ5, 1); | ||
464 | gpio_export(GPIO_PTJ5, 0); | ||
465 | |||
466 | /* SMC91C111 - Enable IRQ0, Setup CS4 for 16-bit fast access */ | ||
467 | gpio_request(GPIO_FN_IRQ0, NULL); | ||
468 | ctrl_outl(0x00003400, BSC_CS4BCR); | ||
469 | ctrl_outl(0x00110080, BSC_CS4WCR); | ||
470 | |||
471 | /* KEYSC */ | ||
461 | clk_always_enable("mstp214"); /* KEYSC */ | 472 | clk_always_enable("mstp214"); /* KEYSC */ |
473 | gpio_request(GPIO_FN_KEYOUT0, NULL); | ||
474 | gpio_request(GPIO_FN_KEYOUT1, NULL); | ||
475 | gpio_request(GPIO_FN_KEYOUT2, NULL); | ||
476 | gpio_request(GPIO_FN_KEYOUT3, NULL); | ||
477 | gpio_request(GPIO_FN_KEYOUT4_IN6, NULL); | ||
478 | gpio_request(GPIO_FN_KEYIN1, NULL); | ||
479 | gpio_request(GPIO_FN_KEYIN2, NULL); | ||
480 | gpio_request(GPIO_FN_KEYIN3, NULL); | ||
481 | gpio_request(GPIO_FN_KEYIN4, NULL); | ||
482 | gpio_request(GPIO_FN_KEYOUT5_IN5, NULL); | ||
483 | |||
484 | /* NAND Flash */ | ||
485 | gpio_request(GPIO_FN_CS6A_CE2B, NULL); | ||
486 | ctrl_outl((ctrl_inl(BSC_CS6ABCR) & ~0x0600) | 0x0200, BSC_CS6ABCR); | ||
487 | gpio_request(GPIO_PTA1, NULL); | ||
488 | gpio_direction_input(GPIO_PTA1); | ||
489 | |||
490 | /* Touch Panel */ | ||
491 | gpio_request(GPIO_FN_IRQ6, NULL); | ||
492 | |||
493 | /* LCD Panel */ | ||
462 | clk_always_enable("mstp200"); /* LCDC */ | 494 | clk_always_enable("mstp200"); /* LCDC */ |
495 | #ifdef CONFIG_SH_MIGOR_QVGA /* LCDC - QVGA - Enable SYS Interface signals */ | ||
496 | gpio_request(GPIO_FN_LCDD17, NULL); | ||
497 | gpio_request(GPIO_FN_LCDD16, NULL); | ||
498 | gpio_request(GPIO_FN_LCDD15, NULL); | ||
499 | gpio_request(GPIO_FN_LCDD14, NULL); | ||
500 | gpio_request(GPIO_FN_LCDD13, NULL); | ||
501 | gpio_request(GPIO_FN_LCDD12, NULL); | ||
502 | gpio_request(GPIO_FN_LCDD11, NULL); | ||
503 | gpio_request(GPIO_FN_LCDD10, NULL); | ||
504 | gpio_request(GPIO_FN_LCDD8, NULL); | ||
505 | gpio_request(GPIO_FN_LCDD7, NULL); | ||
506 | gpio_request(GPIO_FN_LCDD6, NULL); | ||
507 | gpio_request(GPIO_FN_LCDD5, NULL); | ||
508 | gpio_request(GPIO_FN_LCDD4, NULL); | ||
509 | gpio_request(GPIO_FN_LCDD3, NULL); | ||
510 | gpio_request(GPIO_FN_LCDD2, NULL); | ||
511 | gpio_request(GPIO_FN_LCDD1, NULL); | ||
512 | gpio_request(GPIO_FN_LCDRS, NULL); | ||
513 | gpio_request(GPIO_FN_LCDCS, NULL); | ||
514 | gpio_request(GPIO_FN_LCDRD, NULL); | ||
515 | gpio_request(GPIO_FN_LCDWR, NULL); | ||
516 | gpio_request(GPIO_PTH2, NULL); /* LCD_DON */ | ||
517 | gpio_direction_output(GPIO_PTH2, 1); | ||
518 | #endif | ||
519 | #ifdef CONFIG_SH_MIGOR_RTA_WVGA /* LCDC - WVGA - Enable RGB Interface signals */ | ||
520 | gpio_request(GPIO_FN_LCDD15, NULL); | ||
521 | gpio_request(GPIO_FN_LCDD14, NULL); | ||
522 | gpio_request(GPIO_FN_LCDD13, NULL); | ||
523 | gpio_request(GPIO_FN_LCDD12, NULL); | ||
524 | gpio_request(GPIO_FN_LCDD11, NULL); | ||
525 | gpio_request(GPIO_FN_LCDD10, NULL); | ||
526 | gpio_request(GPIO_FN_LCDD9, NULL); | ||
527 | gpio_request(GPIO_FN_LCDD8, NULL); | ||
528 | gpio_request(GPIO_FN_LCDD7, NULL); | ||
529 | gpio_request(GPIO_FN_LCDD6, NULL); | ||
530 | gpio_request(GPIO_FN_LCDD5, NULL); | ||
531 | gpio_request(GPIO_FN_LCDD4, NULL); | ||
532 | gpio_request(GPIO_FN_LCDD3, NULL); | ||
533 | gpio_request(GPIO_FN_LCDD2, NULL); | ||
534 | gpio_request(GPIO_FN_LCDD1, NULL); | ||
535 | gpio_request(GPIO_FN_LCDD0, NULL); | ||
536 | gpio_request(GPIO_FN_LCDLCLK, NULL); | ||
537 | gpio_request(GPIO_FN_LCDDCK, NULL); | ||
538 | gpio_request(GPIO_FN_LCDVEPWC, NULL); | ||
539 | gpio_request(GPIO_FN_LCDVCPWC, NULL); | ||
540 | gpio_request(GPIO_FN_LCDVSYN, NULL); | ||
541 | gpio_request(GPIO_FN_LCDHSYN, NULL); | ||
542 | gpio_request(GPIO_FN_LCDDISP, NULL); | ||
543 | gpio_request(GPIO_FN_LCDDON, NULL); | ||
544 | #endif | ||
545 | |||
546 | /* CEU */ | ||
463 | clk_always_enable("mstp203"); /* CEU */ | 547 | clk_always_enable("mstp203"); /* CEU */ |
548 | gpio_request(GPIO_FN_VIO_CLK2, NULL); | ||
549 | gpio_request(GPIO_FN_VIO_VD2, NULL); | ||
550 | gpio_request(GPIO_FN_VIO_HD2, NULL); | ||
551 | gpio_request(GPIO_FN_VIO_FLD, NULL); | ||
552 | gpio_request(GPIO_FN_VIO_CKO, NULL); | ||
553 | gpio_request(GPIO_FN_VIO_D15, NULL); | ||
554 | gpio_request(GPIO_FN_VIO_D14, NULL); | ||
555 | gpio_request(GPIO_FN_VIO_D13, NULL); | ||
556 | gpio_request(GPIO_FN_VIO_D12, NULL); | ||
557 | gpio_request(GPIO_FN_VIO_D11, NULL); | ||
558 | gpio_request(GPIO_FN_VIO_D10, NULL); | ||
559 | gpio_request(GPIO_FN_VIO_D9, NULL); | ||
560 | gpio_request(GPIO_FN_VIO_D8, NULL); | ||
561 | |||
562 | gpio_request(GPIO_PTT3, NULL); /* VIO_RST */ | ||
563 | gpio_direction_output(GPIO_PTT3, 0); | ||
564 | gpio_request(GPIO_PTT2, NULL); /* TV_IN_EN */ | ||
565 | gpio_direction_output(GPIO_PTT2, 1); | ||
566 | gpio_request(GPIO_PTT0, NULL); /* CAM_EN */ | ||
567 | #ifdef CONFIG_SH_MIGOR_RTA_WVGA | ||
568 | gpio_direction_output(GPIO_PTT0, 0); | ||
569 | #else | ||
570 | gpio_direction_output(GPIO_PTT0, 1); | ||
571 | #endif | ||
572 | ctrl_outw(ctrl_inw(PORT_MSELCRB) | 0x2000, PORT_MSELCRB); /* D15->D8 */ | ||
464 | 573 | ||
465 | platform_resource_setup_memory(&migor_ceu_device, "ceu", 4 << 20); | 574 | platform_resource_setup_memory(&migor_ceu_device, "ceu", 4 << 20); |
466 | 575 | ||
467 | i2c_register_board_info(0, migor_i2c_devices, | 576 | i2c_register_board_info(0, migor_i2c_devices, |
468 | ARRAY_SIZE(migor_i2c_devices)); | 577 | ARRAY_SIZE(migor_i2c_devices)); |
469 | 578 | ||
470 | return platform_add_devices(migor_devices, ARRAY_SIZE(migor_devices)); | 579 | return platform_add_devices(migor_devices, ARRAY_SIZE(migor_devices)); |
471 | } | 580 | } |
472 | __initcall(migor_devices_setup); | 581 | __initcall(migor_devices_setup); |
473 | 582 | ||
474 | static void __init migor_setup(char **cmdline_p) | 583 | static void __init migor_setup(char **cmdline_p) |
475 | { | 584 | { |
476 | /* SMC91C111 - Enable IRQ0 */ | ||
477 | ctrl_outw(ctrl_inw(PORT_PJCR) & ~0x0003, PORT_PJCR); | ||
478 | |||
479 | /* KEYSC */ | ||
480 | ctrl_outw(ctrl_inw(PORT_PYCR) & ~0x0fff, PORT_PYCR); | ||
481 | ctrl_outw(ctrl_inw(PORT_PZCR) & ~0x0ff0, PORT_PZCR); | ||
482 | ctrl_outw(ctrl_inw(PORT_PSELA) & ~0x4100, PORT_PSELA); | ||
483 | ctrl_outw(ctrl_inw(PORT_HIZCRA) & ~0x4000, PORT_HIZCRA); | ||
484 | ctrl_outw(ctrl_inw(PORT_HIZCRC) & ~0xc000, PORT_HIZCRC); | ||
485 | |||
486 | /* NAND Flash */ | ||
487 | ctrl_outw(ctrl_inw(PORT_PXCR) & 0x0fff, PORT_PXCR); | ||
488 | ctrl_outl((ctrl_inl(BSC_CS6ABCR) & ~0x00000600) | 0x00000200, | ||
489 | BSC_CS6ABCR); | ||
490 | |||
491 | /* Touch Panel - Enable IRQ6 */ | ||
492 | ctrl_outw(ctrl_inw(PORT_PZCR) & ~0xc, PORT_PZCR); | ||
493 | ctrl_outw((ctrl_inw(PORT_PSELA) | 0x8000), PORT_PSELA); | ||
494 | ctrl_outw((ctrl_inw(PORT_HIZCRC) & ~0x4000), PORT_HIZCRC); | ||
495 | |||
496 | #ifdef CONFIG_SH_MIGOR_RTA_WVGA | ||
497 | /* LCDC - WVGA - Enable RGB Interface signals */ | ||
498 | ctrl_outw(ctrl_inw(PORT_PACR) & ~0x0003, PORT_PACR); | ||
499 | ctrl_outw(0x0000, PORT_PHCR); | ||
500 | ctrl_outw(0x0000, PORT_PLCR); | ||
501 | ctrl_outw(0x0000, PORT_PMCR); | ||
502 | ctrl_outw(ctrl_inw(PORT_PRCR) & ~0x000f, PORT_PRCR); | ||
503 | ctrl_outw((ctrl_inw(PORT_PSELD) & ~0x000d) | 0x0400, PORT_PSELD); | ||
504 | ctrl_outw(ctrl_inw(PORT_MSELCRB) & ~0x0100, PORT_MSELCRB); | ||
505 | ctrl_outw(ctrl_inw(PORT_HIZCRA) & ~0x01e0, PORT_HIZCRA); | ||
506 | #endif | ||
507 | #ifdef CONFIG_SH_MIGOR_QVGA | ||
508 | /* LCDC - QVGA - Enable SYS Interface signals */ | ||
509 | ctrl_outw(ctrl_inw(PORT_PACR) & ~0x0003, PORT_PACR); | ||
510 | ctrl_outw((ctrl_inw(PORT_PHCR) & ~0xcfff) | 0x0010, PORT_PHCR); | ||
511 | ctrl_outw(0x0000, PORT_PLCR); | ||
512 | ctrl_outw(0x0000, PORT_PMCR); | ||
513 | ctrl_outw(ctrl_inw(PORT_PRCR) & ~0x030f, PORT_PRCR); | ||
514 | ctrl_outw((ctrl_inw(PORT_PSELD) & ~0x0001) | 0x0420, PORT_PSELD); | ||
515 | ctrl_outw(ctrl_inw(PORT_MSELCRB) | 0x0100, PORT_MSELCRB); | ||
516 | ctrl_outw(ctrl_inw(PORT_HIZCRA) & ~0x01e0, PORT_HIZCRA); | ||
517 | #endif | ||
518 | |||
519 | /* CEU */ | ||
520 | ctrl_outw((ctrl_inw(PORT_PTCR) & ~0x03c3) | 0x0051, PORT_PTCR); | ||
521 | ctrl_outw(ctrl_inw(PORT_PUCR) & ~0x03ff, PORT_PUCR); | ||
522 | ctrl_outw(ctrl_inw(PORT_PVCR) & ~0x03ff, PORT_PVCR); | ||
523 | ctrl_outw(ctrl_inw(PORT_PWCR) & ~0x3c00, PORT_PWCR); | ||
524 | ctrl_outw(ctrl_inw(PORT_PSELC) | 0x0001, PORT_PSELC); | ||
525 | ctrl_outw(ctrl_inw(PORT_PSELD) & ~0x2000, PORT_PSELD); | ||
526 | ctrl_outw(ctrl_inw(PORT_PSELE) | 0x000f, PORT_PSELE); | ||
527 | ctrl_outw(ctrl_inw(PORT_MSELCRB) | 0x2200, PORT_MSELCRB); | ||
528 | ctrl_outw(ctrl_inw(PORT_HIZCRA) & ~0x0a00, PORT_HIZCRA); | ||
529 | ctrl_outw(ctrl_inw(PORT_HIZCRB) & ~0x0003, PORT_HIZCRB); | ||
530 | } | 585 | } |
531 | 586 | ||
532 | static struct sh_machine_vector mv_migor __initmv = { | 587 | static struct sh_machine_vector mv_migor __initmv = { |
diff --git a/arch/sh/boards/mach-r2d/irq.c b/arch/sh/boards/mach-r2d/irq.c index 8e49f6e51247..c70fecedcac4 100644 --- a/arch/sh/boards/mach-r2d/irq.c +++ b/arch/sh/boards/mach-r2d/irq.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <linux/io.h> | 15 | #include <linux/io.h> |
16 | #include <asm/rts7751r2d.h> | 16 | #include <mach/r2d.h> |
17 | 17 | ||
18 | #define R2D_NR_IRL 13 | 18 | #define R2D_NR_IRL 13 |
19 | 19 | ||
diff --git a/arch/sh/boards/mach-r2d/setup.c b/arch/sh/boards/mach-r2d/setup.c index 2308e8753bcd..c585be00956e 100644 --- a/arch/sh/boards/mach-r2d/setup.c +++ b/arch/sh/boards/mach-r2d/setup.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/spi/spi.h> | 18 | #include <linux/spi/spi.h> |
19 | #include <linux/spi/spi_bitbang.h> | 19 | #include <linux/spi/spi_bitbang.h> |
20 | #include <asm/machvec.h> | 20 | #include <asm/machvec.h> |
21 | #include <asm/rts7751r2d.h> | 21 | #include <mach/r2d.h> |
22 | #include <asm/io.h> | 22 | #include <asm/io.h> |
23 | #include <asm/io_trapped.h> | 23 | #include <asm/io_trapped.h> |
24 | #include <asm/spi.h> | 24 | #include <asm/spi.h> |
diff --git a/arch/sh/boards/mach-sdk7780/irq.c b/arch/sh/boards/mach-sdk7780/irq.c index 87cdc578f6ff..855558163c58 100644 --- a/arch/sh/boards/mach-sdk7780/irq.c +++ b/arch/sh/boards/mach-sdk7780/irq.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <asm/sdk7780.h> | 15 | #include <mach/sdk7780.h> |
16 | 16 | ||
17 | enum { | 17 | enum { |
18 | UNUSED = 0, | 18 | UNUSED = 0, |
diff --git a/arch/sh/boards/mach-sdk7780/setup.c b/arch/sh/boards/mach-sdk7780/setup.c index acc5932587f1..aad94a78dc70 100644 --- a/arch/sh/boards/mach-sdk7780/setup.c +++ b/arch/sh/boards/mach-sdk7780/setup.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/ata_platform.h> | 14 | #include <linux/ata_platform.h> |
15 | #include <asm/machvec.h> | 15 | #include <asm/machvec.h> |
16 | #include <asm/sdk7780.h> | 16 | #include <mach/sdk7780.h> |
17 | #include <asm/heartbeat.h> | 17 | #include <asm/heartbeat.h> |
18 | #include <asm/io.h> | 18 | #include <asm/io.h> |
19 | #include <asm/addrspace.h> | 19 | #include <asm/addrspace.h> |
diff --git a/arch/sh/boards/mach-sh7763rdp/irq.c b/arch/sh/boards/mach-sh7763rdp/irq.c index fd850bad2dec..d8ebfa7d8c76 100644 --- a/arch/sh/boards/mach-sh7763rdp/irq.c +++ b/arch/sh/boards/mach-sh7763rdp/irq.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/irq.h> | 15 | #include <linux/irq.h> |
16 | #include <asm/io.h> | 16 | #include <asm/io.h> |
17 | #include <asm/irq.h> | 17 | #include <asm/irq.h> |
18 | #include <asm/sh7763rdp.h> | 18 | #include <mach/sh7763rdp.h> |
19 | 19 | ||
20 | #define INTC_BASE (0xFFD00000) | 20 | #define INTC_BASE (0xFFD00000) |
21 | #define INTC_INT2PRI7 (INTC_BASE+0x4001C) | 21 | #define INTC_INT2PRI7 (INTC_BASE+0x4001C) |
diff --git a/arch/sh/boards/mach-sh7763rdp/setup.c b/arch/sh/boards/mach-sh7763rdp/setup.c index 23850da05e3c..6f926fd2162b 100644 --- a/arch/sh/boards/mach-sh7763rdp/setup.c +++ b/arch/sh/boards/mach-sh7763rdp/setup.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/mtd/physmap.h> | 17 | #include <linux/mtd/physmap.h> |
18 | #include <linux/fb.h> | 18 | #include <linux/fb.h> |
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <asm/sh7763rdp.h> | 20 | #include <mach/sh7763rdp.h> |
21 | #include <asm/sh_eth.h> | 21 | #include <asm/sh_eth.h> |
22 | #include <asm/sh7760fb.h> | 22 | #include <asm/sh7760fb.h> |
23 | 23 | ||
diff --git a/arch/sh/boards/mach-snapgear/setup.c b/arch/sh/boards/mach-snapgear/setup.c index a5e349d3dda2..a3277a23cf14 100644 --- a/arch/sh/boards/mach-snapgear/setup.c +++ b/arch/sh/boards/mach-snapgear/setup.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
21 | #include <asm/machvec.h> | 21 | #include <asm/machvec.h> |
22 | #include <asm/snapgear.h> | 22 | #include <mach/snapgear.h> |
23 | #include <asm/irq.h> | 23 | #include <asm/irq.h> |
24 | #include <asm/io.h> | 24 | #include <asm/io.h> |
25 | #include <cpu/timer.h> | 25 | #include <cpu/timer.h> |
diff --git a/arch/sh/boards/mach-systemh/io.c b/arch/sh/boards/mach-systemh/io.c index 1b767e1a1428..dec3db0ee933 100644 --- a/arch/sh/boards/mach-systemh/io.c +++ b/arch/sh/boards/mach-systemh/io.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
11 | #include <linux/pci.h> | 11 | #include <linux/pci.h> |
12 | #include <asm/systemh7751.h> | 12 | #include <mach/systemh7751.h> |
13 | #include <asm/addrspace.h> | 13 | #include <asm/addrspace.h> |
14 | #include <asm/io.h> | 14 | #include <asm/io.h> |
15 | 15 | ||
diff --git a/arch/sh/boards/mach-systemh/irq.c b/arch/sh/boards/mach-systemh/irq.c index 601c9c8cdbec..538406872a89 100644 --- a/arch/sh/boards/mach-systemh/irq.c +++ b/arch/sh/boards/mach-systemh/irq.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | 15 | ||
16 | #include <asm/io.h> | 16 | #include <asm/io.h> |
17 | #include <asm/systemh7751.h> | 17 | #include <mach/systemh7751.h> |
18 | #include <asm/smc37c93x.h> | 18 | #include <asm/smc37c93x.h> |
19 | 19 | ||
20 | /* address of external interrupt mask register | 20 | /* address of external interrupt mask register |
diff --git a/arch/sh/boards/mach-systemh/setup.c b/arch/sh/boards/mach-systemh/setup.c index ee78af842778..219fd800a43f 100644 --- a/arch/sh/boards/mach-systemh/setup.c +++ b/arch/sh/boards/mach-systemh/setup.c | |||
@@ -16,7 +16,7 @@ | |||
16 | */ | 16 | */ |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <asm/machvec.h> | 18 | #include <asm/machvec.h> |
19 | #include <asm/systemh7751.h> | 19 | #include <mach/systemh7751.h> |
20 | 20 | ||
21 | extern void make_systemh_irq(unsigned int irq); | 21 | extern void make_systemh_irq(unsigned int irq); |
22 | 22 | ||
diff --git a/arch/sh/boards/mach-titan/io.c b/arch/sh/boards/mach-titan/io.c index 4730c1dd697d..4badad4c6f30 100644 --- a/arch/sh/boards/mach-titan/io.c +++ b/arch/sh/boards/mach-titan/io.c | |||
@@ -4,7 +4,7 @@ | |||
4 | #include <linux/pci.h> | 4 | #include <linux/pci.h> |
5 | #include <asm/machvec.h> | 5 | #include <asm/machvec.h> |
6 | #include <asm/addrspace.h> | 6 | #include <asm/addrspace.h> |
7 | #include <asm/titan.h> | 7 | #include <mach/titan.h> |
8 | #include <asm/io.h> | 8 | #include <asm/io.h> |
9 | 9 | ||
10 | static inline unsigned int port2adr(unsigned int port) | 10 | static inline unsigned int port2adr(unsigned int port) |
diff --git a/arch/sh/boards/mach-titan/setup.c b/arch/sh/boards/mach-titan/setup.c index 5de3b2ad71af..81e7e0f03863 100644 --- a/arch/sh/boards/mach-titan/setup.c +++ b/arch/sh/boards/mach-titan/setup.c | |||
@@ -9,7 +9,7 @@ | |||
9 | */ | 9 | */ |
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
11 | #include <linux/irq.h> | 11 | #include <linux/irq.h> |
12 | #include <asm/titan.h> | 12 | #include <mach/titan.h> |
13 | #include <asm/io.h> | 13 | #include <asm/io.h> |
14 | 14 | ||
15 | static void __init init_titan_irq(void) | 15 | static void __init init_titan_irq(void) |