|
@@ -831,3 +831,66 @@
|
|
|
#define bfin_write_PPI_STATUS(val) bfin_write16(PPI_STATUS, val)
|
|
|
#define bfin_clear_PPI_STATUS() bfin_write_PPI_STATUS(0xFFFF)
|
|
|
#define bfin_read_PPI_DELAY() bfin_read16(PPI_DELAY)
|
|
|
+#define bfin_write_PPI_DELAY(val) bfin_write16(PPI_DELAY, val)
|
|
|
+#define bfin_read_PPI_COUNT() bfin_read16(PPI_COUNT)
|
|
|
+#define bfin_write_PPI_COUNT(val) bfin_write16(PPI_COUNT, val)
|
|
|
+#define bfin_read_PPI_FRAME() bfin_read16(PPI_FRAME)
|
|
|
+#define bfin_write_PPI_FRAME(val) bfin_write16(PPI_FRAME, val)
|
|
|
+
|
|
|
+
|
|
|
+/* Two-Wire Interface (0xFFC01400 - 0xFFC014FF) */
|
|
|
+
|
|
|
+/* General Purpose I/O Port G (0xFFC01500 - 0xFFC015FF) */
|
|
|
+#define bfin_read_PORTGIO() bfin_read16(PORTGIO)
|
|
|
+#define bfin_write_PORTGIO(val) bfin_write16(PORTGIO, val)
|
|
|
+#define bfin_read_PORTGIO_CLEAR() bfin_read16(PORTGIO_CLEAR)
|
|
|
+#define bfin_write_PORTGIO_CLEAR(val) bfin_write16(PORTGIO_CLEAR, val)
|
|
|
+#define bfin_read_PORTGIO_SET() bfin_read16(PORTGIO_SET)
|
|
|
+#define bfin_write_PORTGIO_SET(val) bfin_write16(PORTGIO_SET, val)
|
|
|
+#define bfin_read_PORTGIO_TOGGLE() bfin_read16(PORTGIO_TOGGLE)
|
|
|
+#define bfin_write_PORTGIO_TOGGLE(val) bfin_write16(PORTGIO_TOGGLE, val)
|
|
|
+#define bfin_read_PORTGIO_MASKA() bfin_read16(PORTGIO_MASKA)
|
|
|
+#define bfin_write_PORTGIO_MASKA(val) bfin_write16(PORTGIO_MASKA, val)
|
|
|
+#define bfin_read_PORTGIO_MASKA_CLEAR() bfin_read16(PORTGIO_MASKA_CLEAR)
|
|
|
+#define bfin_write_PORTGIO_MASKA_CLEAR(val) bfin_write16(PORTGIO_MASKA_CLEAR, val)
|
|
|
+#define bfin_read_PORTGIO_MASKA_SET() bfin_read16(PORTGIO_MASKA_SET)
|
|
|
+#define bfin_write_PORTGIO_MASKA_SET(val) bfin_write16(PORTGIO_MASKA_SET, val)
|
|
|
+#define bfin_read_PORTGIO_MASKA_TOGGLE() bfin_read16(PORTGIO_MASKA_TOGGLE)
|
|
|
+#define bfin_write_PORTGIO_MASKA_TOGGLE(val) bfin_write16(PORTGIO_MASKA_TOGGLE, val)
|
|
|
+#define bfin_read_PORTGIO_MASKB() bfin_read16(PORTGIO_MASKB)
|
|
|
+#define bfin_write_PORTGIO_MASKB(val) bfin_write16(PORTGIO_MASKB, val)
|
|
|
+#define bfin_read_PORTGIO_MASKB_CLEAR() bfin_read16(PORTGIO_MASKB_CLEAR)
|
|
|
+#define bfin_write_PORTGIO_MASKB_CLEAR(val) bfin_write16(PORTGIO_MASKB_CLEAR, val)
|
|
|
+#define bfin_read_PORTGIO_MASKB_SET() bfin_read16(PORTGIO_MASKB_SET)
|
|
|
+#define bfin_write_PORTGIO_MASKB_SET(val) bfin_write16(PORTGIO_MASKB_SET, val)
|
|
|
+#define bfin_read_PORTGIO_MASKB_TOGGLE() bfin_read16(PORTGIO_MASKB_TOGGLE)
|
|
|
+#define bfin_write_PORTGIO_MASKB_TOGGLE(val) bfin_write16(PORTGIO_MASKB_TOGGLE, val)
|
|
|
+#define bfin_read_PORTGIO_DIR() bfin_read16(PORTGIO_DIR)
|
|
|
+#define bfin_write_PORTGIO_DIR(val) bfin_write16(PORTGIO_DIR, val)
|
|
|
+#define bfin_read_PORTGIO_POLAR() bfin_read16(PORTGIO_POLAR)
|
|
|
+#define bfin_write_PORTGIO_POLAR(val) bfin_write16(PORTGIO_POLAR, val)
|
|
|
+#define bfin_read_PORTGIO_EDGE() bfin_read16(PORTGIO_EDGE)
|
|
|
+#define bfin_write_PORTGIO_EDGE(val) bfin_write16(PORTGIO_EDGE, val)
|
|
|
+#define bfin_read_PORTGIO_BOTH() bfin_read16(PORTGIO_BOTH)
|
|
|
+#define bfin_write_PORTGIO_BOTH(val) bfin_write16(PORTGIO_BOTH, val)
|
|
|
+#define bfin_read_PORTGIO_INEN() bfin_read16(PORTGIO_INEN)
|
|
|
+#define bfin_write_PORTGIO_INEN(val) bfin_write16(PORTGIO_INEN, val)
|
|
|
+
|
|
|
+
|
|
|
+/* General Purpose I/O Port H (0xFFC01700 - 0xFFC017FF) */
|
|
|
+#define bfin_read_PORTHIO() bfin_read16(PORTHIO)
|
|
|
+#define bfin_write_PORTHIO(val) bfin_write16(PORTHIO, val)
|
|
|
+#define bfin_read_PORTHIO_CLEAR() bfin_read16(PORTHIO_CLEAR)
|
|
|
+#define bfin_write_PORTHIO_CLEAR(val) bfin_write16(PORTHIO_CLEAR, val)
|
|
|
+#define bfin_read_PORTHIO_SET() bfin_read16(PORTHIO_SET)
|
|
|
+#define bfin_write_PORTHIO_SET(val) bfin_write16(PORTHIO_SET, val)
|
|
|
+#define bfin_read_PORTHIO_TOGGLE() bfin_read16(PORTHIO_TOGGLE)
|
|
|
+#define bfin_write_PORTHIO_TOGGLE(val) bfin_write16(PORTHIO_TOGGLE, val)
|
|
|
+#define bfin_read_PORTHIO_MASKA() bfin_read16(PORTHIO_MASKA)
|
|
|
+#define bfin_write_PORTHIO_MASKA(val) bfin_write16(PORTHIO_MASKA, val)
|
|
|
+#define bfin_read_PORTHIO_MASKA_CLEAR() bfin_read16(PORTHIO_MASKA_CLEAR)
|
|
|
+#define bfin_write_PORTHIO_MASKA_CLEAR(val) bfin_write16(PORTHIO_MASKA_CLEAR, val)
|
|
|
+#define bfin_read_PORTHIO_MASKA_SET() bfin_read16(PORTHIO_MASKA_SET)
|
|
|
+#define bfin_write_PORTHIO_MASKA_SET(val) bfin_write16(PORTHIO_MASKA_SET, val)
|
|
|
+#define bfin_read_PORTHIO_MASKA_TOGGLE() bfin_read16(PORTHIO_MASKA_TOGGLE)
|
|
|
+#define bfin_write_PORTHIO_MASKA_TOGGLE(val) bfin_write16(PORTHIO_MASKA_TOGGLE, val)
|