1 /* 2 * Copyright 2008-2010 Analog Devices Inc. 3 * 4 * Licensed under the Clear BSD license or the GPL-2 (or later) 5 */ 6 7 #ifndef _CDEF_BF514_H 8 #define _CDEF_BF514_H 9 10 /* BF514 is BF512 + RSI */ 11 #include "cdefBF512.h" 12 13 /* Removable Storage Interface Registers */ 14 15 #define bfin_read_RSI_PWR_CTL() bfin_read16(RSI_PWR_CONTROL) 16 #define bfin_write_RSI_PWR_CTL(val) bfin_write16(RSI_PWR_CONTROL, val) 17 #define bfin_read_RSI_CLK_CTL() bfin_read16(RSI_CLK_CONTROL) 18 #define bfin_write_RSI_CLK_CTL(val) bfin_write16(RSI_CLK_CONTROL, val) 19 #define bfin_read_RSI_ARGUMENT() bfin_read32(RSI_ARGUMENT) 20 #define bfin_write_RSI_ARGUMENT(val) bfin_write32(RSI_ARGUMENT, val) 21 #define bfin_read_RSI_COMMAND() bfin_read16(RSI_COMMAND) 22 #define bfin_write_RSI_COMMAND(val) bfin_write16(RSI_COMMAND, val) 23 #define bfin_read_RSI_RESP_CMD() bfin_read16(RSI_RESP_CMD) 24 #define bfin_write_RSI_RESP_CMD(val) bfin_write16(RSI_RESP_CMD, val) 25 #define bfin_read_RSI_RESPONSE0() bfin_read32(RSI_RESPONSE0) 26 #define bfin_write_RSI_RESPONSE0(val) bfin_write32(RSI_RESPONSE0, val) 27 #define bfin_read_RSI_RESPONSE1() bfin_read32(RSI_RESPONSE1) 28 #define bfin_write_RSI_RESPONSE1(val) bfin_write32(RSI_RESPONSE1, val) 29 #define bfin_read_RSI_RESPONSE2() bfin_read32(RSI_RESPONSE2) 30 #define bfin_write_RSI_RESPONSE2(val) bfin_write32(RSI_RESPONSE2, val) 31 #define bfin_read_RSI_RESPONSE3() bfin_read32(RSI_RESPONSE3) 32 #define bfin_write_RSI_RESPONSE3(val) bfin_write32(RSI_RESPONSE3, val) 33 #define bfin_read_RSI_DATA_TIMER() bfin_read32(RSI_DATA_TIMER) 34 #define bfin_write_RSI_DATA_TIMER(val) bfin_write32(RSI_DATA_TIMER, val) 35 #define bfin_read_RSI_DATA_LGTH() bfin_read16(RSI_DATA_LGTH) 36 #define bfin_write_RSI_DATA_LGTH(val) bfin_write16(RSI_DATA_LGTH, val) 37 #define bfin_read_RSI_DATA_CTL() bfin_read16(RSI_DATA_CONTROL) 38 #define bfin_write_RSI_DATA_CTL(val) bfin_write16(RSI_DATA_CONTROL, val) 39 #define bfin_read_RSI_DATA_CNT() bfin_read16(RSI_DATA_CNT) 40 #define bfin_write_RSI_DATA_CNT(val) bfin_write16(RSI_DATA_CNT, val) 41 #define bfin_read_RSI_STATUS() bfin_read32(RSI_STATUS) 42 #define bfin_write_RSI_STATUS(val) bfin_write32(RSI_STATUS, val) 43 #define bfin_read_RSI_STATUS_CLR() bfin_read16(RSI_STATUSCL) 44 #define bfin_write_RSI_STATUS_CLR(val) bfin_write16(RSI_STATUSCL, val) 45 #define bfin_read_RSI_MASK0() bfin_read32(RSI_MASK0) 46 #define bfin_write_RSI_MASK0(val) bfin_write32(RSI_MASK0, val) 47 #define bfin_read_RSI_MASK1() bfin_read32(RSI_MASK1) 48 #define bfin_write_RSI_MASK1(val) bfin_write32(RSI_MASK1, val) 49 #define bfin_read_RSI_FIFO_CNT() bfin_read16(RSI_FIFO_CNT) 50 #define bfin_write_RSI_FIFO_CNT(val) bfin_write16(RSI_FIFO_CNT, val) 51 #define bfin_read_RSI_CEATA_CTL() bfin_read16(RSI_CEATA_CONTROL) 52 #define bfin_write_RSI_CEATA_CTL(val) bfin_write16(RSI_CEATA_CONTROL, val) 53 #define bfin_read_RSI_FIFO() bfin_read32(RSI_FIFO) 54 #define bfin_write_RSI_FIFO(val) bfin_write32(RSI_FIFO, val) 55 #define bfin_read_RSI_E_STATUS() bfin_read16(RSI_ESTAT) 56 #define bfin_write_RSI_E_STATUS(val) bfin_write16(RSI_ESTAT, val) 57 #define bfin_read_RSI_E_MASK() bfin_read16(RSI_EMASK) 58 #define bfin_write_RSI_E_MASK(val) bfin_write16(RSI_EMASK, val) 59 #define bfin_read_RSI_CFG() bfin_read16(RSI_CONFIG) 60 #define bfin_write_RSI_CFG(val) bfin_write16(RSI_CONFIG, val) 61 #define bfin_read_RSI_RD_WAIT_EN() bfin_read16(RSI_RD_WAIT_EN) 62 #define bfin_write_RSI_RD_WAIT_EN(val) bfin_write16(RSI_RD_WAIT_EN, val) 63 #define bfin_read_RSI_PID0() bfin_read16(RSI_PID0) 64 #define bfin_write_RSI_PID0(val) bfin_write16(RSI_PID0, val) 65 #define bfin_read_RSI_PID1() bfin_read16(RSI_PID1) 66 #define bfin_write_RSI_PID1(val) bfin_write16(RSI_PID1, val) 67 #define bfin_read_RSI_PID2() bfin_read16(RSI_PID2) 68 #define bfin_write_RSI_PID2(val) bfin_write16(RSI_PID2, val) 69 #define bfin_read_RSI_PID3() bfin_read16(RSI_PID3) 70 #define bfin_write_RSI_PID3(val) bfin_write16(RSI_PID3, val) 71 #define bfin_read_RSI_PID4() bfin_read16(RSI_PID4) 72 #define bfin_write_RSI_PID4(val) bfin_write16(RSI_PID4, val) 73 #define bfin_read_RSI_PID5() bfin_read16(RSI_PID5) 74 #define bfin_write_RSI_PID5(val) bfin_write16(RSI_PID5, val) 75 #define bfin_read_RSI_PID6() bfin_read16(RSI_PID6) 76 #define bfin_write_RSI_PID6(val) bfin_write16(RSI_PID6, val) 77 #define bfin_read_RSI_PID7() bfin_read16(RSI_PID7) 78 #define bfin_write_RSI_PID7(val) bfin_write16(RSI_PID7, val) 79 80 #endif /* _CDEF_BF514_H */ 81