Commit 039594a4301dadceb267db5e8b9c8c78b1bb86b5
Committed by
Kumar Gala
1 parent
546b103290
Exists in
master
and in
55 other branches
8xxx: Second UART port added for MPC85xx, MPC83xx, MPC86xx processors
Defining the next two configs allows to switch the serial port from the console using the setenv stdin and stdout 1. #define CONFIG_SERIAL_MULTI 1 /* Enable both serial ports */ 2. #define CONFIG_SYS_CONSOLE_IS_IN_ENV /* determine from environment */ Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com> Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Showing 2 changed files with 4 additions and 2 deletions Side-by-side Diff
common/serial.c
... | ... | @@ -40,7 +40,8 @@ |
40 | 40 | return &serial_scc_device; |
41 | 41 | #elif defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) \ |
42 | 42 | || defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) \ |
43 | - || defined(CONFIG_MPC5xxx) | |
43 | + || defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC83xx) \ | |
44 | + || defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx) | |
44 | 45 | #if defined(CONFIG_CONS_INDEX) && defined(CONFIG_SYS_NS16550_SERIAL) |
45 | 46 | #if (CONFIG_CONS_INDEX==1) |
46 | 47 | return &eserial1_device; |
include/serial.h
... | ... | @@ -24,7 +24,8 @@ |
24 | 24 | |
25 | 25 | #if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) || \ |
26 | 26 | defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) || \ |
27 | - defined(CONFIG_MPC5xxx) | |
27 | + defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC83xx) || \ | |
28 | + defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx) | |
28 | 29 | extern struct serial_device serial0_device; |
29 | 30 | extern struct serial_device serial1_device; |
30 | 31 | #if defined(CONFIG_SYS_NS16550_SERIAL) |