1 // SPDX-License-Identifier: GPL-2.0+
3 * K2E EVM : Board initialization
6 * Texas Instruments Incorporated, <www.ti.com>
11 #include <asm/arch/ddr3.h>
12 #include <asm/arch/hardware.h>
13 #include <asm/ti-common/keystone_net.h>
15 unsigned int get_external_clk(u32 clk)
17 unsigned int clk_freq;
40 static struct pll_init_data core_pll_config[NUM_SPDS] = {
41 [SPD800] = CORE_PLL_800,
42 [SPD850] = CORE_PLL_850,
43 [SPD1000] = CORE_PLL_1000,
44 [SPD1250] = CORE_PLL_1250,
45 [SPD1350] = CORE_PLL_1350,
46 [SPD1400] = CORE_PLL_1400,
47 [SPD1500] = CORE_PLL_1500,
50 /* DEV and ARM speed definitions as specified in DEVSPEED register */
51 int speeds[DEVSPEED_NUMSPDS] = {
67 0, 0, 1, 4, 23, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
70 static struct pll_init_data pa_pll_config =
73 struct pll_init_data *get_pll_init_data(int pll)
76 struct pll_init_data *data;
80 speed = get_max_dev_speed(speeds);
81 data = &core_pll_config[speed];
84 data = &pa_pll_config;
93 #if defined(CONFIG_MULTI_DTB_FIT)
94 int board_fit_config_name_match(const char *name)
96 if (!strcmp(name, "keystone-k2e-evm"))
103 #if defined(CONFIG_BOARD_EARLY_INIT_F)
104 int board_early_init_f(void)
112 #ifdef CONFIG_SPL_BUILD
113 void spl_init_keystone_plls(void)