Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137203
b: refs/heads/master
c: 5512e88
h: refs/heads/master
i:
  137201: e9fdc20
  137199: 94fce8e
v: v3
  • Loading branch information
Holger Schurig authored and Sascha Hauer committed Mar 13, 2009
1 parent f8e660e commit ae2537c
Show file tree
Hide file tree
Showing 6 changed files with 32 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: ccfe30a7c8329e85ae426813a1060e27e2547dd1
refs/heads/master: 5512e88f3a1f1b498fd07181f14596ee117b3471
13 changes: 13 additions & 0 deletions trunk/arch/arm/mach-mx2/Kconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
comment "MX2 family CPU support"
depends on ARCH_MX2

choice
prompt "MX2 Type"
depends on ARCH_MX2
default MACH_MX21

config MACH_MX21
bool "i.MX21 support"
depends on ARCH_MX2
help
This enables support for Freescale's MX2 based i.MX21 processor.

config MACH_MX27
bool "i.MX27 support"
depends on ARCH_MX2
help
This enables support for Freescale's MX2 based i.MX27 processor.

endchoice

comment "MX2 Platforms"
depends on ARCH_MX2

Expand Down
10 changes: 7 additions & 3 deletions trunk/arch/arm/mach-mx2/Makefile.boot
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
zreladdr-y := 0xA0008000
params_phys-y := 0xA0000100
initrd_phys-y := 0xA0800000
zreladdr-$(CONFIG_MACH_MX21) := 0xC0008000
params_phys-$(CONFIG_MACH_MX21) := 0xC0000100
initrd_phys-$(CONFIG_MACH_MX21) := 0xC0800000

zreladdr-$(CONFIG_MACH_MX27) := 0xA0008000
params_phys-$(CONFIG_MACH_MX27) := 0xA0000100
initrd_phys-$(CONFIG_MACH_MX27) := 0xA0800000
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-mx2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ struct platform_device mxc_uart_device3 = {
.num_resources = ARRAY_SIZE(uart3),
};

#ifdef CONFIG_MACH_MX27
static struct resource uart4[] = {
{
.start = UART5_BASE_ADDR,
Expand Down Expand Up @@ -136,3 +137,4 @@ struct platform_device mxc_uart_device5 = {
.resource = uart5,
.num_resources = ARRAY_SIZE(uart5),
};
#endif
5 changes: 5 additions & 0 deletions trunk/arch/arm/plat-mxc/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
#if defined CONFIG_ARCH_MX1
#define PHYS_OFFSET UL(0x08000000)
#elif defined CONFIG_ARCH_MX2
#ifdef CONFIG_MACH_MX21
#define PHYS_OFFSET UL(0xC0000000)
#endif
#ifdef CONFIG_MACH_MX27
#define PHYS_OFFSET UL(0xA0000000)
#endif
#elif defined CONFIG_ARCH_MX3
#define PHYS_OFFSET UL(0x80000000)
#endif
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/arm/plat-mxc/include/mach/mxc.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
# define cpu_is_mx31() (0)
#endif

#ifndef CONFIG_MACH_MX21
# define cpu_is_mx21() (0)
#endif

#ifndef CONFIG_MACH_MX27
# define cpu_is_mx27() (0)
#endif
Expand Down

0 comments on commit ae2537c

Please sign in to comment.