diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-04-02 22:32:10 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-05-07 16:15:37 +0200 |
commit | cd4a05f9df859e7cd2efa96e035444a3decb427a (patch) | |
tree | a09a737f4e41da61216fae85a845d6902b7a144c /arch/arm/mach-mx2/generic.c | |
parent | 13e9f61235616966f9f6caefd533046c19d35c92 (diff) | |
download | blackbird-op-linux-cd4a05f9df859e7cd2efa96e035444a3decb427a.tar.gz blackbird-op-linux-cd4a05f9df859e7cd2efa96e035444a3decb427a.zip |
MXC: rename mxc_map_io to architecture specific versions
This allows us to have more mapping functions for more than one
i.MX architecture in the kernel. As this is the earliest board
specific hook we have, also use it to set the cpu type.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2/generic.c')
-rw-r--r-- | arch/arm/mach-mx2/generic.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-mx2/generic.c b/arch/arm/mach-mx2/generic.c index bd51dd04948e..169372f69d8f 100644 --- a/arch/arm/mach-mx2/generic.c +++ b/arch/arm/mach-mx2/generic.c @@ -69,7 +69,17 @@ static struct map_desc mxc_io_desc[] __initdata = { * system startup to create static physical to virtual * memory map for the IO modules. */ -void __init mxc_map_io(void) +void __init mx21_map_io(void) { + mxc_set_cpu_type(MXC_CPU_MX21); + iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); } + +void __init mx27_map_io(void) +{ + mxc_set_cpu_type(MXC_CPU_MX27); + + iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); +} + |