From: Ashish Kumar Date: Thu, 2 Nov 2017 04:20:47 +0000 (+0530) Subject: armv8: ls1088: Enable SATA for ls1088 X-Git-Tag: v2018.01-rc1~127^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f65425fb46b890c0ba3fa49cd4ced4c99acb3cfd;p=u-boot armv8: ls1088: Enable SATA for ls1088 Signed-off-by: Ashish Kumar Signed-off-by: Amrita Kumari Reviewed-by: York Sun --- diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig index 8bbc981d43..5daf79e919 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig +++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig @@ -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 diff --git a/include/configs/ls1088a_common.h b/include/configs/ls1088a_common.h index fa058f7e52..7cfdc96df2 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