diff options
author | Keith Short <keithshort@chromium.org> | 2020-05-01 15:04:12 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-02 02:40:18 +0000 |
commit | 07833a0fc114e28c200fcee5691c082534344bfe (patch) | |
tree | 4eff0da4cc6309f1e1d54c1a5ed659de0b3b740f /board/malefor | |
parent | 0d0158ea48e25ac4042d7142db1985e5a6a3472f (diff) | |
download | chrome-ec-07833a0fc114e28c200fcee5691c082534344bfe.tar.gz |
volteer: create common FW_CONFIG layout
Create a common FW_CONFIG layout and access functions for Volteer
boards.
BUG=b:155497872
BRANCH=none
TEST=make buildall
TEST=verify FW_CONFIG data on Volteer
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I1ec14db6c816d82115caa5e6179e0258f2904ec4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2247616
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/malefor')
-rw-r--r-- | board/malefor/board.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/malefor/board.c b/board/malefor/board.c index 43fe41e27b..88268f637c 100644 --- a/board/malefor/board.c +++ b/board/malefor/board.c @@ -6,6 +6,7 @@ /* Malefor board-specific configuration */ #include "button.h" +#include "cbi_ec_fw_config.h" #include "common.h" #include "driver/accel_lis2dh.h" #include "driver/accelgyro_lsm6dsm.h" @@ -35,7 +36,7 @@ static void board_init(void) { - if (ec_config_has_tablet_mode()) { + if (ec_cfg_has_tabletmode()) { /* Enable gpio interrupt for base accelgyro sensor */ gpio_enable_interrupt(GPIO_EC_IMU_INT_L); } else { @@ -58,14 +59,14 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); int board_is_lid_angle_tablet_mode(void) { - return ec_config_has_tablet_mode(); + return ec_cfg_has_tabletmode(); } /* Enable or disable input devices, based on tablet mode or chipset state */ #ifndef TEST_BUILD void lid_angle_peripheral_enable(int enable) { - if (ec_config_has_tablet_mode()) { + if (ec_cfg_has_tabletmode()) { if (chipset_in_state(CHIPSET_STATE_ANY_OFF) || tablet_get_mode()) enable = 0; |