2007-07-09 22:06:53 +01:00
/*
2008-07-05 10:02:43 +02:00
* Copyright 2004 - 2007 Freescale Semiconductor , Inc . All Rights Reserved .
* Copyright 2008 Juergen Beisert , kernel @ pengutronix . de
*
* This program is free software ; you can redistribute it and / or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation ; either version 2
* of the License , or ( at your option ) any later version .
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
* Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston ,
* MA 02110 - 1301 , USA .
2007-07-09 22:06:53 +01:00
*/
# ifndef __ASM_ARCH_MXC_HARDWARE_H__
# define __ASM_ARCH_MXC_HARDWARE_H__
# include <asm/sizes.h>
2010-10-25 11:40:30 +02:00
# ifdef __ASSEMBLER__
# define IOMEM(addr) (addr)
# else
# define IOMEM(addr) ((void __force __iomem *)(addr))
# endif
# define IMX_IO_P2V_MODULE(addr, module) \
( ( ( addr ) - module # # _BASE_ADDR ) < module # # _SIZE ? \
( addr ) - ( module # # _BASE_ADDR ) + ( module # # _BASE_ADDR_VIRT ) : 0 )
2009-12-16 19:05:04 +01:00
2010-02-04 12:09:40 -08:00
# ifdef CONFIG_ARCH_MX5
# include <mach/mx51.h>
# endif
2008-04-02 10:29:30 +01:00
# ifdef CONFIG_ARCH_MX3
2009-02-02 14:11:54 +01:00
# include <mach/mx3x.h>
# include <mach/mx31.h>
# include <mach/mx35.h>
2008-04-02 10:29:30 +01:00
# endif
2007-07-09 22:06:53 +01:00
2008-07-05 10:02:56 +02:00
# ifdef CONFIG_ARCH_MX2
2009-01-26 16:34:53 +01:00
# include <mach / mx2x.h>
# ifdef CONFIG_MACH_MX21
# include <mach / mx21.h>
# endif
2008-07-05 10:02:59 +02:00
# ifdef CONFIG_MACH_MX27
2008-08-05 16:14:15 +01:00
# include <mach / mx27.h>
2008-07-05 10:02:59 +02:00
# endif
2008-07-05 10:02:56 +02:00
# endif
2008-11-14 11:01:38 +01:00
# ifdef CONFIG_ARCH_MX1
# include <mach / mx1.h>
# endif
2009-06-04 11:32:12 +02:00
# ifdef CONFIG_ARCH_MX25
# include <mach / mx25.h>
# endif
2009-07-31 20:29:22 +09:00
# ifdef CONFIG_ARCH_MXC91231
# include <mach / mxc91231.h>
# endif
2008-08-05 16:14:15 +01:00
# include <mach/mxc.h>
2007-07-09 22:06:53 +01:00
2008-03-28 10:59:08 +01:00
# endif /* __ASM_ARCH_MXC_HARDWARE_H__ */