summaryrefslogtreecommitdiffstats
path: root/include/ahci.h
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-08-24 10:10:50 -0500
committerTom Rini <trini@ti.com>2013-09-06 13:09:07 -0400
commit2bdb10dbf59f41ead73fb3fa69699de1b621f423 (patch)
tree3f736e8cbe7e0ce227dbd11c28f3028bf9280249 /include/ahci.h
parent796c2ebd6f17da605a05eb233c907e4d8330f751 (diff)
downloadblackbird-obmc-uboot-2bdb10dbf59f41ead73fb3fa69699de1b621f423.tar.gz
blackbird-obmc-uboot-2bdb10dbf59f41ead73fb3fa69699de1b621f423.zip
ahci: add defines for PORT_SCR_STAT register bits
Replace hard-coded register values with proper defines for PORT_SCR_STAT register. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include/ahci.h')
-rw-r--r--include/ahci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ahci.h b/include/ahci.h
index 78a8c55f7b..d76993ca2a 100644
--- a/include/ahci.h
+++ b/include/ahci.h
@@ -87,6 +87,11 @@
| PORT_IRQ_DMAS_FIS | PORT_IRQ_PIOS_FIS \
| PORT_IRQ_D2H_REG_FIS
+/* PORT_SCR_STAT bits */
+#define PORT_SCR_STAT_DET_MASK 0x3
+#define PORT_SCR_STAT_DET_COMINIT 0x1
+#define PORT_SCR_STAT_DET_PHYRDY 0x3
+
/* PORT_CMD bits */
#define PORT_CMD_ATAPI (1 << 24) /* Device is ATAPI */
#define PORT_CMD_LIST_ON (1 << 15) /* cmd list DMA engine running */
OpenPOWER on IntegriCloud