serial: pxa: Make use of default_serial_console in serial_pxa
authorMarek Vasut <marex@denx.de>
Wed, 12 Sep 2012 10:36:25 +0000 (12:36 +0200)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:53:48 +0000 (11:53 -0700)
Make use of the newly implemented weak default_serial_console in
the serial_pxa driver. This removes all reimplementations of this
function from board files.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
17 files changed:
board/balloon3/balloon3.c
board/palmld/palmld.c
board/palmtc/palmtc.c
board/toradex/colibri_pxa270/colibri_pxa270.c
board/trizepsiv/conxs.c
board/vpac270/vpac270.c
board/zipitz2/zipitz2.c
include/configs/balloon3.h
include/configs/colibri_pxa270.h
include/configs/lubbock.h
include/configs/palmld.h
include/configs/palmtc.h
include/configs/pxa255_idp.h
include/configs/trizepsiv.h
include/configs/vpac270.h
include/configs/xaeniax.h
include/configs/zipitz2.h

index f360323..c934988 100644 (file)
@@ -53,11 +53,6 @@ int board_init(void)
        return 0;
 }
 
-struct serial_device *default_serial_console(void)
-{
-       return &serial_stuart_device;
-}
-
 int dram_init(void)
 {
        pxa2xx_dram_init();
index 2f1ad20..57b4f5f 100644 (file)
@@ -52,11 +52,6 @@ int board_init(void)
        return 0;
 }
 
-struct serial_device *default_serial_console(void)
-{
-       return &serial_ffuart_device;
-}
-
 int dram_init(void)
 {
        pxa2xx_dram_init();
index 4adf152..b23eec8 100644 (file)
@@ -51,11 +51,6 @@ int board_init(void)
        return 0;
 }
 
-struct serial_device *default_serial_console(void)
-{
-       return &serial_ffuart_device;
-}
-
 int dram_init(void)
 {
        pxa2xx_dram_init();
index d72e5d6..a6e13c8 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-struct serial_device *default_serial_console(void)
-{
-       return &serial_ffuart_device;
-}
-
 int board_init(void)
 {
        /* We have RAM, disable cache */
index 1291195..8fc3c40 100644 (file)
@@ -135,11 +135,6 @@ int board_late_init(void)
        return 0;
 }
 
-struct serial_device *default_serial_console (void)
-{
-       return &serial_ffuart_device;
-}
-
 int dram_init(void)
 {
        pxa2xx_dram_init();
index dfdab9b..2663534 100644 (file)
@@ -50,11 +50,6 @@ int board_init(void)
        return 0;
 }
 
-struct serial_device *default_serial_console(void)
-{
-       return &serial_ffuart_device;
-}
-
 int dram_init(void)
 {
 #ifndef        CONFIG_ONENAND
index 82dfa82..579841d 100644 (file)
@@ -62,11 +62,6 @@ int board_init (void)
        return 0;
 }
 
-struct serial_device *default_serial_console (void)
-{
-       return &serial_stuart_device;
-}
-
 int dram_init(void)
 {
        pxa2xx_dram_init();
index 756f409..0f26a5b 100644 (file)
@@ -53,6 +53,7 @@
  */
 #define        CONFIG_PXA_SERIAL
 #define        CONFIG_STUART                   1
+#define CONFIG_CONS_INDEX              2
 #define        CONFIG_BAUDRATE                 115200
 
 /*
index ae84344..bb8bea7 100644 (file)
@@ -55,6 +55,7 @@
  */
 #define        CONFIG_PXA_SERIAL
 #define        CONFIG_FFUART                   1
+#define CONFIG_CONS_INDEX              3
 #define        CONFIG_BAUDRATE                 115200
 
 /*
index 0a1d1e0..ed64960 100644 (file)
@@ -64,6 +64,7 @@
  */
 #define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART         1       /* we use FFUART on LUBBOCK */
+#define CONFIG_CONS_INDEX      3
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
index 835121e..c5dd494 100644 (file)
@@ -54,6 +54,7 @@
  */
 #define        CONFIG_PXA_SERIAL
 #define        CONFIG_FFUART                   1
+#define CONFIG_CONS_INDEX              3
 #define        CONFIG_BAUDRATE                 9600
 
 /*
index bc88354..6e8d8e9 100644 (file)
@@ -58,6 +58,7 @@
  */
 #define        CONFIG_PXA_SERIAL
 #define        CONFIG_FFUART                   1
+#define CONFIG_CONS_INDEX              3
 #define        CONFIG_BAUDRATE                 115200
 
 /*
index ce9e7d1..24c5363 100644 (file)
@@ -99,6 +99,7 @@
  */
 #define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART         1       /* we use FFUART on LUBBOCK */
+#define CONFIG_CONS_INDEX      3
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
index 151059a..47c6a23 100644 (file)
@@ -68,6 +68,7 @@
 #define CONFIG_FFUART         1       /* we use FFUART on Conxs */
 #define CONFIG_BTUART         1       /* we use BTUART on Conxs */
 #define CONFIG_STUART         1       /* we use STUART on Conxs */
+#define CONFIG_CONS_INDEX      3
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
index 424a902..5e948f9 100644 (file)
@@ -75,6 +75,7 @@
  */
 #define        CONFIG_PXA_SERIAL
 #define        CONFIG_FFUART                   1
+#define CONFIG_CONS_INDEX              3
 #define        CONFIG_BAUDRATE                 115200
 
 /*
index e399e95..eee2547 100644 (file)
@@ -54,7 +54,7 @@
  */
 #define CONFIG_PXA_SERIAL
 #define CONFIG_BTUART         1       /* we use BTUART on XAENIAX */
-
+#define CONFIG_CONS_INDEX      4
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
index 8b7e05b..bf6394a 100644 (file)
@@ -66,6 +66,7 @@
  */
 #define        CONFIG_PXA_SERIAL
 #define        CONFIG_STUART                   1
+#define CONFIG_CONS_INDEX              2
 #define        CONFIG_BAUDRATE                 115200
 
 /*