]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
omap4: Move i2c clocks enable to enable_basic_clocks
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 27 Feb 2016 18:18:59 +0000 (19:18 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 19:12:47 +0000 (15:12 -0400)
I2C is often enabled withing the U-Boot SPL, thus those clocks are required to
be enabled early (especially when the bootrom doesn't enable them for us).

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
arch/arm/cpu/armv7/omap4/hw_data.c

index 1359b440de49a5f43ae6bd23cab2728a4872427f..1cc20728ee8382b63f1b4b9a321844a7cdb1639a 100644 (file)
@@ -355,6 +355,10 @@ void enable_basic_clocks(void)
                (*prcm)->cm_l4per_gptimer2_clkctrl,
                (*prcm)->cm_wkup_wdtimer2_clkctrl,
                (*prcm)->cm_l4per_uart3_clkctrl,
+               (*prcm)->cm_l4per_i2c1_clkctrl,
+               (*prcm)->cm_l4per_i2c2_clkctrl,
+               (*prcm)->cm_l4per_i2c3_clkctrl,
+               (*prcm)->cm_l4per_i2c4_clkctrl,
                0
        };
 
@@ -398,10 +402,6 @@ void enable_basic_uboot_clocks(void)
 
        u32 const clk_modules_explicit_en_essential[] = {
                (*prcm)->cm_l4per_mcspi1_clkctrl,
-               (*prcm)->cm_l4per_i2c1_clkctrl,
-               (*prcm)->cm_l4per_i2c2_clkctrl,
-               (*prcm)->cm_l4per_i2c3_clkctrl,
-               (*prcm)->cm_l4per_i2c4_clkctrl,
                (*prcm)->cm_l3init_hsusbhost_clkctrl,
                0
        };