Skip to contentSkip to conversation

armv8: fsl-lsch3: Conditionally Remove errata a0009203 from lsch3 init

PATCH Superseded Ashish Kumar 2 participants 2 messages Feb 2, 2017 – Feb 7, 2017 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 armv8: fsl-lsch3: Conditionally Remove errata a0009203 from lsch3 init

This i2c errata is only valid for ls2080 and ls2088 SoC

---
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 ++++
 arch/arm/cpu/armv8/fsl-layerscape/soc.c   | 4 ++++
 2 files changed, 8 insertions(+)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +4 -0
index 0ea43c6..d383cc9 100644
@@ -71,6 +71,7 @@ config ARCH_LS2080A
 	select SYS_FSL_ERRATUM_A009803
 	select SYS_FSL_ERRATUM_A009942
 	select SYS_FSL_ERRATUM_A010165
+	select SYS_FSL_ERRATUM_A009203
 	select ARCH_EARLY_INIT_R
 	select BOARD_EARLY_INIT_F
 
@@ -278,6 +279,9 @@ config SYS_FSL_SDHC_CLK_DIV
 	  clock, in another word SDHC_clk = Platform_clk / this_divider.
 endmenu
 
+config SYS_FSL_ERRATUM_A009203
+	bool
+
 config SYS_FSL_ERRATUM_A008336
 	bool
 
arch/arm/cpu/armv8/fsl-layerscape/soc.c +4 -0
index d64fe7b..1e95540 100644
@@ -153,6 +153,7 @@ static void erratum_rcw_src(void)
  * This erratum requires setting glitch_en bit to enable
  * digital glitch filter to improve clock stability.
  */
+#ifdef CONFIG_SYS_FSL_ERRATUM_A009203
 static void erratum_a009203(void)
 {
 	u8 __iomem *ptr;
@@ -179,6 +180,7 @@ static void erratum_a009203(void)
 #endif
 #endif
 }
+#endif
 
 void bypass_smmu(void)
 {
@@ -192,7 +194,9 @@ void fsl_lsch3_early_init_f(void)
 {
 	erratum_rcw_src();
 	init_early_memctl_regs();	/* tighten IFC timing */
+#ifdef CONFIG_SYS_FSL_ERRATUM_A009203
 	erratum_a009203();
+#endif
 	erratum_a008514();
 	erratum_a008336();
 #ifdef CONFIG_CHAIN_OF_TRUST
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 armv8: fsl-lsch3: Conditionally Remove errata a0009203 from lsch3 init

Quoted 7 lines · Ashish Kumar

This i2c errata is only valid for ls2080 and ls2088 SoC

---
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 ++++
 arch/arm/cpu/armv8/fsl-layerscape/soc.c   | 4 ++++
 2 files changed, 8 insertions(+)

The subject is a little bit confusing. It sounds like LS2085A is excluded. We only use LS2080A throughout U-Boot. The only place you see LS2085A and LS2088A is SVR related. Please either spell out each SoC, or use "LS2080A and its variants".

York