Lines Matching defs:chgconfig
131 static void dbg_chgconf(int por, char *buf, size_t len, u8 chgconfig)
136 hibit = (chgconfig & TPS_CHARGE_POR)
139 hibit = (chgconfig & TPS65013_AUA) ? "AUA" : "";
142 chgconfig, hibit,
143 (chgconfig & TPS_CHARGE_RESET) ? " reset" : "",
144 (chgconfig & TPS_CHARGE_FAST) ? " fast" : "",
145 ({int p; switch ((chgconfig >> 3) & 3) {
151 (chgconfig & TPS_VBUS_CHARGING)
152 ? ((chgconfig & TPS_VBUS_500MA) ? 500 : 100)
154 (chgconfig & TPS_CHARGE_ENABLE) ? "" : "No");
177 static void show_chgconfig(int por, const char *label, u8 chgconfig)
181 dbg_chgconf(por, buf, sizeof buf, chgconfig);
189 static inline void show_chgconfig(int por, const char *label, u8 chgconfig) { }
224 seq_printf(s, "chgconfig %s", buf);
409 u8 chgconfig, tmp;
411 chgconfig = i2c_smbus_read_byte_data(tps->client,
413 chgconfig &= ~(TPS_VBUS_500MA | TPS_VBUS_CHARGING);
415 chgconfig |= TPS_VBUS_500MA | TPS_VBUS_CHARGING;
417 chgconfig |= TPS_VBUS_CHARGING;
420 TPS_CHGCONFIG, chgconfig);
988 unsigned vdcdc1, chgconfig;
995 pr_debug("%s: %s low_pwr, chgconfig 0x%02x vdcdc1 0x%02x\n",
1001 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG);
1006 chgconfig &= ~TPS65013_AUA; /* disable AUA bit */
1011 chgconfig |= TPS65013_AUA; /* enable AUA bit */
1017 TPS_CHGCONFIG, chgconfig);
1025 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG);
1026 the_tps->chgconf = chgconfig;
1027 show_chgconfig(0, "chgconf", chgconfig);