/*1* Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved.2*3* The code contained herein is licensed under the GNU General Public4* License. You may obtain a copy of the GNU General Public License5* Version 2 or later at the following locations:6*7* http://www.opensource.org/licenses/gpl-license.html8* http://www.gnu.org/copyleft/gpl.html9*10* Create static mapping between physical to virtual memory.11*/1213#include <linux/mm.h>14#include <linux/init.h>1516#include <asm/mach/map.h>1718#include <mach/mx23.h>19#include <mach/common.h>20#include <mach/iomux.h>2122/*23* Define the MX23 memory map.24*/25static struct map_desc mx23_io_desc[] __initdata = {26mxs_map_entry(MX23, OCRAM, MT_DEVICE),27mxs_map_entry(MX23, IO, MT_DEVICE),28};2930/*31* This function initializes the memory map. It is called during the32* system startup to create static physical to virtual memory mappings33* for the IO modules.34*/35void __init mx23_map_io(void)36{37iotable_init(mx23_io_desc, ARRAY_SIZE(mx23_io_desc));38}3940void __init mx23_init_irq(void)41{42icoll_init_irq();43mx23_register_gpios();44}454647