21 #include <linux/kernel.h>
22 #include <linux/tty.h>
32 #include <video/sa1100fb.h>
34 #include <mach/hardware.h>
37 #include <asm/setup.h>
49 #include <mach/irqs.h>
53 static struct resource collie_scoop_resources[] = {
64 .name =
"sharp-scoop",
67 .platform_data = &collie_scoop_setup,
69 .num_resources =
ARRAY_SIZE(collie_scoop_resources),
70 .resource = collie_scoop_resources,
75 .dev = &colliescoop_device.
dev,
78 .cd_irq_str =
"PCMCIA0 CD",
83 .devs = &collie_pcmcia_scoop[0],
94 .codec_pdata = &collie_ucb1x00_data,
100 static int collie_power_init(
struct device *
dev)
118 static void collie_power_exit(
struct device *dev)
123 static int collie_power_ac_online(
void)
128 static char *collie_ac_supplied_to[] = {
134 .init = collie_power_init,
135 .is_ac_online = collie_power_ac_online,
136 .exit = collie_power_exit,
137 .supplied_to = collie_ac_supplied_to,
138 .num_supplicants =
ARRAY_SIZE(collie_ac_supplied_to),
141 static struct resource collie_power_resource[] = {
153 .dev.platform_data = &collie_power_data,
154 .resource = collie_power_resource,
155 .num_resources =
ARRAY_SIZE(collie_power_resource),
158 #ifdef CONFIG_SHARP_LOCOMO
194 .set_mctrl = collie_uart_set_mctrl,
195 .get_mctrl = collie_uart_get_mctrl,
198 static int collie_uart_probe(
struct locomo_dev *dev)
203 static int collie_uart_remove(
struct locomo_dev *dev)
210 .name =
"collie_uart",
213 .probe = collie_uart_probe,
214 .remove = collie_uart_remove,
217 static int __init collie_uart_init(
void)
226 static struct resource locomo_resources[] = {
239 .platform_data = &locomo_info,
241 .num_resources =
ARRAY_SIZE(locomo_resources),
242 .resource = locomo_resources,
248 &collie_power_device,
253 .name =
"bootloader",
268 static int collie_flash_init(
void)
281 static void collie_set_vpp(
int vpp)
286 static void collie_flash_exit(
void)
292 .map_name =
"cfi_probe",
293 .init = collie_flash_init,
294 .set_vpp = collie_set_vpp,
295 .exit = collie_flash_exit,
296 .parts = collie_partitions,
300 static struct resource collie_flash_resources[] = {
305 .pixclock = 171521, .bpp = 16,
306 .xres = 320, .yres = 240,
308 .hsync_len = 5, .vsync_len = 1,
309 .left_margin = 11, .upper_margin = 2,
310 .right_margin = 30, .lower_margin = 0,
317 #ifdef CONFIG_BACKLIGHT_LOCOMO
322 static void __init collie_init(
void)
372 static struct map_desc collie_io_desc[] __initdata = {
376 .length = 0x02000000,
379 .virtual = 0xea000000,
381 .length = 0x02000000,
386 static void __init collie_map_io(
void)
391 #ifdef CONFIG_SHARP_LOCOMO
399 .map_io = collie_map_io,
403 .init_machine = collie_init,