1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
Index: linux-2.6.16.5-a/arch/arm/mach-pxa/ezx.c
===================================================================
--- linux-2.6.16.5-a.orig/arch/arm/mach-pxa/ezx.c 2006-05-04 15:38:52.000000000 +0200
+++ linux-2.6.16.5-a/arch/arm/mach-pxa/ezx.c 2006-05-04 15:40:59.000000000 +0200
@@ -257,13 +257,41 @@
};
-/* backlight */
+/* backlight for lcd */
+
+static struct resource ezx_backlight_resources[] = {
+};
+
+static struct platform_device ezx_backlight_device = {
+ .name = "ezx-lcd-backlight",
+ .id = -1,
+ .resource = &ezx_backlight_resources,
+ .num_resources = ARRAY_SIZE(ezx_backlight_resources),
+};
+
/* keyboard */
+
+static struct resource ezx_kbd_resources[] = {
+ {
+ .start = IRQ_KEYPAD,
+ .end = IRQ_KEYPAD,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static struct platform_device ezx_kbd_device = {
+ .name = "ezx-keyboard",
+ .id = -1,
+ .resource = &ezx_kbd_resources,
+ .num_resources = ARRAY_SIZE(ezx_kbd_resources),
+};
+
/* touch screen */
+
/* SSP device */
-struct platform_device ezx_ssp_pcap_device = {
+static struct platform_device ezx_ssp_pcap_device = {
.name = "ezx-ssp-pcap",
.dev = {
//.parent = ,
@@ -549,8 +577,12 @@
ssp_pcap_init();
- /* try to configure USB connector as FFUART */
- emu_switch_to(EMU_SWITCH_TO_UART);
+ emu_switch_to(EMU_SWITCH_TO_USB);
+
+ /* enable this line when you want to run FFUART on the USB plug */
+ //emu_switch_to(EMU_SWITCH_TO_UART);
+ /* enable this line when you want to output power on the USB plug */
+ //SSP_PCAP_bit_set(SSP_PCAP_ADJ_BIT_BUSCTRL_VUSB_MSTR_EN);
platform_add_devices(devices, ARRAY_SIZE(devices));
}
|