Home
last modified time | relevance | path

Searched refs:g_wtdg_reg_base (Results 1 - 2 of 2) sorted by relevance

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/init/linux/
H A Dwtdg_init.c31 extern volatile void *g_wtdg_reg_base;
46 g_wtdg_reg_base = devm_ioremap_resource(&pdev->dev, mem); in hi_wdg_probe()
47 if (IS_ERR((void*)g_wtdg_reg_base)) { in hi_wdg_probe()
48 return PTR_ERR((void*)g_wtdg_reg_base); in hi_wdg_probe()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/wtdg/
H A Dhi_wtdg.c44 volatile void *g_wtdg_reg_base = NULL; variable
46 #define hiwdt_io_address(x) ((uintptr_t)g_wtdg_reg_base + (x) - HIWDT_BASE)
382 if (g_wtdg_reg_base == NULL) { in ptr_ioremap()
383 g_wtdg_reg_base = (volatile void *)osal_ioremap(HIWDT_BASE, 0x1000); /* 0x1000: watch dog reg length */ in ptr_ioremap()
384 if (g_wtdg_reg_base == NULL) { in ptr_ioremap()
442 osal_iounmap((void *)g_wtdg_reg_base, 0x1000); in watchdog_init()
444 g_wtdg_reg_base = NULL; in watchdog_init()
485 osal_iounmap((void *)g_wtdg_reg_base, 0x1000); in watchdog_exit()
487 g_wtdg_reg_base = NULL; in watchdog_exit()

Completed in 2 milliseconds