summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2017-07-04 12:10:51 -0500
committerLuiz Souza <luiz@netgate.com>2017-09-06 11:49:32 -0500
commite6e30fa4f398468a78bd3f1860f70fc86e94c7f3 (patch)
tree171b2eb96d28cec46f9ab63575da637ce07ed812
parentb1e34190d5a11f43a685aac6cd243861a5d1905e (diff)
downloadFreeBSD-src-e6e30fa4f398468a78bd3f1860f70fc86e94c7f3.zip
FreeBSD-src-e6e30fa4f398468a78bd3f1860f70fc86e94c7f3.tar.gz
Enable color changes.
(cherry picked from commit 923a6ff4c0a60466abedecfbb945a3c290b9b1c3)
-rw-r--r--sys/dev/iicbus/is31fl319x.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/iicbus/is31fl319x.c b/sys/dev/iicbus/is31fl319x.c
index c009e5d..5c2abdc 100644
--- a/sys/dev/iicbus/is31fl319x.c
+++ b/sys/dev/iicbus/is31fl319x.c
@@ -179,6 +179,12 @@ is31fl319x_attach(device_t dev)
data[1] = 0x12;
if (is31fl319x_write(dev, sc->sc_addr, data, 2) != 0)
return (ENXIO);
+ data[0] = IS31FL319X_T4(0);
+ data[1] = 0x0;
+ data[2] = 0x1;
+ data[3] = 0x2;
+ if (is31fl319x_write(dev, sc->sc_addr, data, sizeof(data)) != 0)
+ return (ENXIO);
if (is31fl319x_reg_update(sc, IS31FL319X_TIME_UPDATE) != 0)
return (ENXIO);
OpenPOWER on IntegriCloud