diff options
Diffstat (limited to 'board/oak/board.c')
-rw-r--r-- | board/oak/board.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/board/oak/board.c b/board/oak/board.c index c1e386a480..03a3222127 100644 --- a/board/oak/board.c +++ b/board/oak/board.c @@ -320,39 +320,6 @@ void board_set_charge_limit(int port, int supplier, int charge_ma, pd_send_host_event(PD_EVENT_POWER_CHANGE); } -/** - * 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_PROPRIETARY; -} - -/** - * Return the maximum allowed input current - */ -int board_get_ramp_current_limit(int supplier, int sup_curr) -{ - switch (supplier) { - case CHARGE_SUPPLIER_BC12_DCP: - return 2000; - case CHARGE_SUPPLIER_BC12_SDP: - return 1000; - case CHARGE_SUPPLIER_BC12_CDP: - case CHARGE_SUPPLIER_PROPRIETARY: - return sup_curr; - default: - return 500; - } -} - /* * timestamp of the next possible toggle to ensure the 2-ms spacing * between IRQ_HPD. |