Lines Matching refs:wdg
375 void *cmd, struct sprd_adi_wdg *wdg) in sprd_adi_restart() argument
411 sprd_adi_read(sadi, wdg->rst_sts, &val); in sprd_adi_restart()
414 sprd_adi_write(sadi, wdg->rst_sts, val); in sprd_adi_restart()
417 sprd_adi_read(sadi, wdg->wdg_en, &val); in sprd_adi_restart()
419 sprd_adi_write(sadi, wdg->wdg_en, val); in sprd_adi_restart()
422 sprd_adi_read(sadi, wdg->wdg_clk, &val); in sprd_adi_restart()
424 sprd_adi_write(sadi, wdg->wdg_clk, val); in sprd_adi_restart()
427 sprd_adi_write(sadi, wdg->base + REG_WDG_LOCK, WDG_UNLOCK_KEY); in sprd_adi_restart()
429 sprd_adi_read(sadi, wdg->base + REG_WDG_CTRL, &val); in sprd_adi_restart()
431 sprd_adi_write(sadi, wdg->base + REG_WDG_CTRL, val); in sprd_adi_restart()
434 sprd_adi_write(sadi, wdg->base + REG_WDG_LOAD_HIGH, 0); in sprd_adi_restart()
435 sprd_adi_write(sadi, wdg->base + REG_WDG_LOAD_LOW, in sprd_adi_restart()
439 sprd_adi_read(sadi, wdg->base + REG_WDG_CTRL, &val); in sprd_adi_restart()
441 sprd_adi_write(sadi, wdg->base + REG_WDG_CTRL, val); in sprd_adi_restart()
444 sprd_adi_write(sadi, wdg->base + REG_WDG_LOCK, ~WDG_UNLOCK_KEY); in sprd_adi_restart()
455 struct sprd_adi_wdg wdg = { in sprd_adi_restart_sc9860() local
462 return sprd_adi_restart(this, mode, cmd, &wdg); in sprd_adi_restart_sc9860()