ARM: at91: drop at91_set_serial_console
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Thu, 5 Apr 2012 05:43:40 +0000 (13:43 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 17 Apr 2012 09:03:46 +0000 (11:03 +0200)
at91_set_serial_console is used to define the default console of linux.
This is already manage by the cmdline. And if the boot loader can not be
modified you can still set it by enabling the CONFIG_CMDLINE_EXTEND option.
And then the command-line arguments provided by the boot loader will be
appended to the default kernel command string.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
46 files changed:
arch/arm/mach-at91/at91rm9200.c
arch/arm/mach-at91/at91rm9200_devices.c
arch/arm/mach-at91/at91sam9260.c
arch/arm/mach-at91/at91sam9260_devices.c
arch/arm/mach-at91/at91sam9261.c
arch/arm/mach-at91/at91sam9261_devices.c
arch/arm/mach-at91/at91sam9263.c
arch/arm/mach-at91/at91sam9263_devices.c
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/at91sam9g45_devices.c
arch/arm/mach-at91/at91sam9rl.c
arch/arm/mach-at91/at91sam9rl_devices.c
arch/arm/mach-at91/board-1arm.c
arch/arm/mach-at91/board-afeb-9260v1.c
arch/arm/mach-at91/board-cam60.c
arch/arm/mach-at91/board-carmeva.c
arch/arm/mach-at91/board-cpu9krea.c
arch/arm/mach-at91/board-cpuat91.c
arch/arm/mach-at91/board-csb337.c
arch/arm/mach-at91/board-csb637.c
arch/arm/mach-at91/board-eb9200.c
arch/arm/mach-at91/board-ecbat91.c
arch/arm/mach-at91/board-eco920.c
arch/arm/mach-at91/board-flexibity.c
arch/arm/mach-at91/board-foxg20.c
arch/arm/mach-at91/board-kafa.c
arch/arm/mach-at91/board-kb9202.c
arch/arm/mach-at91/board-neocore926.c
arch/arm/mach-at91/board-picotux200.c
arch/arm/mach-at91/board-qil-a9260.c
arch/arm/mach-at91/board-rm9200dk.c
arch/arm/mach-at91/board-rm9200ek.c
arch/arm/mach-at91/board-rsi-ews.c
arch/arm/mach-at91/board-sam9-l9260.c
arch/arm/mach-at91/board-sam9260ek.c
arch/arm/mach-at91/board-sam9261ek.c
arch/arm/mach-at91/board-sam9263ek.c
arch/arm/mach-at91/board-sam9g20ek.c
arch/arm/mach-at91/board-sam9m10g45ek.c
arch/arm/mach-at91/board-sam9rlek.c
arch/arm/mach-at91/board-snapper9260.c
arch/arm/mach-at91/board-stamp9g20.c
arch/arm/mach-at91/board-usb-a926x.c
arch/arm/mach-at91/board-yl-9200.c
arch/arm/mach-at91/generic.h
arch/arm/mach-at91/include/mach/board.h

index 364c19357e608375d58eb9835223aa60c7b9e916..d50da1a9d0bff8b7db40c376f7a31e7a3a4891df 100644 (file)
@@ -258,18 +258,6 @@ static void __init at91rm9200_register_clocks(void)
        clk_register(&pck3);
 }
 
-static struct clk_lookup console_clock_lookup;
-
-void __init at91rm9200_set_console_clock(int id)
-{
-       if (id >= ARRAY_SIZE(usart_clocks_lookups))
-               return;
-
-       console_clock_lookup.con_id = "usart";
-       console_clock_lookup.clk = usart_clocks_lookups[id].clk;
-       clkdev_add(&console_clock_lookup);
-}
-
 /* --------------------------------------------------------------------
  *  GPIO
  * -------------------------------------------------------------------- */
index 99ce5c955e39d94d24f50005b875459739ef6ce5..d9f0d770978efb887a30948ac5575095a2528900 100644 (file)
@@ -1152,14 +1152,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
                at91_uarts[portnr] = pdev;
 }
 
