Lines Matching +full:bat +full:- +full:present
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
96 rv = am335x_pmic_read(sc->sc_dev, TPS65217_INT_REG, (uint8_t *)&int_reg, 1); in am335x_pmic_intr()
98 device_printf(sc->sc_dev, "Cannot read interrupt register\n"); in am335x_pmic_intr()
102 rv = am335x_pmic_read(sc->sc_dev, TPS65217_STATUS_REG, (uint8_t *)&status_reg, 1); in am335x_pmic_intr()
104 device_printf(sc->sc_dev, "Cannot read status register\n"); in am335x_pmic_intr()
128 sc->sc_dev = dev; in am335x_pmic_probe()
129 /* Convert to 8-bit addressing */ in am335x_pmic_probe()
130 sc->sc_addr = iicbus_get_addr(dev); in am335x_pmic_probe()
151 const char *trange_c[] = {"0-45 C", "0-60 C"}; in am335x_pmic_dump_chgconfig()
158 device_printf(dev, " BAT TEMP/NTC ERROR: %s\n", f_t[reg0.battemp]); in am335x_pmic_dump_chgconfig()
159 device_printf(dev, " Pre-charge timer time-out: %s\n", f_t[reg0.pchgtout]); in am335x_pmic_dump_chgconfig()
160 device_printf(dev, " Charge timer time-out: %s\n", f_t[reg0.chgtout]); in am335x_pmic_dump_chgconfig()
178 device_printf(dev, " Pre-charge to fast charge transition voltage: %s\n", in am335x_pmic_dump_chgconfig()
185 device_printf(dev, " Pre-charge time: %s\n", pchrgt_c[reg3.pchrgt]); in am335x_pmic_dump_chgconfig()
212 dev = sc->sc_dev; in am335x_pmic_start()
235 /* Check devicetree for ti,pmic-shutdown-controller in am335x_pmic_start()
236 * if present; PMIC will go to shutdown state on PWR_EN toggle in am335x_pmic_start()
237 * if not present; PMIC will enter sleep state on PWR_EN toggle (default on reset) in am335x_pmic_start()
240 if (OF_hasprop(node, "ti,pmic-shutdown-controller")) { in am335x_pmic_start()
270 if (sc->sc_irq_res != NULL) { in am335x_pmic_start()
271 rv = bus_setup_intr(dev, sc->sc_irq_res, in am335x_pmic_start()
273 sc, &sc->sc_intrhand); in am335x_pmic_start()
289 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in am335x_pmic_attach()
291 if (!sc->sc_irq_res) { in am335x_pmic_attach()