|
@@ -191,3 +191,179 @@
|
|
#define SA1111_SADRSA 0x4c
|
|
#define SA1111_SADRSA 0x4c
|
|
#define SA1111_SADRCA 0x50
|
|
#define SA1111_SADRCA 0x50
|
|
#define SA1111_SADRSB 0x54
|
|
#define SA1111_SADRSB 0x54
|
|
|
|
+#define SA1111_SADRCB 0x58
|
|
|
|
+#define SA1111_SAITR 0x5c
|
|
|
|
+#define SA1111_SADR 0x80
|
|
|
|
+
|
|
|
|
+#ifndef CONFIG_ARCH_PXA
|
|
|
|
+
|
|
|
|
+#define SACR0_ENB (1<<0)
|
|
|
|
+#define SACR0_BCKD (1<<2)
|
|
|
|
+#define SACR0_RST (1<<3)
|
|
|
|
+
|
|
|
|
+#define SACR1_AMSL (1<<0)
|
|
|
|
+#define SACR1_L3EN (1<<1)
|
|
|
|
+#define SACR1_L3MB (1<<2)
|
|
|
|
+#define SACR1_DREC (1<<3)
|
|
|
|
+#define SACR1_DRPL (1<<4)
|
|
|
|
+#define SACR1_ENLBF (1<<5)
|
|
|
|
+
|
|
|
|
+#define SACR2_TS3V (1<<0)
|
|
|
|
+#define SACR2_TS4V (1<<1)
|
|
|
|
+#define SACR2_WKUP (1<<2)
|
|
|
|
+#define SACR2_DREC (1<<3)
|
|
|
|
+#define SACR2_DRPL (1<<4)
|
|
|
|
+#define SACR2_ENLBF (1<<5)
|
|
|
|
+#define SACR2_RESET (1<<6)
|
|
|
|
+
|
|
|
|
+#define SASR0_TNF (1<<0)
|
|
|
|
+#define SASR0_RNE (1<<1)
|
|
|
|
+#define SASR0_BSY (1<<2)
|
|
|
|
+#define SASR0_TFS (1<<3)
|
|
|
|
+#define SASR0_RFS (1<<4)
|
|
|
|
+#define SASR0_TUR (1<<5)
|
|
|
|
+#define SASR0_ROR (1<<6)
|
|
|
|
+#define SASR0_L3WD (1<<16)
|
|
|
|
+#define SASR0_L3RD (1<<17)
|
|
|
|
+
|
|
|
|
+#define SASR1_TNF (1<<0)
|
|
|
|
+#define SASR1_RNE (1<<1)
|
|
|
|
+#define SASR1_BSY (1<<2)
|
|
|
|
+#define SASR1_TFS (1<<3)
|
|
|
|
+#define SASR1_RFS (1<<4)
|
|
|
|
+#define SASR1_TUR (1<<5)
|
|
|
|
+#define SASR1_ROR (1<<6)
|
|
|
|
+#define SASR1_CADT (1<<16)
|
|
|
|
+#define SASR1_SADR (1<<17)
|
|
|
|
+#define SASR1_RSTO (1<<18)
|
|
|
|
+#define SASR1_CLPM (1<<19)
|
|
|
|
+#define SASR1_CRDY (1<<20)
|
|
|
|
+#define SASR1_RS3V (1<<21)
|
|
|
|
+#define SASR1_RS4V (1<<22)
|
|
|
|
+
|
|
|
|
+#define SASCR_TUR (1<<5)
|
|
|
|
+#define SASCR_ROR (1<<6)
|
|
|
|
+#define SASCR_DTS (1<<16)
|
|
|
|
+#define SASCR_RDD (1<<17)
|
|
|
|
+#define SASCR_STO (1<<18)
|
|
|
|
+
|
|
|
|
+#define SADTCS_TDEN (1<<0)
|
|
|
|
+#define SADTCS_TDIE (1<<1)
|
|
|
|
+#define SADTCS_TDBDA (1<<3)
|
|
|
|
+#define SADTCS_TDSTA (1<<4)
|
|
|
|
+#define SADTCS_TDBDB (1<<5)
|
|
|
|
+#define SADTCS_TDSTB (1<<6)
|
|
|
|
+#define SADTCS_TBIU (1<<7)
|
|
|
|
+
|
|
|
|
+#define SADRCS_RDEN (1<<0)
|
|
|
|
+#define SADRCS_RDIE (1<<1)
|
|
|
|
+#define SADRCS_RDBDA (1<<3)
|
|
|
|
+#define SADRCS_RDSTA (1<<4)
|
|
|
|
+#define SADRCS_RDBDB (1<<5)
|
|
|
|
+#define SADRCS_RDSTB (1<<6)
|
|
|
|
+#define SADRCS_RBIU (1<<7)
|
|
|
|
+
|
|
|
|
+#define SAD_CS_DEN (1<<0)
|
|
|
|
+#define SAD_CS_DIE (1<<1) /* Not functional on metal 1 */
|
|
|
|
+#define SAD_CS_DBDA (1<<3) /* Not functional on metal 1 */
|
|
|
|
+#define SAD_CS_DSTA (1<<4)
|
|
|
|
+#define SAD_CS_DBDB (1<<5) /* Not functional on metal 1 */
|
|
|
|
+#define SAD_CS_DSTB (1<<6)
|
|
|
|
+#define SAD_CS_BIU (1<<7) /* Not functional on metal 1 */
|
|
|
|
+
|
|
|
|
+#define SAITR_TFS (1<<0)
|
|
|
|
+#define SAITR_RFS (1<<1)
|
|
|
|
+#define SAITR_TUR (1<<2)
|
|
|
|
+#define SAITR_ROR (1<<3)
|
|
|
|
+#define SAITR_CADT (1<<4)
|
|
|
|
+#define SAITR_SADR (1<<5)
|
|
|
|
+#define SAITR_RSTO (1<<6)
|
|
|
|
+#define SAITR_TDBDA (1<<8)
|
|
|
|
+#define SAITR_TDBDB (1<<9)
|
|
|
|
+#define SAITR_RDBDA (1<<10)
|
|
|
|
+#define SAITR_RDBDB (1<<11)
|
|
|
|
+
|
|
|
|
+#endif /* !CONFIG_ARCH_PXA */
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * General-Purpose I/O Interface
|
|
|
|
+ *
|
|
|
|
+ * Registers
|
|
|
|
+ * PA_DDR GPIO Block A Data Direction
|
|
|
|
+ * PA_DRR/PA_DWR GPIO Block A Data Value Register (read/write)
|
|
|
|
+ * PA_SDR GPIO Block A Sleep Direction
|
|
|
|
+ * PA_SSR GPIO Block A Sleep State
|
|
|
|
+ * PB_DDR GPIO Block B Data Direction
|
|
|
|
+ * PB_DRR/PB_DWR GPIO Block B Data Value Register (read/write)
|
|
|
|
+ * PB_SDR GPIO Block B Sleep Direction
|
|
|
|
+ * PB_SSR GPIO Block B Sleep State
|
|
|
|
+ * PC_DDR GPIO Block C Data Direction
|
|
|
|
+ * PC_DRR/PC_DWR GPIO Block C Data Value Register (read/write)
|
|
|
|
+ * PC_SDR GPIO Block C Sleep Direction
|
|
|
|
+ * PC_SSR GPIO Block C Sleep State
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+#define SA1111_GPIO 0x1000
|
|
|
|
+
|
|
|
|
+#define SA1111_GPIO_PADDR (0x000)
|
|
|
|
+#define SA1111_GPIO_PADRR (0x004)
|
|
|
|
+#define SA1111_GPIO_PADWR (0x004)
|
|
|
|
+#define SA1111_GPIO_PASDR (0x008)
|
|
|
|
+#define SA1111_GPIO_PASSR (0x00c)
|
|
|
|
+#define SA1111_GPIO_PBDDR (0x010)
|
|
|
|
+#define SA1111_GPIO_PBDRR (0x014)
|
|
|
|
+#define SA1111_GPIO_PBDWR (0x014)
|
|
|
|
+#define SA1111_GPIO_PBSDR (0x018)
|
|
|
|
+#define SA1111_GPIO_PBSSR (0x01c)
|
|
|
|
+#define SA1111_GPIO_PCDDR (0x020)
|
|
|
|
+#define SA1111_GPIO_PCDRR (0x024)
|
|
|
|
+#define SA1111_GPIO_PCDWR (0x024)
|
|
|
|
+#define SA1111_GPIO_PCSDR (0x028)
|
|
|
|
+#define SA1111_GPIO_PCSSR (0x02c)
|
|
|
|
+
|
|
|
|
+#define GPIO_A0 (1 << 0)
|
|
|
|
+#define GPIO_A1 (1 << 1)
|
|
|
|
+#define GPIO_A2 (1 << 2)
|
|
|
|
+#define GPIO_A3 (1 << 3)
|
|
|
|
+
|
|
|
|
+#define GPIO_B0 (1 << 8)
|
|
|
|
+#define GPIO_B1 (1 << 9)
|
|
|
|
+#define GPIO_B2 (1 << 10)
|
|
|
|
+#define GPIO_B3 (1 << 11)
|
|
|
|
+#define GPIO_B4 (1 << 12)
|
|
|
|
+#define GPIO_B5 (1 << 13)
|
|
|
|
+#define GPIO_B6 (1 << 14)
|
|
|
|
+#define GPIO_B7 (1 << 15)
|
|
|
|
+
|
|
|
|
+#define GPIO_C0 (1 << 16)
|
|
|
|
+#define GPIO_C1 (1 << 17)
|
|
|
|
+#define GPIO_C2 (1 << 18)
|
|
|
|
+#define GPIO_C3 (1 << 19)
|
|
|
|
+#define GPIO_C4 (1 << 20)
|
|
|
|
+#define GPIO_C5 (1 << 21)
|
|
|
|
+#define GPIO_C6 (1 << 22)
|
|
|
|
+#define GPIO_C7 (1 << 23)
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * Interrupt Controller
|
|
|
|
+ *
|
|
|
|
+ * Registers
|
|
|
|
+ * INTTEST0 Test register 0
|
|
|
|
+ * INTTEST1 Test register 1
|
|
|
|
+ * INTEN0 Interrupt Enable register 0
|
|
|
|
+ * INTEN1 Interrupt Enable register 1
|
|
|
|
+ * INTPOL0 Interrupt Polarity selection 0
|
|
|
|
+ * INTPOL1 Interrupt Polarity selection 1
|
|
|
|
+ * INTTSTSEL Interrupt source selection
|
|
|
|
+ * INTSTATCLR0 Interrupt Status/Clear 0
|
|
|
|
+ * INTSTATCLR1 Interrupt Status/Clear 1
|
|
|
|
+ * INTSET0 Interrupt source set 0
|
|
|
|
+ * INTSET1 Interrupt source set 1
|
|
|
|
+ * WAKE_EN0 Wake-up source enable 0
|
|
|
|
+ * WAKE_EN1 Wake-up source enable 1
|
|
|
|
+ * WAKE_POL0 Wake-up polarity selection 0
|
|
|
|
+ * WAKE_POL1 Wake-up polarity selection 1
|
|
|
|
+ */
|
|
|
|
+#define SA1111_INTC 0x1600
|
|
|
|
+
|
|
|
|
+/*
|