Skip to contentSkip to conversation

OMAP: ctrl: Fix CONTROL_DSIPHY register fields

PATCH Superseded Archit Taneja 3 participants 3 messages Jul 27, 2011

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP: ctrl: Fix CONTROL_DSIPHY register fields

Fix the shift and mask macros for DSIx_PPID fields in CONTROL_DSIPHY. The Latest TRM mentions the correct fields in the register.

---
 .../include/mach/ctrl_module_pad_core_44xx.h       |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h +4 -4
index c88420d..8321add 100644
@@ -941,10 +941,10 @@
 #define OMAP4_DSI2_LANEENABLE_MASK				(0x7 << 29)
 #define OMAP4_DSI1_LANEENABLE_SHIFT				24
 #define OMAP4_DSI1_LANEENABLE_MASK				(0x1f << 24)
-#define OMAP4_DSI1_PIPD_SHIFT					19
-#define OMAP4_DSI1_PIPD_MASK					(0x1f << 19)
-#define OMAP4_DSI2_PIPD_SHIFT					14
-#define OMAP4_DSI2_PIPD_MASK					(0x1f << 14)
+#define OMAP4_DSI1_PIPD_SHIFT					14
+#define OMAP4_DSI1_PIPD_MASK					(0x1f << 14)
+#define OMAP4_DSI2_PIPD_SHIFT					19
+#define OMAP4_DSI2_PIPD_MASK					(0x1f << 19)
 
 /* CONTROL_MCBSPLP */
 #define OMAP4_ALBCTRLRX_FSX_SHIFT				31
Signature · 1 line
1.7.1
#1 lore raw

+ Benoit

Quoted 2 lines · Archit Taneja

Fix the shift and mask macros for DSIx_PPID fields in CONTROL_DSIPHY. The Latest TRM mentions the correct fields in the register.

You can mention the TRM version instead of 'latest' Latest is very much relative :)

Quoted 2 lines

Change looks good to me.
Autogen scripts needs to be checked as well.

Quoted 23 lines
---
  .../include/mach/ctrl_module_pad_core_44xx.h       |    8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h +4 -4
index c88420d..8321add 100644
@@ -941,10 +941,10 @@
  #define OMAP4_DSI2_LANEENABLE_MASK				(0x7<<  29)
  #define OMAP4_DSI1_LANEENABLE_SHIFT				24
  #define OMAP4_DSI1_LANEENABLE_MASK				(0x1f<<  24)
-#define OMAP4_DSI1_PIPD_SHIFT					19
-#define OMAP4_DSI1_PIPD_MASK					(0x1f<<  19)
-#define OMAP4_DSI2_PIPD_SHIFT					14
-#define OMAP4_DSI2_PIPD_MASK					(0x1f<<  14)
+#define OMAP4_DSI1_PIPD_SHIFT					14
+#define OMAP4_DSI1_PIPD_MASK					(0x1f<<  14)
+#define OMAP4_DSI2_PIPD_SHIFT					19
+#define OMAP4_DSI2_PIPD_MASK					(0x1f<<  19)
 
  /* CONTROL_MCBSPLP */
  #define OMAP4_ALBCTRLRX_FSX_SHIFT				31
#2 lore raw
Quoted 1 line · Santosh

+ Benoit

Thanks Santosh,

Archit,

Could you please send your patch to all the authors of the file, including the maintainers?

Without Santosh, I would have missed that one, that seems to highlight a bug in the HW description DB. So it is quite critical to capture such issue ASAP with HW designers.

Quoted 15 lines · Archit Taneja
Quoted 2 lines

Fix the shift and mask macros for DSIx_PPID fields in CONTROL_DSIPHY. The Latest TRM mentions the correct fields in the register.

You can mention the TRM version instead of 'latest' Latest is very much relative :)

Quoted 2 lines

Change looks good to me.
Autogen scripts needs to be checked as well.

Quoted 4 lines
---
   .../include/mach/ctrl_module_pad_core_44xx.h       |    8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)
Quoted 16 lines
Quoted 6 lines
arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h +0 -0
index c88420d..8321add 100644
@@ -941,10 +941,10 @@
   #define OMAP4_DSI2_LANEENABLE_MASK				(0x7<<   29)

arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h line 947

Quoted 10 lines
arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h +4 -4
   #define OMAP4_DSI1_LANEENABLE_SHIFT				24
   #define OMAP4_DSI1_LANEENABLE_MASK				(0x1f<<   24)
-#define OMAP4_DSI1_PIPD_SHIFT					19
-#define OMAP4_DSI1_PIPD_MASK					(0x1f<<   19)
-#define OMAP4_DSI2_PIPD_SHIFT					14
-#define OMAP4_DSI2_PIPD_MASK					(0x1f<<   14)
+#define OMAP4_DSI1_PIPD_SHIFT					14
+#define OMAP4_DSI1_PIPD_MASK					(0x1f<<   14)
+#define OMAP4_DSI2_PIPD_SHIFT					19
+#define OMAP4_DSI2_PIPD_MASK					(0x1f<<   19)

Minor comment, but since this is sorted per shift value, the order should be:

+#define OMAP4_DSI2_PIPD_SHIFT                                  19
+#define OMAP4_DSI2_PIPD_MASK                                   (0x1f << 19)
+#define OMAP4_DSI1_PIPD_SHIFT                                  14
+#define OMAP4_DSI1_PIPD_MASK                                   (0x1f << 14)

Once you fix the changelog with Santosh comment, put the proper people in the TO list, and fix the order, you can add:

Regards,
Benoit