public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5] mpc85xx: Add multi-serial support for MPC8569E-MDS	boards
Date: Wed, 10 Jun 2009 00:40:57 +0400	[thread overview]
Message-ID: <20090609204057.GA22606@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <20090609204030.GA21015@oksana.dev.rtsoft.ru>

There are two UARTs on MPC8569E-MDS boards, but UART1 can
be muxed away to SD/MMC signals, so we'll need multi-serial
support to support eSDHC on these boards (we'll redirect
u-boot console to the second UART in case of enabled eSDHC).

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---
 common/serial.c              |    2 +-
 include/configs/MPC8569MDS.h |    1 +
 include/serial.h             |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/common/serial.c b/common/serial.c
index 09385d0..09974e7 100644
--- a/common/serial.c
+++ b/common/serial.c
@@ -40,7 +40,7 @@ struct serial_device *__default_serial_console (void)
 	return &serial_scc_device;
 #elif defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) \
    || defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) \
-   || defined(CONFIG_MPC5xxx)
+   || defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC85xx)
 #if defined(CONFIG_CONS_INDEX) && defined(CONFIG_SYS_NS16550_SERIAL)
 #if (CONFIG_CONS_INDEX==1)
 	return &eserial1_device;
diff --git a/include/configs/MPC8569MDS.h b/include/configs/MPC8569MDS.h
index 0f50346..0956b06 100644
--- a/include/configs/MPC8569MDS.h
+++ b/include/configs/MPC8569MDS.h
@@ -206,6 +206,7 @@ extern unsigned long get_clock_freq(void);
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX		1
+#define CONFIG_SERIAL_MULTI		1
 #undef	CONFIG_SERIAL_SOFTWARE_FIFO
 #define CONFIG_SYS_NS16550
 #define CONFIG_SYS_NS16550_SERIAL
diff --git a/include/serial.h b/include/serial.h
index e3d8b36..7dc821e 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -24,7 +24,7 @@ extern struct serial_device * default_serial_console (void);
 
 #if defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) || \
     defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) || \
-    defined(CONFIG_MPC5xxx)
+    defined(CONFIG_MPC5xxx) || defined(CONFIG_MPC85xx)
 extern struct serial_device serial0_device;
 extern struct serial_device serial1_device;
 #if defined(CONFIG_SYS_NS16550_SERIAL)
-- 
1.6.3.1

  reply	other threads:[~2009-06-09 20:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09 20:40 [U-Boot] [PATCH 0/5] Some patches for MPC8569E-MDS Anton Vorontsov
2009-06-09 20:40 ` Anton Vorontsov [this message]
2009-06-09 20:41 ` [U-Boot] [PATCH 2/5] fdt_support: Add multi-serial support for stdout fixup Anton Vorontsov
2009-06-09 20:41 ` [U-Boot] [PATCH 3/5] mpc85xx: Add eSDHC support for MPC8569E-MDS boards Anton Vorontsov
2009-06-09 20:41 ` [U-Boot] [PATCH 4/5] mpc85xx: Add eLBC NAND " Anton Vorontsov
2009-06-09 20:41 ` [U-Boot] [PATCH 5/5] mpc85xx: Setup QE pinmux for SPI Flash on " Anton Vorontsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090609204057.GA22606@oksana.dev.rtsoft.ru \
    --to=avorontsov@ru.mvista.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox