2 * K2L EVM : Board initialization
5 * Texas Instruments Incorporated, <www.ti.com>
7 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/ddr3.h>
12 #include <asm/arch/hardware.h>
13 #include <asm/ti-common/ti-aemif.h>
15 DECLARE_GLOBAL_DATA_PTR;
17 unsigned int external_clk[ext_clk_count] = {
18 [sys_clk] = 122880000,
19 [alt_core_clk] = 100000000,
21 [tetris_clk] = 122880000,
22 [ddr3_clk] = 100000000,
23 [pcie_clk] = 100000000,
24 [sgmii_clk] = 156250000,
25 [usb_clk] = 100000000,
28 static struct pll_init_data core_pll_config[] = {
34 static struct pll_init_data tetris_pll_config[] = {
42 static struct pll_init_data pa_pll_config =
45 #ifdef CONFIG_BOARD_EARLY_INIT_F
46 int board_early_init_f(void)
50 speed = get_max_dev_speed();
51 init_pll(&core_pll_config[speed]);
53 init_pll(&pa_pll_config);
55 speed = get_max_arm_speed();
56 init_pll(&tetris_pll_config[speed]);
62 #ifdef CONFIG_SPL_BUILD
63 static struct pll_init_data spl_pll_config[] = {
68 void spl_init_keystone_plls(void)
70 init_plls(ARRAY_SIZE(spl_pll_config), spl_pll_config);