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>
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user