12 #include <linux/i2c.h>
16 #include <linux/linkage.h>
18 #include <linux/types.h>
27 #include <asm/setup.h>
31 #include <mach/board.h>
33 #include <mach/portmux.h>
38 static int merisc_board_id;
57 static int ads7846_get_pendown_state_PB26(
void)
62 static int ads7846_get_pendown_state_PB28(
void)
69 .vref_delay_usecs = 100,
72 .settle_delay_usecs = 150,
73 .penirq_recheck_delay_usecs = 1,
78 .get_pendown_state = ads7846_get_pendown_state_PB26,
81 .filter_cleanup =
NULL,
86 .modalias =
"ads7846",
87 .max_speed_hz = 3250000,
90 .platform_data = &ads7846_data,
100 .detect_is_active_high =
true,
111 sizeof(hw_addr[i].addr));
131 addr = hw_addr[pdev->
id].addr;
132 if (!is_valid_ether_addr(addr))
142 | (addr[1] << 8) | addr[0], regs + 0x98);
151 .sda_is_open_drain = 1,
152 .scl_is_open_drain = 1,
160 .platform_data = &i2c_gpio_data,
170 #ifdef CONFIG_LEDS_ATMEL_PWM
171 static struct gpio_led stk_pwm_led[] = {
184 .
name =
"leds-atmel-pwm",
187 .platform_data = &stk_pwm_led_data,
194 switch (merisc_board_id) {
207 switch (merisc_board_id) {
219 static void detect_merisc_board_id(
void)
241 static int __init merisc_init(
void)
243 detect_merisc_board_id();
251 if (merisc_board_id >= 1)
256 if (merisc_board_id >= 1)
262 if (merisc_board_id == 0) {
281 #ifdef CONFIG_LEDS_ATMEL_PWM