summaryrefslogtreecommitdiff
path: root/drivers/serial/serial_sh.c
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2016-04-18 07:51:05 (GMT)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2016-07-08 20:51:57 (GMT)
commit747431b9d54d3ebdef87352006218ed948011612 (patch)
treee10cca73b9831183f848c07630c4eb4a74ffdd9c /drivers/serial/serial_sh.c
parent359787cfe48b066ba96b1062a1a85772464939d6 (diff)
downloadu-boot-747431b9d54d3ebdef87352006218ed948011612.tar.xz
serial_sh: Add standrad SCI (w/o FIFO) support
Add support for standard type SCI (without FIFO) port. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers/serial/serial_sh.c')
-rw-r--r--drivers/serial/serial_sh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c
index 32b2bf0..ef7cf0f 100644
--- a/drivers/serial/serial_sh.c
+++ b/drivers/serial/serial_sh.c
@@ -205,6 +205,7 @@ static const struct dm_serial_ops sh_serial_ops = {
#ifdef CONFIG_OF_CONTROL
static const struct udevice_id sh_serial_id[] ={
+ {.compatible = "renesas,sci", .data = PORT_SCI},
{.compatible = "renesas,scif", .data = PORT_SCIF},
{.compatible = "renesas,scifa", .data = PORT_SCIFA},
{}
@@ -262,6 +263,8 @@ U_BOOT_DRIVER(serial_sh) = {
#if defined(CONFIG_SCIF_A)
#define SCIF_BASE_PORT PORT_SCIFA
+#elif defined(CONFIG_SCI)
+ #define SCIF_BASE_PORT PORT_SCI
#else
#define SCIF_BASE_PORT PORT_SCIF
#endif