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 <aaro.koskinen@iki.fi> Message-ID: <20240223181439.1099750-2-aaro.koskinen@iki.fi> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 6613476 commit 95f37eb

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

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)