summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2022-01-18 11:42:53 +1100
committerCommit Bot <commit-bot@chromium.org>2022-01-18 04:45:57 +0000
commitbc362441f127c9e5172d9650a63a45dafd925c56 (patch)
tree2fabb4581fb361b488193f5c2ebec5f20c156af4 /driver
parent1e5e3340586feb44eedac5e8d1eed66c367a6a3e (diff)
downloadchrome-ec-bc362441f127c9e5172d9650a63a45dafd925c56.tar.gz
RAA489000: Make low power mode conditional on config
Make low power mode conditional on config. BUG=b:214883916 TEST=zmake configure -b nissa; flash and run BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I3eacc2b76b2e2d02a69eccb3f19c8e5466a0d00d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3397132 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/tcpm/raa489000.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/tcpm/raa489000.c b/driver/tcpm/raa489000.c
index 65b9eeec97..db169f19f1 100644
--- a/driver/tcpm/raa489000.c
+++ b/driver/tcpm/raa489000.c
@@ -25,6 +25,7 @@
static int dev_id[CONFIG_USB_PD_PORT_MAX_COUNT] = { -1 };
+#ifdef CONFIG_USB_PD_TCPC_LOW_POWER
static int raa489000_enter_low_power_mode(int port)
{
int rv;
@@ -39,6 +40,7 @@ static int raa489000_enter_low_power_mode(int port)
return tcpci_enter_low_power_mode(port);
}
+#endif /* CONFIG_USB_PD_TCPC_LOW_POWER */
/* Configure output current in the TCPC because it is controlling Vbus */
int raa489000_set_output_current(int port, enum tcpc_rp_value rp)