From 1966df7a04f26a96c66c2460bef406eb62ee503f Mon Sep 17 00:00:00 2001 From: Luiz Souza Date: Tue, 19 Sep 2017 20:34:53 -0500 Subject: Set breathing on for kernel loading. (cherry picked from commit 1289d51ce9ec2baff2d29b8e2e2be58890bbc7b4) --- sys/dev/iicbus/is31fl319x.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/dev/iicbus/is31fl319x.c b/sys/dev/iicbus/is31fl319x.c index eaeb702..4991348 100644 --- a/sys/dev/iicbus/is31fl319x.c +++ b/sys/dev/iicbus/is31fl319x.c @@ -446,8 +446,18 @@ is31fl319x_attach(device_t dev) data[2] = 100; if (is31fl319x_write(dev, IS31FL319X_PWM(3), data, sizeof(data)) != 0) return (ENXIO); + + /* Enable breath on LED 2 and 3. */ + sc->sc_conf1 |= (6 << 4); + if (is31fl319x_write(sc->sc_dev, IS31FL319X_CONF1, &sc->sc_conf1, + sizeof(sc->sc_conf1)) != 0) + return (ENXIO); + + /* Update register data. */ if (is31fl319x_reg_update(sc, IS31FL319X_DATA_UPDATE) != 0) return (ENXIO); + if (is31fl319x_reg_update(sc, IS31FL319X_TIME_UPDATE) != 0) + return (ENXIO); return (0); } -- cgit v1.1