Date: Fri, 23 Dec 2016 03:35:39 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r310448 - stable/11/sys/powerpc/mpc85xx Message-ID: <201612230335.uBN3ZdIU003644@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612230335.uBN3ZdIU003644>