Skip to contentSkip to conversation

armv8: lsch3: Add imply SCSI for ls1088

PATCH New Ashish Kumar 2 participants 5 messages Nov 2, 2017 – Nov 17, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/2 armv8: lsch3: Add imply SCSI for ls1088

---

v3: Change SCSI command to imply SCSI
v4: No change

 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1 -0
index 8bbc981..5daf79e 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw

PATCH v4 2/2 armv8: ls1088: Enable SATA for ls1088

---
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(+)
include/configs/ls1088a_common.h +13 -0
index fa058f7..7cfdc96 100644
@@ -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
 
Signature · 1 line
2.7.4
#2 lore raw

PATCH v4 2/2 armv8: ls1088: Enable SATA for ls1088

Quoted 7 lines · Ashish Kumar

---
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

#4 lore raw

PATCH v4 1/2 armv8: lsch3: Add imply SCSI for ls1088

In reply to Ashish Kumar
Quoted 15 lines · Ashish Kumar

---

v3: Change SCSI command to imply SCSI
v4: No change

 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +0 -0
index 8bbc981..5daf79e 100644

arch/arm/cpu/armv8/fsl-layerscape/Kconfig config ARCH_LS1088A · line 90

Quoted 7 lines
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1 -0
@@ -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

Did you test this patch alone? It causes compiling error for all LS1088 boards. You cannot enable CONFIG_SCSI without adding proper macros as you did in your patch #2. I will squash these two patches for you. No action required.

York