1 /* 2 * Copyright 2023 Cirrus Logic, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #define SBS_CHARGER_REG_SPEC_INFO 0x11 8 #define SBS_CHARGER_REG_CHARGER_MODE 0x12 9 #define SBS_CHARGER_REG_STATUS 0x13 10 #define SBS_CHARGER_REG_ALARM_WARNING 0x16 11 12 #define SBS_CHARGER_MODE_INHIBIT_CHARGE BIT(0) 13 14 #define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(0) 15 #define SBS_CHARGER_STATUS_RES_COLD BIT(9) 16 #define SBS_CHARGER_STATUS_RES_HOT BIT(10) 17 #define SBS_CHARGER_STATUS_BATTERY_PRESENT BIT(14) 18 #define SBS_CHARGER_STATUS_AC_PRESENT BIT(15) 19 20 #define SBS_CHARGER_POLL_TIME 500 21