diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2017-08-11 13:02:19 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2017-10-18 15:51:02 +0200 |
commit | adf20d7ce7c3591e049910c7760edd9c7da4a246 (patch) | |
tree | c4fa577603af82e91fdc650ecc275d6362dd311b /drivers/reset/reset-simple.h | |
parent | e13c205ac358d4c956c36572b6b660b9e45b3bda (diff) |
reset: socfpga: use the reset-simple driver
Add reset line status readback, inverted status support, and socfpga
device tree quirks to the simple reset driver, and use it to replace
the socfpga driver.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/reset-simple.h')
-rw-r--r-- | drivers/reset/reset-simple.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/reset/reset-simple.h b/drivers/reset/reset-simple.h index 39af2014b5f1..8a496022baef 100644 --- a/drivers/reset/reset-simple.h +++ b/drivers/reset/reset-simple.h @@ -28,12 +28,16 @@ * @active_low: if true, bits are cleared to assert the reset. Otherwise, bits * are set to assert the reset. Note that this says nothing about * the voltage level of the actual reset line. + * @status_active_low: if true, bits read back as cleared while the reset is + * asserted. Otherwise, bits read back as set while the + * reset is asserted. */ struct reset_simple_data { spinlock_t lock; void __iomem *membase; struct reset_controller_dev rcdev; bool active_low; + bool status_active_low; }; extern const struct reset_control_ops reset_simple_ops; |