Changeset 14754


Ignore:
Timestamp:
2009-03-06T02:13:10+01:00 (7 years ago)
Author:
florian
Message:

[brcm63xx] fix SPI register definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm63xx_regs.h

    r14048 r14754  
    758758 
    759759/* BCM 6338 SPI core */ 
    760 #define SPI_BCM_6338_SPI_CMD            0x00 
     760#define SPI_BCM_6338_SPI_CMD            0x00    /* 16-bits register */ 
    761761#define SPI_BCM_6338_SPI_INT_STATUS     0x02 
    762762#define SPI_BCM_6338_SPI_MASK_INT_ST    0x03 
     
    774774 
    775775/* BCM 6348 SPI core */ 
    776 #define SPI_BCM_6348_SPI_CMD1           0x00 
    777 #define SPI_BCM_6348_SPI_CMD2           0x04 
    778 #define SPI_BCM_6348_SPI_TAIL           0x08 
     776#define SPI_BCM_6348_SPI_MASK_INT_ST    0x00 
     777#define SPI_BCM_6348_SPI_INT_STATUS     0x01 
     778#define SPI_BCM_6348_SPI_CMD            0x02    /* 16-bits register */ 
     779#define SPI_BCM_6348_SPI_FILL_BYTE      0x04 
     780#define SPI_BCM_6348_SPI_CLK_CFG        0x05 
     781#define SPI_BCM_6348_SPI_ST             0x06 
     782#define SPI_BCM_6348_SPI_INT_MASK       0x07 
     783#define SPI_BCM_6348_SPI_RX_TAIL        0x08 
     784#define SPI_BCM_6348_SPI_MSG_TAIL       0x10 
    779785#define SPI_BCM_6348_SPI_MSG_DATA       0x40 
     786#define SPI_BCM_6348_SPI_MSG_CTL        0x42 
    780787#define SPI_BCM_6348_SPI_MSG_DATA_SIZE  0x3f 
    781788#define SPI_BCM_6348_SPI_RX_DATA        0x80 
     
    783790 
    784791/* BCM 6358 SPI core */ 
    785 #define SPI_BCM_6358_MSG_CTL            0x00 
     792#define SPI_BCM_6358_MSG_CTL            0x00    /* 16-bits register */ 
    786793 
    787794#define SPI_BCM_6358_SPI_MSG_DATA       0x02 
     
    791798#define SPI_BCM_6358_SPI_RX_FIFO_SIZE   0x220 
    792799 
    793 #define SPI_BCM_6358_SPI_CMD            0x700 
     800#define SPI_BCM_6358_SPI_CMD            0x700   /* 16-bits register */ 
    794801 
    795802#define SPI_BCM_6358_SPI_INT_STATUS     0x702 
     
    812819#define SPI_HD_W                        1 
    813820#define SPI_HD_R                        2 
     821#define SPI_BYTE_CNT_SHIFT              0 
    814822#define SPI_MSG_TYPE_SHIFT              14 
    815823 
Note: See TracChangeset for help on using the changeset viewer.