/*1*2* Header for code common to all OMAP1 machines.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License as published by the6* Free Software Foundation; either version 2 of the License, or (at your7* option) any later version.8*9* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED10* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF11* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN12* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,13* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT14* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF15* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON16* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT17* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF18* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.19*20* You should have received a copy of the GNU General Public License along21* with this program; if not, write to the Free Software Foundation, Inc.,22* 675 Mass Ave, Cambridge, MA 02139, USA.23*/2425#ifndef __ARCH_ARM_MACH_OMAP1_COMMON_H26#define __ARCH_ARM_MACH_OMAP1_COMMON_H2728#include <linux/platform_data/i2c-omap.h>29#include <linux/reboot.h>3031#include <asm/exception.h>3233#include "irqs.h"34#include "soc.h"35#include "i2c.h"3637#ifdef CONFIG_OMAP_SERIAL_WAKE38int omap_serial_wakeup_init(void);39#else40static inline int omap_serial_wakeup_init(void)41{42return 0;43}44#endif4546void omap1_map_io(void);47void omap1_init_early(void);48void omap1_init_irq(void);49void __exception_irq_entry omap1_handle_irq(struct pt_regs *regs);50void omap1_init_late(void);51void omap1_restart(enum reboot_mode, const char *);5253extern void __init omap_check_revision(void);5455struct nand_chip;56extern void omap1_nand_cmd_ctl(struct nand_chip *this, int cmd,57unsigned int ctrl);5859extern void omap1_timer_init(void);60#ifdef CONFIG_OMAP_32K_TIMER61extern int omap_32k_timer_init(void);62#else63static inline int __init omap_32k_timer_init(void)64{65return -ENODEV;66}67#endif6869#ifdef CONFIG_ARCH_OMAP16XX70extern int ocpi_enable(void);71#else72static inline int ocpi_enable(void) { return 0; }73#endif7475extern u32 omap1_get_reset_sources(void);7677#endif /* __ARCH_ARM_MACH_OMAP1_COMMON_H */787980