/* * 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. */ #ifndef __ASM_ARCH_MXC_HARDWARE_H__ #define __ASM_ARCH_MXC_HARDWARE_H__ #include #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) #ifdef CONFIG_ARCH_MX5 #include #endif #ifdef CONFIG_ARCH_MX3 #include #include #include #endif #ifdef CONFIG_ARCH_MX2 # include # ifdef CONFIG_MACH_MX21 # include # endif # ifdef CONFIG_MACH_MX27 # include # endif #endif #ifdef CONFIG_ARCH_MX1 # include #endif #ifdef CONFIG_ARCH_MX25 # include #endif #ifdef CONFIG_ARCH_MXC91231 # include #endif #include #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */