Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297671
b: refs/heads/master
c: 13d0dff
h: refs/heads/master
i:
  297669: 0c765ac
  297667: f3f0d06
  297663: 6dc0bc1
v: v3
  • Loading branch information
Olof Johansson committed Mar 10, 2012
1 parent 9b90e4d commit 6d49d98
Show file tree
Hide file tree
Showing 80 changed files with 169 additions and 3,584 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b521d929b330d665cb3a42b26eaaa5690dc9dad7
refs/heads/master: 13d0dff8937f911a0812f95871873288e14c56e2
4 changes: 0 additions & 4 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ config ZONE_DMA
config NEED_DMA_MAP_STATE
def_bool y

config ARCH_HAS_DMA_SET_COHERENT_MASK
bool

config GENERIC_ISA_DMA
bool

Expand Down Expand Up @@ -550,7 +547,6 @@ config ARCH_IXP2000
config ARCH_IXP4XX
bool "IXP4xx-based"
depends on MMU
select ARCH_HAS_DMA_SET_COHERENT_MASK
select CLKSRC_MMIO
select CPU_XSCALE
select GENERIC_GPIO
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/boot/dts/tegra-paz00.dts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
};

serial@70006200 {
clock-frequency = <216000000>;
status = "disable";
};

serial@70006300 {
status = "disable";
clock-frequency = <216000000>;
};

