1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2016 Toradex, Inc.
4 menuconfig TDX_CFG_BLOCK
5 bool "Enable Toradex config block support"
8 The Toradex config block stored production data on the on-module
9 flash device (NAND, NOR or eMMC). The area is normally preserved by
10 software and contains the serial number (out of which the MAC
11 address is generated) and the exact module type.
13 # Helper config to determine the correct default location of the cfg block
25 config TDX_CFG_BLOCK_IS_IN_MMC
27 depends on TDX_HAVE_MMC
30 config TDX_CFG_BLOCK_IS_IN_NAND
32 depends on TDX_HAVE_NAND
35 config TDX_CFG_BLOCK_IS_IN_NOR
37 depends on TDX_HAVE_NOR
40 config TDX_CFG_BLOCK_DEV
41 int "Toradex config block eMMC device ID"
42 depends on TDX_CFG_BLOCK_IS_IN_MMC
44 config TDX_CFG_BLOCK_PART
45 int "Toradex config block eMMC partition ID"
46 depends on TDX_CFG_BLOCK_IS_IN_MMC
48 config TDX_CFG_BLOCK_OFFSET
49 int "Toradex config block offset"
51 Specify the byte offset of the Toradex config block within the flash
52 device the config block is stored on.
54 config TDX_CFG_BLOCK_OFFSET2
55 int "Toradex config block offset, second instance"
58 Specify the byte offset of the 2nd instance of the Toradex config block
59 within the flash device the config block is stored on.
60 Set to 0 on modules which have no 2nd instance.
62 config TDX_CFG_BLOCK_2ND_ETHADDR
63 bool "Set the second Ethernet address"
65 For each serial number two Ethernet addresses are available for dual
66 Ethernet carrier boards. This options enables the code to set the
67 second Ethernet address as environment variable (eth1addr).