Skip to contentSkip to conversation

arm: arria10: Add correct mask bits for RTRIM and PU_DRV_STRG

PATCH In review [email protected] 2 participants 2 messages Mar 4 – Apr 16

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: arria10: Add correct mask bits for RTRIM and PU_DRV_STRG

From: Dinesh Maniyam <[email protected]>

The current mask bits of RTRIM and PU_DRV_STRG are mismatched with the configuration register of arria10. The correct register for RTRIM and PU_DRV_STRG should be 0x7 and 0x1f respectively.

---
 arch/arm/mach-socfpga/qts-filter-a10.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-socfpga/qts-filter-a10.sh +2 -2
index ab16522add5..510947d5632 100755
@@ -106,11 +106,11 @@ EOF
 	echo
 	echo "/* Macro for Config IO bit mapping */"
 	echo -n "#define CONFIG_IO_MACRO(NAME) "
-	echo "(((NAME ## _RTRIM & 0xff) << 19) | \\"
+	echo "(((NAME ## _RTRIM & 0x7) << 19) | \\"
 	echo "	((NAME ## _INPUT_BUF_EN & 0x3) << 17) | \\"
 	echo "	((NAME ## _WK_PU_EN & 0x1) << 16) | \\"
 	echo "	((NAME ## _PU_SLW_RT & 0x1) << 13) | \\"
-	echo "	((NAME ## _PU_DRV_STRG & 0xf) << 8) | \\"
+	echo "	((NAME ## _PU_DRV_STRG & 0x1f) << 8) | \\"
 	echo "	((NAME ## _PD_SLW_RT & 0x1) << 5) | \\"
 	echo "	(NAME ## _PD_DRV_STRG & 0x1f))"
 
Signature · 1 line
2.43.7
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · On 4/3/2026 12:12 pm, [email protected] wrote:

From: Dinesh Maniyam<[email protected]>

The current mask bits of RTRIM and PU_DRV_STRG are mismatched with the configuration register of arria10. The correct register for RTRIM and PU_DRV_STRG should be 0x7 and 0x1f respectively.

---
  arch/arm/mach-socfpga/qts-filter-a10.sh | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-socfpga/qts-filter-a10.sh +0 -0
index ab16522add5..510947d5632 100755
@@ -106,11 +106,11 @@ EOF
  	echo
  	echo "/* Macro for Config IO bit mapping */"
  	echo -n "#define CONFIG_IO_MACRO(NAME) "

arch/arm/mach-socfpga/qts-filter-a10.sh EOF · line 116

Quoted 10 lines
arch/arm/mach-socfpga/qts-filter-a10.sh +2 -2
-	echo "(((NAME ## _RTRIM & 0xff) << 19) | \\"
+	echo "(((NAME ## _RTRIM & 0x7) << 19) | \\"
  	echo "	((NAME ## _INPUT_BUF_EN & 0x3) << 17) | \\"
  	echo "	((NAME ## _WK_PU_EN & 0x1) << 16) | \\"
  	echo "	((NAME ## _PU_SLW_RT & 0x1) << 13) | \\"
-	echo "	((NAME ## _PU_DRV_STRG & 0xf) << 8) | \\"
+	echo "	((NAME ## _PU_DRV_STRG & 0x1f) << 8) | \\"
  	echo "	((NAME ## _PD_SLW_RT & 0x1) << 5) | \\"
  	echo "	(NAME ## _PD_DRV_STRG & 0x1f))"