1 // SPDX-License-Identifier: GPL-2.0+
11 #include <linux/arm-smccc.h>
27 } __attribute((aligned(4)));
29 struct pll_config const pll_base_info = {
30 .magic = PARAMETER_PLL_MAGIC,
33 .core_pll = 2300, /*MHz*/
34 .lmu_pll = 667, /*MHz*/
37 u32 get_reset_source(void)
39 struct arm_smccc_res res;
41 arm_smccc_smc(CPU_GET_RST_SOURCE, 0, 0, 0, 0, 0, 0, 0, &res);
48 struct arm_smccc_res res;
50 memcpy(buffer, &pll_base_info, sizeof(pll_base_info));
51 arm_smccc_smc(CPU_INIT_PLL, 0, (u64)buffer, 0, 0, 0, 0, 0, &res);
53 panic("PLL init failed :0x%lx\n", res.a0);
56 void check_reset(void)
60 rst = get_reset_source();
63 case CPU_RESET_POWER_ON:
68 case CPU_RESET_WATCH_DOG:
71 panic("other reset source\n");