aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorManuel Lauss <manuel.lauss@gmail.com>2014-02-20 08:59:24 -0500
committerRalf Baechle <ralf@linux-mips.org>2014-03-26 18:09:21 -0400
commit970e268d6ed1f1799829cc0c87ea271a9e127e79 (patch)
treee58e6ebbb7061a9f578d35cf254dc35054c90990 /drivers/spi
parent88e9a93c9d53ddcf633aa07f14245da7f30408c2 (diff)
MIPS: Alchemy: Unify Devboard support.
This patch merges support for all DB1xxx and PB1xxx boards into a single image, along with a new single defconfig for them. Run-tested on DB1300 and DB1500. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> Cc: Linux-MIPS <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/6577/ Patchwork: https://patchwork.linux-mips.org/patch/6659/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-au1550.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c
index c4141c92bcff..2ca4ee24755b 100644
--- a/drivers/spi/spi-au1550.c
+++ b/drivers/spi/spi-au1550.c
@@ -999,6 +999,15 @@ static int __init au1550_spi_init(void)
999 * create memory device with 8 bits dev_devwidth 999 * create memory device with 8 bits dev_devwidth
1000 * needed for proper byte ordering to spi fifo 1000 * needed for proper byte ordering to spi fifo
1001 */ 1001 */
1002 switch (alchemy_get_cputype()) {
1003 case ALCHEMY_CPU_AU1550:
1004 case ALCHEMY_CPU_AU1200:
1005 case ALCHEMY_CPU_AU1300:
1006 break;
1007 default:
1008 return -ENODEV;
1009 }
1010
1002 if (usedma) { 1011 if (usedma) {
1003 ddma_memid = au1xxx_ddma_add_device(&au1550_spi_mem_dbdev); 1012 ddma_memid = au1xxx_ddma_add_device(&au1550_spi_mem_dbdev);
1004 if (!ddma_memid) 1013 if (!ddma_memid)