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