Changeset 21162


Ignore:
Timestamp:
2010-04-26T11:22:23+02:00 (8 years ago)
Author:
florian
Message:

[brcm63xx] the SPI_CMD register is 16-bits wide

Location:
trunk/target/linux/brcm63xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/patches-2.6.32/240-spi.patch

    r21096 r21162  
    650650+ 
    651651+       /* Issue the transfer */ 
    652 +       cmd = bcm_spi_readb(bs->regs, SPI_CMD); 
     652+       cmd = bcm_spi_readw(bs->regs, SPI_CMD); 
    653653+       cmd |= SPI_CMD_START_IMMEDIATE; 
    654654+       cmd |= (0 << SPI_CMD_PREPEND_BYTE_CNT_SHIFT); 
    655 +       bcm_spi_writeb(cmd, bs->regs, SPI_CMD); 
     655+       bcm_spi_writew(cmd, bs->regs, SPI_CMD); 
    656656+ 
    657657+       wait_for_completion(&bs->done); 
     
    698698+ 
    699699+                       /* Start the transfer */ 
    700 +                       cmd = bcm_spi_readb(bs->regs, SPI_CMD); 
     700+                       cmd = bcm_spi_readw(bs->regs, SPI_CMD); 
    701701+                       cmd |= SPI_CMD_START_IMMEDIATE; 
    702702+                       cmd |= (0 << SPI_CMD_PREPEND_BYTE_CNT_SHIFT); 
    703 +                       bcm_spi_writeb(cmd, bs->regs, SPI_CMD); 
     703+                       bcm_spi_writew(cmd, bs->regs, SPI_CMD); 
    704704+               } else 
    705705+                       complete(&bs->done); 
  • trunk/target/linux/brcm63xx/patches-2.6.33/240-spi.patch

    r21096 r21162  
    640640+ 
    641641+       /* Issue the transfer */ 
    642 +       cmd = bcm_spi_readb(bs->regs, SPI_CMD); 
     642+       cmd = bcm_spi_readw(bs->regs, SPI_CMD); 
    643643+       cmd |= SPI_CMD_START_IMMEDIATE; 
    644644+       cmd |= (0 << SPI_CMD_PREPEND_BYTE_CNT_SHIFT); 
    645 +       bcm_spi_writeb(cmd, bs->regs, SPI_CMD); 
     645+       bcm_spi_writew(cmd, bs->regs, SPI_CMD); 
    646646+ 
    647647+       wait_for_completion(&bs->done); 
     
    688688+ 
    689689+                       /* Start the transfer */ 
    690 +                       cmd = bcm_spi_readb(bs->regs, SPI_CMD); 
     690+                       cmd = bcm_spi_readw(bs->regs, SPI_CMD); 
    691691+                       cmd |= SPI_CMD_START_IMMEDIATE; 
    692692+                       cmd |= (0 << SPI_CMD_PREPEND_BYTE_CNT_SHIFT); 
    693 +                       bcm_spi_writeb(cmd, bs->regs, SPI_CMD); 
     693+                       bcm_spi_writew(cmd, bs->regs, SPI_CMD); 
    694694+               } else 
    695695+                       complete(&bs->done); 
Note: See TracChangeset for help on using the changeset viewer.