15 #include <linux/linkage.h>
17 #include <linux/types.h>
20 #include <linux/input.h>
29 #include <asm/delay.h>
31 #include <asm/setup.h>
34 #include <mach/board.h>
36 #include <mach/portmux.h>
39 #define PIN_LCD_BL GPIO_PIN_PA(28)
41 #define PIN_LCD_DISP GPIO_PIN_PA(31)
42 #define PIN_AC97_RST_N GPIO_PIN_PA(30)
43 #define PB_EXTINT_BASE 25
45 #define PIN_TS_EXTINT GPIO_PIN_PB(PB_EXTINT_BASE+TS_IRQ)
46 #define PIN_PB_LEFT GPIO_PIN_PB(11)
47 #define PIN_PB_RIGHT GPIO_PIN_PB(12)
48 #define PIN_PWR_SW_N GPIO_PIN_PB(14)
49 #define PIN_PWR_ON GPIO_PIN_PB(13)
50 #define PIN_ZB_RST_N GPIO_PIN_PA(21)
51 #define PIN_BT_RST GPIO_PIN_PA(22)
52 #define PIN_LED_SYS GPIO_PIN_PA(16)
53 #define PIN_LED_A GPIO_PIN_PA(19)
54 #define PIN_LED_B GPIO_PIN_PE(19)
56 #ifdef CONFIG_BOARD_MRMT_LCD_LQ043T3DX0X
60 .name =
"480x272 @ 59.94Hz",
62 .xres = 480, .yres = 272,
65 .left_margin = 2, .right_margin = 2,
66 .upper_margin = 3, .lower_margin = 9,
67 .hsync_len = 41, .vsync_len = 1,
75 .manufacturer =
"SHA",
76 .monitor =
"LQ043T3DX02",
77 .modedb = lcd_fb_modes,
99 #ifdef CONFIG_BOARD_MRMT_LCD_KWH043GM08
103 .
name =
"480x272 @ 59.94Hz",
105 .xres = 480, .yres = 272,
108 .left_margin = 2, .right_margin = 2,
109 .upper_margin = 3, .lower_margin = 9,
110 .hsync_len = 41, .vsync_len = 1,
119 .monitor =
"KWH043GM08",
120 .modedb = lcd_fb_modes,
142 #ifdef CONFIG_BOARD_MRMT_AC97
148 #ifdef CONFIG_BOARD_MRMT_UCB1400_TS
151 .
name =
"ucb1400_ts",
157 #ifdef CONFIG_BOARD_MRMT_BL_PWM
159 static struct gpio_led rmt_pwm_led[] = {
170 .
name =
"leds-atmel-pwm",
173 .platform_data = &rmt_pwm_led_data,
178 #ifdef CONFIG_BOARD_MRMT_ADS7846_TS
179 static int ads7846_pendown_state(
void)
187 .vref_delay_usecs = 0,
189 .settle_delay_usecs = 800,
190 .penirq_recheck_delay_usecs = 800,
193 .pressure_max = 4096,
196 .debounce_tol = (~0),
204 .modalias =
"ads7846",
205 .max_speed_hz = 31250*26,
208 .platform_data = &ads_info,
221 .desc =
"power button",
228 .desc =
"left button",
235 .desc =
"right button",
240 .nbuttons =
ARRAY_SIZE(rmt_gpio_keys_buttons),
241 .buttons = (
void *) rmt_gpio_keys_buttons,
248 .platform_data = (
void *) &rmt_gpio_keys_data,
252 #ifdef CONFIG_BOARD_MRMT_RTC_I2C
259 static void mrmt_power_off(
void)
265 static int __init mrmt1_init(
void)
284 #ifdef CONFIG_BOARD_MRMT_RTC_I2C
288 #ifndef CONFIG_BOARD_MRMT_LCD_DISABLE
296 #ifdef CONFIG_BOARD_MRMT_AC97
300 #ifdef CONFIG_BOARD_MRMT_ADS7846_TS
309 #ifdef CONFIG_BOARD_MRMT_UCB1400_TS
319 #ifdef CONFIG_BOARD_MRMT_LCD_DISABLE
326 #ifdef CONFIG_BOARD_MRMT_BL_PWM
350 #ifdef CONFIG_BOARD_MRMT_WIRELESS_ZB
355 #ifdef CONFIG_BOARD_MRMT_WIRELESS_BT
365 static int __init mrmt1_early_init(
void)