summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-11-10 12:36:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-23 10:23:38 +0100
commitd9ba9c92b72b1c795da524becd41859450aafc1a (patch)
treefea51c336a23f602adda2036f64a584ebd914c59 /include
parent97a92f0d86e74dfe153c30ecefc480e0c7e08569 (diff)
downloadbarebox-d9ba9c92b72b1c795da524becd41859450aafc1a.tar.gz
barebox-d9ba9c92b72b1c795da524becd41859450aafc1a.tar.xz
reset: Add gpio reset support
If a device has the reset-gpios property we can support this through the reset controller API, so drivers do not have to open code the support for this property each time themselves as done a few dozen times in the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/reset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/reset.h b/include/linux/reset.h
index 3f810bded8..be0d1bb5a6 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -15,6 +15,8 @@ void reset_control_put(struct reset_control *rstc);
int __must_check device_reset(struct device_d *dev);
+int __must_check device_reset_us(struct device_d *dev, int us);
+
#else
static inline int reset_control_reset(struct reset_control *rstc)
@@ -40,6 +42,12 @@ static inline void reset_control_put(struct reset_control *rstc)
WARN_ON(1);
}
+static inline int device_reset_us(struct device_d *dev, int us)
+{
+ WARN_ON(1);
+ return 0;
+}
+
#endif /* CONFIG_RESET_CONTROLLER */
#endif