|
@@ -1230,3 +1230,80 @@
|
|
|
#define HOST_CNTR_BT_EN 0x80 /* Bus Timeout Enable */
|
|
|
#define HOST_CNTR_ nBT_EN 0x0
|
|
|
#define HOST_CNTR_EHW 0x100 /* Enable Host Write */
|
|
|
+#define HOST_CNTR_nEHW 0x0
|
|
|
+#define HOST_CNTR_EHR 0x200 /* Enable Host Read */
|
|
|
+#define HOST_CNTR_nEHR 0x0
|
|
|
+#define HOST_CNTR_BDR 0x400 /* Burst DMA Requests */
|
|
|
+#define HOST_CNTR_nBDR 0x0
|
|
|
+
|
|
|
+/* Bit masks for HOST_STATUS */
|
|
|
+
|
|
|
+#define HOST_STAT_READY 0x1 /* DMA Ready */
|
|
|
+#define HOST_STAT_nREADY 0x0
|
|
|
+#define HOST_STAT_FIFOFULL 0x2 /* FIFO Full */
|
|
|
+#define HOST_STAT_nFIFOFULL 0x0
|
|
|
+#define HOST_STAT_FIFOEMPTY 0x4 /* FIFO Empty */
|
|
|
+#define HOST_STAT_nFIFOEMPTY 0x0
|
|
|
+#define HOST_STAT_COMPLETE 0x8 /* DMA Complete */
|
|
|
+#define HOST_STAT_nCOMPLETE 0x0
|
|
|
+#define HOST_STAT_HSHK 0x10 /* Host Handshake */
|
|
|
+#define HOST_STAT_nHSHK 0x0
|
|
|
+#define HOST_STAT_TIMEOUT 0x20 /* Host Timeout */
|
|
|
+#define HOST_STAT_nTIMEOUT 0x0
|
|
|
+#define HOST_STAT_HIRQ 0x40 /* Host Interrupt Request */
|
|
|
+#define HOST_STAT_nHIRQ 0x0
|
|
|
+#define HOST_STAT_ALLOW_CNFG 0x80 /* Allow New Configuration */
|
|
|
+#define HOST_STAT_nALLOW_CNFG 0x0
|
|
|
+#define HOST_STAT_DMA_DIR 0x100 /* DMA Direction */
|
|
|
+#define HOST_STAT_nDMA_DIR 0x0
|
|
|
+#define HOST_STAT_BTE 0x200 /* Bus Timeout Enabled */
|
|
|
+#define HOST_STAT_nBTE 0x0
|
|
|
+#define HOST_STAT_HOSTRD_DONE 0x8000 /* Host Read Completion Interrupt */
|
|
|
+#define HOST_STAT_nHOSTRD_DONE 0x0
|
|
|
+
|
|
|
+/* Bit masks for HOST_TIMEOUT */
|
|
|
+
|
|
|
+#define HOST_COUNT_TIMEOUT 0x7ff /* Host Timeout count */
|
|
|
+
|
|
|
+/* Bit masks for SECURE_SYSSWT */
|
|
|
+
|
|
|
+#define EMUDABL 0x1 /* Emulation Disable. */
|
|
|
+#define nEMUDABL 0x0
|
|
|
+#define RSTDABL 0x2 /* Reset Disable */
|
|
|
+#define nRSTDABL 0x0
|
|
|
+#define L1IDABL 0x1c /* L1 Instruction Memory Disable. */
|
|
|
+#define L1DADABL 0xe0 /* L1 Data Bank A Memory Disable. */
|
|
|
+#define L1DBDABL 0x700 /* L1 Data Bank B Memory Disable. */
|
|
|
+#define DMA0OVR 0x800 /* DMA0 Memory Access Override */
|
|
|
+#define nDMA0OVR 0x0
|
|
|
+#define DMA1OVR 0x1000 /* DMA1 Memory Access Override */
|
|
|
+#define nDMA1OVR 0x0
|
|
|
+#define EMUOVR 0x4000 /* Emulation Override */
|
|
|
+#define nEMUOVR 0x0
|
|
|
+#define OTPSEN 0x8000 /* OTP Secrets Enable. */
|
|
|
+#define nOTPSEN 0x0
|
|
|
+#define L2DABL 0x70000 /* L2 Memory Disable. */
|
|
|
+
|
|
|
+/* Bit masks for SECURE_CONTROL */
|
|
|
+
|
|
|
+#define SECURE0 0x1 /* SECURE 0 */
|
|
|
+#define nSECURE0 0x0
|
|
|
+#define SECURE1 0x2 /* SECURE 1 */
|
|
|
+#define nSECURE1 0x0
|
|
|
+#define SECURE2 0x4 /* SECURE 2 */
|
|
|
+#define nSECURE2 0x0
|
|
|
+#define SECURE3 0x8 /* SECURE 3 */
|
|
|
+#define nSECURE3 0x0
|
|
|
+
|
|
|
+/* Bit masks for SECURE_STATUS */
|
|
|
+
|
|
|
+#define SECMODE 0x3 /* Secured Mode Control State */
|
|
|
+#define NMI 0x4 /* Non Maskable Interrupt */
|
|
|
+#define nNMI 0x0
|
|
|
+#define AFVALID 0x8 /* Authentication Firmware Valid */
|
|
|
+#define nAFVALID 0x0
|
|
|
+#define AFEXIT 0x10 /* Authentication Firmware Exit */
|
|
|
+#define nAFEXIT 0x0
|
|
|
+#define SECSTAT 0xe0 /* Secure Status */
|
|
|
+
|
|
|
+#endif /* _DEF_BF522_H */
|