mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-21 02:33:07 +00:00
bbe36e29ca
Provide the basic HSCIF support for R-Car SoC. Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Signed-off-by: Hai Pham <hai.pham.ud@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> [Marek: Fill in HSSRR offset for Gen2 and SCBRR calculation for Gen2 and Gen3] Reviewed-by: Simon Glass <sjg@chromium.org>
37 lines
733 B
C
37 lines
733 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (c) 2014 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
|
|
* Copyright (c) 2014 Renesas Electronics Corporation
|
|
*/
|
|
|
|
#ifndef __serial_sh_h
|
|
#define __serial_sh_h
|
|
|
|
enum sh_clk_mode {
|
|
INT_CLK,
|
|
EXT_CLK,
|
|
};
|
|
|
|
enum sh_serial_type {
|
|
PORT_SCI,
|
|
PORT_SCIF,
|
|
PORT_SCIFA,
|
|
PORT_SCIFB,
|
|
PORT_HSCIF,
|
|
};
|
|
|
|
/*
|
|
* Information about SCIF port
|
|
*
|
|
* @base: Register base address
|
|
* @clk: Input clock rate, used for calculating the baud rate divisor
|
|
* @clk_mode: Clock mode, set internal (INT) or external (EXT)
|
|
* @type: Type of SCIF
|
|
*/
|
|
struct sh_serial_plat {
|
|
unsigned long base;
|
|
unsigned int clk;
|
|
enum sh_clk_mode clk_mode;
|
|
enum sh_serial_type type;
|
|
};
|
|
#endif /* __serial_sh_h */
|