mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
359787cfe4
commit
747431b9d5
2 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
* Renesas SCI serial interface
|
* Renesas SCI serial interface
|
||||||
|
|
||||||
Required properties:
|
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
|
- reg: exactly one register range with length
|
||||||
- clock: input clock frequency for the SCI unit
|
- clock: input clock frequency for the SCI unit
|
||||||
|
|
|
@ -205,6 +205,7 @@ static const struct dm_serial_ops sh_serial_ops = {
|
||||||
|
|
||||||
#ifdef CONFIG_OF_CONTROL
|
#ifdef CONFIG_OF_CONTROL
|
||||||
static const struct udevice_id sh_serial_id[] ={
|
static const struct udevice_id sh_serial_id[] ={
|
||||||
|
{.compatible = "renesas,sci", .data = PORT_SCI},
|
||||||
{.compatible = "renesas,scif", .data = PORT_SCIF},
|
{.compatible = "renesas,scif", .data = PORT_SCIF},
|
||||||
{.compatible = "renesas,scifa", .data = PORT_SCIFA},
|
{.compatible = "renesas,scifa", .data = PORT_SCIFA},
|
||||||
{}
|
{}
|
||||||
|
@ -262,6 +263,8 @@ U_BOOT_DRIVER(serial_sh) = {
|
||||||
|
|
||||||
#if defined(CONFIG_SCIF_A)
|
#if defined(CONFIG_SCIF_A)
|
||||||
#define SCIF_BASE_PORT PORT_SCIFA
|
#define SCIF_BASE_PORT PORT_SCIFA
|
||||||
|
#elif defined(CONFIG_SCI)
|
||||||
|
#define SCIF_BASE_PORT PORT_SCI
|
||||||
#else
|
#else
|
||||||
#define SCIF_BASE_PORT PORT_SCIF
|
#define SCIF_BASE_PORT PORT_SCIF
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue