26 #include <linux/input.h>
36 #include <asm/suspend.h>
62 static unsigned long palmz72_pin_config[]
__initdata = {
142 #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE)
143 static unsigned int palmz72_matrix_keys[] = {
161 .matrix_key_cols = 3,
162 .matrix_key_map = palmz72_matrix_keys,
163 .matrix_key_map_size =
ARRAY_SIZE(palmz72_matrix_keys),
165 .debounce_interval = 30,
168 static void __init palmz72_kpc_init(
void)
173 static inline void palmz72_kpc_init(
void) {}
179 #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
180 static struct gpio_led gpio_leds[] = {
182 .
name =
"palmz72:green:led",
183 .default_trigger =
"none",
197 .platform_data = &gpio_led_info,
201 static void __init palmz72_leds_init(
void)
206 static inline void palmz72_leds_init(
void) {}
221 #define PALMZ72_SAVE_DWORD ((unsigned long *)0xc0000050)
223 static struct palmz72_resume_info palmz72_resume_info = {
235 static unsigned long store_ptr;
239 static int palmz72_pm_suspend(
void)
245 store_ptr = *PALMZ72_SAVE_DWORD;
253 static void palmz72_pm_resume(
void)
255 *PALMZ72_SAVE_DWORD = store_ptr;
258 static struct syscore_ops palmz72_pm_syscore_ops = {
260 .resume = palmz72_pm_resume,
263 static int __init palmz72_pm_init(
void)
265 if (machine_is_palmz72()) {
278 #if defined(CONFIG_SOC_CAMERA_OV9640) || \
279 defined(CONFIG_SOC_CAMERA_OV9640_MODULE)
293 static int palmz72_camera_power(
struct device *
dev,
int power)
300 static int palmz72_camera_reset(
struct device *
dev)
311 .board_info = &palmz72_i2c_device[0],
313 .module_name =
"ov96xx",
314 .power = &palmz72_camera_power,
315 .reset = &palmz72_camera_reset,
330 .platform_data = &palmz72_i2c_bus_data,
335 .
name =
"soc-camera-pdrv",
338 .platform_data = &palmz72_iclink,
345 static struct gpio palmz72_camera_gpios[] = {
351 static inline void __init palmz72_cam_gpio_init(
void)
364 static void __init palmz72_camera_init(
void)
366 palmz72_cam_gpio_init();
372 static inline void palmz72_camera_init(
void) {}
378 static void __init palmz72_init(
void)
393 palm27x_pwm_init(-1, -1);
394 palm27x_power_init(-1, -1);
398 palmz72_camera_init();
402 .atag_offset = 0x100,
408 .init_machine = palmz72_init,