16 #include <linux/module.h>
18 #include <linux/kernel.h>
21 #include <linux/tty.h>
24 #include <linux/errno.h>
28 #include <mach/hardware.h>
30 #include <asm/setup.h>
31 #include <mach/irqs.h>
43 static struct resource sa1111_resources[] = {
48 static int badge4_sa1111_enable(
void *
data,
unsigned devid)
55 static void badge4_sa1111_disable(
void *data,
unsigned devid)
63 .enable = badge4_sa1111_enable,
64 .disable = badge4_sa1111_disable,
67 static u64 sa1111_dmamask = 0xffffffff
UL;
73 .dma_mask = &sa1111_dmamask,
74 .coherent_dma_mask = 0xffffffff,
75 .platform_data = &sa1111_info,
78 .resource = sa1111_resources,
85 .default_trigger =
"heartbeat",
89 .name =
"badge4:green",
90 .default_trigger =
"cpu0",
104 .platform_data = &badge4_gpio_led_info,
113 static int __init badge4_sa1111_init(
void)
141 .name =
"BLOB boot loader",
156 .map_name =
"cfi_probe",
157 .parts = badge4_partitions,
161 static struct resource badge4_flash_resource =
164 static int five_v_on __initdata = 0;
166 static int __init five_v_on_setup(
char *ignore)
171 __setup(
"five_v_on", five_v_on_setup);
174 static int __init badge4_init(
void)
178 if (!machine_is_badge4())
244 ret = badge4_sa1111_init();
247 "%s: SA-1111 initialization failed (%d)\n",
262 static unsigned badge4_5V_bitmap = 0;
267 unsigned old_5V_bitmap;
271 old_5V_bitmap = badge4_5V_bitmap;
274 badge4_5V_bitmap |= subsystem;
276 badge4_5V_bitmap &= ~subsystem;
280 if ((!old_5V_bitmap) && (badge4_5V_bitmap)) {
284 }
else if ((old_5V_bitmap) && (!badge4_5V_bitmap)) {
295 static struct map_desc badge4_io_desc[] __initdata = {
299 .length = 0x00100000,
302 .virtual = 0xf2000000,
304 .length = 0x00100000,
320 .pm = badge4_uart_pm,
323 static void __init badge4_map_io(
void)
333 MACHINE_START(BADGE4,
"Hewlett-Packard Laboratories BadgePAD 4")
334 .atag_offset = 0x100,
335 .map_io = badge4_map_io,
341 .dma_zone_size =
SZ_1M,