aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/files/arch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-03-11 10:32:44 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-03-11 10:32:44 +0000
commit4b5f21833cb090fe7893e7604823ef3676a11ee6 (patch)
treed2346dc184af170e0d750edad50c83619b1a2945 /target/linux/brcm63xx/files/arch
parent6ee24eaca75534ebb98802820e6ef170dd72d0c5 (diff)
downloadupstream-4b5f21833cb090fe7893e7604823ef3676a11ee6.tar.gz
upstream-4b5f21833cb090fe7893e7604823ef3676a11ee6.tar.bz2
upstream-4b5f21833cb090fe7893e7604823ef3676a11ee6.zip
[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')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c12
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 bfbda2b17f..1ba4aded3a 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);
}