Skip to contentSkip to conversation

sh-sci: sh7722 lacks scsptr registers

PATCH New Magnus Damm 1 participant 1 message Apr 23, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh-sci: sh7722 lacks scsptr registers

The sh7722 serial ports all lack SCSPTR registers, so mark them as nonexistent in the register table.

---

 drivers/serial/sh-sci.h |    4 ++++
 1 file changed, 4 insertions(+)
drivers/serial/sh-sci.h +4 -0
@@ -452,7 +452,11 @@ SCIF_FNS(SCSPTR,			0,  0, 0x24, 16)
 SCIF_FNS(SCLSR,				0,  0, 0x28, 16)
 #else
 SCIF_FNS(SCFDR,                      0x0e, 16, 0x1C, 16)
+#if defined(CONFIG_CPU_SUBTYPE_SH7722)
+SCIF_FNS(SCSPTR,                        0,  0, 0, 0)
+#else
 SCIF_FNS(SCSPTR,                        0,  0, 0x20, 16)
+#endif
 SCIF_FNS(SCLSR,                         0,  0, 0x24, 16)
 #endif
 #endif