Lines Matching defs:chgconfig
118 static void dbg_chgconf(int por, char *buf, size_t len, u8 chgconfig)
123 hibit = (chgconfig & TPS_CHARGE_POR)
126 hibit = (chgconfig & TPS65013_AUA) ? "AUA" : "";
129 chgconfig, hibit,
130 (chgconfig & TPS_CHARGE_RESET) ? " reset" : "",
131 (chgconfig & TPS_CHARGE_FAST) ? " fast" : "",
132 ({int p; switch ((chgconfig >> 3) & 3) {
138 (chgconfig & TPS_VBUS_CHARGING)
139 ? ((chgconfig & TPS_VBUS_500MA) ? 500 : 100)
141 (chgconfig & TPS_CHARGE_ENABLE) ? "" : "No");
164 static void show_chgconfig(int por, const char *label, u8 chgconfig)
168 dbg_chgconf(por, buf, sizeof buf, chgconfig);
176 static inline void show_chgconfig(int por, const char *label, u8 chgconfig) { }
214 seq_printf(s, "chgconfig %s", buf);
407 u8 chgconfig, tmp;
409 chgconfig = i2c_smbus_read_byte_data(tps->client,
411 chgconfig &= ~(TPS_VBUS_500MA | TPS_VBUS_CHARGING);
413 chgconfig |= TPS_VBUS_500MA | TPS_VBUS_CHARGING;
415 chgconfig |= TPS_VBUS_CHARGING;
418 TPS_CHGCONFIG, chgconfig);
982 unsigned vdcdc1, chgconfig;
989 pr_debug("%s: %s low_pwr, chgconfig 0x%02x vdcdc1 0x%02x\n",
995 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG);
1000 chgconfig &= ~TPS65013_AUA; /* disable AUA bit */
1005 chgconfig |= TPS65013_AUA; /* enable AUA bit */
1011 TPS_CHGCONFIG, chgconfig);
1019 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG);
1020 the_tps->chgconf = chgconfig;
1021 show_chgconfig(0, "chgconf", chgconfig);