ryu: Reduce max input power to 24W

To prevent overloading inductor L2, we can't really draw too much power
from the type-C power. The voltage at L2 is around 4V, and we want to
keep the current below 6A, so let's limit the input power to 24W.

BRANCH=Ryu
BUG=None
TEST=Charge the battery on Ryu while the system is up.

Change-Id: I80f46d7992c64765f4de985e3a9f9492c719907b
Signed-off-by: Vic Yang <victoryang@google.com>
Reviewed-on: https://chromium-review.googlesource.com/242602
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
This commit is contained in:
Vic Yang
2015-01-22 12:37:50 -08:00
committed by ChromeOS Commit Bot
parent cf77f90f2c
commit a6479508e2

View File

@@ -179,7 +179,7 @@ static inline int pd_snk_is_vbus_provided(int port)
/* Define typical operating power and max power */
#define PD_OPERATING_POWER_MW 10000
#define PD_MAX_POWER_MW 60000
#define PD_MAX_POWER_MW 24000
#define PD_MAX_CURRENT_MA 3000
#define PD_MAX_VOLTAGE_MV 20000