summaryrefslogtreecommitdiff
path: root/board/nipperkin/board_fw_config.c
blob: e21e42689f7f6d0ce16c79e6ac898637872215f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* 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.
 */

#include "base_fw_config.h"
#include "board_fw_config.h"

bool board_has_kblight(void)
{
	return (get_fw_config_field(FW_CONFIG_KBLIGHT_OFFSET,
				    FW_CONFIG_KBLIGHT_WIDTH) ==
		FW_CONFIG_KBLIGHT_YES);
}

enum board_usb_c1_mux board_get_usb_c1_mux(void)
{
	return USB_C1_MUX_PS8818;
};

enum board_usb_a1_retimer board_get_usb_a1_retimer(void)
{
	return USB_A1_RETIMER_PS8811;
};

bool board_has_privacy_panel(void)
{
	return (get_fw_config_field(FW_CONFIG_KEYBOARD_OFFSET,
				    FW_CONFIG_KEYBOARD_WIDTH) ==
		FW_CONFIG_KEYBOARD_PRIVACY_YES);
}