summaryrefslogtreecommitdiff
path: root/board/taeko/fw_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/taeko/fw_config.h')
-rw-r--r--board/taeko/fw_config.h32
1 files changed, 13 insertions, 19 deletions
diff --git a/board/taeko/fw_config.h b/board/taeko/fw_config.h
index 4062946868..5217a72d0a 100644
--- a/board/taeko/fw_config.h
+++ b/board/taeko/fw_config.h
@@ -1,4 +1,4 @@
-/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -14,20 +14,14 @@
* Source of truth is the project/taeko/taeko/config.star configuration file.
*/
-enum ec_cfg_usb_db_type {
- DB_USB_ABSENT = 0,
- DB_USB3_PS8815 = 1
-};
+enum ec_cfg_usb_db_type { DB_USB_ABSENT = 0, DB_USB3_PS8815 = 1 };
enum ec_cfg_keyboard_backlight_type {
KEYBOARD_BACKLIGHT_DISABLED = 0,
KEYBOARD_BACKLIGHT_ENABLED = 1
};
-enum ec_cfg_tabletmode_type {
- TABLETMODE_DISABLED = 0,
- TABLETMODE_ENABLED = 1
-};
+enum ec_cfg_tabletmode_type { TABLETMODE_DISABLED = 0, TABLETMODE_ENABLED = 1 };
enum ec_cfg_kbnumpad {
KEYBOARD_NUMBER_PAD_ABSENT = 0,
@@ -46,11 +40,11 @@ enum ec_cfg_emmc_status {
union taeko_cbi_fw_config {
struct {
- enum ec_cfg_usb_db_type usb_db : 2;
- uint32_t sd_db : 2;
- enum ec_cfg_keyboard_backlight_type kb_bl : 1;
- uint32_t audio : 3;
- uint32_t reserved_1 : 4;
+ enum ec_cfg_usb_db_type usb_db : 2;
+ uint32_t sd_db : 2;
+ enum ec_cfg_keyboard_backlight_type kb_bl : 1;
+ uint32_t audio : 3;
+ uint32_t reserved_1 : 4;
/* b/194515356 - Fw config structure
* b/203630618 - Move tablet mode to bit14
* bit8-9: kb_layout
@@ -58,11 +52,11 @@ union taeko_cbi_fw_config {
* bit12: nvme
* bit13: emmc
*/
- enum ec_cfg_nvme_status nvme_status : 1;
- enum ec_cfg_emmc_status emmc_status : 1;
- enum ec_cfg_tabletmode_type tabletmode : 1;
- enum ec_cfg_kbnumpad kbnumpad : 1;
- uint32_t reserved_2 : 16;
+ enum ec_cfg_nvme_status nvme_status : 1;
+ enum ec_cfg_emmc_status emmc_status : 1;
+ enum ec_cfg_tabletmode_type tabletmode : 1;
+ enum ec_cfg_kbnumpad kbnumpad : 1;
+ uint32_t reserved_2 : 16;
};
uint32_t raw_value;
};