| // SPDX-License-Identifier: GPL-2.0+ |
| * lixinde <lixinde@phytium.com.cn> |
| * weichangzheng <weichangzheng@phytium.com.cn> |
| #include <linux/arm-smccc.h> |
| } __attribute((aligned(4))); |
| struct pll_config const pll_base_info = { |
| .magic = PARAMETER_PLL_MAGIC, |
| .core_pll = 2300, /*MHz*/ |
| u32 get_reset_source(void) |
| struct arm_smccc_res res; |
| arm_smccc_smc(CPU_GET_RST_SOURCE, 0, 0, 0, 0, 0, 0, 0, &res); |
| struct arm_smccc_res res; |
| memcpy(buffer, &pll_base_info, sizeof(pll_base_info)); |
| arm_smccc_smc(CPU_INIT_PLL, 0, (u64)buffer, 0, 0, 0, 0, 0, &res); |
| panic("PLL init failed :0x%lx\n", res.a0); |
| rst = get_reset_source(); |
| case CPU_RESET_WATCH_DOG: |
| panic("other reset source\n"); |