imx27: commit missed patch for workaround for ENGcm11563
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Jul 2014 10:18:52 +0000 (12:18 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Jul 2014 10:18:52 +0000 (12:18 +0200)
packages/hal/arm/mx27/var/v2_0/src/cmds.c

index fe9f767..e183995 100644 (file)
@@ -89,6 +89,12 @@ extern int sys_ver;
 
 #define MXC_PERCLK_NUM  4
 
+#ifdef CYGOPT_MX27_WORKAROUND_ENGcm11563
+#define avoid_arm_src 1
+#else
+#define avoid_arm_src 0
+#endif
+
 RedBoot_cmd("clock",
                        "Setup/Display clock (max AHB=133MHz, max IPG=66.5MHz)\nSyntax:",
                        "[<core clock in MHz> [:<AHB-to-core divider>[:<IPG-to-AHB divider>]]]\n\n"
@@ -220,7 +226,7 @@ int configure_clock(u32 ref, u32 core_clk, u32 ahb_div, u32 ipg_div)
                pll = core_clk;
                nfc_div_factor = 1;
        } else {
-               if (core_clk > 266 * SZ_DEC_1M) {
+               if (!avoid_arm_src && core_clk > 266 * SZ_DEC_1M) {
                        pll = core_clk;
                        arm_src = 1;
                } else {