Lines Matching refs:mmio_addr
243 u32 mmio_addr, in sp5100_tco_request_region() argument
246 if (!devm_request_mem_region(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE, in sp5100_tco_request_region()
248 dev_dbg(dev, "MMIO address 0x%08x already in use\n", mmio_addr); in sp5100_tco_request_region()
252 return mmio_addr; in sp5100_tco_request_region()
256 u32 mmio_addr, in sp5100_tco_prepare_base() argument
262 dev_dbg(dev, "Got 0x%08x from SBResource_MMIO register\n", mmio_addr); in sp5100_tco_prepare_base()
264 if (!mmio_addr && !alt_mmio_addr) in sp5100_tco_prepare_base()
268 if (mmio_addr) in sp5100_tco_prepare_base()
269 mmio_addr = sp5100_tco_request_region(dev, mmio_addr, dev_name); in sp5100_tco_prepare_base()
271 if (!mmio_addr && alt_mmio_addr) in sp5100_tco_prepare_base()
272 mmio_addr = sp5100_tco_request_region(dev, alt_mmio_addr, dev_name); in sp5100_tco_prepare_base()
274 if (!mmio_addr) { in sp5100_tco_prepare_base()
279 tco->tcobase = devm_ioremap(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE); in sp5100_tco_prepare_base()
281 dev_err(dev, "MMIO address 0x%08x failed mapping\n", mmio_addr); in sp5100_tco_prepare_base()
282 devm_release_mem_region(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE); in sp5100_tco_prepare_base()
286 dev_info(dev, "Using 0x%08x for watchdog MMIO address\n", mmio_addr); in sp5100_tco_prepare_base()
356 u32 mmio_addr = 0, alt_mmio_addr = 0; in sp5100_tco_setupdevice_mmio() local
399 mmio_addr = EFCH_PM_WDT_ADDR; in sp5100_tco_setupdevice_mmio()
407 ret = sp5100_tco_prepare_base(tco, mmio_addr, alt_mmio_addr, dev_name); in sp5100_tco_setupdevice_mmio()
428 u32 mmio_addr = 0, val; in sp5100_tco_setupdevice() local
449 mmio_addr = sp5100_tco_read_pm_reg32(SP5100_PM_WATCHDOG_BASE) & in sp5100_tco_setupdevice()
468 mmio_addr = sp5100_tco_read_pm_reg32(SB800_PM_WATCHDOG_BASE) & in sp5100_tco_setupdevice()
482 mmio_addr = EFCH_PM_WDT_ADDR; in sp5100_tco_setupdevice()
493 ret = sp5100_tco_prepare_base(tco, mmio_addr, alt_mmio_addr, dev_name); in sp5100_tco_setupdevice()