aboutsummaryrefslogtreecommitdiff
path: root/include/ide.h
diff options
context:
space:
mode:
authorSimon Glass2023-04-25 10:54:34 -0600
committerTom Rini2023-04-27 13:51:06 -0400
commit1486c906230ca61580a65421adb26a24f5128a4e (patch)
tree9308b9e588755b2c283ec8a4246117805c8c2565 /include/ide.h
parentf8e87e73e496d3f53307d5330c02185ee0b06131 (diff)
ide: Create a prototype for ide_set_reset()
This is used by a board so should be in the header file. Add it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/ide.h')
-rw-r--r--include/ide.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ide.h b/include/ide.h
index 8c0eb2a022f..b586ba3df4b 100644
--- a/include/ide.h
+++ b/include/ide.h
@@ -22,4 +22,14 @@ ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
const void *buffer);
+/**
+ * ide_set_reset() - Assert or de-assert reset for the IDE device
+ *
+ * This is provided by boards which need to reset the device through another
+ * means, e.g. a GPIO.
+ *
+ * @idereset: 1 to assert reset, 0 to de-assert it
+ */
+void ide_set_reset(int idereset);
+
#endif /* _IDE_H */