dsb();
pCRU_Reg->CRU_PLL_CON[pll_id][3] = PLL_RESET_RK3066B;
+ ddr_delayus(1);
pCRU_Reg->CRU_PLL_CON[pll_id][0] = NR_RK3066B(clkr) | NO_RK3066B(clkod);
pCRU_Reg->CRU_PLL_CON[pll_id][1] = NF_RK3066B(clkf);
// pCRU_Reg->CRU_PLL_CON[pll_id][2] = NB(clkf>>1);
n= pCRU_Reg->CRU_PLL_CON[0][0];
n= pPMU_Reg->PMU_WAKEUP_CFG[0];
n= *(volatile uint32_t *)SysSrv_DdrConf;
+ if(chip_rk3066b_flag == true)
+ {
+ n= pGRF_Reg_RK3066B->GRF_SOC_STATUS0;
+ }
+ else
+ {
+ n= pGRF_Reg->GRF_SOC_STATUS0;
+ }
dsb();
//enter config state
volatile unsigned int * temp=(volatile unsigned int *)SRAM_CODE_OFFSET;
/** 1. Make sure there is no host access */
- //flush_cache_all();
- //outer_flush_all();
+ flush_cache_all();
+ outer_flush_all();
//flush_tlb_all();
for(i=0;i<16;i++)
n= pCRU_Reg->CRU_PLL_CON[0][0];
n= pPMU_Reg->PMU_WAKEUP_CFG[0];
n= *(volatile uint32_t *)SysSrv_DdrConf;
+ if(chip_rk3066b_flag == true)
+ {
+ n= pGRF_Reg_RK3066B->GRF_SOC_STATUS0;
+ }
+ else
+ {
+ n= pGRF_Reg->GRF_SOC_STATUS0;
+ }
dsb();
ddr_selfrefresh_enter(0);