2009-03-04 04:28:35 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _OMAP_BOARD_H
|
|
|
|
#define _OMAP_BOARD_H
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
#include <linux/types.h>
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
#include <asm/arch/gpio-switch.h>
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
#define OMAP_TAG_CLOCK 0x4f01
|
|
|
|
#define OMAP_TAG_MMC 0x4f02
|
|
|
|
#define OMAP_TAG_SERIAL_CONSOLE 0x4f03
|
|
|
|
#define OMAP_TAG_USB 0x4f04
|
|
|
|
#define OMAP_TAG_LCD 0x4f05
|
|
|
|
#define OMAP_TAG_GPIO_SWITCH 0x4f06
|
|
|
|
#define OMAP_TAG_UART 0x4f07
|
|
|
|
#define OMAP_TAG_FBMEM 0x4f08
|
|
|
|
#define OMAP_TAG_STI_CONSOLE 0x4f09
|
|
|
|
#define OMAP_TAG_CAMERA_SENSOR 0x4f0a
|
|
|
|
#define OMAP_TAG_BT 0x4f0b
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
#define OMAP_TAG_BOOT_REASON 0x4f80
|
|
|
|
#define OMAP_TAG_FLASH_PART 0x4f81
|
|
|
|
#define OMAP_TAG_VERSION_STR 0x4f82
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_clock_config {
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
u8 system_clock_type;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_mmc_conf {
|
|
|
|
unsigned enabled:1;
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned nomux:1;
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned cover:1;
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned wire4:1;
|
|
|
|
s16 power_pin;
|
|
|
|
s16 switch_pin;
|
|
|
|
s16 wp_pin;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_mmc_config {
|
|
|
|
struct omap_mmc_conf mmc[2];
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_serial_console_config {
|
|
|
|
u8 console_uart;
|
|
|
|
u32 console_speed;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_sti_console_config {
|
|
|
|
unsigned enable:1;
|
|
|
|
u8 channel;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_camera_sensor_config {
|
|
|
|
u16 reset_gpio;
|
|
|
|
int (*power_on)(void * data);
|
|
|
|
int (*power_off)(void * data);
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_usb_config {
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned register_host:1;
|
|
|
|
unsigned register_dev:1;
|
|
|
|
u8 otg;
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
u8 hmc_mode;
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
u8 rwc;
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
u8 pins[3];
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_lcd_config {
|
|
|
|
char panel_name[16];
|
|
|
|
char ctrl_name[16];
|
|
|
|
s16 nreset_gpio;
|
|
|
|
u8 data_lines;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct device;
|
|
|
|
struct fb_info;
|
|
|
|
struct omap_backlight_config {
|
|
|
|
int default_intensity;
|
|
|
|
int (*set_power)(struct device *dev, int state);
|
|
|
|
int (*check_fb)(struct fb_info *fb);
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_fbmem_config {
|
|
|
|
u32 start;
|
|
|
|
u32 size;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_pwm_led_platform_data {
|
|
|
|
const char *name;
|
|
|
|
int intensity_timer;
|
|
|
|
int blink_timer;
|
|
|
|
void (*set_power)(struct omap_pwm_led_platform_data *self, int on_off);
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_gpio_switch_config {
|
|
|
|
char name[12];
|
|
|
|
u16 gpio;
|
|
|
|
int flags:4;
|
|
|
|
int type:4;
|
|
|
|
int key_code:24;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_uart_config {
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned int enabled_uarts;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_flash_part_config {
|
|
|
|
char part_table[0];
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_boot_reason_config {
|
|
|
|
char reason_str[12];
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_version_config {
|
|
|
|
char component[12];
|
|
|
|
char version[12];
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_board_config_entry {
|
|
|
|
u16 tag;
|
|
|
|
u16 len;
|
|
|
|
u8 data[0];
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_board_config_kernel {
|
|
|
|
u16 tag;
|
|
|
|
const void *data;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
struct omap_bluetooth_config {
|
|
|
|
u8 chip_type;
|
|
|
|
u8 bt_uart;
|
|
|
|
u8 bd_addr[6];
|
|
|
|
u8 bt_sysclk;
|
|
|
|
int bt_wakeup_gpio;
|
|
|
|
int host_wakeup_gpio;
|
|
|
|
int reset_gpio;
|
|
|
|
};
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
#define omap_get_config(tag, type) ((const type *) __omap_get_config((tag), sizeof(type), 0))
|
|
|
|
#define omap_get_nr_config(tag, type, nr) ((const type *) __omap_get_config((tag), sizeof(type), (nr)))
|
2012-03-08 01:14:53 +01:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
#endif
|