diff options
Diffstat (limited to 'board/eve')
-rw-r--r-- | board/eve/board.c | 23 | ||||
-rw-r--r-- | board/eve/board.h | 2 |
2 files changed, 1 insertions, 24 deletions
diff --git a/board/eve/board.c b/board/eve/board.c index b75281affa..0b02f79570 100644 --- a/board/eve/board.c +++ b/board/eve/board.c @@ -542,29 +542,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) -{ - return bd9995x_get_bc12_ilim(supplier); -} - -/** * Return if board is consuming full amount of input current */ int board_is_consuming_full_charge(void) diff --git a/board/eve/board.h b/board/eve/board.h index 76fcde231f..33fbc07436 100644 --- a/board/eve/board.h +++ b/board/eve/board.h @@ -88,7 +88,7 @@ /* Charger */ #define CONFIG_CHARGE_MANAGER #define CONFIG_CHARGE_MANAGER_EXTERNAL_POWER_LIMIT -#define CONFIG_CHARGE_RAMP +#define CONFIG_CHARGE_RAMP_SW #define CONFIG_CHARGER #define CONFIG_CHARGER_V2 #define CONFIG_CHARGER_BD9995X |