1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _OMAP_BOARD_H 20 #define _OMAP_BOARD_H 21 #include <linux/types.h> 22 #include <asm/arch/gpio-switch.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define OMAP_TAG_CLOCK 0x4f01 25 #define OMAP_TAG_MMC 0x4f02 26 #define OMAP_TAG_SERIAL_CONSOLE 0x4f03 27 #define OMAP_TAG_USB 0x4f04 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define OMAP_TAG_LCD 0x4f05 30 #define OMAP_TAG_GPIO_SWITCH 0x4f06 31 #define OMAP_TAG_UART 0x4f07 32 #define OMAP_TAG_FBMEM 0x4f08 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define OMAP_TAG_STI_CONSOLE 0x4f09 35 #define OMAP_TAG_CAMERA_SENSOR 0x4f0a 36 #define OMAP_TAG_BT 0x4f0b 37 #define OMAP_TAG_BOOT_REASON 0x4f80 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define OMAP_TAG_FLASH_PART 0x4f81 40 #define OMAP_TAG_VERSION_STR 0x4f82 41 struct omap_clock_config { 42 u8 system_clock_type; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 }; 45 struct omap_mmc_conf { 46 unsigned enabled:1; 47 unsigned nomux:1; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 unsigned cover:1; 50 unsigned wire4:1; 51 s16 power_pin; 52 s16 switch_pin; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 s16 wp_pin; 55 }; 56 struct omap_mmc_config { 57 struct omap_mmc_conf mmc[2]; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 }; 60 struct omap_serial_console_config { 61 u8 console_uart; 62 u32 console_speed; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 }; 65 struct omap_sti_console_config { 66 unsigned enable:1; 67 u8 channel; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 }; 70 struct omap_camera_sensor_config { 71 u16 reset_gpio; 72 int (*power_on)(void * data); 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 int (*power_off)(void * data); 75 }; 76 struct omap_usb_config { 77 unsigned register_host:1; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 unsigned register_dev:1; 80 u8 otg; 81 u8 hmc_mode; 82 u8 rwc; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 u8 pins[3]; 85 }; 86 struct omap_lcd_config { 87 char panel_name[16]; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 char ctrl_name[16]; 90 s16 nreset_gpio; 91 u8 data_lines; 92 }; 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 struct device; 95 struct fb_info; 96 struct omap_backlight_config { 97 int default_intensity; 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 int (*set_power)(struct device *dev, int state); 100 int (*check_fb)(struct fb_info *fb); 101 }; 102 struct omap_fbmem_config { 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 u32 start; 105 u32 size; 106 }; 107 struct omap_pwm_led_platform_data { 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 const char *name; 110 int intensity_timer; 111 int blink_timer; 112 void (*set_power)(struct omap_pwm_led_platform_data *self, int on_off); 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 }; 115 struct omap_gpio_switch_config { 116 char name[12]; 117 u16 gpio; 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 int flags:4; 120 int type:4; 121 int key_code:24; 122 }; 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 struct omap_uart_config { 125 unsigned int enabled_uarts; 126 }; 127 struct omap_flash_part_config { 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 char part_table[0]; 130 }; 131 struct omap_boot_reason_config { 132 char reason_str[12]; 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 }; 135 struct omap_version_config { 136 char component[12]; 137 char version[12]; 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 }; 140 struct omap_board_config_entry { 141 u16 tag; 142 u16 len; 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 u8 data[0]; 145 }; 146 struct omap_board_config_kernel { 147 u16 tag; 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 const void *data; 150 }; 151 struct omap_bluetooth_config { 152 u8 chip_type; 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 u8 bt_uart; 155 u8 bd_addr[6]; 156 u8 bt_sysclk; 157 int bt_wakeup_gpio; 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 int host_wakeup_gpio; 160 int reset_gpio; 161 }; 162 #define omap_get_config(tag, type) ((const type *) __omap_get_config((tag), sizeof(type), 0)) 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 #define omap_get_nr_config(tag, type, nr) ((const type *) __omap_get_config((tag), sizeof(type), (nr))) 165 #endif 166