cdefBF514.h 4.5 KB

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