Lines Matching refs:slave_pbase
116 unsigned long slave_pbase; member
122 if (paddr < sadi->slave_pbase || paddr > in sprd_adi_check_paddr()
123 (sadi->slave_pbase + ADI_SLAVE_ADDR_SIZE)) { in sprd_adi_check_paddr()
135 return (paddr - sadi->slave_pbase + sadi->slave_vbase); in sprd_adi_to_vaddr()
284 phy_reg = *(u32 *)t->rx_buf + sadi->slave_pbase; in sprd_adi_transfer_one()
303 phy_reg = *p++ + sadi->slave_pbase; in sprd_adi_transfer_one()
326 sprd_adi_read(sadi, sadi->slave_pbase + PMIC_RST_STATUS, &val); in sprd_adi_set_wdt_rst_mode()
328 sprd_adi_write(sadi, sadi->slave_pbase + PMIC_RST_STATUS, val); in sprd_adi_set_wdt_rst_mode()
369 sprd_adi_read(sadi, sadi->slave_pbase + PMIC_RST_STATUS, &val); in sprd_adi_restart_handler()
372 sprd_adi_write(sadi, sadi->slave_pbase + PMIC_RST_STATUS, val); in sprd_adi_restart_handler()
375 sprd_adi_read(sadi, sadi->slave_pbase + PMIC_MODULE_EN, &val); in sprd_adi_restart_handler()
377 sprd_adi_write(sadi, sadi->slave_pbase + PMIC_MODULE_EN, val); in sprd_adi_restart_handler()
380 sprd_adi_read(sadi, sadi->slave_pbase + PMIC_CLK_EN, &val); in sprd_adi_restart_handler()
382 sprd_adi_write(sadi, sadi->slave_pbase + PMIC_CLK_EN, val); in sprd_adi_restart_handler()
385 sprd_adi_write(sadi, sadi->slave_pbase + REG_WDG_LOCK, WDG_UNLOCK_KEY); in sprd_adi_restart_handler()
387 sprd_adi_read(sadi, sadi->slave_pbase + REG_WDG_CTRL, &val); in sprd_adi_restart_handler()
389 sprd_adi_write(sadi, sadi->slave_pbase + REG_WDG_CTRL, val); in sprd_adi_restart_handler()
392 sprd_adi_write(sadi, sadi->slave_pbase + REG_WDG_LOAD_HIGH, 0); in sprd_adi_restart_handler()
393 sprd_adi_write(sadi, sadi->slave_pbase + REG_WDG_LOAD_LOW, in sprd_adi_restart_handler()
397 sprd_adi_read(sadi, sadi->slave_pbase + REG_WDG_CTRL, &val); in sprd_adi_restart_handler()
399 sprd_adi_write(sadi, sadi->slave_pbase + REG_WDG_CTRL, val); in sprd_adi_restart_handler()
402 sprd_adi_write(sadi, sadi->slave_pbase + REG_WDG_LOCK, ~WDG_UNLOCK_KEY); in sprd_adi_restart_handler()
490 sadi->slave_pbase = res->start + ADI_SLAVE_OFFSET; in sprd_adi_probe()