2 * K2G EVM : Board initialization
5 * Texas Instruments Incorporated, <www.ti.com>
7 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/clock.h>
13 #define SYS_CLK 24000000
15 unsigned int external_clk
[ext_clk_count
] = {
18 [tetris_clk
] = SYS_CLK
,
19 [ddr3a_clk
] = SYS_CLK
,
23 static struct pll_init_data main_pll_config
= {MAIN_PLL
, 100, 1, 4};
24 static struct pll_init_data tetris_pll_config
= {TETRIS_PLL
, 100, 1, 4};
25 static struct pll_init_data uart_pll_config
= {UART_PLL
, 64, 1, 4};
26 static struct pll_init_data nss_pll_config
= {NSS_PLL
, 250, 3, 2};
27 static struct pll_init_data ddr3_pll_config
= {DDR3A_PLL
, 250, 3, 10};
29 struct pll_init_data
*get_pll_init_data(int pll
)
31 struct pll_init_data
*data
= NULL
;
35 data
= &main_pll_config
;
38 data
= &tetris_pll_config
;
41 data
= &nss_pll_config
;
44 data
= &uart_pll_config
;
47 data
= &ddr3_pll_config
;
57 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
60 #ifdef CONFIG_BOARD_EARLY_INIT_F
61 int board_early_init_f(void)
71 #ifdef CONFIG_SPL_BUILD
72 void spl_init_keystone_plls(void)