fix(dsi): enable dsi phy cfg clk

This commit is contained in:
Chen Jichang
2025-09-23 18:12:00 +08:00
parent 22383e6be8
commit 40ebbc279f

View File

@@ -46,6 +46,10 @@ esp_err_t esp_lcd_new_dsi_bus(const esp_lcd_dsi_bus_config_t *bus_config, esp_lc
#endif
}
ESP_GOTO_ON_ERROR(esp_clk_tree_enable_src((soc_module_clk_t)phy_clk_src, true), err, TAG, "clock source enable failed");
// always use the default clock source for the DSI PHY configuration
ESP_GOTO_ON_ERROR(esp_clk_tree_enable_src((soc_module_clk_t)MIPI_DSI_PHY_CFG_CLK_SRC_DEFAULT, true), err, TAG, "clock source enable failed");
// enable the clock source for DSI PHY
PERIPH_RCC_ATOMIC() {
// set the DSI PHY configuration clock