svn commit: r310448 - stable/11/sys/powerpc/mpc85xx
Justin Hibbits
jhibbits at FreeBSD.org
Fri Dec 23 03:35:40 UTC 2016
Author: jhibbits
Date: Fri Dec 23 03:35:39 2016
New Revision: 310448
URL: https://svnweb.freebsd.org/changeset/base/310448
Log:
MFC r308669:
Write to the correct GPIO registers.
Modified:
stable/11/sys/powerpc/mpc85xx/qoriq_gpio.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/powerpc/mpc85xx/qoriq_gpio.c
==============================================================================
--- stable/11/sys/powerpc/mpc85xx/qoriq_gpio.c Fri Dec 23 03:31:53 2016 (r310447)
+++ stable/11/sys/powerpc/mpc85xx/qoriq_gpio.c Fri Dec 23 03:35:39 2016 (r310448)
@@ -173,7 +173,7 @@ qoriq_gpio_pin_set(device_t dev, uint32_
outvals = bus_read_4(sc->sc_mem, GPIO_GPDAT);
outvals &= ~(1 << pinbit);
outvals |= (value << pinbit);
- bus_write_4(sc->sc_mem, 0, outvals);
+ bus_write_4(sc->sc_mem, GPIO_GPDAT, outvals);
GPIO_UNLOCK(sc);
@@ -208,7 +208,7 @@ qoriq_gpio_pin_toggle(device_t dev, uint
val = bus_read_4(sc->sc_mem, GPIO_GPDAT);
val ^= (1 << (31 - pin));
- bus_write_4(sc->sc_mem, 0, val);
+ bus_write_4(sc->sc_mem, GPIO_GPDAT, val);
GPIO_UNLOCK(sc);
More information about the svn-src-stable
mailing list