serial@70006400 {
Expand All @@ -60,7 +60,7 @@
sdhci@c8000000 {
cd-gpios = <&gpio 173 0>; /* gpio PV5 */
wp-gpios = <&gpio 57 0>; /* gpio PH1 */
power-gpios = <&gpio 169 0>; /* gpio PV1 */
power-gpios = <&gpio 155 0>; /* gpio PT3 */
};

sdhci@c8000200 {
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/include/asm/assembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <asm/ptrace.h>
#include <asm/domain.h>

#define IOMEM(x) (x)

/*
* Endian independent macros for shifting bytes within registers.
*/
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ static inline void __iomem *__typesafe_io(unsigned long addr)
return (void __iomem *)addr;
}

#define IOMEM(x) ((void __force __iomem *)(x))

/* IO barriers */
#ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE
#define __iormb() rmb()
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/kernel/debug.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* 32-bit debugging code
*/
#include <linux/linkage.h>
#include <asm/assembler.h>

.text

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/kernel/entry-armv.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* that causes it to save wrong values... Be aware!
*/

#include <asm/assembler.h>
#include <asm/memory.h>
#include <asm/glue-df.h>
#include <asm/glue-pf.h>
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/arm/mach-cns3xxx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ void __init cns3xxx_map_io(void)
/* used by entry-macro.S */
void __init cns3xxx_init_irq(void)
{
gic_init(0, 29, IOMEM(CNS3XXX_TC11MP_GIC_DIST_BASE_VIRT),
IOMEM(CNS3XXX_TC11MP_GIC_CPU_BASE_VIRT));
gic_init(0, 29, __io(CNS3XXX_TC11MP_GIC_DIST_BASE_VIRT),
__io(CNS3XXX_TC11MP_GIC_CPU_BASE_VIRT));
}

void cns3xxx_power_off(void)
{
u32 __iomem *pm_base = IOMEM(CNS3XXX_PM_BASE_VIRT);
u32 __iomem *pm_base = __io(CNS3XXX_PM_BASE_VIRT);
u32 clkctrl;

printk(KERN_INFO "powering system down...\n");
Expand Down Expand Up @@ -237,7 +237,7 @@ static void __init __cns3xxx_timer_init(unsigned int timer_irq)

static void __init cns3xxx_timer_init(void)
{
cns3xxx_tmr1 = IOMEM(CNS3XXX_TIMER1_2_3_BASE_VIRT);
cns3xxx_tmr1 = __io(CNS3XXX_TIMER1_2_3_BASE_VIRT);

__cns3xxx_timer_init(IRQ_CNS3XXX_TIMER0);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-cns3xxx/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static struct platform_device cns3xxx_sdhci_pdev = {

void __init cns3xxx_sdhci_init(void)
{
u32 __iomem *gpioa = IOMEM(CNS3XXX_MISC_BASE_VIRT + 0x0014);
u32 __iomem *gpioa = __io(CNS3XXX_MISC_BASE_VIRT + 0x0014);
u32 gpioa_pins = __raw_readl(gpioa);

/* MMC/SD pins share with GPIOA */
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-davinci/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@
#define __IO_ADDRESS(x) ((x) + IO_OFFSET)
#define IO_ADDRESS(pa) IOMEM(__IO_ADDRESS(pa))

#ifdef __ASSEMBLER__
#define IOMEM(x) x
#else
#define IOMEM(x) ((void __force __iomem *)(x))
#endif

#endif /* __ASM_ARCH_HARDWARE_H */
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-davinci/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

#include <mach/serial.h>

#define IOMEM(x) ((void __force __iomem *)(x))

u32 *uart;

/* PORT_16C550A, in polled non-fifo mode */
Expand Down
9 changes: 9 additions & 0 deletions trunk/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
#ifndef __ASM_ARCH_EP93XX_REGS_H
#define __ASM_ARCH_EP93XX_REGS_H

/*
* A typesafe __io() variation for variable initialisers
*/
#ifdef __ASSEMBLER__
#define IOMEM(p) p
#else
#define IOMEM(p) ((void __iomem __force *)(p))
#endif

/*
* EP93xx Physical Memory Map:
*
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-iop13xx/include/mach/iop13xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/* The ATU offsets can change based on the strapping */
extern u32 iop13xx_atux_pmmr_offset;
extern u32 iop13xx_atue_pmmr_offset;
void iop13xx_init_early(void);
void iop13xx_init_irq(void);
void iop13xx_map_io(void);
void iop13xx_platform_init(void);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-ixp4xx/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#define PCIBIOS_MAX_MEM 0x4BFFFFFF
#endif

#define ARCH_HAS_DMA_SET_COHERENT_MASK

/* Register locations and bits */
#include "ixp4xx-regs.h"

Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-mmp/include/mach/addr-map.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
#ifndef __ASM_MACH_ADDR_MAP_H
#define __ASM_MACH_ADDR_MAP_H

#ifndef __ASSEMBLER__
#define IOMEM(x) ((void __iomem *)(x))
#else
#define IOMEM(x) (x)
#endif

/* APB - Application Subsystem Peripheral Bus
*
* NOTE: the DMA controller registers are actually on the AXI fabric #1
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-msm/include/mach/msm_iomap-7x00.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
*
*/

#ifdef __ASSEMBLY__
#define IOMEM(x) x
#else
#define IOMEM(x) ((void __force __iomem *)(x))
#endif

#define MSM_VIC_BASE IOMEM(0xE0000000)
#define MSM_VIC_PHYS 0xC0000000
#define MSM_VIC_SIZE SZ_4K
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-msm/include/mach/msm_iomap.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
*
*/

#ifdef __ASSEMBLY__
#define IOMEM(x) x
#else
#define IOMEM(x) ((void __force __iomem *)(x))
#endif

#if defined(CONFIG_ARCH_MSM7X30)
#include "msm_iomap-7x30.h"
#elif defined(CONFIG_ARCH_QSD8X50)
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-mxs/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@
#ifndef __MACH_MXS_HARDWARE_H__
#define __MACH_MXS_HARDWARE_H__

#ifdef __ASSEMBLER__
#define IOMEM(addr) (addr)
#else
#define IOMEM(addr) ((void __force __iomem *)(addr))
#endif

#endif /* __MACH_MXS_HARDWARE_H__ */
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-netx/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void __init netx_init_irq(void)
{
int irq;

vic_init(io_p2v(NETX_PA_VIC), 0, ~0, 0);
vic_init(__io(io_p2v(NETX_PA_VIC)), 0, ~0, 0);

for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) {
irq_set_chip_and_handler(irq, &netx_hif_chip,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-netx/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define XMAC_MEM_SIZE 0x1000
#define SRAM_MEM_SIZE 0x8000

#define io_p2v(x) IOMEM((x) - NETX_IO_PHYS + NETX_IO_VIRT)
#define io_p2v(x) ((x) - NETX_IO_PHYS + NETX_IO_VIRT)
#define io_v2p(x) ((x) - NETX_IO_VIRT + NETX_IO_PHYS)

#endif
16 changes: 8 additions & 8 deletions trunk/arch/arm/mach-netx/include/mach/netx-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
*********************************/

/* Registers */
#define NETX_SYSTEM_REG(ofs) IOMEM(NETX_VA_SYSTEM + (ofs))
#define NETX_SYSTEM_REG(ofs) __io(NETX_VA_SYSTEM + (ofs))
#define NETX_SYSTEM_BOO_SR NETX_SYSTEM_REG(0x00)
#define NETX_SYSTEM_IOC_CR NETX_SYSTEM_REG(0x04)
#define NETX_SYSTEM_IOC_MR NETX_SYSTEM_REG(0x08)
Expand Down Expand Up @@ -185,7 +185,7 @@
*******************************/

/* Registers */
#define NETX_GPIO_REG(ofs) IOMEM(NETX_VA_GPIO + (ofs))
#define NETX_GPIO_REG(ofs) __io(NETX_VA_GPIO + (ofs))
#define NETX_GPIO_CFG(gpio) NETX_GPIO_REG(0x0 + ((gpio)<<2))
#define NETX_GPIO_THRESHOLD_CAPTURE(gpio) NETX_GPIO_REG(0x40 + ((gpio)<<2))
#define NETX_GPIO_COUNTER_CTRL(counter) NETX_GPIO_REG(0x80 + ((counter)<<2))
Expand Down Expand Up @@ -230,7 +230,7 @@
*******************************/

/* Registers */
#define NETX_PIO_REG(ofs) IOMEM(NETX_VA_PIO + (ofs))
#define NETX_PIO_REG(ofs) __io(NETX_VA_PIO + (ofs))
#define NETX_PIO_INPIO NETX_PIO_REG(0x0)
#define NETX_PIO_OUTPIO NETX_PIO_REG(0x4)
#define NETX_PIO_OEPIO NETX_PIO_REG(0x8)
Expand All @@ -240,7 +240,7 @@
*******************************/

/* Registers */
#define NETX_MIIMU IOMEM(NETX_VA_MIIMU)
#define NETX_MIIMU __io(NETX_VA_MIIMU)

/* Bits */
#define MIIMU_SNRDY (1<<0)
Expand Down Expand Up @@ -317,7 +317,7 @@
*******************************/

/* Registers */
#define NETX_PFIFO_REG(ofs) IOMEM(NETX_VA_PFIFO + (ofs))
#define NETX_PFIFO_REG(ofs) __io(NETX_VA_PFIFO + (ofs))
#define NETX_PFIFO_BASE(pfifo) NETX_PFIFO_REG(0x00 + ((pfifo)<<2))
#define NETX_PFIFO_BORDER_BASE(pfifo) NETX_PFIFO_REG(0x80 + ((pfifo)<<2))
#define NETX_PFIFO_RESET NETX_PFIFO_REG(0x100)
Expand All @@ -334,7 +334,7 @@
*******************************/

/* Registers */
#define NETX_MEMCR_REG(ofs) IOMEM(NETX_VA_MEMCR + (ofs))
#define NETX_MEMCR_REG(ofs) __io(NETX_VA_MEMCR + (ofs))
#define NETX_MEMCR_SRAM_CTRL(cs) NETX_MEMCR_REG(0x0 + 4 * (cs)) /* SRAM for CS 0..2 */
#define NETX_MEMCR_SDRAM_CFG_CTRL NETX_MEMCR_REG(0x40)
#define NETX_MEMCR_SDRAM_TIMING_CTRL NETX_MEMCR_REG(0x44)
Expand All @@ -355,7 +355,7 @@
*******************************/

/* Registers */
#define NETX_DPMAS_REG(ofs) IOMEM(NETX_VA_DPMAS + (ofs))
#define NETX_DPMAS_REG(ofs) __io(NETX_VA_DPMAS + (ofs))
#define NETX_DPMAS_SYS_STAT NETX_DPMAS_REG(0x4d8)
#define NETX_DPMAS_INT_STAT NETX_DPMAS_REG(0x4e0)
#define NETX_DPMAS_INT_EN NETX_DPMAS_REG(0x4f0)
Expand Down Expand Up @@ -425,7 +425,7 @@
/*******************************
* I2C *
*******************************/
#define NETX_I2C_REG(ofs) IOMEM(NETX_VA_I2C, (ofs))
#define NETX_I2C_REG(ofs) __io(NETX_VA_I2C, (ofs))
#define NETX_I2C_CTRL NETX_I2C_REG(0x0)
#define NETX_I2C_DATA NETX_I2C_REG(0x4)

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-omap1/ams-delta-fiq-handler.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/

#include <linux/linkage.h>
#include <asm/assembler.h>

#include <plat/board-ams-delta.h>

Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-omap1/iomap.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifdef __ASSEMBLER__
#define IOMEM(x) (x)
#else
#define IOMEM(x) ((void __force __iomem *)(x))
#endif

#define OMAP1_IO_OFFSET 0x01000000 /* Virtual IO = 0xfefb0000 */
#define OMAP1_IO_ADDRESS(pa) IOMEM((pa) - OMAP1_IO_OFFSET)

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-omap2/clock3xxx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/list.h>
#include <linux/io.h>

#include <plat/hardware.h>
#include <plat/clkdev_omap.h>
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-omap2/clock44xx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/clk.h>
#include <linux/io.h>

#include <plat/hardware.h>
#include <plat/clkdev_omap.h>
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-omap2/iomap.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifdef __ASSEMBLER__
#define IOMEM(x) (x)
#else
#define IOMEM(x) ((void __force __iomem *)(x))
#endif

#define OMAP2_L3_IO_OFFSET 0x90000000
#define OMAP2_L3_IO_ADDRESS(pa) IOMEM((pa) + OMAP2_L3_IO_OFFSET) /* L3 */

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-pxa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ config CSB726_CSB701

config MACH_ARMCORE
bool "CompuLab CM-X255/CM-X270 modules"
select ARCH_HAS_DMA_SET_COHERENT_MASK if PCI
select PXA27x
select IWMMXT
select PXA25x
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-pxa/clock-pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/syscore_ops.h>

#include <mach/pxa2xx-regs.h>
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-pxa/corgi_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/apm-emulation.h>
#include <linux/io.h>

#include <asm/irq.h>
#include <asm/mach-types.h>
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-pxa/cpufreq-pxa3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/slab.h>
#include <linux/io.h>

#include <mach/pxa3xx-regs.h>

Expand Down
Loading

0 comments on commit 6d49d98

Please sign in to comment.