diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 12:17:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 12:17:27 -0400 |
commit | 946880fa270c18c137654af70ba939f03181c6b6 (patch) | |
tree | 1fc66f0f55c17be3026d55fc261f4cbddaf80e90 /arch/arm/mach-ixp4xx/include/mach | |
parent | 636d17427b1ef0e97bd9df9b3b0e0f314ff889d3 (diff) | |
parent | 42ea573f872365b0797ddbcee2e1f1f48913f507 (diff) |
Merge branch 'ixp4xx' of git://git.kernel.org/pub/scm/linux/kernel/git/chris/linux-2.6
* 'ixp4xx' of git://git.kernel.org/pub/scm/linux/kernel/git/chris/linux-2.6:
IXP4xx: Fix LL debugging on little-endian CPU.
IXP4xx: Fix sparse warnings in I/O primitives.
IXP4xx: Make mdio_bus struct static in the Ethernet driver.
IXP4xx: Fix ixp4xx_crypto little-endian operation.
IXP4xx: Prevent HSS transmitter lockup by disabling FRaMe signals.
ixp4xx/vulcan: add PCI support
ixp4xx: base support for Arcom Vulcan
Diffstat (limited to 'arch/arm/mach-ixp4xx/include/mach')
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/debug-macro.S | 2 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/io.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-ixp4xx/include/mach/debug-macro.S b/arch/arm/mach-ixp4xx/include/mach/debug-macro.S index 893873eb2a0d..3fc66d6d00a0 100644 --- a/arch/arm/mach-ixp4xx/include/mach/debug-macro.S +++ b/arch/arm/mach-ixp4xx/include/mach/debug-macro.S | |||
@@ -16,8 +16,10 @@ | |||
16 | moveq \rx, #0xc8000000 | 16 | moveq \rx, #0xc8000000 |
17 | movne \rx, #0xff000000 | 17 | movne \rx, #0xff000000 |
18 | orrne \rx, \rx, #0x00b00000 | 18 | orrne \rx, \rx, #0x00b00000 |
19 | #ifdef __ARMEB__ | ||
19 | add \rx,\rx,#3 @ Uart regs are at off set of 3 if | 20 | add \rx,\rx,#3 @ Uart regs are at off set of 3 if |
20 | @ byte writes used - Big Endian. | 21 | @ byte writes used - Big Endian. |
22 | #endif | ||
21 | .endm | 23 | .endm |
22 | 24 | ||
23 | #define UART_SHIFT 2 | 25 | #define UART_SHIFT 2 |
diff --git a/arch/arm/mach-ixp4xx/include/mach/io.h b/arch/arm/mach-ixp4xx/include/mach/io.h index 6ea7e2fb2701..de274a1f19d7 100644 --- a/arch/arm/mach-ixp4xx/include/mach/io.h +++ b/arch/arm/mach-ixp4xx/include/mach/io.h | |||
@@ -353,7 +353,7 @@ static inline unsigned int ioread8(const void __iomem *addr) | |||
353 | return (unsigned int)inb(port & PIO_MASK); | 353 | return (unsigned int)inb(port & PIO_MASK); |
354 | else | 354 | else |
355 | #ifndef CONFIG_IXP4XX_INDIRECT_PCI | 355 | #ifndef CONFIG_IXP4XX_INDIRECT_PCI |
356 | return (unsigned int)__raw_readb(port); | 356 | return (unsigned int)__raw_readb(addr); |
357 | #else | 357 | #else |
358 | return (unsigned int)__indirect_readb(addr); | 358 | return (unsigned int)__indirect_readb(addr); |
359 | #endif | 359 | #endif |
@@ -381,7 +381,7 @@ static inline unsigned int ioread16(const void __iomem *addr) | |||
381 | return (unsigned int)inw(port & PIO_MASK); | 381 | return (unsigned int)inw(port & PIO_MASK); |
382 | else | 382 | else |
383 | #ifndef CONFIG_IXP4XX_INDIRECT_PCI | 383 | #ifndef CONFIG_IXP4XX_INDIRECT_PCI |
384 | return le16_to_cpu(__raw_readw((u32)port)); | 384 | return le16_to_cpu((__force __le16)__raw_readw(addr)); |
385 | #else | 385 | #else |
386 | return (unsigned int)__indirect_readw(addr); | 386 | return (unsigned int)__indirect_readw(addr); |
387 | #endif | 387 | #endif |
@@ -440,7 +440,7 @@ static inline void iowrite8(u8 value, void __iomem *addr) | |||
440 | outb(value, port & PIO_MASK); | 440 | outb(value, port & PIO_MASK); |
441 | else | 441 | else |
442 | #ifndef CONFIG_IXP4XX_INDIRECT_PCI | 442 | #ifndef CONFIG_IXP4XX_INDIRECT_PCI |
443 | __raw_writeb(value, port); | 443 | __raw_writeb(value, addr); |
444 | #else | 444 | #else |
445 | __indirect_writeb(value, addr); | 445 | __indirect_writeb(value, addr); |
446 | #endif | 446 | #endif |