blob: 068367c8b80fc8eea7be8575c57fc71bb9865456 (
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
39
40
41
42
43
44
45
|
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if PLATFORM_EC_BOARD_VERSION
choice "Version source"
prompt "Select the source of the version number"
help
This allow selection of the source of the board version number
information. Several options are available, but BOARD_VERSION_CBI is
preferred for new boards, so long as the hardware supports it (i.e.
has an EEPROM).
config PLATFORM_EC_BOARD_VERSION_CBI
bool "Chromium OS Board Info (CBI)"
depends on PLATFORM_EC_CBI
help
Choose this if the board version comes from Chromium Board Info
within the EEPROM. This is the recommended approach and is used on
newer boards. The version information is written into the EEPROM as
part of the factory process.
config PLATFORM_EC_BOARD_VERSION_GPIO
bool "Strapping GPIOs"
help
Choose this if the board version is encoded with three GPIO signals
(GPIO_BOARD_VERSION1, GPIO_BOARD_VERSION2 and GPIO_BOARD_VERSION3)
forming the 3-digit binary number. GPIO_BOARD_VERSION1 is the LSB.
This provides 8 possible combinations.
The GPIOs should have external pull-up/pull-down resistors installed
at the factory to select the correct value.
config PLATFORM_EC_BOARD_VERSION_CUSTOM
bool "Custom board-specific algortihm"
help
Choose this if none of the standard methods is available and you must
perform special logic to find the board version. If this is chosen,
then the system code will call board_get_version() to find out the
version, so you should implement this function in your board code.
endchoice
endif # PLATFORM_EC_BOARD_VERSION
|