Skip to content

Commit 95f37eb

Browse files
aakoskintmlind
authored andcommitted
ARM: OMAP2+: fix bogus MMC GPIO labels on Nokia N8x0
The GPIO bank width is 32 on OMAP2, so all labels are incorrect. Fixes: e519f0b ("ARM/mmc: Convert old mmci-omap to GPIO descriptors") Signed-off-by: Aaro Koskinen <[email protected]> Message-ID: <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Acked-by: Ulf Hansson <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 6613476 commit 95f37eb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

arch/arm/mach-omap2/board-n8x0.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ static struct gpiod_lookup_table nokia8xx_mmc_gpio_table = {
144144
.dev_id = "mmci-omap.0",
145145
.table = {
146146
/* Slot switch, GPIO 96 */
147-
GPIO_LOOKUP("gpio-80-111", 16,
148-
"switch", GPIO_ACTIVE_HIGH),
147+
GPIO_LOOKUP("gpio-96-127", 0, "switch", GPIO_ACTIVE_HIGH),
149148
{ }
150149
},
151150
};
@@ -154,11 +153,9 @@ static struct gpiod_lookup_table nokia810_mmc_gpio_table = {
154153
.dev_id = "mmci-omap.0",
155154
.table = {
156155
/* Slot index 1, VSD power, GPIO 23 */
157-
GPIO_LOOKUP_IDX("gpio-16-31", 7,
158-
"vsd", 1, GPIO_ACTIVE_HIGH),
156+
GPIO_LOOKUP_IDX("gpio-0-31", 23, "vsd", 1, GPIO_ACTIVE_HIGH),
159157
/* Slot index 1, VIO power, GPIO 9 */
160-
GPIO_LOOKUP_IDX("gpio-0-15", 9,
161-
"vio", 1, GPIO_ACTIVE_HIGH),
158+
GPIO_LOOKUP_IDX("gpio-0-31", 9, "vio", 1, GPIO_ACTIVE_HIGH),
162159
{ }
163160
},
164161
};

0 commit comments

Comments
 (0)