]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-keystone/clock.c
ARM: allocate extra space for PSCI stack in secure section during link phase
[u-boot] / arch / arm / mach-keystone / clock.c
index 1ae3baf982a170829d896ce3b27370d264c976c6..b25db1e3fedefc1cce20fec1aa9eec75435bbdc1 100644 (file)
@@ -238,8 +238,11 @@ static int get_max_speed(u32 val, u32 speed_supported, int *spds)
                        return spds[speed];
        }
 
-       /* If no bit is set, use SPD800 */
-       return SPD800;
+       /* If no bit is set, return minimum speed */
+       if (cpu_is_k2g())
+               return SPD200;
+       else
+               return SPD800;
 }
 
 static inline u32 read_efuse_bootrom(void)