- renamed SPI registers
git-svn-id: http://moon:8086/svn/mips@49 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -58,23 +58,22 @@
|
||||
#define SYS_UART_STAT (SYS_IO_BASE + 0x10004)
|
||||
#define SYS_UART_BAUD (SYS_IO_BASE + 0x10008)
|
||||
|
||||
#define SYS_SPI_CTRL_STAT (SYS_IO_BASE + 0x20000)
|
||||
#define SYS_SPI_STAT (SYS_IO_BASE + 0x20000)
|
||||
// Read
|
||||
#define SPI_CMD_STAT_CMDRDY (0x01)
|
||||
#define SPI_CMD_STAT_DINRDY (0x02)
|
||||
#define SPI_CMD_STAT_DOUTRDY (0x04)
|
||||
|
||||
#define SPI_CMD_STAT_CMD_FIFO_FULL (0x0100)
|
||||
#define SPI_CMD_STAT_CMD_FIFO_EMPTY (0x0200)
|
||||
#define SPI_CMD_STAT_WRITE_FIFO_FULL (0x0400)
|
||||
#define SPI_CMD_STAT_WRITE_FIFO_EMPTY (0x0800)
|
||||
#define SPI_CMD_STAT_READ_FIFO_FULL (0x1000)
|
||||
#define SPI_CMD_STAT_READ_FIFO_EMPTY (0x2000)
|
||||
#define SPI_CMD_STAT_RX_VALID (0x4000)
|
||||
#define SPI_CMD_STAT_SPI_HOLD (0x8000)
|
||||
#define SPI_STAT_CMDRDY (0x01)
|
||||
#define SPI_STAT_DINRDY (0x02)
|
||||
#define SPI_STAT_DOUTRDY (0x04)
|
||||
#define SPI_STAT_CMD_FIFO_FULL (0x0100)
|
||||
#define SPI_STAT_CMD_FIFO_EMPTY (0x0200)
|
||||
#define SPI_STAT_WRITE_FIFO_FULL (0x0400)
|
||||
#define SPI_STAT_WRITE_FIFO_EMPTY (0x0800)
|
||||
#define SPI_STAT_READ_FIFO_FULL (0x1000)
|
||||
#define SPI_STAT_READ_FIFO_EMPTY (0x2000)
|
||||
#define SPI_STAT_RX_VALID (0x4000)
|
||||
#define SPI_STAT_SPI_HOLD (0x8000)
|
||||
|
||||
// Write
|
||||
#define SPI_CMD_CTRL_COMMIT (1)
|
||||
#define SPI_STAT_COMMIT (1)
|
||||
|
||||
#define SYS_SPI_XFER_SIZE (SYS_IO_BASE + 0x20004)
|
||||
#define SYS_SPI_DATA_SIZE (SYS_IO_BASE + 0x20008)
|
||||
|
||||
Reference in New Issue
Block a user