blob: c16f3bb8c6a1fd7c116bb21403b3f76f4d4f3159 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Copyright (c) 2016 Toradex, Inc.
# SPDX-License-Identifier: GPL-2.0+
menuconfig TDX_CFG_BLOCK
bool "Enable Toradex config block support"
select OF_BOARD_SETUP
help
The Toradex config block stored production data on the on-module
flash device (NAND, NOR or eMMC). The area is normally preserved by
software and contains the serial number (out of which the MAC
address is generated) and the exact module type.
# Helper config to determine the correct default location of the cfg block
config TDX_HAVE_MMC
bool
config TDX_HAVE_NAND
bool
config TDX_HAVE_NOR
bool
if TDX_CFG_BLOCK
config TDX_CFG_BLOCK_IS_IN_MMC
bool
depends on TDX_HAVE_MMC
default y
config TDX_CFG_BLOCK_IS_IN_NAND
bool
depends on TDX_HAVE_NAND
default y
config TDX_CFG_BLOCK_IS_IN_NOR
bool
depends on TDX_HAVE_NOR
default y
config TDX_CFG_BLOCK_DEV
int "Toradex config block eMMC device ID"
depends on TDX_CFG_BLOCK_IS_IN_MMC
config TDX_CFG_BLOCK_PART
int "Toradex config block eMMC partition ID"
depends on TDX_CFG_BLOCK_IS_IN_MMC
config TDX_CFG_BLOCK_OFFSET
int "Toradex config block offset"
help
Specify the byte offset of the Toradex config block within the flash
device the config block is stored on.
config TDX_CFG_BLOCK_OFFSET2
int "Toradex config block offset, second instance"
default 0
help
Specify the byte offset of the 2nd instance of the Toradex config block
within the flash device the config block is stored on.
Set to 0 on modules which have no 2nd instance.
config TDX_CFG_BLOCK_2ND_ETHADDR
bool "Set the second Ethernet address"
help
For each serial number two Ethernet addresses are available for dual
Ethernet carrier boards. This options enables the code to set the
second Ethernet address as environment variable (eth1addr).
config TDX_CFG_BLOCK_USB_GADGET_PID
bool "Use config block product ID as USB product ID"
depends on USB_GADGET_DOWNLOAD
default y
help
Use the Toradex product ID learned from the config block as USB
product ID. An offset of 0x4000 is added to the product ID since
inside the Toradex vendor ID (0x1b67) the range starting from
offset 0x4000 is reserved for Colibri/Apalis modules.
endif
config TDX_EASY_INSTALLER
bool "Use Toradex Easy Installer specific options."
help
Use Toradex Easy Installer specific options like not enabling SATA,
directly continuing with the sdp command upon recovery, distrobooting
otherwise or not storing the environment.
config IMX_GETSPLVER
bool "Enable get spl version command"
depends on SPL && (TARGET_COLIBRI_IMX6 || TARGET_APALIS_IMX6)
default y
help
Add a command to parse the SPL version from its mass storage location
which can compare the found version against a given string.
config SPL_SILENT_CONSOLE
bool "Support a silent console in SPL"
depends on SPL && (TARGET_COLIBRI_IMX6 || TARGET_APALIS_IMX6)
default y if SILENT_CONSOLE
help
This option will silence all messages printed to the console during
normal program flow on Apalis/Colibri iMX6. Error messages or
warnings are not affected.
|