diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2014-11-21 12:47:24 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-11-24 12:00:00 +0100 |
commit | d957c28a7eb0e5a28e9541a64ab3536831d63ec5 (patch) | |
tree | bd855ddf27f74c7f17c1193793649fb6eef0dc99 /include/sata.h | |
parent | 10ee8ecafbb4405ac77f6df081325630617aa7cd (diff) | |
download | u-boot-d957c28a7eb0e5a28e9541a64ab3536831d63ec5.zip u-boot-d957c28a7eb0e5a28e9541a64ab3536831d63ec5.tar.gz u-boot-d957c28a7eb0e5a28e9541a64ab3536831d63ec5.tar.bz2 |
cmd_sata: implement sata stop command
Implement sata stop command.
This introduces the __sata_stop() weak function, which mirrors
the weak __sata_initialize() function, giving users the option of
undoing the custom steps performed in overrides of sata_initialize().
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Cc: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/sata.h')
-rw-r--r-- | include/sata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sata.h b/include/sata.h index c2bbe1a..fa61da8 100644 --- a/include/sata.h +++ b/include/sata.h @@ -10,6 +10,8 @@ ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer); int sata_initialize(void); int __sata_initialize(void); +int sata_stop(void); +int __sata_stop(void); int sata_port_status(int dev, int port); extern block_dev_desc_t sata_dev_desc[]; |