Ticket #9800: 978-bcm63xx_spi_regs_fix.patch

File 978-bcm63xx_spi_regs_fix.patch, 1.7 KB (added by stokie-ant@…, 5 years ago)
  • arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h

    a b  
    792792#define SPI_BCM_6338_SPI_RX_DATA_SIZE   0x3f 
    793793 
    794794/* BCM 6348 SPI core */ 
    795 #define SPI_BCM_6348_SPI_INT_MASK_ST    0x00 
    796 #define SPI_BCM_6348_SPI_INT_STATUS     0x01 
    797 #define SPI_BCM_6348_SPI_CMD            0x02    /* 16-bits register */ 
    798 #define SPI_BCM_6348_SPI_FILL_BYTE      0x04 
    799 #define SPI_BCM_6348_SPI_CLK_CFG        0x05 
    800 #define SPI_BCM_6348_SPI_ST             0x06 
    801 #define SPI_BCM_6348_SPI_INT_MASK       0x07 
    802 #define SPI_BCM_6348_SPI_RX_TAIL        0x08 
    803 #define SPI_BCM_6348_SPI_MSG_TAIL       0x10 
    804 #define SPI_BCM_6348_SPI_MSG_DATA       0x40 
    805 #define SPI_BCM_6348_SPI_MSG_CTL        0x42 
    806 #define SPI_BCM_6348_SPI_MSG_DATA_SIZE  0x3f 
     795#define SPI_BCM_6348_SPI_CMD            0x00    /* 16-bits register */ 
     796#define SPI_BCM_6348_SPI_INT_STATUS     0x02 
     797#define SPI_BCM_6348_SPI_INT_MASK_ST    0x03 
     798#define SPI_BCM_6348_SPI_INT_MASK       0x04 
     799#define SPI_BCM_6348_SPI_ST             0x05 
     800#define SPI_BCM_6348_SPI_CLK_CFG        0x06 
     801#define SPI_BCM_6348_SPI_FILL_BYTE      0x07 
     802#define SPI_BCM_6348_SPI_MSG_TAIL       0x09 
     803#define SPI_BCM_6348_SPI_RX_TAIL        0x0b 
     804#define SPI_BCM_6348_SPI_MSG_CTL        0x40 
     805#define SPI_BCM_6348_SPI_MSG_DATA       0x41 
     806#define SPI_BCM_6348_SPI_MSG_DATA_SIZE  0x3e 
    807807#define SPI_BCM_6348_SPI_RX_DATA        0x80 
    808808#define SPI_BCM_6348_SPI_RX_DATA_SIZE   0x3f 
    809809 
     
    841841#define SPI_MSG_TYPE_SHIFT              14 
    842842 
    843843/* Command */ 
    844 #define SPI_CMD_NOOP                    0x01 
    845 #define SPI_CMD_SOFT_RESET              0x02 
    846 #define SPI_CMD_HARD_RESET              0x04 
    847 #define SPI_CMD_START_IMMEDIATE         0x08 
     844#define SPI_CMD_NOOP                    0x00 
     845#define SPI_CMD_SOFT_RESET              0x01 
     846#define SPI_CMD_HARD_RESET              0x02 
     847#define SPI_CMD_START_IMMEDIATE         0x03 
    848848#define SPI_CMD_COMMAND_SHIFT           0 
    849849#define SPI_CMD_COMMAND_MASK            0x000f 
    850850#define SPI_CMD_DEVICE_ID_SHIFT         4