mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-26 21:13:48 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
69 lines
1.8 KiB
Text
69 lines
1.8 KiB
Text
# SPDX-License-Identifier: GPL-2.0+
|
|
# Copyright (c) 2016 Toradex, Inc.
|
|
|
|
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).
|
|
|
|
endif
|