-void __init at91_set_serial_console(unsigned portnr)
-{
-       if (portnr < ATMEL_MAX_UART) {
-               atmel_default_console_device = at91_uarts[portnr];
-               at91rm9200_set_console_clock(at91_uarts[portnr]->id);
-       }
-}
-
 void __init at91_add_device_serial(void)
 {
        int i;
@@ -1168,14 +1160,10 @@ void __init at91_add_device_serial(void)
                if (at91_uarts[i])
                        platform_device_register(at91_uarts[i]);
        }
-
-       if (!atmel_default_console_device)
-               printk(KERN_INFO "AT91: No default serial console defined.\n");
 }
 #else
 void __init __deprecated at91_init_serial(struct at91_uart_config *config) {}
 void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {}
-void __init at91_set_serial_console(unsigned portnr) {}
 void __init at91_add_device_serial(void) {}
 #endif
 
index 46f7742332988d040dbaf1d49317e4dffcea174f..a27bbec50ca3056fc570604420e934e08dfe2f40 100644 (file)
@@ -268,18 +268,6 @@ static void __init at91sam9260_register_clocks(void)
        clk_register(&pck1);
 }
 
-static struct clk_lookup console_clock_lookup;
-
-void __init at91sam9260_set_console_clock(int id)
-{
-       if (id >= ARRAY_SIZE(usart_clocks_lookups))
-               return;
-
-       console_clock_lookup.con_id = "usart";
-       console_clock_lookup.clk = usart_clocks_lookups[id].clk;
-       clkdev_add(&console_clock_lookup);
-}
-
 /* --------------------------------------------------------------------
  *  GPIO
  * -------------------------------------------------------------------- */
index 5652dde4bbe291fd5723481ab9a978eb66bd5ec9..ad00fe91d37d63698589b4cdb6e0e7c5fba6e4ea 100644 (file)
@@ -1229,14 +1229,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
                at91_uarts[portnr] = pdev;
 }
 
-void __init at91_set_serial_console(unsigned portnr)
-{
-       if (portnr < ATMEL_MAX_UART) {
-               atmel_default_console_device = at91_uarts[portnr];
-               at91sam9260_set_console_clock(at91_uarts[portnr]->id);
-       }
-}
-
 void __init at91_add_device_serial(void)
 {
        int i;
@@ -1245,13 +1237,9 @@ void __init at91_add_device_serial(void)
                if (at91_uarts[i])
                        platform_device_register(at91_uarts[i]);
        }
-
-       if (!atmel_default_console_device)
-               printk(KERN_INFO "AT91: No default serial console defined.\n");
 }
 #else
 void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {}
-void __init at91_set_serial_console(unsigned portnr) {}
 void __init at91_add_device_serial(void) {}
 #endif
 
index 7de81e6222f1fdae6ed8a3618e555d2d56b5d699..c77d503d09d1c2546a8e73a5ddccb246acb4ddcb 100644 (file)
@@ -239,18 +239,6 @@ static void __init at91sam9261_register_clocks(void)
        clk_register(&hck1);
 }
 
-static struct clk_lookup console_clock_lookup;
-
-void __init at91sam9261_set_console_clock(int id)
-{
-       if (id >= ARRAY_SIZE(usart_clocks_lookups))
-               return;
-
-       console_clock_lookup.con_id = "usart";
-       console_clock_lookup.clk = usart_clocks_lookups[id].clk;
-       clkdev_add(&console_clock_lookup);
-}
-
 /* --------------------------------------------------------------------
  *  GPIO
  * -------------------------------------------------------------------- */
index 4db961a93085566e80973e241f910223484ccd96..9295e90b08ff523fa93817ca9121eb15d9d5a2bb 100644 (file)
@@ -1051,14 +1051,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
                at91_uarts[portnr] = pdev;
 }
 
