Lines Matching refs:mmio_addr

239 				     u32 mmio_addr,  in sp5100_tco_request_region()  argument
242 if (!devm_request_mem_region(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE, in sp5100_tco_request_region()
244 dev_dbg(dev, "MMIO address 0x%08x already in use\n", mmio_addr); in sp5100_tco_request_region()
248 return mmio_addr; in sp5100_tco_request_region()
252 u32 mmio_addr, in sp5100_tco_prepare_base() argument
258 dev_dbg(dev, "Got 0x%08x from SBResource_MMIO register\n", mmio_addr); in sp5100_tco_prepare_base()
260 if (!mmio_addr && !alt_mmio_addr) in sp5100_tco_prepare_base()
264 if (mmio_addr) in sp5100_tco_prepare_base()
265 mmio_addr = sp5100_tco_request_region(dev, mmio_addr, dev_name); in sp5100_tco_prepare_base()
267 if (!mmio_addr && alt_mmio_addr) in sp5100_tco_prepare_base()
268 mmio_addr = sp5100_tco_request_region(dev, alt_mmio_addr, dev_name); in sp5100_tco_prepare_base()
270 if (!mmio_addr) { in sp5100_tco_prepare_base()
275 tco->tcobase = devm_ioremap(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE); in sp5100_tco_prepare_base()
277 dev_err(dev, "MMIO address 0x%08x failed mapping\n", mmio_addr); in sp5100_tco_prepare_base()
278 devm_release_mem_region(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE); in sp5100_tco_prepare_base()
282 dev_info(dev, "Using 0x%08x for watchdog MMIO address\n", mmio_addr); in sp5100_tco_prepare_base()
352 u32 mmio_addr = 0, alt_mmio_addr = 0; in sp5100_tco_setupdevice_mmio() local
395 mmio_addr = EFCH_PM_WDT_ADDR; in sp5100_tco_setupdevice_mmio()
403 ret = sp5100_tco_prepare_base(tco, mmio_addr, alt_mmio_addr, dev_name); in sp5100_tco_setupdevice_mmio()
424 u32 mmio_addr = 0, val; in sp5100_tco_setupdevice() local
445 mmio_addr = sp5100_tco_read_pm_reg32(SP5100_PM_WATCHDOG_BASE) & in sp5100_tco_setupdevice()
464 mmio_addr = sp5100_tco_read_pm_reg32(SB800_PM_WATCHDOG_BASE) & in sp5100_tco_setupdevice()
478 mmio_addr = EFCH_PM_WDT_ADDR; in sp5100_tco_setupdevice()
489 ret = sp5100_tco_prepare_base(tco, mmio_addr, alt_mmio_addr, dev_name); in sp5100_tco_setupdevice()