X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Farm%2Fmach-footbridge%2Fnetwinder-hw.c;h=c81775b1a42d5834de73cdebe3f3bab607219a88;hb=3ec04f3d2903fdf6d9849a8633af59b8628164a5;hp=5ec9ea989823b5b28ea2a5e804f0593a03fc112e;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/arch/arm/mach-footbridge/netwinder-hw.c b/arch/arm/mach-footbridge/netwinder-hw.c index 5ec9ea989..c81775b1a 100644 --- a/arch/arm/mach-footbridge/netwinder-hw.c +++ b/arch/arm/mach-footbridge/netwinder-hw.c @@ -12,15 +12,9 @@ #include #include -#include #include #include #include -#include - -#include - -#include "common.h" #define IRDA_IO_BASE 0x180 #define GP1_IO_BASE 0x338 @@ -58,7 +52,7 @@ static inline void wb977_ww(int reg, int val) outb(reg, 0x370); outb(val >> 8, 0x371); outb(reg + 1, 0x370); - outb(val & 255, 0x371); + outb(val, 0x371); } #define wb977_device_select(dev) wb977_wb(0x07, dev) @@ -488,7 +482,7 @@ static inline void rwa010_waveartist_init(int base, int irq, int dma) WRITE_RWA(7, 0); dprintk("WaveArtist base: "); - WRITE_RWA(0x61, base & 255); + WRITE_RWA(0x61, base); i = inb(0x203); WRITE_RWA(0x60, base >> 8); @@ -510,7 +504,7 @@ static inline void rwa010_soundblaster_init(int sb_base, int al_base, int irq, i WRITE_RWA(7, 1); dprintk("SoundBlaster base: "); - WRITE_RWA(0x61, sb_base & 255); + WRITE_RWA(0x61, sb_base); i = inb(0x203); WRITE_RWA(0x60, sb_base >> 8); @@ -525,7 +519,7 @@ static inline void rwa010_soundblaster_init(int sb_base, int al_base, int irq, i dprintk("%d (%d)\n", inb(0x203), dma); dprintk("AdLib base: "); - WRITE_RWA(0x63, al_base & 255); + WRITE_RWA(0x63, al_base); i = inb(0x203); WRITE_RWA(0x62, al_base >> 8); @@ -624,37 +618,3 @@ static int __init nw_hw_init(void) } __initcall(nw_hw_init); - -/* - * Older NeTTroms either do not provide a parameters - * page, or they don't supply correct information in - * the parameter page. - */ -static void __init -fixup_netwinder(struct machine_desc *desc, struct tag *tags, - char **cmdline, struct meminfo *mi) -{ -#ifdef CONFIG_ISAPNP - extern int isapnp_disable; - - /* - * We must not use the kernels ISAPnP code - * on the NetWinder - it will reset the settings - * for the WaveArtist chip and render it inoperable. - */ - isapnp_disable = 1; -#endif -} - -MACHINE_START(NETWINDER, "Rebel-NetWinder") - MAINTAINER("Russell King/Rebel.com") - BOOT_MEM(0x00000000, DC21285_ARMCSR_BASE, 0xfe000000) - BOOT_PARAMS(0x00000100) - VIDEO(0x000a0000, 0x000bffff) - DISABLE_PARPORT(0) - DISABLE_PARPORT(2) - FIXUP(fixup_netwinder) - MAPIO(footbridge_map_io) - INITIRQ(footbridge_init_irq) - .timer = &isa_timer, -MACHINE_END