|
@@ -142,3 +142,118 @@
|
|
|
#define PLD_IRQ_INT30 (M32700UT_PLD_IRQ_BASE + 30) /* reserved */
|
|
|
|
|
|
#endif /* CONFIG_PLAT_USRV */
|
|
|
+
|
|
|
+#define PLD_ICUISTS __reg16(PLD_BASE + 0x8002)
|
|
|
+#define PLD_ICUISTS_VECB_MASK (0xf000)
|
|
|
+#define PLD_ICUISTS_VECB(x) ((x) & PLD_ICUISTS_VECB_MASK)
|
|
|
+#define PLD_ICUISTS_ISN_MASK (0x07c0)
|
|
|
+#define PLD_ICUISTS_ISN(x) ((x) & PLD_ICUISTS_ISN_MASK)
|
|
|
+#define PLD_ICUIREQ0 __reg16(PLD_BASE + 0x8004)
|
|
|
+#define PLD_ICUIREQ1 __reg16(PLD_BASE + 0x8006)
|
|
|
+#define PLD_ICUCR1 __reg16(PLD_BASE + 0x8100)
|
|
|
+#define PLD_ICUCR2 __reg16(PLD_BASE + 0x8102)
|
|
|
+#define PLD_ICUCR3 __reg16(PLD_BASE + 0x8104)
|
|
|
+#define PLD_ICUCR4 __reg16(PLD_BASE + 0x8106)
|
|
|
+#define PLD_ICUCR5 __reg16(PLD_BASE + 0x8108)
|
|
|
+#define PLD_ICUCR6 __reg16(PLD_BASE + 0x810a)
|
|
|
+#define PLD_ICUCR7 __reg16(PLD_BASE + 0x810c)
|
|
|
+#define PLD_ICUCR8 __reg16(PLD_BASE + 0x810e)
|
|
|
+#define PLD_ICUCR9 __reg16(PLD_BASE + 0x8110)
|
|
|
+#define PLD_ICUCR10 __reg16(PLD_BASE + 0x8112)
|
|
|
+#define PLD_ICUCR11 __reg16(PLD_BASE + 0x8114)
|
|
|
+#define PLD_ICUCR12 __reg16(PLD_BASE + 0x8116)
|
|
|
+#define PLD_ICUCR13 __reg16(PLD_BASE + 0x8118)
|
|
|
+#define PLD_ICUCR14 __reg16(PLD_BASE + 0x811a)
|
|
|
+#define PLD_ICUCR15 __reg16(PLD_BASE + 0x811c)
|
|
|
+#define PLD_ICUCR16 __reg16(PLD_BASE + 0x811e)
|
|
|
+#define PLD_ICUCR17 __reg16(PLD_BASE + 0x8120)
|
|
|
+#define PLD_ICUCR_IEN (0x1000)
|
|
|
+#define PLD_ICUCR_IREQ (0x0100)
|
|
|
+#define PLD_ICUCR_ISMOD00 (0x0000) /* Low edge */
|
|
|
+#define PLD_ICUCR_ISMOD01 (0x0010) /* Low level */
|
|
|
+#define PLD_ICUCR_ISMOD02 (0x0020) /* High edge */
|
|
|
+#define PLD_ICUCR_ISMOD03 (0x0030) /* High level */
|
|
|
+#define PLD_ICUCR_ILEVEL0 (0x0000)
|
|
|
+#define PLD_ICUCR_ILEVEL1 (0x0001)
|
|
|
+#define PLD_ICUCR_ILEVEL2 (0x0002)
|
|
|
+#define PLD_ICUCR_ILEVEL3 (0x0003)
|
|
|
+#define PLD_ICUCR_ILEVEL4 (0x0004)
|
|
|
+#define PLD_ICUCR_ILEVEL5 (0x0005)
|
|
|
+#define PLD_ICUCR_ILEVEL6 (0x0006)
|
|
|
+#define PLD_ICUCR_ILEVEL7 (0x0007)
|
|
|
+
|
|
|
+/* Power Control of MMC and CF */
|
|
|
+#define PLD_CPCR __reg16(PLD_BASE + 0x14000)
|
|
|
+#define PLD_CPCR_CF 0x0001
|
|
|
+#define PLD_CPCR_MMC 0x0002
|
|
|
+
|
|
|
+/* LED Control
|
|
|
+ *
|
|
|
+ * 1: DIP swich side
|
|
|
+ * 2: Reset switch side
|
|
|
+ */
|
|
|
+#define PLD_IOLEDCR __reg16(PLD_BASE + 0x14002)
|
|
|
+#define PLD_IOLED_1_ON 0x001
|
|
|
+#define PLD_IOLED_1_OFF 0x000
|
|
|
+#define PLD_IOLED_2_ON 0x002
|
|
|
+#define PLD_IOLED_2_OFF 0x000
|
|
|
+
|
|
|
+/* DIP Switch
|
|
|
+ * 0: Write-protect of Flash Memory (0:protected, 1:non-protected)
|
|
|
+ * 1: -
|
|
|
+ * 2: -
|
|
|
+ * 3: -
|
|
|
+ */
|
|
|
+#define PLD_IOSWSTS __reg16(PLD_BASE + 0x14004)
|
|
|
+#define PLD_IOSWSTS_IOSW2 0x0200
|
|
|
+#define PLD_IOSWSTS_IOSW1 0x0100
|
|
|
+#define PLD_IOSWSTS_IOWP0 0x0001
|
|
|
+
|
|
|
+/* CRC */
|
|
|
+#define PLD_CRC7DATA __reg16(PLD_BASE + 0x18000)
|
|
|
+#define PLD_CRC7INDATA __reg16(PLD_BASE + 0x18002)
|
|
|
+#define PLD_CRC16DATA __reg16(PLD_BASE + 0x18004)
|
|
|
+#define PLD_CRC16INDATA __reg16(PLD_BASE + 0x18006)
|
|
|
+#define PLD_CRC16ADATA __reg16(PLD_BASE + 0x18008)
|
|
|
+#define PLD_CRC16AINDATA __reg16(PLD_BASE + 0x1800a)
|
|
|
+
|
|
|
+/* RTC */
|
|
|
+#define PLD_RTCCR __reg16(PLD_BASE + 0x1c000)
|
|
|
+#define PLD_RTCBAUR __reg16(PLD_BASE + 0x1c002)
|
|
|
+#define PLD_RTCWRDATA __reg16(PLD_BASE + 0x1c004)
|
|
|
+#define PLD_RTCRDDATA __reg16(PLD_BASE + 0x1c006)
|
|
|
+#define PLD_RTCRSTODT __reg16(PLD_BASE + 0x1c008)
|
|
|
+
|
|
|
+/* SIO0 */
|
|
|
+#define PLD_ESIO0CR __reg16(PLD_BASE + 0x20000)
|
|
|
+#define PLD_ESIO0CR_TXEN 0x0001
|
|
|
+#define PLD_ESIO0CR_RXEN 0x0002
|
|
|
+#define PLD_ESIO0MOD0 __reg16(PLD_BASE + 0x20002)
|
|
|
+#define PLD_ESIO0MOD0_CTSS 0x0040
|
|
|
+#define PLD_ESIO0MOD0_RTSS 0x0080
|
|
|
+#define PLD_ESIO0MOD1 __reg16(PLD_BASE + 0x20004)
|
|
|
+#define PLD_ESIO0MOD1_LMFS 0x0010
|
|
|
+#define PLD_ESIO0STS __reg16(PLD_BASE + 0x20006)
|
|
|
+#define PLD_ESIO0STS_TEMP 0x0001
|
|
|
+#define PLD_ESIO0STS_TXCP 0x0002
|
|
|
+#define PLD_ESIO0STS_RXCP 0x0004
|
|
|
+#define PLD_ESIO0STS_TXSC 0x0100
|
|
|
+#define PLD_ESIO0STS_RXSC 0x0200
|
|
|
+#define PLD_ESIO0STS_TXREADY (PLD_ESIO0STS_TXCP | PLD_ESIO0STS_TEMP)
|
|
|
+#define PLD_ESIO0INTCR __reg16(PLD_BASE + 0x20008)
|
|
|
+#define PLD_ESIO0INTCR_TXIEN 0x0002
|
|
|
+#define PLD_ESIO0INTCR_RXCEN 0x0004
|
|
|
+#define PLD_ESIO0BAUR __reg16(PLD_BASE + 0x2000a)
|
|
|
+#define PLD_ESIO0TXB __reg16(PLD_BASE + 0x2000c)
|
|
|
+#define PLD_ESIO0RXB __reg16(PLD_BASE + 0x2000e)
|
|
|
+
|
|
|
+/* SIM Card */
|
|
|
+#define PLD_SCCR __reg16(PLD_BASE + 0x38000)
|
|
|
+#define PLD_SCMOD __reg16(PLD_BASE + 0x38004)
|
|
|
+#define PLD_SCSTS __reg16(PLD_BASE + 0x38006)
|
|
|
+#define PLD_SCINTCR __reg16(PLD_BASE + 0x38008)
|
|
|
+#define PLD_SCBAUR __reg16(PLD_BASE + 0x3800a)
|
|
|
+#define PLD_SCTXB __reg16(PLD_BASE + 0x3800c)
|
|
|
+#define PLD_SCRXB __reg16(PLD_BASE + 0x3800e)
|
|
|
+
|
|
|
+#endif /* _M32700UT_M32700UT_PLD.H */
|