svn commit: r352851 - head/sys/arm64/rockchip
Emmanuel Vadot
manu at FreeBSD.org
Sat Sep 28 22:21:17 UTC 2019
Author: manu
Date: Sat Sep 28 22:21:16 2019
New Revision: 352851
URL: https://svnweb.freebsd.org/changeset/base/352851
Log:
arm64: rockchip: Fix map_gpio
The map_gpio function wasn't correct, the first element is the pin
and not the phandle.
Modified:
head/sys/arm64/rockchip/rk_gpio.c
Modified: head/sys/arm64/rockchip/rk_gpio.c
==============================================================================
--- head/sys/arm64/rockchip/rk_gpio.c Sat Sep 28 22:19:52 2019 (r352850)
+++ head/sys/arm64/rockchip/rk_gpio.c Sat Sep 28 22:21:16 2019 (r352851)
@@ -390,9 +390,9 @@ rk_gpio_map_gpios(device_t bus, phandle_t dev, phandle
pcell_t *gpios, uint32_t *pin, uint32_t *flags)
{
- /* The gpios are mapped as <gpio-phandle pin flags> */
- *pin = gpios[1];
- *flags = gpios[2];
+ /* The gpios are mapped as <pin flags> */
+ *pin = gpios[0];
+ *flags = gpios[1];
return (0);
}
More information about the svn-src-all
mailing list