diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2011-11-10 07:06:22 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-12-07 17:02:07 -0500 |
commit | f59c811f8c44e60a59783e3337594da638a48dff (patch) | |
tree | 673e070d8affa4703b3c6c686b4a93b366b68a4c /drivers/net | |
parent | 6f7c8623db005889ee35a602e0c2564ea06cd3ff (diff) |
MIPS: Alchemy: one kernel for DB1000/DB1500/DB1100
These 3 boards are very similar; with this patch a single kernel image
which runs on all three can be built.
Tested on DB1500 and DB1100.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2872/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/irda/au1k_ir.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/irda/au1k_ir.c b/drivers/net/irda/au1k_ir.c index d1a77ef9b9e8..670bb0591217 100644 --- a/drivers/net/irda/au1k_ir.c +++ b/drivers/net/irda/au1k_ir.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <asm/irq.h> | 32 | #include <asm/irq.h> |
33 | #include <asm/io.h> | 33 | #include <asm/io.h> |
34 | #include <asm/au1000.h> | 34 | #include <asm/au1000.h> |
35 | #if defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) | 35 | #if defined(CONFIG_MIPS_DB1000) |
36 | #include <asm/mach-db1x00/bcsr.h> | 36 | #include <asm/mach-db1x00/bcsr.h> |
37 | #else | 37 | #else |
38 | #error au1k_ir: unsupported board | 38 | #error au1k_ir: unsupported board |
@@ -274,7 +274,7 @@ static int au1k_irda_net_init(struct net_device *dev) | |||
274 | aup->tx_db_inuse[i] = pDB; | 274 | aup->tx_db_inuse[i] = pDB; |
275 | } | 275 | } |
276 | 276 | ||
277 | #if defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) | 277 | #if defined(CONFIG_MIPS_DB1000) |
278 | /* power on */ | 278 | /* power on */ |
279 | bcsr_mod(BCSR_RESETS, BCSR_RESETS_IRDA_MODE_MASK, | 279 | bcsr_mod(BCSR_RESETS, BCSR_RESETS_IRDA_MODE_MASK, |
280 | BCSR_RESETS_IRDA_MODE_FULL); | 280 | BCSR_RESETS_IRDA_MODE_FULL); |
@@ -662,7 +662,7 @@ au1k_irda_set_speed(struct net_device *dev, int speed) | |||
662 | u32 control; | 662 | u32 control; |
663 | int ret = 0, timeout = 10, i; | 663 | int ret = 0, timeout = 10, i; |
664 | volatile ring_dest_t *ptxd; | 664 | volatile ring_dest_t *ptxd; |
665 | #if defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) | 665 | #if defined(CONFIG_MIPS_DB1000) |
666 | unsigned long irda_resets; | 666 | unsigned long irda_resets; |
667 | #endif | 667 | #endif |
668 | 668 | ||
@@ -711,14 +711,14 @@ au1k_irda_set_speed(struct net_device *dev, int speed) | |||
711 | } | 711 | } |
712 | 712 | ||
713 | if (speed == 4000000) { | 713 | if (speed == 4000000) { |
714 | #if defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) | 714 | #if defined(CONFIG_MIPS_DB1000) |
715 | bcsr_mod(BCSR_RESETS, 0, BCSR_RESETS_FIR_SEL); | 715 | bcsr_mod(BCSR_RESETS, 0, BCSR_RESETS_FIR_SEL); |
716 | #else /* Pb1000 and Pb1100 */ | 716 | #else /* Pb1000 and Pb1100 */ |
717 | writel(1<<13, CPLD_AUX1); | 717 | writel(1<<13, CPLD_AUX1); |
718 | #endif | 718 | #endif |
719 | } | 719 | } |
720 | else { | 720 | else { |
721 | #if defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) | 721 | #if defined(CONFIG_MIPS_DB1000) |
722 | bcsr_mod(BCSR_RESETS, BCSR_RESETS_FIR_SEL, 0); | 722 | bcsr_mod(BCSR_RESETS, BCSR_RESETS_FIR_SEL, 0); |
723 | #else /* Pb1000 and Pb1100 */ | 723 | #else /* Pb1000 and Pb1100 */ |
724 | writel(readl(CPLD_AUX1) & ~(1<<13), CPLD_AUX1); | 724 | writel(readl(CPLD_AUX1) & ~(1<<13), CPLD_AUX1); |