xref: /openbmc/u-boot/drivers/phy/marvell/sata.h (revision ebce73f0)
1 /*
2  * Copyright (C) 2015-2016 Marvell International Ltd.
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef _SATA_H_
8 #define _SATA_H_
9 
10 /* SATA3 Unit address */
11 #define SATA3_VENDOR_ADDRESS		0xA0
12 #define SATA3_VENDOR_ADDR_OFSSET	0
13 #define SATA3_VENDOR_ADDR_MASK		(0xFFFFFFFF << SATA3_VENDOR_ADDR_OFSSET)
14 #define SATA3_VENDOR_DATA		0xA4
15 
16 #define SATA_CONTROL_REG		0x0
17 #define SATA3_CTRL_SATA0_PD_OFFSET	6
18 #define SATA3_CTRL_SATA0_PD_MASK	(1 << SATA3_CTRL_SATA0_PD_OFFSET)
19 #define SATA3_CTRL_SATA1_PD_OFFSET	14
20 #define SATA3_CTRL_SATA1_PD_MASK	(1 << SATA3_CTRL_SATA1_PD_OFFSET)
21 #define SATA3_CTRL_SATA1_ENABLE_OFFSET	22
22 #define SATA3_CTRL_SATA1_ENABLE_MASK	(1 << SATA3_CTRL_SATA1_ENABLE_OFFSET)
23 #define SATA3_CTRL_SATA_SSU_OFFSET	23
24 #define SATA3_CTRL_SATA_SSU_MASK	(1 << SATA3_CTRL_SATA_SSU_OFFSET)
25 
26 #define SATA_MBUS_SIZE_SELECT_REG	0x4
27 #define SATA_MBUS_REGRET_EN_OFFSET	7
28 #define SATA_MBUS_REGRET_EN_MASK	(0x1 << SATA_MBUS_REGRET_EN_OFFSET)
29 
30 #endif /* _SATA_H_ */
31