]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ti/ks2_evm/board_k2hk.c
ARM: keystone2: Cleanup PLL init code
[karo-tx-uboot.git] / board / ti / ks2_evm / board_k2hk.c
index 6fb3d2123df0a5183ec921f608735ab714f4e9e7..cb64934c24155488cbf699c13de05aea2c3f4347 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
-#include <asm/arch/emac_defs.h>
+#include <asm/ti-common/keystone_net.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -35,6 +35,10 @@ static struct pll_init_data core_pll_config[] = {
        CORE_PLL_1200,
 };
 
+s16 divn_val[16] = {
+       0, 0, 1, 4, 23, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
+};
+
 static struct pll_init_data tetris_pll_config[] = {
        TETRIS_PLL_800,
        TETRIS_PLL_1000,
@@ -100,3 +104,15 @@ int board_early_init_f(void)
        return 0;
 }
 #endif
+
+#ifdef CONFIG_SPL_BUILD
+static struct pll_init_data spl_pll_config[] = {
+       CORE_PLL_799,
+       TETRIS_PLL_500,
+};
+
+void spl_init_keystone_plls(void)
+{
+       init_plls(ARRAY_SIZE(spl_pll_config), spl_pll_config);
+}
+#endif