Lines Matching refs:ar7_wdt
48 struct ar7_wdt { struct
69 static struct ar7_wdt *ar7_wdt; argument
75 WRITE_REG(ar7_wdt->kick_lock, 0x5555); in ar7_wdt_kick()
76 if ((READ_REG(ar7_wdt->kick_lock) & 3) == 1) { in ar7_wdt_kick()
77 WRITE_REG(ar7_wdt->kick_lock, 0xaaaa); in ar7_wdt_kick()
78 if ((READ_REG(ar7_wdt->kick_lock) & 3) == 3) { in ar7_wdt_kick()
79 WRITE_REG(ar7_wdt->kick, value); in ar7_wdt_kick()
88 WRITE_REG(ar7_wdt->prescale_lock, 0x5a5a); in ar7_wdt_prescale()
89 if ((READ_REG(ar7_wdt->prescale_lock) & 3) == 1) { in ar7_wdt_prescale()
90 WRITE_REG(ar7_wdt->prescale_lock, 0xa5a5); in ar7_wdt_prescale()
91 if ((READ_REG(ar7_wdt->prescale_lock) & 3) == 3) { in ar7_wdt_prescale()
92 WRITE_REG(ar7_wdt->prescale, value); in ar7_wdt_prescale()
101 WRITE_REG(ar7_wdt->change_lock, 0x6666); in ar7_wdt_change()
102 if ((READ_REG(ar7_wdt->change_lock) & 3) == 1) { in ar7_wdt_change()
103 WRITE_REG(ar7_wdt->change_lock, 0xbbbb); in ar7_wdt_change()
104 if ((READ_REG(ar7_wdt->change_lock) & 3) == 3) { in ar7_wdt_change()
105 WRITE_REG(ar7_wdt->change, value); in ar7_wdt_change()
114 WRITE_REG(ar7_wdt->disable_lock, 0x7777); in ar7_wdt_disable()
115 if ((READ_REG(ar7_wdt->disable_lock) & 3) == 1) { in ar7_wdt_disable()
116 WRITE_REG(ar7_wdt->disable_lock, 0xcccc); in ar7_wdt_disable()
117 if ((READ_REG(ar7_wdt->disable_lock) & 3) == 2) { in ar7_wdt_disable()
118 WRITE_REG(ar7_wdt->disable_lock, 0xdddd); in ar7_wdt_disable()
119 if ((READ_REG(ar7_wdt->disable_lock) & 3) == 3) { in ar7_wdt_disable()
120 WRITE_REG(ar7_wdt->disable, value); in ar7_wdt_disable()
270 ar7_wdt = devm_ioremap_resource(&pdev->dev, ar7_regs_wdt); in ar7_wdt_probe()
271 if (IS_ERR(ar7_wdt)) in ar7_wdt_probe()
272 return PTR_ERR(ar7_wdt); in ar7_wdt_probe()