mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-29 05:18:51 +09:00
![Nobuhiro Iwamatsu](/assets/img/avatar_default.png)
This adds driver model support with this driver. This was tested by Koelsch board and Gose board. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Acked-by: Simon Glass <sjg@chromium.org>
38 lines
724 B
C
38 lines
724 B
C
/*
|
|
* Copyright (c) 2014 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
|
|
* Copyright (c) 2014 Renesas Electronics Corporation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#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,
|
|
};
|
|
|
|
/*
|
|
* 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_platdata {
|
|
unsigned long base;
|
|
unsigned int clk;
|
|
enum sh_clk_mode clk_mode;
|
|
enum sh_serial_type type;
|
|
};
|
|
#endif /* __serial_sh_h */
|