2007-07-09 15:06:53 -06:00
|
|
|
/*
|
2008-07-05 02:02:43 -06: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 15:06:53 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_MXC_HARDWARE_H__
|
|
|
|
#define __ASM_ARCH_MXC_HARDWARE_H__
|
|
|
|
|
|
|
|
#include <asm/sizes.h>
|
|
|
|
|
2009-12-16 11:05:04 -07:00
|
|
|
#define IMX_IO_ADDRESS(addr, module) \
|
|
|
|
((void __force __iomem *) \
|
|
|
|
(((unsigned long)((addr) - (module ## _BASE_ADDR)) < module ## _SIZE) ?\
|
|
|
|
(addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0))
|
|
|
|
|
2008-04-02 03:29:30 -06:00
|
|
|
#ifdef CONFIG_ARCH_MX3
|
2009-02-02 06:11:54 -07:00
|
|
|
#include <mach/mx3x.h>
|
|
|
|
#include <mach/mx31.h>
|
|
|
|
#include <mach/mx35.h>
|
2008-04-02 03:29:30 -06:00
|
|
|
#endif
|
2007-07-09 15:06:53 -06:00
|
|
|
|
2008-07-05 02:02:56 -06:00
|
|
|
#ifdef CONFIG_ARCH_MX2
|
2009-01-26 08:34:53 -07:00
|
|
|
# include <mach/mx2x.h>
|
|
|
|
# ifdef CONFIG_MACH_MX21
|
|
|
|
# include <mach/mx21.h>
|
|
|
|
# endif
|
2008-07-05 02:02:59 -06:00
|
|
|
# ifdef CONFIG_MACH_MX27
|
2008-08-05 09:14:15 -06:00
|
|
|
# include <mach/mx27.h>
|
2008-07-05 02:02:59 -06:00
|
|
|
# endif
|
2008-07-05 02:02:56 -06:00
|
|
|
#endif
|
|
|
|
|
2008-11-14 03:01:38 -07:00
|
|
|
#ifdef CONFIG_ARCH_MX1
|
|
|
|
# include <mach/mx1.h>
|
|
|
|
#endif
|
|
|
|
|
2009-06-04 03:32:12 -06:00
|
|
|
#ifdef CONFIG_ARCH_MX25
|
|
|
|
# include <mach/mx25.h>
|
|
|
|
#endif
|
|
|
|
|
2009-07-31 05:29:22 -06:00
|
|
|
#ifdef CONFIG_ARCH_MXC91231
|
|
|
|
# include <mach/mxc91231.h>
|
|
|
|
#endif
|
|
|
|
|
2008-08-05 09:14:15 -06:00
|
|
|
#include <mach/mxc.h>
|
2007-07-09 15:06:53 -06:00
|
|
|
|
2008-03-28 03:59:08 -06:00
|
|
|
#endif /* __ASM_ARCH_MXC_HARDWARE_H__ */
|