/*TIMER_ACPU_OSA_ID:和caixi确认,后续可拿掉*/ void BSP_StartHardTimer(u32 value) { writel(HARD_TIMER_DISABLE,TIMER_CONTROLREG(HI_TIMER_18_REGBASE_ADDR_VIRT)); writel(value,TIMER_LOADCOUNT(HI_TIMER_18_REGBASE_ADDR_VIRT)); writel(HARD_TIMER_ENABLE,TIMER_CONTROLREG(HI_TIMER_18_REGBASE_ADDR_VIRT)); return; }
/*TIMER_ACPU_OSA_ID:和caixi确认,后续可拿掉*/ void BSP_StartHardTimer(unsigned int value) { writel(HARD_TIMER_DISABLE,(volatile void *)TIMER_CONTROLREG(HI_TIMER_18_REGBASE_ADDR_VIRT)); writel(value,(volatile void *)TIMER_LOADCOUNT(HI_TIMER_18_REGBASE_ADDR_VIRT));/*lint !e516 */ writel(HARD_TIMER_ENABLE,(volatile void *)TIMER_CONTROLREG(HI_TIMER_18_REGBASE_ADDR_VIRT)); return; }