Lines Matching defs:chgconfig
119 static void dbg_chgconf(int por, char *buf, size_t len, u8 chgconfig)
124 hibit = (chgconfig & TPS_CHARGE_POR)
127 hibit = (chgconfig & TPS65013_AUA) ? "AUA" : "";
130 chgconfig, hibit,
131 (chgconfig & TPS_CHARGE_RESET) ? " reset" : "",
132 (chgconfig & TPS_CHARGE_FAST) ? " fast" : "",
133 ({int p; switch ((chgconfig >> 3) & 3) {
139 (chgconfig & TPS_VBUS_CHARGING)
140 ? ((chgconfig & TPS_VBUS_500MA) ? 500 : 100)
142 (chgconfig & TPS_CHARGE_ENABLE) ? "" : "No");
165 static void show_chgconfig(int por, const char *label, u8 chgconfig)
169 dbg_chgconf(por, buf, sizeof buf, chgconfig);
177 static inline void show_chgconfig(int por, const char *label, u8 chgconfig) { }
215 seq_printf(s, "chgconfig %s", buf);
408 u8 chgconfig, tmp;
410 chgconfig = i2c_smbus_read_byte_data(tps->client,
412 chgconfig &= ~(TPS_VBUS_500MA | TPS_VBUS_CHARGING);
414 chgconfig |= TPS_VBUS_500MA | TPS_VBUS_CHARGING;
416 chgconfig |= TPS_VBUS_CHARGING;
419 TPS_CHGCONFIG, chgconfig);
980 unsigned vdcdc1, chgconfig;
987 pr_debug("%s: %s low_pwr, chgconfig 0x%02x vdcdc1 0x%02x\n",
993 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG);
998 chgconfig &= ~TPS65013_AUA; /* disable AUA bit */
1003 chgconfig |= TPS65013_AUA; /* enable AUA bit */
1009 TPS_CHGCONFIG, chgconfig);
1017 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG);
1018 the_tps->chgconf = chgconfig;
1019 show_chgconfig(0, "chgconf", chgconfig);