diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2018-12-14 09:18:38 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-14 22:40:33 -0800 |
commit | 8be1f0f55cdc7fcd236886ffaccade08612e19a8 (patch) | |
tree | a1526dd32648892f5f88954481cd332a029564b3 | |
parent | eb890d8891c23706bf1be934b4d73655b768826a (diff) | |
download | chrome-ec-8be1f0f55cdc7fcd236886ffaccade08612e19a8.tar.gz |
nautilus,reef_mchp: Remove board_is_ramp_allowed
board_is_ramp_allowed is replaced by chg_ramp_allowed and
no longer called.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
BUG=none
BRANCH=none
TEST=buildall
Change-Id: Iedf760567b4034ce7317a0d2479eb7ee937b4680
Reviewed-on: https://chromium-review.googlesource.com/1377342
Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r-- | board/nautilus/board.c | 15 | ||||
-rw-r--r-- | board/reef_mchp/board.c | 21 |
2 files changed, 0 insertions, 36 deletions
diff --git a/board/nautilus/board.c b/board/nautilus/board.c index c98de155d7..71f979401d 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -528,21 +528,6 @@ void board_set_charge_limit(int port, int supplier, int charge_ma, } /** - * Return whether ramping is allowed for given supplier - */ -int board_is_ramp_allowed(int supplier) -{ - /* Don't allow ramping in RO when write protected */ - if (!system_is_in_rw() && system_is_locked()) - return 0; - else - return (supplier == CHARGE_SUPPLIER_BC12_DCP || - supplier == CHARGE_SUPPLIER_BC12_SDP || - supplier == CHARGE_SUPPLIER_BC12_CDP || - supplier == CHARGE_SUPPLIER_OTHER); -} - -/** * Return the maximum allowed input current */ int board_get_ramp_current_limit(int supplier, int sup_curr) diff --git a/board/reef_mchp/board.c b/board/reef_mchp/board.c index c0fb36d5d8..ecf938d179 100644 --- a/board/reef_mchp/board.c +++ b/board/reef_mchp/board.c @@ -784,27 +784,6 @@ void board_set_charge_limit(int port, int supplier, int charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv); } -/* - * MCHP next two functions from production firmware-reef-9042.B - * Have changes to USB PD common and TCPCI driver code deprecated - * these functions? - */ -/** - * Return whether ramping is allowed for given supplier - */ -int board_is_ramp_allowed(int supplier) -{ - /* Don't allow ramping in RO when write protected */ - if (system_get_image_copy() != SYSTEM_IMAGE_RW - && system_is_locked()) - return 0; - else - return (supplier == CHARGE_SUPPLIER_BC12_DCP || - supplier == CHARGE_SUPPLIER_BC12_SDP || - supplier == CHARGE_SUPPLIER_BC12_CDP || - supplier == CHARGE_SUPPLIER_OTHER); -} - /** * Return if board is consuming full amount of input current */ |