diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-03-11 10:32:44 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-03-11 10:32:44 +0000 |
commit | af780d06cb9e5c58a77e099bdfdda4bc49583a47 (patch) | |
tree | d2346dc184af170e0d750edad50c83619b1a2945 /target/linux/brcm63xx/files/arch/mips/bcm63xx | |
parent | f7f453685cb56a12ce0c2d9be74f033bfc35fc3b (diff) |
[brcm63xx] do not duplicate fifo_size, since RX and TX fifo sizes are the same, request_mem_region on the registers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14848 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files/arch/mips/bcm63xx')
-rw-r--r-- | target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c index bfbda2b17..1ba4aded3 100644 --- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c +++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c @@ -50,15 +50,11 @@ int __init bcm63xx_spi_register(void) spi_resources[1].start = bcm63xx_get_irq_number(IRQ_SPI); /* Fill in platform data */ - if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) { - spi_pdata.msg_fifo_size = SPI_BCM_6338_SPI_MSG_DATA_SIZE; - spi_pdata.rx_fifo_size = SPI_BCM_6338_SPI_RX_DATA_SIZE; - } + if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) + spi_pdata.fifo_size = SPI_BCM_6338_SPI_MSG_DATA_SIZE; - if (BCMCPU_IS_6358()) { - spi_pdata.msg_fifo_size = SPI_BCM_6358_SPI_MSG_DATA_SIZE; - spi_pdata.rx_fifo_size = SPI_BCM_6358_SPI_RX_DATA_SIZE; - } + if (BCMCPU_IS_6358()) + spi_pdata.fifo_size = SPI_BCM_6358_SPI_MSG_DATA_SIZE; return platform_device_register(&bcm63xx_spi_device); } |