Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187501
b: refs/heads/master
c: bc9ea6c
h: refs/heads/master
i:
  187499: 9fd909e
v: v3
  • Loading branch information
Uwe Kleine-König committed Jan 8, 2010
1 parent e99325f commit 038c258
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 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: a3f5ac7838a93977f71288310336a725eb6e62db
refs/heads/master: bc9ea6c7f5352f8857525b054bc3df784be1b8d5
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-mx2/clock_imx27.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <mach/common.h>
#include <mach/hardware.h>

#define IO_ADDR_CCM(off) (IO_ADDRESS(MX27_CCM_BASE_ADDR) + (off))
#define IO_ADDR_CCM(off) (MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR) + (off))

/* Register offsets */
#define CCM_CSCR IO_ADDR_CCM(0x0)
Expand Down Expand Up @@ -757,7 +757,7 @@ int __init mx27_clocks_init(unsigned long fref)
clk_enable(&uart1_clk);
#endif

mxc_timer_init(&gpt1_clk, IO_ADDRESS(MX27_GPT1_BASE_ADDR),
mxc_timer_init(&gpt1_clk, MX27_IO_ADDRESS(MX27_GPT1_BASE_ADDR),
MX27_INT_GPT1);

return 0;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-mx2/cpu_imx27.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ static void query_silicon_parameter(void)
* the silicon revision very early we read it here to
* avoid any further hooks
*/
val = __raw_readl(IO_ADDRESS(MX27_SYSCTRL_BASE_ADDR) + SYS_CHIP_ID);
val = __raw_readl(MX27_IO_ADDRESS(MX27_SYSCTRL_BASE_ADDR
+ SYS_CHIP_ID));

cpu_silicon_rev = (int)(val >> 28);
cpu_partnumber = (int)((val >> 12) & 0xFFFF);
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/plat-mxc/include/mach/mx27.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@
/* IRAM */
#define MX27_IRAM_BASE_ADDR 0xffff4c00 /* internal ram */

#define MX27_IO_ADDRESS(x) ( \
IMX_IO_ADDRESS(x, MX27_AIPI) ?: \
IMX_IO_ADDRESS(x, MX27_SAHB1) ?: \
IMX_IO_ADDRESS(x, MX27_X_MEMC))

/* fixed interrupt numbers */
#define MX27_INT_I2C2 1
#define MX27_INT_GPT6 2
Expand Down

0 comments on commit 038c258

Please sign in to comment.