forked from luck/tmp_suning_uos_patched
11b897cf84
On Alchemy the PCMCIA area lies at the end of the chips 36bit system bus area. Currently, addresses at the far end of the 32bit area are assumed to belong to the PCMCIA area and fixed up to the real 36bit address before being passed to ioremap(). A previous commit enabled 64 bit physical size for the resource datatype on Alchemy and this allows to use the correct 36bit addresses when registering the PCMCIA sockets. This patch removes the 32-to-36bit address fixup and registers the Alchemy demo board pcmcia socket with the correct 36bit physical addresses. Tested on DB1200, with a CF card (ide-cs driver) and a 3c589 PCMCIA ethernet card. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> To: Linux-MIPS <linux-mips@linux-mips.org> Cc: Manuel Lauss <manuel.lauss@gmail.com> Patchwork: http://patchwork.linux-mips.org/patch/994/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
/*
|
|
* include/asm-mips/mach-au1x00/ioremap.h
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
#ifndef __ASM_MACH_AU1X00_IOREMAP_H
|
|
#define __ASM_MACH_AU1X00_IOREMAP_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_PCI)
|
|
extern phys_t __fixup_bigphys_addr(phys_t, phys_t);
|
|
#else
|
|
static inline phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size)
|
|
{
|
|
return phys_addr;
|
|
}
|
|
#endif
|
|
|
|
/*
|
|
* Allow physical addresses to be fixed up to help 36-bit peripherals.
|
|
*/
|
|
static inline phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size)
|
|
{
|
|
return __fixup_bigphys_addr(phys_addr, size);
|
|
}
|
|
|
|
static inline void __iomem *plat_ioremap(phys_t offset, unsigned long size,
|
|
unsigned long flags)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline int plat_iounmap(const volatile void __iomem *addr)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif /* __ASM_MACH_AU1X00_IOREMAP_H */
|