From f65425fb46b890c0ba3fa49cd4ced4c99acb3cfd Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Thu, 2 Nov 2017 09:50:47 +0530 Subject: [PATCH] armv8: ls1088: Enable SATA for ls1088 Signed-off-by: Ashish Kumar Signed-off-by: Amrita Kumari Reviewed-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + include/configs/ls1088a_common.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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 -- 2.39.5