From: Yoshinori Sato Date: Mon, 18 Apr 2016 07:51:05 +0000 (+0900) Subject: serial_sh: Add standrad SCI (w/o FIFO) support X-Git-Tag: v2016.09-rc1~74^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=747431b9d54d3ebdef87352006218ed948011612;p=oweals%2Fu-boot.git serial_sh: Add standrad SCI (w/o FIFO) support Add support for standard type SCI (without FIFO) port. Signed-off-by: Yoshinori Sato Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/doc/device-tree-bindings/serial/sh.txt b/doc/device-tree-bindings/serial/sh.txt index b23b135046..99634a5e70 100644 --- a/doc/device-tree-bindings/serial/sh.txt +++ b/doc/device-tree-bindings/serial/sh.txt @@ -1,6 +1,6 @@ * Renesas SCI serial interface Required properties: -- compatible: must be "renesas,scif" or "renesas,scifa" +- compatible: must be "renesas,scif", "renesas,scifa" or "renesas,sci" - reg: exactly one register range with length - clock: input clock frequency for the SCI unit diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c index 32b2bf082f..ef7cf0f26c 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