.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mach-sa1100/jornada720.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Copyright (C) 2007 Kristoffer Ericson <Kristoffer.Ericson@gmail.com> |
---|
7 | 8 | * Copyright (C) 2006 Filip Zyzniewski <filip.zyzniewski@tefnet.pl> |
---|
8 | 9 | * 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 | | - * |
---|
14 | 10 | */ |
---|
15 | 11 | |
---|
16 | 12 | #include <linux/init.h> |
---|
.. | .. |
---|
190 | 186 | .resource = s1d13xxxfb_resources, |
---|
191 | 187 | }; |
---|
192 | 188 | |
---|
| 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 | + |
---|
193 | 200 | static struct resource sa1111_resources[] = { |
---|
194 | 201 | [0] = DEFINE_RES_MEM(SA1111REGSTART, SA1111REGLEN), |
---|
195 | 202 | [1] = DEFINE_RES_IRQ(IRQ_GPIO1), |
---|
.. | .. |
---|
265 | 272 | udelay(20); /* give it some time to restart */ |
---|
266 | 273 | |
---|
267 | 274 | gpiod_add_lookup_table(&jornada_ts_gpiod_table); |
---|
| 275 | + gpiod_add_lookup_table(&jornada_pcmcia_gpiod_table); |
---|
268 | 276 | |
---|
269 | 277 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); |
---|
270 | 278 | } |
---|