]> git.sur5r.net Git - u-boot/commitdiff
armv8: ls1088: Enable SATA for ls1088
authorAshish Kumar <Ashish.Kumar@nxp.com>
Thu, 2 Nov 2017 04:20:47 +0000 (09:50 +0530)
committerYork Sun <york.sun@nxp.com>
Wed, 15 Nov 2017 18:50:54 +0000 (10:50 -0800)
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Amrita Kumari <amrita.kumari@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/Kconfig
include/configs/ls1088a_common.h

index 8bbc981d43f35415e5e6e406adad7d382479294d..5daf79e919235b6ed978a08d720acf0b4c70690d 100644 (file)
@@ -84,6 +84,7 @@ config ARCH_LS1088A
        select FSL_TZASC_1
        select ARCH_EARLY_INIT_R
        select BOARD_EARLY_INIT_F
+       imply SCSI
 
 config ARCH_LS2080A
        bool
index fa058f7e525a78d0b352ab144e5a0e372f9f3a71..7cfdc96df2702d5932ce986f2bae14a68bec1992 100644 (file)
@@ -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