51 static unsigned long z2_pin_config[] = {
151 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
152 static struct resource z2_flash_resource = {
160 .
name =
"U-Boot Bootloader",
164 .name =
"U-Boot Environment",
176 .parts = z2_flash_parts,
181 .
name =
"physmap-flash",
183 .resource = &z2_flash_resource,
186 .platform_data = &z2_flash_data,
190 static void __init z2_nor_init(
void)
195 static inline void z2_nor_init(
void) {}
201 #if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE)
206 .max_brightness = 1023,
208 .pwm_period_ns = 1260320,
213 .max_brightness = 1023,
214 .dft_brightness = 512,
215 .pwm_period_ns = 1260320,
221 .
name =
"pwm-backlight",
224 .platform_data = &z2_backlight_data[1],
228 .name =
"pwm-backlight",
231 .platform_data = &z2_backlight_data[0],
235 static void __init z2_pwm_init(
void)
241 static inline void z2_pwm_init(
void) {}
247 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
266 .
modes = z2_lcd_modes,
272 static void __init z2_lcd_init(
void)
277 static inline void z2_lcd_init(
void) {}
283 #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
289 .detect_delay_ms = 200,
292 static void __init z2_mmc_init(
void)
297 static inline void z2_mmc_init(
void) {}
303 #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
306 .
name =
"z2:green:wifi",
307 .default_trigger =
"none",
311 .name =
"z2:green:charged",
312 .default_trigger =
"mmc0",
316 .name =
"z2:amber:charging",
317 .default_trigger =
"Z2-charging-or-full",
324 .
leds = z2_gpio_leds,
332 .platform_data = &z2_gpio_led_info,
336 static void __init z2_leds_init(
void)
341 static inline void z2_leds_init(
void) {}
347 #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE)
348 static unsigned int z2_matrix_keys[] = {
410 .matrix_key_cols = 8,
411 .matrix_key_map = z2_matrix_keys,
412 .matrix_key_map_size =
ARRAY_SIZE(z2_matrix_keys),
414 .debounce_interval = 30,
417 static void __init z2_mkp_init(
void)
422 static inline void z2_mkp_init(
void) {}
428 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
434 .desc =
"Power Button",
442 .desc =
"Lid Switch",
457 .platform_data = &z2_pxa_keys_data,
461 static void __init z2_keys_init(
void)
466 static inline void z2_keys_init(
void) {}
472 #if defined(CONFIG_I2C_PXA) || defined(CONFIG_I2C_PXA_MODULE)
475 .batt_I2C_addr = 0x55,
478 .min_voltage = 3475000,
479 .max_voltage = 4190000,
481 .batt_mult = 1000000,
489 .platform_data = &batt_chip_info,
496 static void __init z2_i2c_init(
void)
502 static inline void z2_i2c_init(
void) {}
508 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
538 static int z2_lbs_spi_teardown(
struct spi_device *spi)
555 .setup = z2_lbs_spi_setup,
556 .teardown = z2_lbs_spi_teardown,
573 .modalias =
"libertas_spi",
574 .platform_data = &z2_lbs_pdata,
575 .controller_data = &z2_lbs_chip_info,
577 .max_speed_hz = 13000000,
582 .modalias =
"lms283gf05",
583 .controller_data = &lms283_chip_info,
584 .platform_data = &lms283_pdata,
585 .max_speed_hz = 400000,
602 static void __init z2_spi_init(
void)
609 static inline void z2_spi_init(
void) {}
615 #if defined(CONFIG_REGULATOR_TPS65023) || \
616 defined(CONFIG_REGULATOR_TPS65023_MODULE)
624 .name =
"vcc_core range",
630 .consumer_supplies = z2_tps65021_consumers,
631 .num_consumer_supplies =
ARRAY_SIZE(z2_tps65021_consumers),
666 .platform_data = &z2_tps65021_info,
670 static void __init z2_pmic_init(
void)
676 static inline void z2_pmic_init(
void) {}
691 #define z2_power_off NULL
697 static void __init z2_init(
void)
720 .atag_offset = 0x100,
726 .init_machine = z2_init,