diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-12 13:21:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-12 13:21:56 +0000 |
commit | 282625df0980870de729c55ff01020514b8faba6 (patch) | |
tree | c8bdd2db78bd904329e235318a7143a05ec8f401 /sys/dev/fdt | |
parent | db490af9c8b26165051067dedf5fd468b04dcce9 (diff) |
Fix pasto; configure pin as input if it isn't an output.
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/bcm2835_gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/bcm2835_gpio.c b/sys/dev/fdt/bcm2835_gpio.c index 7060587a9b7..6bb4497295c 100644 --- a/sys/dev/fdt/bcm2835_gpio.c +++ b/sys/dev/fdt/bcm2835_gpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2835_gpio.c,v 1.3 2020/04/27 12:15:30 kettenis Exp $ */ +/* $OpenBSD: bcm2835_gpio.c,v 1.4 2020/06/12 13:21:55 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> * @@ -244,7 +244,7 @@ bcmgpio_config_pin(void *cookie, uint32_t *cells, int config) if (config & GPIO_CONFIG_OUTPUT) bcmgpio_config_func(sc, pin, GPFSEL_GPIO_OUT); else - bcmgpio_config_func(sc, pin, GPFSEL_GPIO_OUT); + bcmgpio_config_func(sc, pin, GPFSEL_GPIO_IN); if (config & GPIO_CONFIG_PULL_UP) sc->sc_config_pull(sc, pin, GPPUD_PUD_UP); else if (config & GPIO_CONFIG_PULL_DOWN) |