]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx27: add i2c clock
authortrem <tremyfr@yahoo.fr>
Fri, 14 Jun 2013 16:21:22 +0000 (18:21 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 26 Jun 2013 15:34:21 +0000 (17:34 +0200)
Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org>
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
arch/arm/cpu/arm926ejs/mx27/generic.c
arch/arm/include/asm/arch-mx27/clock.h

index bffbadd7e2ce5cda6e338431af6b2f8873eb6f55..a9a13cb283bf4ff268679128a6318e3261506e20 100644 (file)
@@ -159,6 +159,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
        switch (clk) {
        case MXC_ARM_CLK:
                return imx_get_armclk();
+       case MXC_I2C_CLK:
+               return imx_get_ahbclk()/2;
        case MXC_UART_CLK:
                return imx_get_perclk1();
        case MXC_FEC_CLK:
index fd062d3e896ac687798b5c8418bf383e6dc1dc93..2b03a4130aa77604de42af3298042f4423b00e96 100644 (file)
@@ -26,6 +26,7 @@
 
 enum mxc_clock {
        MXC_ARM_CLK,
+       MXC_I2C_CLK,
        MXC_UART_CLK,
        MXC_ESDHC_CLK,
        MXC_FEC_CLK,