diff mbox series

[U-Boot,v4,2/2] armv8: ls1088: Enable SATA for ls1088

Message ID 1509596448-15846-2-git-send-email-Ashish.Kumar@nxp.com
State Accepted
Delegated to: York Sun
Headers show
Series [U-Boot,v4,1/2] armv8: lsch3: Add imply SCSI for ls1088 | expand

Commit Message

Ashish Kumar Nov. 2, 2017, 4:20 a.m. UTC
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Amrita Kumari <amrita.kumari@nxp.com>
---
v2: Rebase to top
v3: Consolidate defines in common file
v4: Protect define using CONFIG_SCSI

 include/configs/ls1088a_common.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

York Sun Nov. 2, 2017, 3:13 p.m. UTC | #1
On 11/01/2017 09:20 PM, Ashish Kumar wrote:
> Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
> Signed-off-by: Amrita Kumari <amrita.kumari@nxp.com>
> ---
> v2: Rebase to top
> v3: Consolidate defines in common file
> v4: Protect define using CONFIG_SCSI
> 

Andy,

Does this set represent the latest change you and Ashish agreed on?
Please give your review comment.

York
York Sun Nov. 17, 2017, 5:19 p.m. UTC | #2
On 11/01/2017 09:20 PM, Ashish Kumar wrote:
> Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
> Signed-off-by: Amrita Kumari <amrita.kumari@nxp.com>
> ---
> v2: Rebase to top
> v3: Consolidate defines in common file
> v4: Protect define using CONFIG_SCSI

Squashed with patch #1.
Applied to fsl-qoriq master. Thanks.

York
diff mbox series

Patch

diff --git a/include/configs/ls1088a_common.h b/include/configs/ls1088a_common.h
index fa058f7..7cfdc96 100644
--- a/include/configs/ls1088a_common.h
+++ b/include/configs/ls1088a_common.h
@@ -148,6 +148,19 @@  unsigned long long get_qixis_addr(void);
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_LOAD_ADDR	(CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000)
 
+/* SATA */
+#ifdef CONFIG_SCSI
+#define CONFIG_LIBATA
+#define CONFIG_SCSI_AHCI
+#define CONFIG_SCSI_AHCI_PLAT
+#define CONFIG_SYS_SATA1		AHCI_BASE_ADDR1
+
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID	1
+#define CONFIG_SYS_SCSI_MAX_LUN		1
+#define CONFIG_SYS_SCSI_MAX_DEVICE	(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
+					CONFIG_SYS_SCSI_MAX_LUN)
+#endif
+
 /* Physical Memory Map */
 #define CONFIG_CHIP_SELECTS_PER_CTRL	4