summaryrefslogtreecommitdiff
path: root/include/sata.h
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2014-08-20 15:08:53 +0300
committerStefano Babic <sbabic@denx.de>2014-09-09 15:32:32 +0200
commitdc383dd58300e2430e9ad61f6aced2e2d42d16b7 (patch)
treec854e90dbc0d89bd3af647c1b26cfb34a9d5cf63 /include/sata.h
parent52658fda7abc4319ff7f8fe934d2e7c0a32202d7 (diff)
downloadu-boot-imx-dc383dd58300e2430e9ad61f6aced2e2d42d16b7.zip
u-boot-imx-dc383dd58300e2430e9ad61f6aced2e2d42d16b7.tar.gz
u-boot-imx-dc383dd58300e2430e9ad61f6aced2e2d42d16b7.tar.bz2
sata: dwc_ahsata: implement sata_port_status
Define the new common function sata_port_status() which can be used to query the sata driver for the state of ports, and implement it for dwc_ahsata. Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@ti.com> Cc: Marek Vasut <marex@denx.de> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Diffstat (limited to 'include/sata.h')
-rw-r--r--include/sata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sata.h b/include/sata.h
index c95dc56..38f4b4a 100644
--- a/include/sata.h
+++ b/include/sata.h
@@ -9,6 +9,7 @@ ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer);
int sata_initialize(void);
int __sata_initialize(void);
+int sata_port_status(int dev, int port);
extern block_dev_desc_t sata_dev_desc[];