imx: clock: gate clk before changing pix clk mux
The LCDIF Pixel clock mux is not glitchless, so need to gate before changing mux. Also change enable_lcdif_clock prototype with a new input parameter to indicate disable or enable. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
@@ -504,7 +504,7 @@ static iomux_v3_cfg_t const lcd_pads[] = {
|
||||
|
||||
static int setup_lcd(void)
|
||||
{
|
||||
enable_lcdif_clock(LCDIF1_BASE_ADDR);
|
||||
enable_lcdif_clock(LCDIF1_BASE_ADDR, 1);
|
||||
|
||||
imx_iomux_v3_setup_multiple_pads(lcd_pads, ARRAY_SIZE(lcd_pads));
|
||||
|
||||
|
||||
@@ -600,7 +600,7 @@ static iomux_v3_cfg_t const lcd_pads[] = {
|
||||
|
||||
static int setup_lcd(void)
|
||||
{
|
||||
enable_lcdif_clock(LCDIF1_BASE_ADDR);
|
||||
enable_lcdif_clock(LCDIF1_BASE_ADDR, 1);
|
||||
|
||||
imx_iomux_v3_setup_multiple_pads(lcd_pads, ARRAY_SIZE(lcd_pads));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user