mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
refactor(mipi_dsi): remove unused LL functions
MIPI DSI PHY reference clock is controlled in hp_sys_clkrst register
This commit is contained in:
@@ -25,6 +25,17 @@ typedef enum {
|
||||
MIPI_DSI_LL_FLOW_CONTROLLER_BRIDGE, ///< DSI bridge is the flow controller
|
||||
} mipi_dsi_ll_flow_controller_t;
|
||||
|
||||
/**
|
||||
* @brief Force enable the register clock for the DSI bridge
|
||||
*
|
||||
* @param dev Pointer to the DSI bridge controller register base address
|
||||
* @param en true to enable, false to disable
|
||||
*/
|
||||
static inline void mipi_dsi_brg_ll_force_enable_reg_clock(dsi_brg_dev_t *dev, bool en)
|
||||
{
|
||||
dev->clk_en.clk_en = en;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Enable the DSI bridge
|
||||
*
|
||||
|
@@ -37,30 +37,6 @@ static inline void _mipi_dsi_ll_enable_bus_clock(int group_id, bool enable)
|
||||
/// the critical section needs to declare the __DECLARE_RCC_ATOMIC_ENV variable in advance
|
||||
#define mipi_dsi_ll_enable_bus_clock(...) (void)__DECLARE_RCC_ATOMIC_ENV; _mipi_dsi_ll_enable_bus_clock(__VA_ARGS__)
|
||||
|
||||
/**
|
||||
* @brief Enable the clock for MIPI DSI host
|
||||
*
|
||||
* @param group_id Group ID
|
||||
* @param en true to enable, false to disable
|
||||
*/
|
||||
static inline void mipi_dsi_ll_enable_host_clock(int group_id, bool en)
|
||||
{
|
||||
(void)group_id;
|
||||
MIPI_DSI_BRIDGE.clk_en.clk_en = en;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Enable the config clock for MIPI DSI host
|
||||
*
|
||||
* @param group_id Group ID
|
||||
* @param en true to enable, false to disable
|
||||
*/
|
||||
static inline void mipi_dsi_ll_enable_host_config_clock(int group_id, bool en)
|
||||
{
|
||||
(void)group_id;
|
||||
MIPI_DSI_BRIDGE.host_ctrl.dsi_cfg_ref_clk_en = en;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reset the MIPI DSI module
|
||||
*
|
||||
|
Reference in New Issue
Block a user