13 #include <linux/kernel.h>
16 #include <linux/input.h>
21 #include <linux/serial_core.h>
67 .name =
"H3XXX boot firmware",
72 .name =
"H3XXX rootfs",
78 static void h3xxx_set_vpp(
int vpp)
83 static int h3xxx_flash_init(
void)
87 pr_err(
"%s: can't request H3XXX_EGPIO_VPP_ON\n", __func__);
98 static void h3xxx_flash_exit(
void)
104 .map_name =
"cfi_probe",
105 .set_vpp = h3xxx_set_vpp,
106 .init = h3xxx_flash_init,
107 .exit = h3xxx_flash_exit,
108 .parts = h3xxx_partitions,
112 static struct resource h3xxx_flash_resource =
150 pr_err(
"%s: can't request H3XXX_EGPIO_RS232_ON\n",
175 .set_mctrl = h3xxx_uart_set_mctrl,
176 .get_mctrl = h3xxx_uart_get_mctrl,
178 .set_wake = h3xxx_uart_set_wake,
185 static struct resource egpio_resources[] = {
195 .initial_values = 0x0080,
209 .resource = egpio_resources,
212 .platform_data = &egpio_info,
224 .desc =
"Power Button",
232 .desc =
"Action button",
239 .buttons = h3xxx_button_table,
247 .platform_data = &h3xxx_keys_data,
263 static struct map_desc h3600_io_desc[] __initdata = {
267 .length = 0x02800000,
272 .length = 0x00800000,
277 .length = 0x01000000,