~ubuntu-branches/ubuntu/vivid/linux-fsl-imx51/vivid

« back to all changes in this revision

Viewing changes to arch/arm/plat-mxc/include/mach/io.h

  • Committer: Bazaar Package Importer
  • Author(s): Andy Whitcroft, Amit Kucheria, Andy Whitcroft, Bryan Wu, Upstream Kernel Changes
  • Date: 2010-01-11 16:26:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100111162627-1q2fl9tcuwcywt1e
Tags: 2.6.31-602.4
[ Amit Kucheria ]

* Update to official 2.6.31 BSP release from Freescale

[ Andy Whitcroft ]

* drop a number of modules no longer built

[ Bryan Wu ]

* [Config] Update configs after applying .31 patchset from Freescale
* [Config] Sync with imx51_defconfig from Freescale BSP

[ Upstream Kernel Changes ]

* Update to official 2.6.31 BSP release from Freescale.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
/* Allow IO space to be anywhere in the memory */
15
15
#define IO_SPACE_LIMIT 0xffffffff
16
16
 
17
 
#ifdef CONFIG_ARCH_MX3
18
 
#define __arch_ioremap __mx3_ioremap
19
 
#define __arch_iounmap __iounmap
20
 
 
21
 
static inline void __iomem *
22
 
__mx3_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype)
23
 
{
24
 
        if (mtype == MT_DEVICE) {
25
 
                /* Access all peripherals below 0x80000000 as nonshared device
26
 
                 * but leave l2cc alone.
27
 
                 */
28
 
                if ((phys_addr < 0x80000000) && ((phys_addr < 0x30000000) ||
29
 
                        (phys_addr >= 0x30000000 + SZ_1M)))
30
 
                        mtype = MT_DEVICE_NONSHARED;
31
 
        }
32
 
 
33
 
        return __arm_ioremap(phys_addr, size, mtype);
34
 
}
35
 
#endif
36
 
 
37
17
extern void __iomem *__mxc_ioremap(unsigned long cookie, size_t size,
38
18
                                unsigned int mtype);
39
 
extern void __mxc_iounmap(void __iomem *addr);
40
19
 
41
20
#define __arch_ioremap(a, s, f) __mxc_ioremap(a, s, f)
42
 
#define __arch_iounmap(a)        __mxc_iounmap(a)
 
21
#define __arch_iounmap __iounmap
43
22
 
44
23
/* io address mapping macro */
45
24
#define __io(a)         __typesafe_io(a)
53
32
 *
54
33
 * @return       Returns 0 on success -1 on failure.
55
34
 */
56
 
unsigned int spi_cpld_read(unsigned int offset);
 
35
unsigned int __weak spi_cpld_read(unsigned int offset);
57
36
 
58
37
/*!
59
38
 * This function is called to write to a CPLD register over CSPI.
63
42
 *
64
43
 * @return       Returns 0 on success -1 on failure.
65
44
 */
66
 
unsigned int spi_cpld_write(unsigned int offset, unsigned int reg_val);
 
45
unsigned int __weak spi_cpld_write(unsigned int offset, unsigned int reg_val);
67
46
#endif