1*4e65331cSTony Lindgren /* 2*4e65331cSTony Lindgren * 3*4e65331cSTony Lindgren * Header for code common to all OMAP1 machines. 4*4e65331cSTony Lindgren * 5*4e65331cSTony Lindgren * This program is free software; you can redistribute it and/or modify it 6*4e65331cSTony Lindgren * under the terms of the GNU General Public License as published by the 7*4e65331cSTony Lindgren * Free Software Foundation; either version 2 of the License, or (at your 8*4e65331cSTony Lindgren * option) any later version. 9*4e65331cSTony Lindgren * 10*4e65331cSTony Lindgren * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 11*4e65331cSTony Lindgren * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 12*4e65331cSTony Lindgren * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 13*4e65331cSTony Lindgren * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 14*4e65331cSTony Lindgren * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 15*4e65331cSTony Lindgren * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 16*4e65331cSTony Lindgren * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 17*4e65331cSTony Lindgren * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 18*4e65331cSTony Lindgren * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 19*4e65331cSTony Lindgren * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 20*4e65331cSTony Lindgren * 21*4e65331cSTony Lindgren * You should have received a copy of the GNU General Public License along 22*4e65331cSTony Lindgren * with this program; if not, write to the Free Software Foundation, Inc., 23*4e65331cSTony Lindgren * 675 Mass Ave, Cambridge, MA 02139, USA. 24*4e65331cSTony Lindgren */ 25*4e65331cSTony Lindgren 26*4e65331cSTony Lindgren #ifndef __ARCH_ARM_MACH_OMAP1_COMMON_H 27*4e65331cSTony Lindgren #define __ARCH_ARM_MACH_OMAP1_COMMON_H 28*4e65331cSTony Lindgren 29*4e65331cSTony Lindgren #include <plat/common.h> 30*4e65331cSTony Lindgren 31*4e65331cSTony Lindgren #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) 32*4e65331cSTony Lindgren void omap7xx_map_io(void); 33*4e65331cSTony Lindgren #else 34*4e65331cSTony Lindgren static inline void omap7xx_map_io(void) 35*4e65331cSTony Lindgren { 36*4e65331cSTony Lindgren } 37*4e65331cSTony Lindgren #endif 38*4e65331cSTony Lindgren 39*4e65331cSTony Lindgren #ifdef CONFIG_ARCH_OMAP15XX 40*4e65331cSTony Lindgren void omap15xx_map_io(void); 41*4e65331cSTony Lindgren #else 42*4e65331cSTony Lindgren static inline void omap15xx_map_io(void) 43*4e65331cSTony Lindgren { 44*4e65331cSTony Lindgren } 45*4e65331cSTony Lindgren #endif 46*4e65331cSTony Lindgren 47*4e65331cSTony Lindgren #ifdef CONFIG_ARCH_OMAP16XX 48*4e65331cSTony Lindgren void omap16xx_map_io(void); 49*4e65331cSTony Lindgren #else 50*4e65331cSTony Lindgren static inline void omap16xx_map_io(void) 51*4e65331cSTony Lindgren { 52*4e65331cSTony Lindgren } 53*4e65331cSTony Lindgren #endif 54*4e65331cSTony Lindgren 55*4e65331cSTony Lindgren void omap1_init_early(void); 56*4e65331cSTony Lindgren void omap1_init_irq(void); 57*4e65331cSTony Lindgren 58*4e65331cSTony Lindgren extern struct sys_timer omap1_timer; 59*4e65331cSTony Lindgren extern bool omap_32k_timer_init(void); 60*4e65331cSTony Lindgren 61*4e65331cSTony Lindgren #endif /* __ARCH_ARM_MACH_OMAP1_COMMON_H */ 62