summaryrefslogtreecommitdiff
path: root/baseboard/brya/cbi.h
blob: 37e02806bddd243ee48241d351959784d53f01f3 (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
32
33
34
35
36
37
38
/* 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.
 */

/* brya family-specific CBI functions, shared with Zephyr */

#ifndef __CROS_EC_BASEBOARD_CBI_H
#define __CROS_EC_BASEBOARD_CBI_H

#include "common.h"

/*
 * Return the board revision number.
 */
uint8_t get_board_id(void);

/**
 * Configure run-time data structures and operation based on CBI data. This
 * typically includes customization for changes in the BOARD_VERSION and
 * FW_CONFIG fields in CBI. This routine is called from the baseboard after
 * the CBI data has been initialized.
 */
__override_proto void board_cbi_init(void);

/**
 * Initialize the FW_CONFIG from CBI data. If the CBI data is not valid, set the
 * FW_CONFIG to the board specific defaults.
 */
__override_proto void board_init_fw_config(void);

/**
 * Initialize the SSFC from CBI data. If the CBI data is not valid, set the
 * SSFC to the board specific defaults.
 */
__override_proto void board_init_ssfc(void);

#endif /* __CROS_EC_BASEBOARD_CBI_H */