1 /*
2  * Renesas SCP/MCP Software
3  * Copyright (c) 2020-2021, Renesas Electronics Corporation. All rights
4  * reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 #ifndef MOD_RCAR_SCIF_H
10 #define MOD_RCAR_SCIF_H
11 
12 #include <fwk_id.h>
13 
14 #include <stdint.h>
15 
16 /*!
17  * \addtogroup GroupRCARModule RCAR Product Modules
18  * \{
19  */
20 
21 /*!
22  * \defgroup GroupRCARSCIF SCIF Driver
23  *
24  * \brief Device driver module for the Primecell® SCIF UART.
25  *
26  * \{
27  */
28 
29 /*!
30  * \brief SCIF element configuration data.
31  */
32 struct mod_rcar_scif_element_cfg {
33     /*!
34      * \brief Base address of the device registers.
35      */
36     uintptr_t reg_base;
37 
38     /*!
39      * \brief Baud rate in bits per second.
40      */
41     unsigned int baud_rate_bps;
42 
43     /*!
44      * \brief Reference clock in Hertz.
45      */
46     uint64_t clock_rate_hz;
47 };
48 
49 /*!
50  * \brief APIs provided by the driver.
51  */
52 enum mod_rcar_scif_api_type {
53     MOD_RCAR_SCIF_API_TYPE_NORMAL,
54     MOD_RCAR_SCIF_API_TYPE_SYSTEM,
55     MOD_RCAR_SCIF_API_COUNT,
56 };
57 
58 /*!
59  * \}
60  */
61 
62 /*!
63  * \}
64  */
65 
66 #endif /* MOD_RCAR_SCIF_H */
67