diff options
Diffstat (limited to 'arch/arm/mach-at91')
46 files changed, 0 insertions, 251 deletions
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c index 364c19357e60..d50da1a9d0bf 100644 --- a/arch/arm/mach-at91/at91rm9200.c +++ b/arch/arm/mach-at91/at91rm9200.c | |||
@@ -258,18 +258,6 @@ static void __init at91rm9200_register_clocks(void) | |||
258 | clk_register(&pck3); | 258 | clk_register(&pck3); |
259 | } | 259 | } |
260 | 260 | ||
261 | static struct clk_lookup console_clock_lookup; | ||
262 | |||
263 | void __init at91rm9200_set_console_clock(int id) | ||
264 | { | ||
265 | if (id >= ARRAY_SIZE(usart_clocks_lookups)) | ||
266 | return; | ||
267 | |||
268 | console_clock_lookup.con_id = "usart"; | ||
269 | console_clock_lookup.clk = usart_clocks_lookups[id].clk; | ||
270 | clkdev_add(&console_clock_lookup); | ||
271 | } | ||
272 | |||
273 | /* -------------------------------------------------------------------- | 261 | /* -------------------------------------------------------------------- |
274 | * GPIO | 262 | * GPIO |
275 | * -------------------------------------------------------------------- */ | 263 | * -------------------------------------------------------------------- */ |
diff --git a/arch/arm/mach-at91/at91rm9200_devices.c b/arch/arm/mach-at91/at91rm9200_devices.c index 99ce5c955e39..d9f0d770978e 100644 --- a/arch/arm/mach-at91/at91rm9200_devices.c +++ b/arch/arm/mach-at91/at91rm9200_devices.c | |||
@@ -1152,14 +1152,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1152 | at91_uarts[portnr] = pdev; | 1152 | at91_uarts[portnr] = pdev; |
1153 | } | 1153 | } |
1154 | 1154 | ||
1155 | void __init at91_set_serial_console(unsigned portnr) | ||
1156 | { | ||
1157 | if (portnr < ATMEL_MAX_UART) { | ||
1158 | atmel_default_console_device = at91_uarts[portnr]; | ||
1159 | at91rm9200_set_console_clock(at91_uarts[portnr]->id); | ||
1160 | } | ||
1161 | } | ||
1162 | |||
1163 | void __init at91_add_device_serial(void) | 1155 | void __init at91_add_device_serial(void) |
1164 | { | 1156 | { |
1165 | int i; | 1157 | int i; |
@@ -1168,14 +1160,10 @@ void __init at91_add_device_serial(void) | |||
1168 | if (at91_uarts[i]) | 1160 | if (at91_uarts[i]) |
1169 | platform_device_register(at91_uarts[i]); | 1161 | platform_device_register(at91_uarts[i]); |
1170 | } | 1162 | } |
1171 | |||
1172 | if (!atmel_default_console_device) | ||
1173 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
1174 | } | 1163 | } |
1175 | #else | 1164 | #else |
1176 | void __init __deprecated at91_init_serial(struct at91_uart_config *config) {} | 1165 | void __init __deprecated at91_init_serial(struct at91_uart_config *config) {} |
1177 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} | 1166 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} |
1178 | void __init at91_set_serial_console(unsigned portnr) {} | ||
1179 | void __init at91_add_device_serial(void) {} | 1167 | void __init at91_add_device_serial(void) {} |
1180 | #endif | 1168 | #endif |
1181 | 1169 | ||
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c index 46f774233298..a27bbec50ca3 100644 --- a/arch/arm/mach-at91/at91sam9260.c +++ b/arch/arm/mach-at91/at91sam9260.c | |||
@@ -268,18 +268,6 @@ static void __init at91sam9260_register_clocks(void) | |||
268 | clk_register(&pck1); | 268 | clk_register(&pck1); |
269 | } | 269 | } |
270 | 270 | ||
271 | static struct clk_lookup console_clock_lookup; | ||
272 | |||
273 | void __init at91sam9260_set_console_clock(int id) | ||
274 | { | ||
275 | if (id >= ARRAY_SIZE(usart_clocks_lookups)) | ||
276 | return; | ||
277 | |||
278 | console_clock_lookup.con_id = "usart"; | ||
279 | console_clock_lookup.clk = usart_clocks_lookups[id].clk; | ||
280 | clkdev_add(&console_clock_lookup); | ||
281 | } | ||
282 | |||
283 | /* -------------------------------------------------------------------- | 271 | /* -------------------------------------------------------------------- |
284 | * GPIO | 272 | * GPIO |
285 | * -------------------------------------------------------------------- */ | 273 | * -------------------------------------------------------------------- */ |
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c index 5652dde4bbe2..ad00fe91d37d 100644 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c | |||
@@ -1229,14 +1229,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1229 | at91_uarts[portnr] = pdev; | 1229 | at91_uarts[portnr] = pdev; |
1230 | } | 1230 | } |
1231 | 1231 | ||
1232 | void __init at91_set_serial_console(unsigned portnr) | ||
1233 | { | ||
1234 | if (portnr < ATMEL_MAX_UART) { | ||
1235 | atmel_default_console_device = at91_uarts[portnr]; | ||
1236 | at91sam9260_set_console_clock(at91_uarts[portnr]->id); | ||
1237 | } | ||
1238 | } | ||
1239 | |||
1240 | void __init at91_add_device_serial(void) | 1232 | void __init at91_add_device_serial(void) |
1241 | { | 1233 | { |
1242 | int i; | 1234 | int i; |
@@ -1245,13 +1237,9 @@ void __init at91_add_device_serial(void) | |||
1245 | if (at91_uarts[i]) | 1237 | if (at91_uarts[i]) |
1246 | platform_device_register(at91_uarts[i]); | 1238 | platform_device_register(at91_uarts[i]); |
1247 | } | 1239 | } |
1248 | |||
1249 | if (!atmel_default_console_device) | ||
1250 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
1251 | } | 1240 | } |
1252 | #else | 1241 | #else |
1253 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} | 1242 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} |
1254 | void __init at91_set_serial_console(unsigned portnr) {} | ||
1255 | void __init at91_add_device_serial(void) {} | 1243 | void __init at91_add_device_serial(void) {} |
1256 | #endif | 1244 | #endif |
1257 | 1245 | ||
diff --git a/arch/arm/mach-at91/at91sam9261.c b/arch/arm/mach-at91/at91sam9261.c index 7de81e6222f1..c77d503d09d1 100644 --- a/arch/arm/mach-at91/at91sam9261.c +++ b/arch/arm/mach-at91/at91sam9261.c | |||
@@ -239,18 +239,6 @@ static void __init at91sam9261_register_clocks(void) | |||
239 | clk_register(&hck1); | 239 | clk_register(&hck1); |
240 | } | 240 | } |
241 | 241 | ||
242 | static struct clk_lookup console_clock_lookup; | ||
243 | |||
244 | void __init at91sam9261_set_console_clock(int id) | ||
245 | { | ||
246 | if (id >= ARRAY_SIZE(usart_clocks_lookups)) | ||
247 | return; | ||
248 | |||
249 | console_clock_lookup.con_id = "usart"; | ||
250 | console_clock_lookup.clk = usart_clocks_lookups[id].clk; | ||
251 | clkdev_add(&console_clock_lookup); | ||
252 | } | ||
253 | |||
254 | /* -------------------------------------------------------------------- | 242 | /* -------------------------------------------------------------------- |
255 | * GPIO | 243 | * GPIO |
256 | * -------------------------------------------------------------------- */ | 244 | * -------------------------------------------------------------------- */ |
diff --git a/arch/arm/mach-at91/at91sam9261_devices.c b/arch/arm/mach-at91/at91sam9261_devices.c index 4db961a93085..9295e90b08ff 100644 --- a/arch/arm/mach-at91/at91sam9261_devices.c +++ b/arch/arm/mach-at91/at91sam9261_devices.c | |||
@@ -1051,14 +1051,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1051 | at91_uarts[portnr] = pdev; | 1051 | at91_uarts[portnr] = pdev; |
1052 | } | 1052 | } |
1053 | 1053 | ||
1054 | void __init at91_set_serial_console(unsigned portnr) | ||
1055 | { | ||
1056 | if (portnr < ATMEL_MAX_UART) { | ||
1057 | atmel_default_console_device = at91_uarts[portnr]; | ||
1058 | at91sam9261_set_console_clock(at91_uarts[portnr]->id); | ||
1059 | } | ||
1060 | } | ||
1061 | |||
1062 | void __init at91_add_device_serial(void) | 1054 | void __init at91_add_device_serial(void) |
1063 | { | 1055 | { |
1064 | int i; | 1056 | int i; |
@@ -1067,13 +1059,9 @@ void __init at91_add_device_serial(void) | |||
1067 | if (at91_uarts[i]) | 1059 | if (at91_uarts[i]) |
1068 | platform_device_register(at91_uarts[i]); | 1060 | platform_device_register(at91_uarts[i]); |
1069 | } | 1061 | } |
1070 | |||
1071 | if (!atmel_default_console_device) | ||
1072 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
1073 | } | 1062 | } |
1074 | #else | 1063 | #else |
1075 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} | 1064 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} |
1076 | void __init at91_set_serial_console(unsigned portnr) {} | ||
1077 | void __init at91_add_device_serial(void) {} | 1065 | void __init at91_add_device_serial(void) {} |
1078 | #endif | 1066 | #endif |
1079 | 1067 | ||
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c index ef301be66575..7fae36502fbb 100644 --- a/arch/arm/mach-at91/at91sam9263.c +++ b/arch/arm/mach-at91/at91sam9263.c | |||
@@ -255,18 +255,6 @@ static void __init at91sam9263_register_clocks(void) | |||
255 | clk_register(&pck3); | 255 | clk_register(&pck3); |
256 | } | 256 | } |
257 | 257 | ||
258 | static struct clk_lookup console_clock_lookup; | ||
259 | |||
260 | void __init at91sam9263_set_console_clock(int id) | ||
261 | { | ||
262 | if (id >= ARRAY_SIZE(usart_clocks_lookups)) | ||
263 | return; | ||
264 | |||
265 | console_clock_lookup.con_id = "usart"; | ||
266 | console_clock_lookup.clk = usart_clocks_lookups[id].clk; | ||
267 | clkdev_add(&console_clock_lookup); | ||
268 | } | ||
269 | |||
270 | /* -------------------------------------------------------------------- | 258 | /* -------------------------------------------------------------------- |
271 | * GPIO | 259 | * GPIO |
272 | * -------------------------------------------------------------------- */ | 260 | * -------------------------------------------------------------------- */ |
diff --git a/arch/arm/mach-at91/at91sam9263_devices.c b/arch/arm/mach-at91/at91sam9263_devices.c index fe99206de880..dfe5bc006d5e 100644 --- a/arch/arm/mach-at91/at91sam9263_devices.c +++ b/arch/arm/mach-at91/at91sam9263_devices.c | |||
@@ -1461,14 +1461,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1461 | at91_uarts[portnr] = pdev; | 1461 | at91_uarts[portnr] = pdev; |
1462 | } | 1462 | } |
1463 | 1463 | ||
1464 | void __init at91_set_serial_console(unsigned portnr) | ||
1465 | { | ||
1466 | if (portnr < ATMEL_MAX_UART) { | ||
1467 | atmel_default_console_device = at91_uarts[portnr]; | ||
1468 | at91sam9263_set_console_clock(at91_uarts[portnr]->id); | ||
1469 | } | ||
1470 | } | ||
1471 | |||
1472 | void __init at91_add_device_serial(void) | 1464 | void __init at91_add_device_serial(void) |
1473 | { | 1465 | { |
1474 | int i; | 1466 | int i; |
@@ -1477,13 +1469,9 @@ void __init at91_add_device_serial(void) | |||
1477 | if (at91_uarts[i]) | 1469 | if (at91_uarts[i]) |
1478 | platform_device_register(at91_uarts[i]); | 1470 | platform_device_register(at91_uarts[i]); |
1479 | } | 1471 | } |
1480 | |||
1481 | if (!atmel_default_console_device) | ||
1482 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
1483 | } | 1472 | } |
1484 | #else | 1473 | #else |
1485 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} | 1474 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} |
1486 | void __init at91_set_serial_console(unsigned portnr) {} | ||
1487 | void __init at91_add_device_serial(void) {} | 1475 | void __init at91_add_device_serial(void) {} |
1488 | #endif | 1476 | #endif |
1489 | 1477 | ||
diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c index d222f8333dab..f2054495a655 100644 --- a/arch/arm/mach-at91/at91sam9g45.c +++ b/arch/arm/mach-at91/at91sam9g45.c | |||
@@ -288,18 +288,6 @@ static void __init at91sam9g45_register_clocks(void) | |||
288 | clk_register(&pck1); | 288 | clk_register(&pck1); |
289 | } | 289 | } |
290 | 290 | ||
291 | static struct clk_lookup console_clock_lookup; | ||
292 | |||
293 | void __init at91sam9g45_set_console_clock(int id) | ||
294 | { | ||
295 | if (id >= ARRAY_SIZE(usart_clocks_lookups)) | ||
296 | return; | ||
297 | |||
298 | console_clock_lookup.con_id = "usart"; | ||
299 | console_clock_lookup.clk = usart_clocks_lookups[id].clk; | ||
300 | clkdev_add(&console_clock_lookup); | ||
301 | } | ||
302 | |||
303 | /* -------------------------------------------------------------------- | 291 | /* -------------------------------------------------------------------- |
304 | * GPIO | 292 | * GPIO |
305 | * -------------------------------------------------------------------- */ | 293 | * -------------------------------------------------------------------- */ |
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c index 6b008aee1dff..db2f88c246ff 100644 --- a/arch/arm/mach-at91/at91sam9g45_devices.c +++ b/arch/arm/mach-at91/at91sam9g45_devices.c | |||
@@ -1741,14 +1741,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1741 | at91_uarts[portnr] = pdev; | 1741 | at91_uarts[portnr] = pdev; |
1742 | } | 1742 | } |
1743 | 1743 | ||
1744 | void __init at91_set_serial_console(unsigned portnr) | ||
1745 | { | ||
1746 | if (portnr < ATMEL_MAX_UART) { | ||
1747 | atmel_default_console_device = at91_uarts[portnr]; | ||
1748 | at91sam9g45_set_console_clock(at91_uarts[portnr]->id); | ||
1749 | } | ||
1750 | } | ||
1751 | |||
1752 | void __init at91_add_device_serial(void) | 1744 | void __init at91_add_device_serial(void) |
1753 | { | 1745 | { |
1754 | int i; | 1746 | int i; |
@@ -1757,13 +1749,9 @@ void __init at91_add_device_serial(void) | |||
1757 | if (at91_uarts[i]) | 1749 | if (at91_uarts[i]) |
1758 | platform_device_register(at91_uarts[i]); | 1750 | platform_device_register(at91_uarts[i]); |
1759 | } | 1751 | } |
1760 | |||
1761 | if (!atmel_default_console_device) | ||
1762 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
1763 | } | 1752 | } |
1764 | #else | 1753 | #else |
1765 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} | 1754 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} |
1766 | void __init at91_set_serial_console(unsigned portnr) {} | ||
1767 | void __init at91_add_device_serial(void) {} | 1755 | void __init at91_add_device_serial(void) {} |
1768 | #endif | 1756 | #endif |
1769 | 1757 | ||
diff --git a/arch/arm/mach-at91/at91sam9rl.c b/arch/arm/mach-at91/at91sam9rl.c index d9f2774f385e..e420085a57ef 100644 --- a/arch/arm/mach-at91/at91sam9rl.c +++ b/arch/arm/mach-at91/at91sam9rl.c | |||
@@ -232,18 +232,6 @@ static void __init at91sam9rl_register_clocks(void) | |||
232 | clk_register(&pck1); | 232 | clk_register(&pck1); |
233 | } | 233 | } |
234 | 234 | ||
235 | static struct clk_lookup console_clock_lookup; | ||
236 | |||
237 | void __init at91sam9rl_set_console_clock(int id) | ||
238 | { | ||
239 | if (id >= ARRAY_SIZE(usart_clocks_lookups)) | ||
240 | return; | ||
241 | |||
242 | console_clock_lookup.con_id = "usart"; | ||
243 | console_clock_lookup.clk = usart_clocks_lookups[id].clk; | ||
244 | clkdev_add(&console_clock_lookup); | ||
245 | } | ||
246 | |||
247 | /* -------------------------------------------------------------------- | 235 | /* -------------------------------------------------------------------- |
248 | * GPIO | 236 | * GPIO |
249 | * -------------------------------------------------------------------- */ | 237 | * -------------------------------------------------------------------- */ |
diff --git a/arch/arm/mach-at91/at91sam9rl_devices.c b/arch/arm/mach-at91/at91sam9rl_devices.c index fe4ae22e8561..9c0b1481a9a7 100644 --- a/arch/arm/mach-at91/at91sam9rl_devices.c +++ b/arch/arm/mach-at91/at91sam9rl_devices.c | |||
@@ -1192,14 +1192,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) | |||
1192 | at91_uarts[portnr] = pdev; | 1192 | at91_uarts[portnr] = pdev; |
1193 | } | 1193 | } |
1194 | 1194 | ||
1195 | void __init at91_set_serial_console(unsigned portnr) | ||
1196 | { | ||
1197 | if (portnr < ATMEL_MAX_UART) { | ||
1198 | atmel_default_console_device = at91_uarts[portnr]; | ||
1199 | at91sam9rl_set_console_clock(at91_uarts[portnr]->id); | ||
1200 | } | ||
1201 | } | ||
1202 | |||
1203 | void __init at91_add_device_serial(void) | 1195 | void __init at91_add_device_serial(void) |
1204 | { | 1196 | { |
1205 | int i; | 1197 | int i; |
@@ -1208,13 +1200,9 @@ void __init at91_add_device_serial(void) | |||
1208 | if (at91_uarts[i]) | 1200 | if (at91_uarts[i]) |
1209 | platform_device_register(at91_uarts[i]); | 1201 | platform_device_register(at91_uarts[i]); |
1210 | } | 1202 | } |
1211 | |||
1212 | if (!atmel_default_console_device) | ||
1213 | printk(KERN_INFO "AT91: No default serial console defined.\n"); | ||
1214 | } | 1203 | } |
1215 | #else | 1204 | #else |
1216 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} | 1205 | void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {} |
1217 | void __init at91_set_serial_console(unsigned portnr) {} | ||
1218 | void __init at91_add_device_serial(void) {} | 1206 | void __init at91_add_device_serial(void) {} |
1219 | #endif | 1207 | #endif |
1220 | 1208 | ||
diff --git a/arch/arm/mach-at91/board-1arm.c b/arch/arm/mach-at91/board-1arm.c index 2628384aaae1..f43ad9130ef7 100644 --- a/arch/arm/mach-at91/board-1arm.c +++ b/arch/arm/mach-at91/board-1arm.c | |||
@@ -58,9 +58,6 @@ static void __init onearm_init_early(void) | |||
58 | at91_register_uart(AT91RM9200_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS | 58 | at91_register_uart(AT91RM9200_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS |
59 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | 59 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD |
60 | | ATMEL_UART_RI); | 60 | | ATMEL_UART_RI); |
61 | |||
62 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
63 | at91_set_serial_console(0); | ||
64 | } | 61 | } |
65 | 62 | ||
66 | static struct macb_platform_data __initdata onearm_eth_data = { | 63 | static struct macb_platform_data __initdata onearm_eth_data = { |
diff --git a/arch/arm/mach-at91/board-afeb-9260v1.c b/arch/arm/mach-at91/board-afeb-9260v1.c index 161efbaa1029..7c7c682b8684 100644 --- a/arch/arm/mach-at91/board-afeb-9260v1.c +++ b/arch/arm/mach-at91/board-afeb-9260v1.c | |||
@@ -65,9 +65,6 @@ static void __init afeb9260_init_early(void) | |||
65 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | 65 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ |
66 | at91_register_uart(AT91SAM9260_ID_US1, 2, | 66 | at91_register_uart(AT91SAM9260_ID_US1, 2, |
67 | ATMEL_UART_CTS | ATMEL_UART_RTS); | 67 | ATMEL_UART_CTS | ATMEL_UART_RTS); |
68 | |||
69 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
70 | at91_set_serial_console(0); | ||
71 | } | 68 | } |
72 | 69 | ||
73 | /* | 70 | /* |
diff --git a/arch/arm/mach-at91/board-cam60.c b/arch/arm/mach-at91/board-cam60.c index c6d44ee0c77e..871717dc39e5 100644 --- a/arch/arm/mach-at91/board-cam60.c +++ b/arch/arm/mach-at91/board-cam60.c | |||
@@ -52,9 +52,6 @@ static void __init cam60_init_early(void) | |||
52 | 52 | ||
53 | /* DBGU on ttyS0. (Rx & Tx only) */ | 53 | /* DBGU on ttyS0. (Rx & Tx only) */ |
54 | at91_register_uart(0, 0, 0); | 54 | at91_register_uart(0, 0, 0); |
55 | |||
56 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
57 | at91_set_serial_console(0); | ||
58 | } | 55 | } |
59 | 56 | ||
60 | /* | 57 | /* |
diff --git a/arch/arm/mach-at91/board-carmeva.c b/arch/arm/mach-at91/board-carmeva.c index 59d9cf997537..168b3fad8634 100644 --- a/arch/arm/mach-at91/board-carmeva.c +++ b/arch/arm/mach-at91/board-carmeva.c | |||
@@ -52,9 +52,6 @@ static void __init carmeva_init_early(void) | |||
52 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | 52 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS |
53 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | 53 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD |
54 | | ATMEL_UART_RI); | 54 | | ATMEL_UART_RI); |
55 | |||
56 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
57 | at91_set_serial_console(0); | ||
58 | } | 55 | } |
59 | 56 | ||
60 | static struct macb_platform_data __initdata carmeva_eth_data = { | 57 | static struct macb_platform_data __initdata carmeva_eth_data = { |
diff --git a/arch/arm/mach-at91/board-cpu9krea.c b/arch/arm/mach-at91/board-cpu9krea.c index 5f3680e7c883..4073e3033191 100644 --- a/arch/arm/mach-at91/board-cpu9krea.c +++ b/arch/arm/mach-at91/board-cpu9krea.c | |||
@@ -77,9 +77,6 @@ static void __init cpu9krea_init_early(void) | |||
77 | 77 | ||
78 | /* USART5 on ttyS6. (Rx, Tx) */ | 78 | /* USART5 on ttyS6. (Rx, Tx) */ |
79 | at91_register_uart(AT91SAM9260_ID_US5, 6, 0); | 79 | at91_register_uart(AT91SAM9260_ID_US5, 6, 0); |
80 | |||
81 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
82 | at91_set_serial_console(0); | ||
83 | } | 80 | } |
84 | 81 | ||
85 | /* | 82 | /* |
diff --git a/arch/arm/mach-at91/board-cpuat91.c b/arch/arm/mach-at91/board-cpuat91.c index e094cc81fe25..76c62ed41832 100644 --- a/arch/arm/mach-at91/board-cpuat91.c +++ b/arch/arm/mach-at91/board-cpuat91.c | |||
@@ -78,9 +78,6 @@ static void __init cpuat91_init_early(void) | |||
78 | /* USART3 on ttyS4 (Rx, Tx, CTS, RTS) */ | 78 | /* USART3 on ttyS4 (Rx, Tx, CTS, RTS) */ |
79 | at91_register_uart(AT91RM9200_ID_US3, 4, ATMEL_UART_CTS | | 79 | at91_register_uart(AT91RM9200_ID_US3, 4, ATMEL_UART_CTS | |
80 | ATMEL_UART_RTS); | 80 | ATMEL_UART_RTS); |
81 | |||
82 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
83 | at91_set_serial_console(0); | ||
84 | } | 81 | } |
85 | 82 | ||
86 | static struct macb_platform_data __initdata cpuat91_eth_data = { | 83 | static struct macb_platform_data __initdata cpuat91_eth_data = { |
diff --git a/arch/arm/mach-at91/board-csb337.c b/arch/arm/mach-at91/board-csb337.c index 1a1547b1ce4e..d984435f51e8 100644 --- a/arch/arm/mach-at91/board-csb337.c +++ b/arch/arm/mach-at91/board-csb337.c | |||
@@ -53,9 +53,6 @@ static void __init csb337_init_early(void) | |||
53 | 53 | ||
54 | /* DBGU on ttyS0 */ | 54 | /* DBGU on ttyS0 */ |
55 | at91_register_uart(0, 0, 0); | 55 | at91_register_uart(0, 0, 0); |
56 | |||
57 | /* make console=ttyS0 the default */ | ||
58 | at91_set_serial_console(0); | ||
59 | } | 56 | } |
60 | 57 | ||
61 | static struct macb_platform_data __initdata csb337_eth_data = { | 58 | static struct macb_platform_data __initdata csb337_eth_data = { |
diff --git a/arch/arm/mach-at91/board-csb637.c b/arch/arm/mach-at91/board-csb637.c index f650bf39455d..0c9935d29fbd 100644 --- a/arch/arm/mach-at91/board-csb637.c +++ b/arch/arm/mach-at91/board-csb637.c | |||
@@ -47,9 +47,6 @@ static void __init csb637_init_early(void) | |||
47 | 47 | ||
48 | /* DBGU on ttyS0. (Rx & Tx only) */ | 48 | /* DBGU on ttyS0. (Rx & Tx only) */ |
49 | at91_register_uart(0, 0, 0); | 49 | at91_register_uart(0, 0, 0); |
50 | |||
51 | /* make console=ttyS0 (ie, DBGU) the default */ | ||
52 | at91_set_serial_console(0); | ||
53 | } | 50 | } |
54 | 51 | ||
55 | static struct macb_platform_data __initdata csb637_eth_data = { | 52 | static struct macb_platform_data __initdata csb637_eth_data = { |
diff --git a/arch/arm/mach-at91/board-eb9200.c b/arch/arm/mach-at91/board-eb9200.c index d302ca3eeb64..a189b9f6d9f4 100644 --- a/arch/arm/mach-at91/board-eb9200.c +++ b/arch/arm/mach-at91/board-eb9200.c | |||
@@ -55,9 +55,6 @@ static void __init eb9200_init_early(void) | |||
55 | 55 | ||
56 | /* USART2 on ttyS2. (Rx, Tx) - IRDA */ | 56 | /* USART2 on ttyS2. (Rx, Tx) - IRDA */ |
57 | at91_register_uart(AT91RM9200_ID_US2, 2, 0); | 57 | at91_register_uart(AT91RM9200_ID_US2, 2, 0); |
58 | |||
59 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
60 | at91_set_serial_console(0); | ||
61 | } | 58 | } |
62 | 59 | ||
63 | static struct macb_platform_data __initdata eb9200_eth_data = { | 60 | static struct macb_platform_data __initdata eb9200_eth_data = { |
diff --git a/arch/arm/mach-at91/board-ecbat91.c b/arch/arm/mach-at91/board-ecbat91.c index 69966ce4d776..307c5304f6eb 100644 --- a/arch/arm/mach-at91/board-ecbat91.c +++ b/arch/arm/mach-at91/board-ecbat91.c | |||
@@ -59,9 +59,6 @@ static void __init ecb_at91init_early(void) | |||
59 | 59 | ||
60 | /* USART0 on ttyS1. (Rx & Tx only) */ | 60 | /* USART0 on ttyS1. (Rx & Tx only) */ |
61 | at91_register_uart(AT91RM9200_ID_US0, 1, 0); | 61 | at91_register_uart(AT91RM9200_ID_US0, 1, 0); |
62 | |||
63 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
64 | at91_set_serial_console(0); | ||
65 | } | 62 | } |
66 | 63 | ||
67 | static struct macb_platform_data __initdata ecb_at91eth_data = { | 64 | static struct macb_platform_data __initdata ecb_at91eth_data = { |
diff --git a/arch/arm/mach-at91/board-eco920.c b/arch/arm/mach-at91/board-eco920.c index f23aabef8551..7df6a9b1405e 100644 --- a/arch/arm/mach-at91/board-eco920.c +++ b/arch/arm/mach-at91/board-eco920.c | |||
@@ -43,9 +43,6 @@ static void __init eco920_init_early(void) | |||
43 | 43 | ||
44 | /* DBGU on ttyS0. (Rx & Tx only */ | 44 | /* DBGU on ttyS0. (Rx & Tx only */ |
45 | at91_register_uart(0, 0, 0); | 45 | at91_register_uart(0, 0, 0); |
46 | |||
47 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
48 | at91_set_serial_console(0); | ||
49 | } | 46 | } |
50 | 47 | ||
51 | static struct macb_platform_data __initdata eco920_eth_data = { | 48 | static struct macb_platform_data __initdata eco920_eth_data = { |
diff --git a/arch/arm/mach-at91/board-flexibity.c b/arch/arm/mach-at91/board-flexibity.c index 1815152001f7..6dcc962fcaa1 100644 --- a/arch/arm/mach-at91/board-flexibity.c +++ b/arch/arm/mach-at91/board-flexibity.c | |||
@@ -44,9 +44,6 @@ static void __init flexibity_init_early(void) | |||
44 | 44 | ||
45 | /* DBGU on ttyS0. (Rx & Tx only) */ | 45 | /* DBGU on ttyS0. (Rx & Tx only) */ |
46 | at91_register_uart(0, 0, 0); | 46 | at91_register_uart(0, 0, 0); |
47 | |||
48 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
49 | at91_set_serial_console(0); | ||
50 | } | 47 | } |
51 | 48 | ||
52 | /* USB Host port */ | 49 | /* USB Host port */ |
diff --git a/arch/arm/mach-at91/board-foxg20.c b/arch/arm/mach-at91/board-foxg20.c index caf017f0f4ee..bb0780764b3a 100644 --- a/arch/arm/mach-at91/board-foxg20.c +++ b/arch/arm/mach-at91/board-foxg20.c | |||
@@ -93,9 +93,6 @@ static void __init foxg20_init_early(void) | |||
93 | /* USART5 on ttyS6. (Rx & Tx only) */ | 93 | /* USART5 on ttyS6. (Rx & Tx only) */ |
94 | at91_register_uart(AT91SAM9260_ID_US5, 6, 0); | 94 | at91_register_uart(AT91SAM9260_ID_US5, 6, 0); |
95 | 95 | ||
96 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
97 | at91_set_serial_console(0); | ||
98 | |||
99 | /* Set the internal pull-up resistor on DRXD */ | 96 | /* Set the internal pull-up resistor on DRXD */ |
100 | at91_set_A_periph(AT91_PIN_PB14, 1); | 97 | at91_set_A_periph(AT91_PIN_PB14, 1); |
101 | 98 | ||
diff --git a/arch/arm/mach-at91/board-kafa.c b/arch/arm/mach-at91/board-kafa.c index efde1b2327c8..3e858edfcd2b 100644 --- a/arch/arm/mach-at91/board-kafa.c +++ b/arch/arm/mach-at91/board-kafa.c | |||
@@ -56,9 +56,6 @@ static void __init kafa_init_early(void) | |||
56 | 56 | ||
57 | /* USART0 on ttyS1 (Rx, Tx, CTS, RTS) */ | 57 | /* USART0 on ttyS1 (Rx, Tx, CTS, RTS) */ |
58 | at91_register_uart(AT91RM9200_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); | 58 | at91_register_uart(AT91RM9200_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); |
59 | |||
60 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
61 | at91_set_serial_console(0); | ||
62 | } | 59 | } |
63 | 60 | ||
64 | static struct macb_platform_data __initdata kafa_eth_data = { | 61 | static struct macb_platform_data __initdata kafa_eth_data = { |
diff --git a/arch/arm/mach-at91/board-kb9202.c b/arch/arm/mach-at91/board-kb9202.c index 59b92aab9bcf..ccbc8bea5614 100644 --- a/arch/arm/mach-at91/board-kb9202.c +++ b/arch/arm/mach-at91/board-kb9202.c | |||
@@ -65,9 +65,6 @@ static void __init kb9202_init_early(void) | |||
65 | 65 | ||
66 | /* USART3 on ttyS3 (Rx, Tx, CTS, RTS) - RS485 (optional) */ | 66 | /* USART3 on ttyS3 (Rx, Tx, CTS, RTS) - RS485 (optional) */ |
67 | at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_CTS | ATMEL_UART_RTS); | 67 | at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_CTS | ATMEL_UART_RTS); |
68 | |||
69 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
70 | at91_set_serial_console(0); | ||
71 | } | 68 | } |
72 | 69 | ||
73 | static struct macb_platform_data __initdata kb9202_eth_data = { | 70 | static struct macb_platform_data __initdata kb9202_eth_data = { |
diff --git a/arch/arm/mach-at91/board-neocore926.c b/arch/arm/mach-at91/board-neocore926.c index 57d5f6a4726a..c456fdc7cf21 100644 --- a/arch/arm/mach-at91/board-neocore926.c +++ b/arch/arm/mach-at91/board-neocore926.c | |||
@@ -61,9 +61,6 @@ static void __init neocore926_init_early(void) | |||
61 | 61 | ||
62 | /* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */ | 62 | /* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */ |
63 | at91_register_uart(AT91SAM9263_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); | 63 | at91_register_uart(AT91SAM9263_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); |
64 | |||
65 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
66 | at91_set_serial_console(0); | ||
67 | } | 64 | } |
68 | 65 | ||
69 | /* | 66 | /* |
diff --git a/arch/arm/mach-at91/board-picotux200.c b/arch/arm/mach-at91/board-picotux200.c index 59e35dd14863..4ca56cda355e 100644 --- a/arch/arm/mach-at91/board-picotux200.c +++ b/arch/arm/mach-at91/board-picotux200.c | |||
@@ -56,9 +56,6 @@ static void __init picotux200_init_early(void) | |||
56 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | 56 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS |
57 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | 57 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD |
58 | | ATMEL_UART_RI); | 58 | | ATMEL_UART_RI); |
59 | |||
60 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
61 | at91_set_serial_console(0); | ||
62 | } | 59 | } |
63 | 60 | ||
64 | static struct macb_platform_data __initdata picotux200_eth_data = { | 61 | static struct macb_platform_data __initdata picotux200_eth_data = { |
diff --git a/arch/arm/mach-at91/board-qil-a9260.c b/arch/arm/mach-at91/board-qil-a9260.c index b6ed5ed7081a..189d3fe8a956 100644 --- a/arch/arm/mach-at91/board-qil-a9260.c +++ b/arch/arm/mach-at91/board-qil-a9260.c | |||
@@ -66,10 +66,6 @@ static void __init ek_init_early(void) | |||
66 | 66 | ||
67 | /* USART2 on ttyS3. (Rx, Tx, CTS, RTS) */ | 67 | /* USART2 on ttyS3. (Rx, Tx, CTS, RTS) */ |
68 | at91_register_uart(AT91SAM9260_ID_US2, 3, ATMEL_UART_CTS | ATMEL_UART_RTS); | 68 | at91_register_uart(AT91SAM9260_ID_US2, 3, ATMEL_UART_CTS | ATMEL_UART_RTS); |
69 | |||
70 | /* set serial console to ttyS1 (ie, USART0) */ | ||
71 | at91_set_serial_console(1); | ||
72 | |||
73 | } | 69 | } |
74 | 70 | ||
75 | /* | 71 | /* |
diff --git a/arch/arm/mach-at91/board-rm9200dk.c b/arch/arm/mach-at91/board-rm9200dk.c index 01332aa538b2..d5ce630571f3 100644 --- a/arch/arm/mach-at91/board-rm9200dk.c +++ b/arch/arm/mach-at91/board-rm9200dk.c | |||
@@ -61,9 +61,6 @@ static void __init dk_init_early(void) | |||
61 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | 61 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS |
62 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | 62 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD |
63 | | ATMEL_UART_RI); | 63 | | ATMEL_UART_RI); |
64 | |||
65 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
66 | at91_set_serial_console(0); | ||
67 | } | 64 | } |
68 | 65 | ||
69 | static struct macb_platform_data __initdata dk_eth_data = { | 66 | static struct macb_platform_data __initdata dk_eth_data = { |
diff --git a/arch/arm/mach-at91/board-rm9200ek.c b/arch/arm/mach-at91/board-rm9200ek.c index 11cbaa8946fe..32d35cb158fa 100644 --- a/arch/arm/mach-at91/board-rm9200ek.c +++ b/arch/arm/mach-at91/board-rm9200ek.c | |||
@@ -61,9 +61,6 @@ static void __init ek_init_early(void) | |||
61 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | 61 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS |
62 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | 62 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD |
63 | | ATMEL_UART_RI); | 63 | | ATMEL_UART_RI); |
64 | |||
65 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
66 | at91_set_serial_console(0); | ||
67 | } | 64 | } |
68 | 65 | ||
69 | static struct macb_platform_data __initdata ek_eth_data = { | 66 | static struct macb_platform_data __initdata ek_eth_data = { |
diff --git a/arch/arm/mach-at91/board-rsi-ews.c b/arch/arm/mach-at91/board-rsi-ews.c index af0750fafa29..2c84463a1c1a 100644 --- a/arch/arm/mach-at91/board-rsi-ews.c +++ b/arch/arm/mach-at91/board-rsi-ews.c | |||
@@ -52,9 +52,6 @@ static void __init rsi_ews_init_early(void) | |||
52 | /* USART3 on ttyS4. (Rx, Tx, RTS) */ | 52 | /* USART3 on ttyS4. (Rx, Tx, RTS) */ |
53 | /* RS485 communication */ | 53 | /* RS485 communication */ |
54 | at91_register_uart(AT91RM9200_ID_US3, 4, ATMEL_UART_RTS); | 54 | at91_register_uart(AT91RM9200_ID_US3, 4, ATMEL_UART_RTS); |
55 | |||
56 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
57 | at91_set_serial_console(0); | ||
58 | } | 55 | } |
59 | 56 | ||
60 | /* | 57 | /* |
diff --git a/arch/arm/mach-at91/board-sam9-l9260.c b/arch/arm/mach-at91/board-sam9-l9260.c index e8b116b6cba6..dee44cbf765b 100644 --- a/arch/arm/mach-at91/board-sam9-l9260.c +++ b/arch/arm/mach-at91/board-sam9-l9260.c | |||
@@ -62,9 +62,6 @@ static void __init ek_init_early(void) | |||
62 | 62 | ||
63 | /* USART1 on ttyS2. (Rx, Tx, CTS, RTS) */ | 63 | /* USART1 on ttyS2. (Rx, Tx, CTS, RTS) */ |
64 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); | 64 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); |
65 | |||
66 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
67 | at91_set_serial_console(0); | ||
68 | } | 65 | } |
69 | 66 | ||
70 | /* | 67 | /* |
diff --git a/arch/arm/mach-at91/board-sam9260ek.c b/arch/arm/mach-at91/board-sam9260ek.c index d5aec55b0eb4..6da17b5e1e2f 100644 --- a/arch/arm/mach-at91/board-sam9260ek.c +++ b/arch/arm/mach-at91/board-sam9260ek.c | |||
@@ -65,9 +65,6 @@ static void __init ek_init_early(void) | |||
65 | 65 | ||
66 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | 66 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ |
67 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); | 67 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); |
68 | |||
69 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
70 | at91_set_serial_console(0); | ||
71 | } | 68 | } |
72 | 69 | ||
73 | /* | 70 | /* |
diff --git a/arch/arm/mach-at91/board-sam9261ek.c b/arch/arm/mach-at91/board-sam9261ek.c index c3f994462864..e91c4afb669a 100644 --- a/arch/arm/mach-at91/board-sam9261ek.c +++ b/arch/arm/mach-at91/board-sam9261ek.c | |||
@@ -64,9 +64,6 @@ static void __init ek_init_early(void) | |||
64 | 64 | ||
65 | /* DBGU on ttyS0. (Rx & Tx only) */ | 65 | /* DBGU on ttyS0. (Rx & Tx only) */ |
66 | at91_register_uart(0, 0, 0); | 66 | at91_register_uart(0, 0, 0); |
67 | |||
68 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
69 | at91_set_serial_console(0); | ||
70 | } | 67 | } |
71 | 68 | ||
72 | /* | 69 | /* |
diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c index 2ffe50f3a9e9..44248735335e 100644 --- a/arch/arm/mach-at91/board-sam9263ek.c +++ b/arch/arm/mach-at91/board-sam9263ek.c | |||
@@ -63,9 +63,6 @@ static void __init ek_init_early(void) | |||
63 | 63 | ||
64 | /* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */ | 64 | /* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */ |
65 | at91_register_uart(AT91SAM9263_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); | 65 | at91_register_uart(AT91SAM9263_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); |
66 | |||
67 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
68 | at91_set_serial_console(0); | ||
69 | } | 66 | } |
70 | 67 | ||
71 | /* | 68 | /* |
diff --git a/arch/arm/mach-at91/board-sam9g20ek.c b/arch/arm/mach-at91/board-sam9g20ek.c index 8923ec9f5831..05f846784ce4 100644 --- a/arch/arm/mach-at91/board-sam9g20ek.c +++ b/arch/arm/mach-at91/board-sam9g20ek.c | |||
@@ -76,9 +76,6 @@ static void __init ek_init_early(void) | |||
76 | 76 | ||
77 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | 77 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ |
78 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); | 78 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); |
79 | |||
80 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
81 | at91_set_serial_console(0); | ||
82 | } | 79 | } |
83 | 80 | ||
84 | /* | 81 | /* |
diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c index c88e908ddd82..be2ca19fe5ad 100644 --- a/arch/arm/mach-at91/board-sam9m10g45ek.c +++ b/arch/arm/mach-at91/board-sam9m10g45ek.c | |||
@@ -60,9 +60,6 @@ static void __init ek_init_early(void) | |||
60 | /* USART0 not connected on the -EK board */ | 60 | /* USART0 not connected on the -EK board */ |
61 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | 61 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ |
62 | at91_register_uart(AT91SAM9G45_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); | 62 | at91_register_uart(AT91SAM9G45_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); |
63 | |||
64 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
65 | at91_set_serial_console(0); | ||
66 | } | 63 | } |
67 | 64 | ||
68 | /* | 65 | /* |
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c index b109ce2ba864..23f383a9e0e2 100644 --- a/arch/arm/mach-at91/board-sam9rlek.c +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
@@ -48,9 +48,6 @@ static void __init ek_init_early(void) | |||
48 | 48 | ||
49 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS) */ | 49 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS) */ |
50 | at91_register_uart(AT91SAM9RL_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); | 50 | at91_register_uart(AT91SAM9RL_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); |
51 | |||
52 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
53 | at91_set_serial_console(0); | ||
54 | } | 51 | } |
55 | 52 | ||
56 | /* | 53 | /* |
diff --git a/arch/arm/mach-at91/board-snapper9260.c b/arch/arm/mach-at91/board-snapper9260.c index ebc9d01ce742..1a6774a40c9b 100644 --- a/arch/arm/mach-at91/board-snapper9260.c +++ b/arch/arm/mach-at91/board-snapper9260.c | |||
@@ -46,7 +46,6 @@ static void __init snapper9260_init_early(void) | |||
46 | 46 | ||
47 | /* Debug on ttyS0 */ | 47 | /* Debug on ttyS0 */ |
48 | at91_register_uart(0, 0, 0); | 48 | at91_register_uart(0, 0, 0); |
49 | at91_set_serial_console(0); | ||
50 | 49 | ||
51 | at91_register_uart(AT91SAM9260_ID_US0, 1, | 50 | at91_register_uart(AT91SAM9260_ID_US0, 1, |
52 | ATMEL_UART_CTS | ATMEL_UART_RTS); | 51 | ATMEL_UART_CTS | ATMEL_UART_RTS); |
diff --git a/arch/arm/mach-at91/board-stamp9g20.c b/arch/arm/mach-at91/board-stamp9g20.c index 7640049410a0..38a7ca5a5a60 100644 --- a/arch/arm/mach-at91/board-stamp9g20.c +++ b/arch/arm/mach-at91/board-stamp9g20.c | |||
@@ -39,9 +39,6 @@ void __init stamp9g20_init_early(void) | |||
39 | 39 | ||
40 | /* DGBU on ttyS0. (Rx & Tx only) */ | 40 | /* DGBU on ttyS0. (Rx & Tx only) */ |
41 | at91_register_uart(0, 0, 0); | 41 | at91_register_uart(0, 0, 0); |
42 | |||
43 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
44 | at91_set_serial_console(0); | ||
45 | } | 42 | } |
46 | 43 | ||
47 | static void __init stamp9g20evb_init_early(void) | 44 | static void __init stamp9g20evb_init_early(void) |
diff --git a/arch/arm/mach-at91/board-usb-a926x.c b/arch/arm/mach-at91/board-usb-a926x.c index b7483a3d0980..ee482ebd07a9 100644 --- a/arch/arm/mach-at91/board-usb-a926x.c +++ b/arch/arm/mach-at91/board-usb-a926x.c | |||
@@ -56,9 +56,6 @@ static void __init ek_init_early(void) | |||
56 | 56 | ||
57 | /* DBGU on ttyS0. (Rx & Tx only) */ | 57 | /* DBGU on ttyS0. (Rx & Tx only) */ |
58 | at91_register_uart(0, 0, 0); | 58 | at91_register_uart(0, 0, 0); |
59 | |||
60 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
61 | at91_set_serial_console(0); | ||
62 | } | 59 | } |
63 | 60 | ||
64 | /* | 61 | /* |
diff --git a/arch/arm/mach-at91/board-yl-9200.c b/arch/arm/mach-at91/board-yl-9200.c index 38dd279d30b2..e94a04eae5e6 100644 --- a/arch/arm/mach-at91/board-yl-9200.c +++ b/arch/arm/mach-at91/board-yl-9200.c | |||
@@ -75,9 +75,6 @@ static void __init yl9200_init_early(void) | |||
75 | 75 | ||
76 | /* USART3 on ttyS3. (Rx, Tx, RTS - RS485 interface) */ | 76 | /* USART3 on ttyS3. (Rx, Tx, RTS - RS485 interface) */ |
77 | at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_RTS); | 77 | at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_RTS); |
78 | |||
79 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
80 | at91_set_serial_console(0); | ||
81 | } | 78 | } |
82 | 79 | ||
83 | /* | 80 | /* |
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index dd9b346c451d..0a60bf837037 100644 --- a/arch/arm/mach-at91/generic.h +++ b/arch/arm/mach-at91/generic.h | |||
@@ -40,17 +40,6 @@ extern struct sys_timer at91sam926x_timer; | |||
40 | extern struct sys_timer at91x40_timer; | 40 | extern struct sys_timer at91x40_timer; |
41 | 41 | ||
42 | /* Clocks */ | 42 | /* Clocks */ |
43 | /* | ||
44 | * function to specify the clock of the default console. As we do not | ||
45 | * use the device/driver bus, the dev_name is not intialize. So we need | ||
46 | * to link the clock to a specific con_id only "usart" | ||
47 | */ | ||
48 | extern void __init at91rm9200_set_console_clock(int id); | ||
49 | extern void __init at91sam9260_set_console_clock(int id); | ||
50 | extern void __init at91sam9261_set_console_clock(int id); | ||
51 | extern void __init at91sam9263_set_console_clock(int id); | ||
52 | extern void __init at91sam9rl_set_console_clock(int id); | ||
53 | extern void __init at91sam9g45_set_console_clock(int id); | ||
54 | #ifdef CONFIG_AT91_PMC_UNIT | 43 | #ifdef CONFIG_AT91_PMC_UNIT |
55 | extern int __init at91_clock_init(unsigned long main_clock); | 44 | extern int __init at91_clock_init(unsigned long main_clock); |
56 | extern int __init at91_dt_clock_init(void); | 45 | extern int __init at91_dt_clock_init(void); |
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h index 49a821192c65..369afc2ffc5b 100644 --- a/arch/arm/mach-at91/include/mach/board.h +++ b/arch/arm/mach-at91/include/mach/board.h | |||
@@ -121,7 +121,6 @@ extern void __init at91_add_device_spi(struct spi_board_info *devices, int nr_de | |||
121 | #define ATMEL_UART_RI 0x20 | 121 | #define ATMEL_UART_RI 0x20 |
122 | 122 | ||
123 | extern void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins); | 123 | extern void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins); |
124 | extern void __init at91_set_serial_console(unsigned portnr); | ||
125 | 124 | ||
126 | extern struct platform_device *atmel_default_console_device; | 125 | extern struct platform_device *atmel_default_console_device; |
127 | 126 | ||