-void __init at91_set_serial_console(unsigned portnr)
-{
-       if (portnr < ATMEL_MAX_UART) {
-               atmel_default_console_device = at91_uarts[portnr];
-               at91sam9261_set_console_clock(at91_uarts[portnr]->id);
-       }
-}
-
 void __init at91_add_device_serial(void)
 {
        int i;
@@ -1067,13 +1059,9 @@ void __init at91_add_device_serial(void)
                if (at91_uarts[i])
                        platform_device_register(at91_uarts[i]);
        }
-
-       if (!atmel_default_console_device)
-               printk(KERN_INFO "AT91: No default serial console defined.\n");
 }
 #else
 void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {}
-void __init at91_set_serial_console(unsigned portnr) {}
 void __init at91_add_device_serial(void) {}
 #endif
 
index ef301be665758763a011d3c4aed827da5dbb6fc2..7fae36502fbbfa336b05c0420da5dce6b3249c8f 100644 (file)
@@ -255,18 +255,6 @@ static void __init at91sam9263_register_clocks(void)
        clk_register(&pck3);
 }
 
-static struct clk_lookup console_clock_lookup;
-
-void __init at91sam9263_set_console_clock(int id)
-{
-       if (id >= ARRAY_SIZE(usart_clocks_lookups))
-               return;
-
-       console_clock_lookup.con_id = "usart";
-       console_clock_lookup.clk = usart_clocks_lookups[id].clk;
-       clkdev_add(&console_clock_lookup);
-}
-
 /* --------------------------------------------------------------------
  *  GPIO
  * -------------------------------------------------------------------- */
index fe99206de8802b549dc099b65f3daa62a53f5768..dfe5bc006d5e27e910001cb1cedcd68550e8cffb 100644 (file)
@@ -1461,14 +1461,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
                at91_uarts[portnr] = pdev;
 }
 
-void __init at91_set_serial_console(unsigned portnr)
-{
-       if (portnr < ATMEL_MAX_UART) {
-               atmel_default_console_device = at91_uarts[portnr];
-               at91sam9263_set_console_clock(at91_uarts[portnr]->id);
-       }
-}
-
 void __init at91_add_device_serial(void)
 {
        int i;
@@ -1477,13 +1469,9 @@ void __init at91_add_device_serial(void)
                if (at91_uarts[i])
                        platform_device_register(at91_uarts[i]);
        }
-
-       if (!atmel_default_console_device)
-               printk(KERN_INFO "AT91: No default serial console defined.\n");
 }
 #else
 void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {}
-void __init at91_set_serial_console(unsigned portnr) {}
 void __init at91_add_device_serial(void) {}
 #endif
 
index d222f8333dab8799920b0ce025ff4e334537eb5c..f2054495a655b3285dd90a77c5dfeb6cf2abb629 100644 (file)
@@ -288,18 +288,6 @@ static void __init at91sam9g45_register_clocks(void)
        clk_register(&pck1);
 }
 
-static struct clk_lookup console_clock_lookup;
-
-void __init at91sam9g45_set_console_clock(int id)
-{
-       if (id >= ARRAY_SIZE(usart_clocks_lookups))
-               return;
-
-       console_clock_lookup.con_id = "usart";
-       console_clock_lookup.clk = usart_clocks_lookups[id].clk;
-       clkdev_add(&console_clock_lookup);
-}
-
 /* --------------------------------------------------------------------
  *  GPIO
  * -------------------------------------------------------------------- */
index 6b008aee1dffad648874e6318e397d7d640e2d31..db2f88c246ff8f7e9cbe0a37f841f32a064ffdf5 100644 (file)
@@ -1741,14 +1741,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
                at91_uarts[portnr] = pdev;
 }
 
-void __init at91_set_serial_console(unsigned portnr)
-{
-       if (portnr < ATMEL_MAX_UART) {
-               atmel_default_console_device = at91_uarts[portnr];
-               at91sam9g45_set_console_clock(at91_uarts[portnr]->id);
-       }
-}
-
 void __init at91_add_device_serial(void)
 {
        int i;
@@ -1757,13 +1749,9 @@ void __init at91_add_device_serial(void)
                if (at91_uarts[i])
                        platform_device_register(at91_uarts[i]);
        }
