mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-01 10:41:49 +02:00
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>
This commit is contained in:
parent
f8e87e73e4
commit
1486c90623
@ -50,8 +50,6 @@ struct blk_desc ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE];
|
|||||||
#define IDE_SPIN_UP_TIME_OUT 5000 /* 5 sec spin-up timeout */
|
#define IDE_SPIN_UP_TIME_OUT 5000 /* 5 sec spin-up timeout */
|
||||||
|
|
||||||
#ifdef CONFIG_IDE_RESET
|
#ifdef CONFIG_IDE_RESET
|
||||||
extern void ide_set_reset(int idereset);
|
|
||||||
|
|
||||||
static void ide_reset(void)
|
static void ide_reset(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -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,
|
ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
|
||||||
const void *buffer);
|
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 */
|
#endif /* _IDE_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user