diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/hvc_console.c | 12 | ||||
-rw-r--r-- | drivers/char/hvsi.c | 4 | ||||
-rw-r--r-- | drivers/input/serio/i8042-io.h | 5 | ||||
-rw-r--r-- | drivers/mtd/maps/Kconfig | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/redwood.c | 43 | ||||
-rw-r--r-- | drivers/net/Kconfig | 2 | ||||
-rw-r--r-- | drivers/net/smc91x.h | 37 |
7 files changed, 15 insertions, 90 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c index 35cca4c7fb18..fa27d1676ee5 100644 --- a/drivers/char/hvc_console.c +++ b/drivers/char/hvc_console.c | |||
@@ -194,7 +194,7 @@ static int __init hvc_console_setup(struct console *co, char *options) | |||
194 | return 0; | 194 | return 0; |
195 | } | 195 | } |
196 | 196 | ||
197 | static struct console hvc_con_driver = { | 197 | static struct console hvc_console = { |
198 | .name = "hvc", | 198 | .name = "hvc", |
199 | .write = hvc_console_print, | 199 | .write = hvc_console_print, |
200 | .device = hvc_console_device, | 200 | .device = hvc_console_device, |
@@ -220,7 +220,7 @@ static struct console hvc_con_driver = { | |||
220 | */ | 220 | */ |
221 | static int __init hvc_console_init(void) | 221 | static int __init hvc_console_init(void) |
222 | { | 222 | { |
223 | register_console(&hvc_con_driver); | 223 | register_console(&hvc_console); |
224 | return 0; | 224 | return 0; |
225 | } | 225 | } |
226 | console_initcall(hvc_console_init); | 226 | console_initcall(hvc_console_init); |
@@ -276,8 +276,8 @@ int hvc_instantiate(uint32_t vtermno, int index, const struct hv_ops *ops) | |||
276 | * now (setup won't fail at this point). It's ok to just | 276 | * now (setup won't fail at this point). It's ok to just |
277 | * call register again if previously .setup failed. | 277 | * call register again if previously .setup failed. |
278 | */ | 278 | */ |
279 | if (index == hvc_con_driver.index) | 279 | if (index == hvc_console.index) |
280 | register_console(&hvc_con_driver); | 280 | register_console(&hvc_console); |
281 | 281 | ||
282 | return 0; | 282 | return 0; |
283 | } | 283 | } |
@@ -641,7 +641,7 @@ int hvc_poll(struct hvc_struct *hp) | |||
641 | } | 641 | } |
642 | for (i = 0; i < n; ++i) { | 642 | for (i = 0; i < n; ++i) { |
643 | #ifdef CONFIG_MAGIC_SYSRQ | 643 | #ifdef CONFIG_MAGIC_SYSRQ |
644 | if (hp->index == hvc_con_driver.index) { | 644 | if (hp->index == hvc_console.index) { |
645 | /* Handle the SysRq Hack */ | 645 | /* Handle the SysRq Hack */ |
646 | /* XXX should support a sequence */ | 646 | /* XXX should support a sequence */ |
647 | if (buf[i] == '\x0f') { /* ^O */ | 647 | if (buf[i] == '\x0f') { /* ^O */ |
@@ -909,7 +909,7 @@ static void __exit hvc_exit(void) | |||
909 | tty_unregister_driver(hvc_driver); | 909 | tty_unregister_driver(hvc_driver); |
910 | /* return tty_struct instances allocated in hvc_init(). */ | 910 | /* return tty_struct instances allocated in hvc_init(). */ |
911 | put_tty_driver(hvc_driver); | 911 | put_tty_driver(hvc_driver); |
912 | unregister_console(&hvc_con_driver); | 912 | unregister_console(&hvc_console); |
913 | } | 913 | } |
914 | } | 914 | } |
915 | module_exit(hvc_exit); | 915 | module_exit(hvc_exit); |
diff --git a/drivers/char/hvsi.c b/drivers/char/hvsi.c index d4b14ff1c4c1..1f4b6de65a2d 100644 --- a/drivers/char/hvsi.c +++ b/drivers/char/hvsi.c | |||
@@ -1255,7 +1255,7 @@ static int __init hvsi_console_setup(struct console *console, char *options) | |||
1255 | return 0; | 1255 | return 0; |
1256 | } | 1256 | } |
1257 | 1257 | ||
1258 | static struct console hvsi_con_driver = { | 1258 | static struct console hvsi_console = { |
1259 | .name = "hvsi", | 1259 | .name = "hvsi", |
1260 | .write = hvsi_console_print, | 1260 | .write = hvsi_console_print, |
1261 | .device = hvsi_console_device, | 1261 | .device = hvsi_console_device, |
@@ -1308,7 +1308,7 @@ static int __init hvsi_console_init(void) | |||
1308 | } | 1308 | } |
1309 | 1309 | ||
1310 | if (hvsi_count) | 1310 | if (hvsi_count) |
1311 | register_console(&hvsi_con_driver); | 1311 | register_console(&hvsi_console); |
1312 | return 0; | 1312 | return 0; |
1313 | } | 1313 | } |
1314 | console_initcall(hvsi_console_init); | 1314 | console_initcall(hvsi_console_init); |
diff --git a/drivers/input/serio/i8042-io.h b/drivers/input/serio/i8042-io.h index 847f4aad7ed5..5d48bb66aa73 100644 --- a/drivers/input/serio/i8042-io.h +++ b/drivers/input/serio/i8042-io.h | |||
@@ -27,6 +27,11 @@ | |||
27 | #include <asm/irq.h> | 27 | #include <asm/irq.h> |
28 | #elif defined(CONFIG_SH_CAYMAN) | 28 | #elif defined(CONFIG_SH_CAYMAN) |
29 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
30 | #elif defined(CONFIG_PPC) | ||
31 | extern int of_i8042_kbd_irq; | ||
32 | extern int of_i8042_aux_irq; | ||
33 | # define I8042_KBD_IRQ of_i8042_kbd_irq | ||
34 | # define I8042_AUX_IRQ of_i8042_aux_irq | ||
30 | #else | 35 | #else |
31 | # define I8042_KBD_IRQ 1 | 36 | # define I8042_KBD_IRQ 1 |
32 | # define I8042_AUX_IRQ 12 | 37 | # define I8042_AUX_IRQ 12 |
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index f22bc9f05ddb..6629d09f3b38 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig | |||
@@ -321,7 +321,7 @@ config MTD_CFI_FLAGADM | |||
321 | 321 | ||
322 | config MTD_REDWOOD | 322 | config MTD_REDWOOD |
323 | tristate "CFI Flash devices mapped on IBM Redwood" | 323 | tristate "CFI Flash devices mapped on IBM Redwood" |
324 | depends on MTD_CFI && ( REDWOOD_4 || REDWOOD_5 || REDWOOD_6 ) | 324 | depends on MTD_CFI |
325 | help | 325 | help |
326 | This enables access routines for the flash chips on the IBM | 326 | This enables access routines for the flash chips on the IBM |
327 | Redwood board. If you have one of these boards and would like to | 327 | Redwood board. If you have one of these boards and would like to |
diff --git a/drivers/mtd/maps/redwood.c b/drivers/mtd/maps/redwood.c index 933c0b63b016..d2c9db00db0c 100644 --- a/drivers/mtd/maps/redwood.c +++ b/drivers/mtd/maps/redwood.c | |||
@@ -22,8 +22,6 @@ | |||
22 | 22 | ||
23 | #include <asm/io.h> | 23 | #include <asm/io.h> |
24 | 24 | ||
25 | #if !defined (CONFIG_REDWOOD_6) | ||
26 | |||
27 | #define WINDOW_ADDR 0xffc00000 | 25 | #define WINDOW_ADDR 0xffc00000 |
28 | #define WINDOW_SIZE 0x00400000 | 26 | #define WINDOW_SIZE 0x00400000 |
29 | 27 | ||
@@ -69,47 +67,6 @@ static struct mtd_partition redwood_flash_partitions[] = { | |||
69 | } | 67 | } |
70 | }; | 68 | }; |
71 | 69 | ||
72 | #else /* CONFIG_REDWOOD_6 */ | ||
73 | /* FIXME: the window is bigger - armin */ | ||
74 | #define WINDOW_ADDR 0xff800000 | ||
75 | #define WINDOW_SIZE 0x00800000 | ||
76 | |||
77 | #define RW_PART0_OF 0 | ||
78 | #define RW_PART0_SZ 0x400000 /* 4 MiB data */ | ||
79 | #define RW_PART1_OF RW_PART0_OF + RW_PART0_SZ | ||
80 | #define RW_PART1_SZ 0x10000 /* 64K VPD */ | ||
81 | #define RW_PART2_OF RW_PART1_OF + RW_PART1_SZ | ||
82 | #define RW_PART2_SZ 0x400000 - (0x10000 + 0x20000) | ||
83 | #define RW_PART3_OF RW_PART2_OF + RW_PART2_SZ | ||
84 | #define RW_PART3_SZ 0x20000 | ||
85 | |||
86 | static struct mtd_partition redwood_flash_partitions[] = { | ||
87 | { | ||
88 | .name = "Redwood filesystem", | ||
89 | .offset = RW_PART0_OF, | ||
90 | .size = RW_PART0_SZ | ||
91 | }, | ||
92 | { | ||
93 | .name = "Redwood OpenBIOS Vital Product Data", | ||
94 | .offset = RW_PART1_OF, | ||
95 | .size = RW_PART1_SZ, | ||
96 | .mask_flags = MTD_WRITEABLE /* force read-only */ | ||
97 | }, | ||
98 | { | ||
99 | .name = "Redwood kernel", | ||
100 | .offset = RW_PART2_OF, | ||
101 | .size = RW_PART2_SZ | ||
102 | }, | ||
103 | { | ||
104 | .name = "Redwood OpenBIOS", | ||
105 | .offset = RW_PART3_OF, | ||
106 | .size = RW_PART3_SZ, | ||
107 | .mask_flags = MTD_WRITEABLE /* force read-only */ | ||
108 | } | ||
109 | }; | ||
110 | |||
111 | #endif /* CONFIG_REDWOOD_6 */ | ||
112 | |||
113 | struct map_info redwood_flash_map = { | 70 | struct map_info redwood_flash_map = { |
114 | .name = "IBM Redwood", | 71 | .name = "IBM Redwood", |
115 | .size = WINDOW_SIZE, | 72 | .size = WINDOW_SIZE, |
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index ce2fcdd4ab90..313d3060fc1d 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
@@ -913,7 +913,7 @@ config SMC91X | |||
913 | tristate "SMC 91C9x/91C1xxx support" | 913 | tristate "SMC 91C9x/91C1xxx support" |
914 | select CRC32 | 914 | select CRC32 |
915 | select MII | 915 | select MII |
916 | depends on ARM || REDWOOD_5 || REDWOOD_6 || M32R || SUPERH || \ | 916 | depends on ARM || M32R || SUPERH || \ |
917 | MIPS || BLACKFIN || MN10300 || COLDFIRE | 917 | MIPS || BLACKFIN || MN10300 || COLDFIRE |
918 | help | 918 | help |
919 | This is a driver for SMC's 91x series of Ethernet chipsets, | 919 | This is a driver for SMC's 91x series of Ethernet chipsets, |
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h index 8d2772cc42f2..ee747919a766 100644 --- a/drivers/net/smc91x.h +++ b/drivers/net/smc91x.h | |||
@@ -83,43 +83,6 @@ static inline void SMC_outw(u16 val, void __iomem *ioaddr, int reg) | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | #elif defined(CONFIG_REDWOOD_5) || defined(CONFIG_REDWOOD_6) | ||
87 | |||
88 | /* We can only do 16-bit reads and writes in the static memory space. */ | ||
89 | #define SMC_CAN_USE_8BIT 0 | ||
90 | #define SMC_CAN_USE_16BIT 1 | ||
91 | #define SMC_CAN_USE_32BIT 0 | ||
92 | #define SMC_NOWAIT 1 | ||
93 | |||
94 | #define SMC_IO_SHIFT 0 | ||
95 | |||
96 | #define SMC_inw(a, r) in_be16((volatile u16 *)((a) + (r))) | ||
97 | #define SMC_outw(v, a, r) out_be16((volatile u16 *)((a) + (r)), v) | ||
98 | #define SMC_insw(a, r, p, l) \ | ||
99 | do { \ | ||
100 | unsigned long __port = (a) + (r); \ | ||
101 | u16 *__p = (u16 *)(p); \ | ||
102 | int __l = (l); \ | ||
103 | insw(__port, __p, __l); \ | ||
104 | while (__l > 0) { \ | ||
105 | *__p = swab16(*__p); \ | ||
106 | __p++; \ | ||
107 | __l--; \ | ||
108 | } \ | ||
109 | } while (0) | ||
110 | #define SMC_outsw(a, r, p, l) \ | ||
111 | do { \ | ||
112 | unsigned long __port = (a) + (r); \ | ||
113 | u16 *__p = (u16 *)(p); \ | ||
114 | int __l = (l); \ | ||
115 | while (__l > 0) { \ | ||
116 | /* Believe it or not, the swab isn't needed. */ \ | ||
117 | outw( /* swab16 */ (*__p++), __port); \ | ||
118 | __l--; \ | ||
119 | } \ | ||
120 | } while (0) | ||
121 | #define SMC_IRQ_FLAGS (0) | ||
122 | |||
123 | #elif defined(CONFIG_SA1100_PLEB) | 86 | #elif defined(CONFIG_SA1100_PLEB) |
124 | /* We can only do 16-bit reads and writes in the static memory space. */ | 87 | /* We can only do 16-bit reads and writes in the static memory space. */ |
125 | #define SMC_CAN_USE_8BIT 1 | 88 | #define SMC_CAN_USE_8BIT 1 |