-
-       if (!atmel_default_console_device)
-               printk(KERN_INFO "AT91: No default serial console defined.\n");
 }
 #else
 void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {}
-void __init at91_set_serial_console(unsigned portnr) {}
 void __init at91_add_device_serial(void) {}
 #endif
 
index d9f2774f385eb68fffc337050602592d7bcd07e9..e420085a57effa34a373b3aeeaca91185f248109 100644 (file)
@@ -232,18 +232,6 @@ static void __init at91sam9rl_register_clocks(void)
        clk_register(&pck1);
 }
 
-static struct clk_lookup console_clock_lookup;
-
-void __init at91sam9rl_set_console_clock(int id)
-{
-       if (id >= ARRAY_SIZE(usart_clocks_lookups))
-               return;
-
-       console_clock_lookup.con_id = "usart";
-       console_clock_lookup.clk = usart_clocks_lookups[id].clk;
-       clkdev_add(&console_clock_lookup);
-}
-
 /* --------------------------------------------------------------------
  *  GPIO
  * -------------------------------------------------------------------- */
index fe4ae22e8561bc9084b9d64870d063cfca88ed9a..9c0b1481a9a70c5d3ac6ebfc199c5d2e77ba1f46 100644 (file)
@@ -1192,14 +1192,6 @@ void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins)
                at91_uarts[portnr] = pdev;
 }
 
-void __init at91_set_serial_console(unsigned portnr)
-{
-       if (portnr < ATMEL_MAX_UART) {
-               atmel_default_console_device = at91_uarts[portnr];
-               at91sam9rl_set_console_clock(at91_uarts[portnr]->id);
-       }
-}
-
 void __init at91_add_device_serial(void)
 {
        int i;
@@ -1208,13 +1200,9 @@ void __init at91_add_device_serial(void)
                if (at91_uarts[i])
                        platform_device_register(at91_uarts[i]);
        }
-
-       if (!atmel_default_console_device)
-               printk(KERN_INFO "AT91: No default serial console defined.\n");
 }
 #else
 void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins) {}
-void __init at91_set_serial_console(unsigned portnr) {}
 void __init at91_add_device_serial(void) {}
 #endif
 
