From ec8e24888353965fcbb3fa43d45bdb5d5a59e34b Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Wed, 27 Jul 2022 22:23:33 +0200 Subject: [PATCH] Add more bit definitions to cahrger ctl register map --- i2c-charger-ctl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/i2c-charger-ctl.c b/i2c-charger-ctl.c index dc7d630..f79bab8 100644 --- a/i2c-charger-ctl.c +++ b/i2c-charger-ctl.c @@ -381,7 +381,11 @@ struct reginfo regs[256] = { REG_END REG_SIMPLE(READ0) - REG_SIMPLE(READ1) + REG_START(READ1, "READ1") + REG_BITS(WLED_PRESENT, 7, 1) + REG_BITS(LIGHT_LOAD, 6, 1) + REG_BITS(VIN_OVERVOLT, 5, 1) + REG_END REG_SIMPLE(READ2) };