Patchwork [U-Boot,07/72] serial: mpc512x: Properly define CONFIG_SYS_PSC3 in config files

login
register
mail settings
Submitter Marek Vasut
Date Sept. 29, 2012, 9:52 p.m.
Message ID <1348955586-7109-8-git-send-email-marex@denx.de>
Download mbox | patch
Permalink /patch/188072/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Marek Vasut - Sept. 29, 2012, 9:52 p.m.
Some of the boards using the mpc512x serial driver didn't properly
define which PSC console to use. This caused breakage when building
with CONFIG_SERIAL_MULTI enabled. Fix this by defining the default
PSC console.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
---
 include/configs/aria.h       |    1 +
 include/configs/mecp5123.h   |    1 +
 include/configs/mpc5121ads.h |    1 +
 3 files changed, 3 insertions(+)

Patch

diff --git a/include/configs/aria.h b/include/configs/aria.h
index b21b495..0b31c50 100644
--- a/include/configs/aria.h
+++ b/include/configs/aria.h
@@ -322,6 +322,7 @@ 
  * Serial console configuration
  */
 #define CONFIG_PSC_CONSOLE		3	/* console on PSC3 */
+#define CONFIG_SYS_PSC3
 #if CONFIG_PSC_CONSOLE != 3
 #error CONFIG_PSC_CONSOLE must be 3
 #endif
diff --git a/include/configs/mecp5123.h b/include/configs/mecp5123.h
index b41bda9..cafc273 100644
--- a/include/configs/mecp5123.h
+++ b/include/configs/mecp5123.h
@@ -222,6 +222,7 @@ 
  * Serial console configuration
  */
 #define CONFIG_PSC_CONSOLE	3	/* console is on PSC3 */
+#define CONFIG_SYS_PSC3
 #if CONFIG_PSC_CONSOLE != 3
 #error CONFIG_PSC_CONSOLE must be 3
 #endif
diff --git a/include/configs/mpc5121ads.h b/include/configs/mpc5121ads.h
index 9d1327f..3f55d35 100644
--- a/include/configs/mpc5121ads.h
+++ b/include/configs/mpc5121ads.h
@@ -290,6 +290,7 @@ 
  * Serial console configuration
  */
 #define CONFIG_PSC_CONSOLE	3	/* console is on PSC3 */
+#define CONFIG_SYS_PSC3
 #if CONFIG_PSC_CONSOLE != 3
 #error CONFIG_PSC_CONSOLE must be 3
 #endif