static void fiq_wdt_func(void *arg, void *regs, void *svc_sp) { struct mpcore_wdt wdt; wdt.base = (void __iomem *)0xf000a600; if(*(volatile u32 *)(wdt.base + TWD_WDOG_INTSTAT)) { *(volatile u32 *)(wdt.base + TWD_WDOG_INTSTAT) =1 ; } aee_wdt_fiq_info(arg, regs, svc_sp); }
static void wdt_fiq(void *arg, void *regs, void *svc_sp) { unsigned int wdt_mode_val; struct wd_api*wd_api = NULL; get_wd_api(&wd_api); wdt_mode_val = DRV_Reg32(MTK_WDT_STATUS); DRV_WriteReg32(MTK_WDT_NONRST_REG, wdt_mode_val); #ifdef CONFIG_MTK_WD_KICKER aee_wdt_printf("\n kick=0x%08x,check=0x%08x \n",wd_api->wd_get_kick_bit(),wd_api->wd_get_check_bit()); #endif aee_wdt_fiq_info(arg, regs, svc_sp); }