1*91f16700Schasinglulu /* 2*91f16700Schasinglulu * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. 3*91f16700Schasinglulu * 4*91f16700Schasinglulu * SPDX-License-Identifier: BSD-3-Clause 5*91f16700Schasinglulu */ 6*91f16700Schasinglulu 7*91f16700Schasinglulu #include <assert.h> 8*91f16700Schasinglulu 9*91f16700Schasinglulu #include <platform_def.h> 10*91f16700Schasinglulu 11*91f16700Schasinglulu #include <arch_helpers.h> 12*91f16700Schasinglulu #include <common/debug.h> 13*91f16700Schasinglulu #include <drivers/delay_timer.h> 14*91f16700Schasinglulu #include <lib/mmio.h> 15*91f16700Schasinglulu 16*91f16700Schasinglulu #include <dfs.h> 17*91f16700Schasinglulu #include <dram.h> 18*91f16700Schasinglulu #include <m0_ctl.h> 19*91f16700Schasinglulu #include <plat_private.h> 20*91f16700Schasinglulu #include <pmu.h> 21*91f16700Schasinglulu #include <rk3399_def.h> 22*91f16700Schasinglulu #include <secure.h> 23*91f16700Schasinglulu #include <soc.h> 24*91f16700Schasinglulu 25*91f16700Schasinglulu /* Table of regions to map using the MMU. */ 26*91f16700Schasinglulu const mmap_region_t plat_rk_mmap[] = { 27*91f16700Schasinglulu MAP_REGION_FLAT(DEV_RNG0_BASE, DEV_RNG0_SIZE, 28*91f16700Schasinglulu MT_DEVICE | MT_RW | MT_SECURE), 29*91f16700Schasinglulu MAP_REGION_FLAT(PMUSRAM_BASE, PMUSRAM_SIZE, 30*91f16700Schasinglulu MT_MEMORY | MT_RW | MT_SECURE), 31*91f16700Schasinglulu 32*91f16700Schasinglulu { 0 } 33*91f16700Schasinglulu }; 34*91f16700Schasinglulu 35*91f16700Schasinglulu /* The RockChip power domain tree descriptor */ 36*91f16700Schasinglulu const unsigned char rockchip_power_domain_tree_desc[] = { 37*91f16700Schasinglulu /* No of root nodes */ 38*91f16700Schasinglulu PLATFORM_SYSTEM_COUNT, 39*91f16700Schasinglulu /* No of children for the root node */ 40*91f16700Schasinglulu PLATFORM_CLUSTER_COUNT, 41*91f16700Schasinglulu /* No of children for the first cluster node */ 42*91f16700Schasinglulu PLATFORM_CLUSTER0_CORE_COUNT, 43*91f16700Schasinglulu /* No of children for the second cluster node */ 44*91f16700Schasinglulu PLATFORM_CLUSTER1_CORE_COUNT 45*91f16700Schasinglulu }; 46*91f16700Schasinglulu 47*91f16700Schasinglulu /* sleep data for pll suspend */ 48*91f16700Schasinglulu static struct deepsleep_data_s slp_data; 49*91f16700Schasinglulu 50*91f16700Schasinglulu /* sleep data that needs to be accessed from pmusram */ 51*91f16700Schasinglulu __pmusramdata struct pmu_sleep_data pmu_slp_data; 52*91f16700Schasinglulu 53*91f16700Schasinglulu static void set_pll_slow_mode(uint32_t pll_id) 54*91f16700Schasinglulu { 55*91f16700Schasinglulu if (pll_id == PPLL_ID) 56*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_PPLL_CON(3), PLL_SLOW_MODE); 57*91f16700Schasinglulu else 58*91f16700Schasinglulu mmio_write_32((CRU_BASE + 59*91f16700Schasinglulu CRU_PLL_CON(pll_id, 3)), PLL_SLOW_MODE); 60*91f16700Schasinglulu } 61*91f16700Schasinglulu 62*91f16700Schasinglulu static void set_pll_normal_mode(uint32_t pll_id) 63*91f16700Schasinglulu { 64*91f16700Schasinglulu if (pll_id == PPLL_ID) 65*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_PPLL_CON(3), PLL_NOMAL_MODE); 66*91f16700Schasinglulu else 67*91f16700Schasinglulu mmio_write_32(CRU_BASE + 68*91f16700Schasinglulu CRU_PLL_CON(pll_id, 3), PLL_NOMAL_MODE); 69*91f16700Schasinglulu } 70*91f16700Schasinglulu 71*91f16700Schasinglulu static void set_pll_bypass(uint32_t pll_id) 72*91f16700Schasinglulu { 73*91f16700Schasinglulu if (pll_id == PPLL_ID) 74*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + 75*91f16700Schasinglulu PMUCRU_PPLL_CON(3), PLL_BYPASS_MODE); 76*91f16700Schasinglulu else 77*91f16700Schasinglulu mmio_write_32(CRU_BASE + 78*91f16700Schasinglulu CRU_PLL_CON(pll_id, 3), PLL_BYPASS_MODE); 79*91f16700Schasinglulu } 80*91f16700Schasinglulu 81*91f16700Schasinglulu static void _pll_suspend(uint32_t pll_id) 82*91f16700Schasinglulu { 83*91f16700Schasinglulu set_pll_slow_mode(pll_id); 84*91f16700Schasinglulu set_pll_bypass(pll_id); 85*91f16700Schasinglulu } 86*91f16700Schasinglulu 87*91f16700Schasinglulu /** 88*91f16700Schasinglulu * disable_dvfs_plls - To suspend the specific PLLs 89*91f16700Schasinglulu * 90*91f16700Schasinglulu * When we close the center logic, the DPLL will be closed, 91*91f16700Schasinglulu * so we need to keep the ABPLL and switch to it to supply 92*91f16700Schasinglulu * clock for DDR during suspend, then we should not close 93*91f16700Schasinglulu * the ABPLL and exclude ABPLL_ID. 94*91f16700Schasinglulu */ 95*91f16700Schasinglulu void disable_dvfs_plls(void) 96*91f16700Schasinglulu { 97*91f16700Schasinglulu _pll_suspend(CPLL_ID); 98*91f16700Schasinglulu _pll_suspend(NPLL_ID); 99*91f16700Schasinglulu _pll_suspend(VPLL_ID); 100*91f16700Schasinglulu _pll_suspend(GPLL_ID); 101*91f16700Schasinglulu _pll_suspend(ALPLL_ID); 102*91f16700Schasinglulu } 103*91f16700Schasinglulu 104*91f16700Schasinglulu /** 105*91f16700Schasinglulu * disable_nodvfs_plls - To suspend the PPLL 106*91f16700Schasinglulu */ 107*91f16700Schasinglulu void disable_nodvfs_plls(void) 108*91f16700Schasinglulu { 109*91f16700Schasinglulu _pll_suspend(PPLL_ID); 110*91f16700Schasinglulu } 111*91f16700Schasinglulu 112*91f16700Schasinglulu /** 113*91f16700Schasinglulu * restore_pll - Copy PLL settings from memory to a PLL. 114*91f16700Schasinglulu * 115*91f16700Schasinglulu * This will copy PLL settings from an array in memory to the memory mapped 116*91f16700Schasinglulu * registers for a PLL. 117*91f16700Schasinglulu * 118*91f16700Schasinglulu * Note that: above the PLL exclude PPLL. 119*91f16700Schasinglulu * 120*91f16700Schasinglulu * pll_id: One of the values from enum plls_id 121*91f16700Schasinglulu * src: Pointer to the array of values to restore from 122*91f16700Schasinglulu */ 123*91f16700Schasinglulu static void restore_pll(int pll_id, uint32_t *src) 124*91f16700Schasinglulu { 125*91f16700Schasinglulu /* Nice to have PLL off while configuring */ 126*91f16700Schasinglulu mmio_write_32((CRU_BASE + CRU_PLL_CON(pll_id, 3)), PLL_SLOW_MODE); 127*91f16700Schasinglulu 128*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_PLL_CON(pll_id, 0), src[0] | REG_SOC_WMSK); 129*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_PLL_CON(pll_id, 1), src[1] | REG_SOC_WMSK); 130*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_PLL_CON(pll_id, 2), src[2]); 131*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_PLL_CON(pll_id, 4), src[4] | REG_SOC_WMSK); 132*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_PLL_CON(pll_id, 5), src[5] | REG_SOC_WMSK); 133*91f16700Schasinglulu 134*91f16700Schasinglulu /* Do PLL_CON3 since that will enable things */ 135*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_PLL_CON(pll_id, 3), src[3] | REG_SOC_WMSK); 136*91f16700Schasinglulu 137*91f16700Schasinglulu /* Wait for PLL lock done */ 138*91f16700Schasinglulu while ((mmio_read_32(CRU_BASE + CRU_PLL_CON(pll_id, 2)) & 139*91f16700Schasinglulu 0x80000000) == 0x0) 140*91f16700Schasinglulu ; 141*91f16700Schasinglulu } 142*91f16700Schasinglulu 143*91f16700Schasinglulu /** 144*91f16700Schasinglulu * save_pll - Copy PLL settings a PLL to memory 145*91f16700Schasinglulu * 146*91f16700Schasinglulu * This will copy PLL settings from the memory mapped registers for a PLL to 147*91f16700Schasinglulu * an array in memory. 148*91f16700Schasinglulu * 149*91f16700Schasinglulu * Note that: above the PLL exclude PPLL. 150*91f16700Schasinglulu * 151*91f16700Schasinglulu * pll_id: One of the values from enum plls_id 152*91f16700Schasinglulu * src: Pointer to the array of values to save to. 153*91f16700Schasinglulu */ 154*91f16700Schasinglulu static void save_pll(uint32_t *dst, int pll_id) 155*91f16700Schasinglulu { 156*91f16700Schasinglulu int i; 157*91f16700Schasinglulu 158*91f16700Schasinglulu for (i = 0; i < PLL_CON_COUNT; i++) 159*91f16700Schasinglulu dst[i] = mmio_read_32(CRU_BASE + CRU_PLL_CON(pll_id, i)); 160*91f16700Schasinglulu } 161*91f16700Schasinglulu 162*91f16700Schasinglulu /** 163*91f16700Schasinglulu * prepare_abpll_for_ddrctrl - Copy DPLL settings to ABPLL 164*91f16700Schasinglulu * 165*91f16700Schasinglulu * This will copy DPLL settings from the memory mapped registers for a PLL to 166*91f16700Schasinglulu * an array in memory. 167*91f16700Schasinglulu */ 168*91f16700Schasinglulu void prepare_abpll_for_ddrctrl(void) 169*91f16700Schasinglulu { 170*91f16700Schasinglulu save_pll(slp_data.plls_con[ABPLL_ID], ABPLL_ID); 171*91f16700Schasinglulu save_pll(slp_data.plls_con[DPLL_ID], DPLL_ID); 172*91f16700Schasinglulu 173*91f16700Schasinglulu restore_pll(ABPLL_ID, slp_data.plls_con[DPLL_ID]); 174*91f16700Schasinglulu } 175*91f16700Schasinglulu 176*91f16700Schasinglulu void restore_abpll(void) 177*91f16700Schasinglulu { 178*91f16700Schasinglulu restore_pll(ABPLL_ID, slp_data.plls_con[ABPLL_ID]); 179*91f16700Schasinglulu } 180*91f16700Schasinglulu 181*91f16700Schasinglulu void clk_gate_con_save(void) 182*91f16700Schasinglulu { 183*91f16700Schasinglulu uint32_t i = 0; 184*91f16700Schasinglulu 185*91f16700Schasinglulu for (i = 0; i < PMUCRU_GATE_COUNT; i++) 186*91f16700Schasinglulu slp_data.pmucru_gate_con[i] = 187*91f16700Schasinglulu mmio_read_32(PMUCRU_BASE + PMUCRU_GATE_CON(i)); 188*91f16700Schasinglulu 189*91f16700Schasinglulu for (i = 0; i < CRU_GATE_COUNT; i++) 190*91f16700Schasinglulu slp_data.cru_gate_con[i] = 191*91f16700Schasinglulu mmio_read_32(CRU_BASE + CRU_GATE_CON(i)); 192*91f16700Schasinglulu } 193*91f16700Schasinglulu 194*91f16700Schasinglulu void clk_gate_con_disable(void) 195*91f16700Schasinglulu { 196*91f16700Schasinglulu uint32_t i; 197*91f16700Schasinglulu 198*91f16700Schasinglulu for (i = 0; i < PMUCRU_GATE_COUNT; i++) 199*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_GATE_CON(i), REG_SOC_WMSK); 200*91f16700Schasinglulu 201*91f16700Schasinglulu for (i = 0; i < CRU_GATE_COUNT; i++) 202*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_GATE_CON(i), REG_SOC_WMSK); 203*91f16700Schasinglulu } 204*91f16700Schasinglulu 205*91f16700Schasinglulu void clk_gate_con_restore(void) 206*91f16700Schasinglulu { 207*91f16700Schasinglulu uint32_t i; 208*91f16700Schasinglulu 209*91f16700Schasinglulu for (i = 0; i < PMUCRU_GATE_COUNT; i++) 210*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_GATE_CON(i), 211*91f16700Schasinglulu REG_SOC_WMSK | slp_data.pmucru_gate_con[i]); 212*91f16700Schasinglulu 213*91f16700Schasinglulu for (i = 0; i < CRU_GATE_COUNT; i++) 214*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_GATE_CON(i), 215*91f16700Schasinglulu REG_SOC_WMSK | slp_data.cru_gate_con[i]); 216*91f16700Schasinglulu } 217*91f16700Schasinglulu 218*91f16700Schasinglulu static void set_plls_nobypass(uint32_t pll_id) 219*91f16700Schasinglulu { 220*91f16700Schasinglulu if (pll_id == PPLL_ID) 221*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_PPLL_CON(3), 222*91f16700Schasinglulu PLL_NO_BYPASS_MODE); 223*91f16700Schasinglulu else 224*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_PLL_CON(pll_id, 3), 225*91f16700Schasinglulu PLL_NO_BYPASS_MODE); 226*91f16700Schasinglulu } 227*91f16700Schasinglulu 228*91f16700Schasinglulu static void _pll_resume(uint32_t pll_id) 229*91f16700Schasinglulu { 230*91f16700Schasinglulu set_plls_nobypass(pll_id); 231*91f16700Schasinglulu set_pll_normal_mode(pll_id); 232*91f16700Schasinglulu } 233*91f16700Schasinglulu 234*91f16700Schasinglulu void set_pmu_rsthold(void) 235*91f16700Schasinglulu { 236*91f16700Schasinglulu uint32_t rstnhold_cofig0; 237*91f16700Schasinglulu uint32_t rstnhold_cofig1; 238*91f16700Schasinglulu 239*91f16700Schasinglulu pmu_slp_data.pmucru_rstnhold_con0 = mmio_read_32(PMUCRU_BASE + 240*91f16700Schasinglulu PMUCRU_RSTNHOLD_CON0); 241*91f16700Schasinglulu pmu_slp_data.pmucru_rstnhold_con1 = mmio_read_32(PMUCRU_BASE + 242*91f16700Schasinglulu PMUCRU_RSTNHOLD_CON1); 243*91f16700Schasinglulu rstnhold_cofig0 = BIT_WITH_WMSK(PRESETN_NOC_PMU_HOLD) | 244*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_INTMEM_PMU_HOLD) | 245*91f16700Schasinglulu BIT_WITH_WMSK(HRESETN_CM0S_PMU_HOLD) | 246*91f16700Schasinglulu BIT_WITH_WMSK(HRESETN_CM0S_NOC_PMU_HOLD) | 247*91f16700Schasinglulu BIT_WITH_WMSK(DRESETN_CM0S_PMU_HOLD) | 248*91f16700Schasinglulu BIT_WITH_WMSK(POESETN_CM0S_PMU_HOLD) | 249*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_TIMER_PMU_0_1_HOLD) | 250*91f16700Schasinglulu BIT_WITH_WMSK(RESETN_TIMER_PMU_0_HOLD) | 251*91f16700Schasinglulu BIT_WITH_WMSK(RESETN_TIMER_PMU_1_HOLD) | 252*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_UART_M0_PMU_HOLD) | 253*91f16700Schasinglulu BIT_WITH_WMSK(RESETN_UART_M0_PMU_HOLD) | 254*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_WDT_PMU_HOLD); 255*91f16700Schasinglulu rstnhold_cofig1 = BIT_WITH_WMSK(PRESETN_RKPWM_PMU_HOLD) | 256*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_PMUGRF_HOLD) | 257*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_SGRF_HOLD) | 258*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_GPIO0_HOLD) | 259*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_GPIO1_HOLD) | 260*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_CRU_PMU_HOLD) | 261*91f16700Schasinglulu BIT_WITH_WMSK(PRESETN_PVTM_PMU_HOLD); 262*91f16700Schasinglulu 263*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_RSTNHOLD_CON0, rstnhold_cofig0); 264*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_RSTNHOLD_CON1, rstnhold_cofig1); 265*91f16700Schasinglulu } 266*91f16700Schasinglulu 267*91f16700Schasinglulu void pmu_sgrf_rst_hld(void) 268*91f16700Schasinglulu { 269*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + CRU_PMU_RSTHOLD_CON(1), 270*91f16700Schasinglulu CRU_PMU_SGRF_RST_HOLD); 271*91f16700Schasinglulu } 272*91f16700Schasinglulu 273*91f16700Schasinglulu /* 274*91f16700Schasinglulu * When system reset in running state, we want the cpus to be reboot 275*91f16700Schasinglulu * from maskrom (system reboot), 276*91f16700Schasinglulu * the pmusgrf reset-hold bits needs to be released. 277*91f16700Schasinglulu * When system wake up from system deep suspend, some soc will be reset 278*91f16700Schasinglulu * when waked up, 279*91f16700Schasinglulu * we want the bootcpu to be reboot from pmusram, 280*91f16700Schasinglulu * the pmusgrf reset-hold bits needs to be held. 281*91f16700Schasinglulu */ 282*91f16700Schasinglulu __pmusramfunc void pmu_sgrf_rst_hld_release(void) 283*91f16700Schasinglulu { 284*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + CRU_PMU_RSTHOLD_CON(1), 285*91f16700Schasinglulu CRU_PMU_SGRF_RST_RLS); 286*91f16700Schasinglulu } 287*91f16700Schasinglulu 288*91f16700Schasinglulu __pmusramfunc void restore_pmu_rsthold(void) 289*91f16700Schasinglulu { 290*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_RSTNHOLD_CON0, 291*91f16700Schasinglulu pmu_slp_data.pmucru_rstnhold_con0 | REG_SOC_WMSK); 292*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + PMUCRU_RSTNHOLD_CON1, 293*91f16700Schasinglulu pmu_slp_data.pmucru_rstnhold_con1 | REG_SOC_WMSK); 294*91f16700Schasinglulu } 295*91f16700Schasinglulu 296*91f16700Schasinglulu /** 297*91f16700Schasinglulu * enable_dvfs_plls - To resume the specific PLLs 298*91f16700Schasinglulu * 299*91f16700Schasinglulu * Please see the comment at the disable_dvfs_plls() 300*91f16700Schasinglulu * we don't suspend the ABPLL, so don't need resume 301*91f16700Schasinglulu * it too. 302*91f16700Schasinglulu */ 303*91f16700Schasinglulu void enable_dvfs_plls(void) 304*91f16700Schasinglulu { 305*91f16700Schasinglulu _pll_resume(ALPLL_ID); 306*91f16700Schasinglulu _pll_resume(GPLL_ID); 307*91f16700Schasinglulu _pll_resume(VPLL_ID); 308*91f16700Schasinglulu _pll_resume(NPLL_ID); 309*91f16700Schasinglulu _pll_resume(CPLL_ID); 310*91f16700Schasinglulu } 311*91f16700Schasinglulu 312*91f16700Schasinglulu /** 313*91f16700Schasinglulu * enable_nodvfs_plls - To resume the PPLL 314*91f16700Schasinglulu */ 315*91f16700Schasinglulu void enable_nodvfs_plls(void) 316*91f16700Schasinglulu { 317*91f16700Schasinglulu _pll_resume(PPLL_ID); 318*91f16700Schasinglulu } 319*91f16700Schasinglulu 320*91f16700Schasinglulu void soc_global_soft_reset_init(void) 321*91f16700Schasinglulu { 322*91f16700Schasinglulu mmio_write_32(PMUCRU_BASE + CRU_PMU_RSTHOLD_CON(1), 323*91f16700Schasinglulu CRU_PMU_SGRF_RST_RLS); 324*91f16700Schasinglulu 325*91f16700Schasinglulu mmio_clrbits_32(CRU_BASE + CRU_GLB_RST_CON, 326*91f16700Schasinglulu CRU_PMU_WDTRST_MSK | CRU_PMU_FIRST_SFTRST_MSK); 327*91f16700Schasinglulu } 328*91f16700Schasinglulu 329*91f16700Schasinglulu void __dead2 soc_global_soft_reset(void) 330*91f16700Schasinglulu { 331*91f16700Schasinglulu pmu_power_domains_on(); 332*91f16700Schasinglulu set_pll_slow_mode(VPLL_ID); 333*91f16700Schasinglulu set_pll_slow_mode(NPLL_ID); 334*91f16700Schasinglulu set_pll_slow_mode(GPLL_ID); 335*91f16700Schasinglulu set_pll_slow_mode(CPLL_ID); 336*91f16700Schasinglulu set_pll_slow_mode(PPLL_ID); 337*91f16700Schasinglulu set_pll_slow_mode(ABPLL_ID); 338*91f16700Schasinglulu set_pll_slow_mode(ALPLL_ID); 339*91f16700Schasinglulu 340*91f16700Schasinglulu dsb(); 341*91f16700Schasinglulu 342*91f16700Schasinglulu mmio_write_32(CRU_BASE + CRU_GLB_SRST_FST, GLB_SRST_FST_CFG_VAL); 343*91f16700Schasinglulu 344*91f16700Schasinglulu /* 345*91f16700Schasinglulu * Maybe the HW needs some times to reset the system, 346*91f16700Schasinglulu * so we do not hope the core to execute valid codes. 347*91f16700Schasinglulu */ 348*91f16700Schasinglulu while (1) 349*91f16700Schasinglulu ; 350*91f16700Schasinglulu } 351*91f16700Schasinglulu 352*91f16700Schasinglulu void plat_rockchip_soc_init(void) 353*91f16700Schasinglulu { 354*91f16700Schasinglulu secure_timer_init(); 355*91f16700Schasinglulu secure_sgrf_init(); 356*91f16700Schasinglulu secure_sgrf_ddr_rgn_init(); 357*91f16700Schasinglulu soc_global_soft_reset_init(); 358*91f16700Schasinglulu plat_rockchip_gpio_init(); 359*91f16700Schasinglulu m0_init(); 360*91f16700Schasinglulu dram_init(); 361*91f16700Schasinglulu dram_dfs_init(); 362*91f16700Schasinglulu } 363