-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkernel.patch
More file actions
58 lines (56 loc) · 1.18 KB
/
kernel.patch
File metadata and controls
58 lines (56 loc) · 1.18 KB
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
--- a/arch/avr32/boards/atngw100/setup.c 2010-01-24 16:48:25.000000000 -0500
+++ b/arch/avr32/boards/atngw100/setup.c 2010-01-24 16:55:30.000000000 -0500
@@ -168,6 +168,46 @@
/* NOTE: original ATtiny24 firmware is at address 0x0b */
};
+struct ledfloor_gpio_platform_data
+{
+ int ce;
+ int a[11];
+ int data[8];
+} ledfloor_gpio_data = {
+ .ce = GPIO_PIN_PA(0),
+ .a = {
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ },
+ .data = {
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ GPIO_PIN_PA(0),
+ },
+};
+
+static struct platform_device ledfloor_gpio_device = {
+ .name = "ledfloor",
+ .id = 0,
+ .dev = {
+ .platform_data = &ledfloor_gpio_data,
+ },
+};
+
static int __init atngw100_init(void)
{
unsigned i;
@@ -205,6 +245,8 @@
platform_device_register(&i2c_gpio_device);
i2c_register_board_info(0, i2c_info, ARRAY_SIZE(i2c_info));
+ platform_device_register(&ledfloor_gpio_device);
+
return 0;
}
postcore_initcall(atngw100_init);