[U-Boot] [PATCH 2/5] imx-common: Factor out get_ahb_clk()

Fabio Estevam festevam at gmail.com
Sun Apr 29 18:26:01 CEST 2012


Dirk,

On Sun, Apr 29, 2012 at 11:54 AM, Fabio Estevam <festevam at gmail.com> wrote:

> Thanks for testing it. I found one mistake and will submit a fix shortly.

Here is one issue I found:

--- a/arch/arm/cpu/armv7/imx-common/cpu.c
+++ b/arch/arm/cpu/armv7/imx-common/cpu.c
@@ -147,6 +147,4 @@ u32 get_ahb_clk(void)
        ahb_podf = reg >> MXC_CCM_CBCDR_AHB_PODF_OFFSET;

        return get_periph_clk() / (ahb_podf + 1);
-
-       return 0;
 }

This should be fixed, but it seems it does not explain the problem you
are seeing. We need to check whether get_ahb_clk() is using the weak
definition of get_periph_clk() instead the one from clock.c.

Regards,

Fabio Estevam


More information about the U-Boot mailing list