summaryrefslogtreecommitdiff
path: root/drivers/phy/marvell/sata.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-09-27 11:40:56 -0400
committerTom Rini <trini@konsulko.com>2016-09-27 11:40:56 -0400
commit6d5565608f385b89f528ecf5680410cdc6cf63e9 (patch)
tree9403a25d40b8546e1e8a77fbe70da67c5ed4ade0 /drivers/phy/marvell/sata.h
parente120c848bac77cfcc88183541c2e966e625a7840 (diff)
parentb28d29f784f5cc33c92e291d35eda603ea4e58e3 (diff)
downloadu-boot-imx-6d5565608f385b89f528ecf5680410cdc6cf63e9.zip
u-boot-imx-6d5565608f385b89f528ecf5680410cdc6cf63e9.tar.gz
u-boot-imx-6d5565608f385b89f528ecf5680410cdc6cf63e9.tar.bz2
Merge git://www.denx.de/git/u-boot-marvell
Diffstat (limited to 'drivers/phy/marvell/sata.h')
-rw-r--r--drivers/phy/marvell/sata.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/phy/marvell/sata.h b/drivers/phy/marvell/sata.h
new file mode 100644
index 0000000..be2ba54
--- /dev/null
+++ b/drivers/phy/marvell/sata.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2015-2016 Marvell International Ltd.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef _SATA_H_
+#define _SATA_H_
+
+/* SATA3 Unit address */
+#define SATA3_VENDOR_ADDRESS 0xA0
+#define SATA3_VENDOR_ADDR_OFSSET 0
+#define SATA3_VENDOR_ADDR_MASK (0xFFFFFFFF << SATA3_VENDOR_ADDR_OFSSET)
+#define SATA3_VENDOR_DATA 0xA4
+
+#define SATA_CONTROL_REG 0x0
+#define SATA3_CTRL_SATA0_PD_OFFSET 6
+#define SATA3_CTRL_SATA0_PD_MASK (1 << SATA3_CTRL_SATA0_PD_OFFSET)
+#define SATA3_CTRL_SATA1_PD_OFFSET 14
+#define SATA3_CTRL_SATA1_PD_MASK (1 << SATA3_CTRL_SATA1_PD_OFFSET)
+#define SATA3_CTRL_SATA1_ENABLE_OFFSET 22
+#define SATA3_CTRL_SATA1_ENABLE_MASK (1 << SATA3_CTRL_SATA1_ENABLE_OFFSET)
+#define SATA3_CTRL_SATA_SSU_OFFSET 23
+#define SATA3_CTRL_SATA_SSU_MASK (1 << SATA3_CTRL_SATA_SSU_OFFSET)
+
+#define SATA_MBUS_SIZE_SELECT_REG 0x4
+#define SATA_MBUS_REGRET_EN_OFFSET 7
+#define SATA_MBUS_REGRET_EN_MASK (0x1 << SATA_MBUS_REGRET_EN_OFFSET)
+
+#endif /* _SATA_H_ */