diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2015-07-28 14:16:43 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-12 20:47:52 -0400 |
commit | c321a2362463ce54ae73ef59bee4b620d9f26acf (patch) | |
tree | 5345d954cc31eae318282f05a6c4ac88d10262fd /board | |
parent | aeabe652bbfd1ed11e0e0eebb46812afdb2e9401 (diff) |
ARM: keystone2: Cleanup PLL init code
There are two types of PLL for all keystone platforms:
Main PLL, Secondary PLL. Instead of duplicating the same definition
for each secondary PLL, have a common function which does
initialization for both PLLs. And also add proper register
definitions.
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/ti/ks2_evm/board.c | 1 | ||||
-rw-r--r-- | board/ti/ks2_evm/board_k2e.c | 4 | ||||
-rw-r--r-- | board/ti/ks2_evm/board_k2hk.c | 4 | ||||
-rw-r--r-- | board/ti/ks2_evm/board_k2l.c | 4 |
4 files changed, 12 insertions, 1 deletions
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 0cefb340440..859a26011c4 100644 --- a/board/ti/ks2_evm/board.c +++ b/board/ti/ks2_evm/board.c @@ -80,7 +80,6 @@ int board_eth_init(bd_t *bis) return -1; if (psc_enable_module(KS2_LPSC_CRYPTO)) return -1; - pass_pll_pa_clk_enable(); port_num = get_num_eth_ports(); diff --git a/board/ti/ks2_evm/board_k2e.c b/board/ti/ks2_evm/board_k2e.c index 43dfc48a53d..98acc96e1c1 100644 --- a/board/ti/ks2_evm/board_k2e.c +++ b/board/ti/ks2_evm/board_k2e.c @@ -36,6 +36,10 @@ static struct pll_init_data core_pll_config[] = { CORE_PLL_1500, }; +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 pa_pll_config = PASS_PLL_1000; diff --git a/board/ti/ks2_evm/board_k2hk.c b/board/ti/ks2_evm/board_k2hk.c index ed181f44b89..cb64934c241 100644 --- a/board/ti/ks2_evm/board_k2hk.c +++ b/board/ti/ks2_evm/board_k2hk.c @@ -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, diff --git a/board/ti/ks2_evm/board_k2l.c b/board/ti/ks2_evm/board_k2l.c index 729a1932395..2c433ee01a7 100644 --- a/board/ti/ks2_evm/board_k2l.c +++ b/board/ti/ks2_evm/board_k2l.c @@ -31,6 +31,10 @@ static struct pll_init_data core_pll_config[] = { CORE_PLL_1198, }; +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_799, TETRIS_PLL_1000, |