Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187502
b: refs/heads/master
c: 1273e76
h: refs/heads/master
v: v3
  • Loading branch information
Uwe Kleine-König committed Jan 8, 2010
1 parent 038c258 commit 5cb6cc2
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 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: bc9ea6c7f5352f8857525b054bc3df784be1b8d5
refs/heads/master: 1273e7686f0c122bf58592c57387471c7f4eaa1b
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-mx3/clock-imx31.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,8 @@ int __init mx31_clocks_init(unsigned long fref)
__raw_writel(reg, MXC_CCM_PMCR1);
}

mxc_timer_init(&ipg_clk, IO_ADDRESS(MX31_GPT1_BASE_ADDR), MX31_INT_GPT);
mxc_timer_init(&ipg_clk, MX31_IO_ADDRESS(MX31_GPT1_BASE_ADDR),
MX31_INT_GPT);

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-mx3/crm_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define CKIH_CLK_FREQ_27MHZ 27000000
#define CKIL_CLK_FREQ 32768

#define MXC_CCM_BASE IO_ADDRESS(MX31_CCM_BASE_ADDR)
#define MXC_CCM_BASE MX31_IO_ADDRESS(MX31_CCM_BASE_ADDR)

/* Register addresses */
#define MXC_CCM_CCMR (MXC_CCM_BASE + 0x00)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-mx3/iomux-imx31.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/*
* IOMUX register (base) addresses
*/
#define IOMUX_BASE IO_ADDRESS(MX31_IOMUXC_BASE_ADDR)
#define IOMUX_BASE MX31_IO_ADDRESS(MX31_IOMUXC_BASE_ADDR)
#define IOMUXINT_OBS1 (IOMUX_BASE + 0x000)
#define IOMUXINT_OBS2 (IOMUX_BASE + 0x004)
#define IOMUXGPR (IOMUX_BASE + 0x008)
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/plat-mxc/ehci.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int mxc_set_usbcontrol(int port, unsigned int flags)
unsigned int v;

if (cpu_is_mx31()) {
v = readl(IO_ADDRESS(MX31_OTG_BASE_ADDR +
v = readl(MX31_IO_ADDRESS(MX31_OTG_BASE_ADDR +
USBCTRL_OTGBASE_OFFSET));

switch (port) {
Expand Down Expand Up @@ -79,7 +79,7 @@ int mxc_set_usbcontrol(int port, unsigned int flags)
break;
}

writel(v, IO_ADDRESS(MX31_OTG_BASE_ADDR +
writel(v, MX31_IO_ADDRESS(MX31_OTG_BASE_ADDR +
USBCTRL_OTGBASE_OFFSET));
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-mxc/include/mach/board-mx31ads.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <mach/hardware.h>

/* Base address of PBC controller */
#define PBC_BASE_ADDRESS IO_ADDRESS(CS4_BASE_ADDR)
#define PBC_BASE_ADDRESS MX31_CS4_BASE_ADDR_VIRT
/* Offsets for the PBC Controller register */

/* PBC Board status register offset */
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/arm/plat-mxc/include/mach/mx31.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@

#define MX31_PCMCIA_MEM_BASE_ADDR 0xbc000000

#define MX31_IO_ADDRESS(x) ( \
IMX_IO_ADDRESS(x, MX31_AIPS1) ?: \
IMX_IO_ADDRESS(x, MX31_AIPS2) ?: \
IMX_IO_ADDRESS(x, MX31_AVIC) ?: \
IMX_IO_ADDRESS(x, MX31_X_MEMC) ?: \
IMX_IO_ADDRESS(x, MX31_SPBA0))

#define MX31_INT_I2C3 3
#define MX31_INT_I2C2 4
#define MX31_INT_MPEG4_ENCODER 5
Expand Down

0 comments on commit 5cb6cc2

Please sign in to comment.