1 /*
2  * Copyright (c) 2023 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef HPM_MIPI_DSI_PHY_DRV_H
9 #define HPM_MIPI_DSI_PHY_DRV_H
10 
11 /**
12  * @brief MIPI_DSI_PHY APIs
13  * @defgroup mipi_dsi_phy_interface MIPI_DSI_PHY driver APIs
14  * @ingroup mipi_dsi_phy_interfaces
15  * @{
16  */
17 
18 #include "hpm_common.h"
19 #include "hpm_soc.h"
20 #include "hpm_mipi_dsi_phy_regs.h"
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 typedef struct mipi_dsi_phy_config {
28     uint32_t lane_mbps; /*!< lane speed */
29     uint8_t lanes;      /*!< number of lane */
30 } mipi_dsi_phy_config_t;
31 
32 /**
33  * @brief MIPI_DSI_PHY init
34  *
35  * @param ptr MIPI_DSI_PHY base address
36  * @param cfg config of MIPI_DSI_PHY
37  */
38 void mipi_dsi_phy_init(MIPI_DSI_PHY_Type *ptr, mipi_dsi_phy_config_t *cfg);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 /**
45  * @}
46  */
47 #endif /* HPM_MIPI_DSI_PHY_DRV_H */
48