2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2015-02-12 04:48:04 +00:00
|
|
|
/*
|
|
|
|
* 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,
|
2023-02-28 21:29:19 +00:00
|
|
|
PORT_HSCIF,
|
2015-02-12 04:48:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*/
|
2020-12-03 23:55:23 +00:00
|
|
|
struct sh_serial_plat {
|
2015-02-12 04:48:04 +00:00
|
|
|
unsigned long base;
|
|
|
|
unsigned int clk;
|
|
|
|
enum sh_clk_mode clk_mode;
|
|
|
|
enum sh_serial_type type;
|
|
|
|
};
|
|
|
|
#endif /* __serial_sh_h */
|