hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/mach-sa1100/jornada720.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-sa1100/jornada720.c
34 *
....@@ -6,11 +7,6 @@
67 * Copyright (C) 2007 Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
78 * Copyright (C) 2006 Filip Zyzniewski <filip.zyzniewski@tefnet.pl>
89 * Copyright (C) 2005 Michael Gernoth <michael@gernoth.net>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License version 2 as
12
- * published by the Free Software Foundation.
13
- *
1410 */
1511
1612 #include <linux/init.h>
....@@ -190,6 +186,17 @@
190186 .resource = s1d13xxxfb_resources,
191187 };
192188
189
+static struct gpiod_lookup_table jornada_pcmcia_gpiod_table = {
190
+ .dev_id = "1800",
191
+ .table = {
192
+ GPIO_LOOKUP("sa1111", 0, "s0-power", GPIO_ACTIVE_HIGH),
193
+ GPIO_LOOKUP("sa1111", 1, "s1-power", GPIO_ACTIVE_HIGH),
194
+ GPIO_LOOKUP("sa1111", 2, "s0-3v", GPIO_ACTIVE_HIGH),
195
+ GPIO_LOOKUP("sa1111", 3, "s1-3v", GPIO_ACTIVE_HIGH),
196
+ { },
197
+ },
198
+};
199
+
193200 static struct resource sa1111_resources[] = {
194201 [0] = DEFINE_RES_MEM(SA1111REGSTART, SA1111REGLEN),
195202 [1] = DEFINE_RES_IRQ(IRQ_GPIO1),
....@@ -265,6 +272,7 @@
265272 udelay(20); /* give it some time to restart */
266273
267274 gpiod_add_lookup_table(&jornada_ts_gpiod_table);
275
+ gpiod_add_lookup_table(&jornada_pcmcia_gpiod_table);
268276
269277 ret = platform_add_devices(devices, ARRAY_SIZE(devices));
270278 }