summaryrefslogtreecommitdiff
path: root/board/ti/ks2_evm/board_k2hk.c
diff options
context:
space:
mode:
authorHao Zhang <hzhang@ti.com>2014-10-22 16:32:31 +0300
committerTom Rini <trini@ti.com>2014-10-23 11:27:05 -0400
commit5ec66b140afff89c3ee5abde4a9eb4c0963c918c (patch)
tree534a8e92fb1f1a277af0f51fd512310933aafdf2 /board/ti/ks2_evm/board_k2hk.c
parentbc45d5729fbec157370b826156cf45ce78471096 (diff)
ARM: keystone2: spl: move board specific code
The initialization of PLLs is a part of board specific code, so move it appropriate places. Acked-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Hao Zhang <hzhang@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Diffstat (limited to 'board/ti/ks2_evm/board_k2hk.c')
-rw-r--r--board/ti/ks2_evm/board_k2hk.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/ti/ks2_evm/board_k2hk.c b/board/ti/ks2_evm/board_k2hk.c
index 6fb3d2123d..d7dd29281c 100644
--- a/board/ti/ks2_evm/board_k2hk.c
+++ b/board/ti/ks2_evm/board_k2hk.c
@@ -100,3 +100,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