Kconfig 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright (c) 2016 Toradex, Inc.
  2. # SPDX-License-Identifier: GPL-2.0+
  3. menuconfig TDX_CFG_BLOCK
  4. bool "Enable Toradex config block support"
  5. select OF_BOARD_SETUP
  6. help
  7. The Toradex config block stored production data on the on-module
  8. flash device (NAND, NOR or eMMC). The area is normally preserved by
  9. software and contains the serial number (out of which the MAC
  10. address is generated) and the exact module type.
  11. # Helper config to determine the correct default location of the cfg block
  12. config TDX_HAVE_MMC
  13. bool
  14. config TDX_HAVE_NAND
  15. bool
  16. config TDX_HAVE_NOR
  17. bool
  18. if TDX_CFG_BLOCK
  19. config TDX_CFG_BLOCK_IS_IN_MMC
  20. bool
  21. depends on TDX_HAVE_MMC
  22. default y
  23. config TDX_CFG_BLOCK_IS_IN_NAND
  24. bool
  25. depends on TDX_HAVE_NAND
  26. default y
  27. config TDX_CFG_BLOCK_IS_IN_NOR
  28. bool
  29. depends on TDX_HAVE_NOR
  30. default y
  31. config TDX_CFG_BLOCK_DEV
  32. int "Toradex config block eMMC device ID"
  33. depends on TDX_CFG_BLOCK_IS_IN_MMC
  34. config TDX_CFG_BLOCK_PART
  35. int "Toradex config block eMMC partition ID"
  36. depends on TDX_CFG_BLOCK_IS_IN_MMC
  37. config TDX_CFG_BLOCK_OFFSET
  38. int "Toradex config block offset"
  39. help
  40. Specify the byte offset of the Toradex config block within the flash
  41. device the config block is stored on.
  42. config TDX_CFG_BLOCK_OFFSET2
  43. int "Toradex config block offset, second instance"
  44. default 0
  45. help
  46. Specify the byte offset of the 2nd instance of the Toradex config block
  47. within the flash device the config block is stored on.
  48. Set to 0 on modules which have no 2nd instance.
  49. config TDX_CFG_BLOCK_2ND_ETHADDR
  50. bool "Set the second Ethernet address"
  51. help
  52. For each serial number two Ethernet addresses are available for dual
  53. Ethernet carrier boards. This options enables the code to set the
  54. second Ethernet address as environment variable (eth1addr).
  55. endif