Date: Sat, 28 Sep 2019 22:21:16 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r352851 - head/sys/arm64/rockchip Message-ID: <201909282221.x8SMLGqx016355@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909282221.x8SMLGqx016355>