.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Hardware definitions for Palm Tungsten|T5 |
---|
3 | 4 | * |
---|
.. | .. |
---|
8 | 9 | * Justin Kendrick <twilightsentry@gmail.com> |
---|
9 | 10 | * RichardT5 <richard_t5@users.sourceforge.net> |
---|
10 | 11 | * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License version 2 as |
---|
13 | | - * published by the Free Software Foundation. |
---|
14 | | - * |
---|
15 | 12 | * (find more info at www.hackndev.com) |
---|
16 | | - * |
---|
17 | 13 | */ |
---|
18 | 14 | |
---|
19 | 15 | #include <linux/platform_device.h> |
---|
.. | .. |
---|
27 | 23 | #include <linux/gpio.h> |
---|
28 | 24 | #include <linux/wm97xx.h> |
---|
29 | 25 | #include <linux/power_supply.h> |
---|
30 | | -#include <linux/usb/gpio_vbus.h> |
---|
31 | 26 | |
---|
32 | 27 | #include <asm/mach-types.h> |
---|
33 | 28 | #include <asm/mach/arch.h> |
---|
.. | .. |
---|
182 | 177 | memblock_reserve(0xa0200000, 0x1000); |
---|
183 | 178 | } |
---|
184 | 179 | |
---|
| 180 | +static struct gpiod_lookup_table palmt5_mci_gpio_table = { |
---|
| 181 | + .dev_id = "pxa2xx-mci.0", |
---|
| 182 | + .table = { |
---|
| 183 | + GPIO_LOOKUP("gpio-pxa", GPIO_NR_PALMT5_SD_DETECT_N, |
---|
| 184 | + "cd", GPIO_ACTIVE_LOW), |
---|
| 185 | + GPIO_LOOKUP("gpio-pxa", GPIO_NR_PALMT5_SD_READONLY, |
---|
| 186 | + "wp", GPIO_ACTIVE_LOW), |
---|
| 187 | + GPIO_LOOKUP("gpio-pxa", GPIO_NR_PALMT5_SD_POWER, |
---|
| 188 | + "power", GPIO_ACTIVE_HIGH), |
---|
| 189 | + { }, |
---|
| 190 | + }, |
---|
| 191 | +}; |
---|
| 192 | + |
---|
185 | 193 | static void __init palmt5_init(void) |
---|
186 | 194 | { |
---|
187 | 195 | pxa2xx_mfp_config(ARRAY_AND_SIZE(palmt5_pin_config)); |
---|
.. | .. |
---|
189 | 197 | pxa_set_btuart_info(NULL); |
---|
190 | 198 | pxa_set_stuart_info(NULL); |
---|
191 | 199 | |
---|
192 | | - palm27x_mmc_init(GPIO_NR_PALMT5_SD_DETECT_N, GPIO_NR_PALMT5_SD_READONLY, |
---|
193 | | - GPIO_NR_PALMT5_SD_POWER, 0); |
---|
| 200 | + palm27x_mmc_init(&palmt5_mci_gpio_table); |
---|
194 | 201 | palm27x_pm_init(PALMT5_STR_BASE); |
---|
195 | 202 | palm27x_lcd_init(-1, &palm_320x480_lcd_mode); |
---|
196 | 203 | palm27x_udc_init(GPIO_NR_PALMT5_USB_DETECT_N, |
---|