index 2628384aaae1fd034219a258ebfe16892b553955..f43ad9130ef7351bc7b5ef8f403a18c3060764c2 100644 (file)
@@ -58,9 +58,6 @@ static void __init onearm_init_early(void)
        at91_register_uart(AT91RM9200_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS
                           | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD
                           | ATMEL_UART_RI);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata onearm_eth_data = {
index 161efbaa10290fe31bb10e7f88692f6842fad231..7c7c682b868428c53f2f2405343e45cd80557890 100644 (file)
@@ -65,9 +65,6 @@ static void __init afeb9260_init_early(void)
        /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */
        at91_register_uart(AT91SAM9260_ID_US1, 2,
                        ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index c6d44ee0c77e7ad053267b4114ed04b1d73d8dfd..871717dc39e560cd27a0c29a76950aff779f33dc 100644 (file)
@@ -52,9 +52,6 @@ static void __init cam60_init_early(void)
 
        /* DBGU on ttyS0. (Rx & Tx only) */
        at91_register_uart(0, 0, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index 59d9cf997537c6b62324d7f34dff1eb7ed45685f..168b3fad8634867af2573e733d48476030394b2f 100644 (file)
@@ -52,9 +52,6 @@ static void __init carmeva_init_early(void)
        at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS
                           | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD
                           | ATMEL_UART_RI);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata carmeva_eth_data = {
index 5f3680e7c883e3a4e50b60ec22a5e283ecd78ed2..4073e3033191ea5dae6b06714a383bb40dbcb022 100644 (file)
@@ -77,9 +77,6 @@ static void __init cpu9krea_init_early(void)
 
        /* USART5 on ttyS6. (Rx, Tx) */
        at91_register_uart(AT91SAM9260_ID_US5, 6, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index e094cc81fe251d099fc31ceef5af8d9d2bfe1dd0..76c62ed418327bc1aecc33f1e11d0cd32920dcad 100644 (file)
@@ -78,9 +78,6 @@ static void __init cpuat91_init_early(void)
        /* USART3 on ttyS4 (Rx, Tx, CTS, RTS) */
        at91_register_uart(AT91RM9200_ID_US3, 4, ATMEL_UART_CTS |
                ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata cpuat91_eth_data = {
index 1a1547b1ce4e61182e2cb2e069dd803ef43e9e19..d984435f51e8e4286790911842675e9978cd6590 100644 (file)
@@ -53,9 +53,6 @@ static void __init csb337_init_early(void)
 
        /* DBGU on ttyS0 */
        at91_register_uart(0, 0, 0);
-
-       /* make console=ttyS0 the default */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata csb337_eth_data = {
index f650bf39455ddc26070bdcfe96663da074feec73..0c9935d29fbd6a6b728d6b41901cfa3899f75c0c 100644 (file)
@@ -47,9 +47,6 @@ static void __init csb637_init_early(void)
 
        /* DBGU on ttyS0. (Rx & Tx only) */
        at91_register_uart(0, 0, 0);
-
-       /* make console=ttyS0 (ie, DBGU) the default */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata csb637_eth_data = {
index d302ca3eeb645f73340f4dc157a77c163a62e044..a189b9f6d9f4aaa21569a8576c2c6c450835d6b2 100644 (file)
@@ -55,9 +55,6 @@ static void __init eb9200_init_early(void)
 
        /* USART2 on ttyS2. (Rx, Tx) - IRDA */
        at91_register_uart(AT91RM9200_ID_US2, 2, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata eb9200_eth_data = {
index 69966ce4d776d6f5a62cb1de7d91affb456717bc..307c5304f6ebaae44a9d49c01b1f6acef454d38d 100644 (file)
@@ -59,9 +59,6 @@ static void __init ecb_at91init_early(void)
 
        /* USART0 on ttyS1. (Rx & Tx only) */
        at91_register_uart(AT91RM9200_ID_US0, 1, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata ecb_at91eth_data = {
index f23aabef8551d69fc395dcf88b5eabdf152fe2f8..7df6a9b1405efb97e9e9d8ec2ccfa33996224ca3 100644 (file)
@@ -43,9 +43,6 @@ static void __init eco920_init_early(void)
 
        /* DBGU on ttyS0. (Rx & Tx only */
        at91_register_uart(0, 0, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata eco920_eth_data = {
index 1815152001f74c62d3d4dd409252a2c81aa197b0..6dcc962fcaa17f3b9cbc02aafc79a6963e03108a 100644 (file)
@@ -44,9 +44,6 @@ static void __init flexibity_init_early(void)
 
        /* DBGU on ttyS0. (Rx & Tx only) */
        at91_register_uart(0, 0, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /* USB Host port */
index caf017f0f4ee3920e56280b9b89c3541bcde4751..bb0780764b3aee99d7ef22cdb981fac3cc7b2d5b 100644 (file)
@@ -93,9 +93,6 @@ static void __init foxg20_init_early(void)
        /* USART5 on ttyS6. (Rx & Tx only) */
        at91_register_uart(AT91SAM9260_ID_US5, 6, 0);
 
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
-
        /* Set the internal pull-up resistor on DRXD */
        at91_set_A_periph(AT91_PIN_PB14, 1);
 
index efde1b2327c8ab839c518b2cc3a7ce6b0a8517a9..3e858edfcd2bc3de19acb9f75b7193e5a520891a 100644 (file)
@@ -56,9 +56,6 @@ static void __init kafa_init_early(void)
 
        /* USART0 on ttyS1 (Rx, Tx, CTS, RTS) */
        at91_register_uart(AT91RM9200_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata kafa_eth_data = {
index 59b92aab9bcf8eb94a52d9806716995160f3bbe1..ccbc8bea5614b6e2af55ca34ebc5f713327d3b12 100644 (file)
@@ -65,9 +65,6 @@ static void __init kb9202_init_early(void)
 
        /* USART3 on ttyS3 (Rx, Tx, CTS, RTS) - RS485 (optional) */
        at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata kb9202_eth_data = {
index 57d5f6a4726a5b38fead2eebd2b567c02b72e3eb..c456fdc7cf21f09670c823ab18bee02394faac5b 100644 (file)
@@ -61,9 +61,6 @@ static void __init neocore926_init_early(void)
 
        /* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */
        at91_register_uart(AT91SAM9263_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index 59e35dd1486301b556f20befed659a5bea9525b2..4ca56cda355e9826aeaa1b2425a0f1a3c23ff69d 100644 (file)
@@ -56,9 +56,6 @@ static void __init picotux200_init_early(void)
        at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS
                          | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD
                          | ATMEL_UART_RI);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata picotux200_eth_data = {
index b6ed5ed7081ac9d514336a19f3ca668ce8776d5e..189d3fe8a956ec27423fa3b25105e0a7c632ba04 100644 (file)
@@ -66,10 +66,6 @@ static void __init ek_init_early(void)
 
        /* USART2 on ttyS3. (Rx, Tx, CTS, RTS) */
        at91_register_uart(AT91SAM9260_ID_US2, 3, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS1 (ie, USART0) */
-       at91_set_serial_console(1);
-
 }
 
 /*
index 01332aa538b2a00cb4a7e38207abd1a387e87ec7..d5ce630571f326a22ad955388b79366cf3607d7c 100644 (file)
@@ -61,9 +61,6 @@ static void __init dk_init_early(void)
        at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS
                           | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD
                           | ATMEL_UART_RI);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata dk_eth_data = {
index 11cbaa8946fe0e269877104aac08da9fe03818e9..32d35cb158fae3591c05c70f064a1e3c0a9d01f4 100644 (file)
@@ -61,9 +61,6 @@ static void __init ek_init_early(void)
        at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS
                           | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD
                           | ATMEL_UART_RI);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static struct macb_platform_data __initdata ek_eth_data = {
index af0750fafa29cd5ba5dc712ad4e3348f72ee8cb8..2c84463a1c1a037540659192c981f57f0e5046ef 100644 (file)
@@ -52,9 +52,6 @@ static void __init rsi_ews_init_early(void)
        /* USART3 on ttyS4. (Rx, Tx, RTS) */
        /* RS485 communication */
        at91_register_uart(AT91RM9200_ID_US3, 4, ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index e8b116b6cba6c3c15dc873d41079c6f2519efdb8..dee44cbf765bad7097f8c8f3a880b41ed17a2200 100644 (file)
@@ -62,9 +62,6 @@ static void __init ek_init_early(void)
 
        /* USART1 on ttyS2. (Rx, Tx, CTS, RTS) */
        at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index d5aec55b0eb4903a06c6045169cd21af24bb3824..6da17b5e1e2f35a6210a03d468cbf4b43ee73312 100644 (file)
@@ -65,9 +65,6 @@ static void __init ek_init_early(void)
 
        /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */
        at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index c3f9944628642050c34c0a5f31388854511921e4..e91c4afb669a8b643318cdef9c8b209424096a8e 100644 (file)
@@ -64,9 +64,6 @@ static void __init ek_init_early(void)
 
        /* DBGU on ttyS0. (Rx & Tx only) */
        at91_register_uart(0, 0, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index 2ffe50f3a9e9e056a48879dd4c6a755cfa65f622..44248735335e61ad9e792c702d5c436557c9b9c6 100644 (file)
@@ -63,9 +63,6 @@ static void __init ek_init_early(void)
 
        /* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */
        at91_register_uart(AT91SAM9263_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index 8923ec9f5831b79ab8efc14b86ff1718f222f1fa..05f846784ce438774018d0dee956f40d5d87f80a 100644 (file)
@@ -76,9 +76,6 @@ static void __init ek_init_early(void)
 
        /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */
        at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index c88e908ddd82e9de014b360448a194c568f27154..be2ca19fe5ad869822278f0082a9032df6f07802 100644 (file)
@@ -60,9 +60,6 @@ static void __init ek_init_early(void)
        /* USART0 not connected on the -EK board */
        /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */
        at91_register_uart(AT91SAM9G45_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index b109ce2ba864640f8eee20dfebc3d4813fb58e3d..23f383a9e0e21b5c7a6cb29cdf5f97d3874fabc8 100644 (file)
@@ -48,9 +48,6 @@ static void __init ek_init_early(void)
 
        /* USART0 on ttyS1. (Rx, Tx, CTS, RTS) */
        at91_register_uart(AT91SAM9RL_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index ebc9d01ce742f26bed12f958647934bc378c46c0..1a6774a40c9b7aa7026e438743e68f5adb4d72ac 100644 (file)
@@ -46,7 +46,6 @@ static void __init snapper9260_init_early(void)
 
        /* Debug on ttyS0 */
        at91_register_uart(0, 0, 0);
-       at91_set_serial_console(0);
 
        at91_register_uart(AT91SAM9260_ID_US0, 1,
                           ATMEL_UART_CTS | ATMEL_UART_RTS);
index 7640049410a04b505ba7fd9f55d7ebfbb5aa1538..38a7ca5a5a605880c8741782fddf9017eed90890 100644 (file)
@@ -39,9 +39,6 @@ void __init stamp9g20_init_early(void)
 
        /* DGBU on ttyS0. (Rx & Tx only) */
        at91_register_uart(0, 0, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 static void __init stamp9g20evb_init_early(void)
index b7483a3d09803183e625844140659cc363f652a0..ee482ebd07a9b66e1925f6ae66f2d79ebb798354 100644 (file)
@@ -56,9 +56,6 @@ static void __init ek_init_early(void)
 
        /* DBGU on ttyS0. (Rx & Tx only) */
        at91_register_uart(0, 0, 0);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index 38dd279d30b25657004177bfa488b4906d4c525d..e94a04eae5e607c31f6229944a46d48407c502a7 100644 (file)
@@ -75,9 +75,6 @@ static void __init yl9200_init_early(void)
 
        /* USART3 on ttyS3. (Rx, Tx, RTS - RS485 interface) */
        at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_RTS);
-
-       /* set serial console to ttyS0 (ie, DBGU) */
-       at91_set_serial_console(0);
 }
 
 /*
index dd9b346c451d2b005b7241a4c04af01376e09f1d..0a60bf837037dd67382163c30f3290ed30acb9ae 100644 (file)
@@ -40,17 +40,6 @@ extern struct sys_timer at91sam926x_timer;
 extern struct sys_timer at91x40_timer;
 
  /* Clocks */
-/*
- * function to specify the clock of the default console. As we do not
- * use the device/driver bus, the dev_name is not intialize. So we need
- * to link the clock to a specific con_id only "usart"
- */
-extern void __init at91rm9200_set_console_clock(int id);
-extern void __init at91sam9260_set_console_clock(int id);
-extern void __init at91sam9261_set_console_clock(int id);
-extern void __init at91sam9263_set_console_clock(int id);
-extern void __init at91sam9rl_set_console_clock(int id);
-extern void __init at91sam9g45_set_console_clock(int id);
 #ifdef CONFIG_AT91_PMC_UNIT
 extern int __init at91_clock_init(unsigned long main_clock);
 extern int __init at91_dt_clock_init(void);
index 49a821192c652c959321b834953d7f3ce2073452..369afc2ffc5b972934872aa9266c8a8b774e9bec 100644 (file)
@@ -121,7 +121,6 @@ extern void __init at91_add_device_spi(struct spi_board_info *devices, int nr_de
 #define ATMEL_UART_RI  0x20
 
 extern void __init at91_register_uart(unsigned id, unsigned portnr, unsigned pins);
-extern void __init at91_set_serial_console(unsigned portnr);
 
 extern struct platform_device *atmel_default_console_device;