HACK: tps6598x: Increase default current limit to 900mA

This violates USB 2.0 spec, but any port should be able to handle
it these days (and USB 3.0 spec even requires it).
parent 2abc3987
......@@ -44,6 +44,7 @@
#define TPS_REG_DATA_STATUS 0x5f
#define TPS_USB_500mA 500000
#define TPS_USB_900mA 900000
#define TPS_TYPEC_1500mA 1500000
#define TPS_TYPEC_3000mA 3000000
#define TPS_USB_5V 5000000
......@@ -736,11 +737,11 @@ static int tps6598x_psy_get_max_current(struct tps6598x *tps,
val->intval = TPS_TYPEC_3000mA;
break;
case TYPEC_PWR_MODE_PD:
val->intval = tps->terms.max_current ?: TPS_USB_500mA;
val->intval = tps->terms.max_current ?: TPS_USB_900mA;
break;
default:
case TYPEC_PWR_MODE_USB:
val->intval = TPS_USB_500mA;
val->intval = TPS_USB_900mA;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment