0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #ifndef __ARCH_ARM_MACH_OMAP1_COMMON_H
0027 #define __ARCH_ARM_MACH_OMAP1_COMMON_H
0028
0029 #include <linux/platform_data/i2c-omap.h>
0030 #include <linux/reboot.h>
0031
0032 #include <asm/exception.h>
0033
0034 #include "irqs.h"
0035 #include "soc.h"
0036 #include "i2c.h"
0037
0038 #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850)
0039 void omap7xx_map_io(void);
0040 #else
0041 static inline void omap7xx_map_io(void)
0042 {
0043 }
0044 #endif
0045
0046 #ifdef CONFIG_ARCH_OMAP15XX
0047 void omap1510_fpga_init_irq(void);
0048 void omap15xx_map_io(void);
0049 #else
0050 static inline void omap1510_fpga_init_irq(void)
0051 {
0052 }
0053 static inline void omap15xx_map_io(void)
0054 {
0055 }
0056 #endif
0057
0058 #ifdef CONFIG_ARCH_OMAP16XX
0059 void omap16xx_map_io(void);
0060 #else
0061 static inline void omap16xx_map_io(void)
0062 {
0063 }
0064 #endif
0065
0066 #ifdef CONFIG_OMAP_SERIAL_WAKE
0067 int omap_serial_wakeup_init(void);
0068 #else
0069 static inline int omap_serial_wakeup_init(void)
0070 {
0071 return 0;
0072 }
0073 #endif
0074
0075 void omap1_init_early(void);
0076 void omap1_init_irq(void);
0077 void __exception_irq_entry omap1_handle_irq(struct pt_regs *regs);
0078 void omap1_init_late(void);
0079 void omap1_restart(enum reboot_mode, const char *);
0080
0081 extern void __init omap_check_revision(void);
0082
0083 struct nand_chip;
0084 extern void omap1_nand_cmd_ctl(struct nand_chip *this, int cmd,
0085 unsigned int ctrl);
0086
0087 extern void omap1_timer_init(void);
0088 #ifdef CONFIG_OMAP_32K_TIMER
0089 extern int omap_32k_timer_init(void);
0090 #else
0091 static inline int __init omap_32k_timer_init(void)
0092 {
0093 return -ENODEV;
0094 }
0095 #endif
0096
0097 #ifdef CONFIG_ARCH_OMAP16XX
0098 extern int ocpi_enable(void);
0099 #else
0100 static inline int ocpi_enable(void) { return 0; }
0101 #endif
0102
0103 extern u32 omap1_get_reset_sources(void);
0104
0105 #endif