Kconfig 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright (c) 2016 Toradex, Inc.
  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. config TDX_HAVE_EEPROM
  19. bool
  20. config TDX_HAVE_EEPROM_EXTRA
  21. bool
  22. if TDX_CFG_BLOCK
  23. config TDX_CFG_BLOCK_IS_IN_MMC
  24. bool
  25. depends on TDX_HAVE_MMC
  26. default y
  27. config TDX_CFG_BLOCK_IS_IN_NAND
  28. bool
  29. depends on TDX_HAVE_NAND
  30. default y
  31. config TDX_CFG_BLOCK_IS_IN_NOR
  32. bool
  33. depends on TDX_HAVE_NOR
  34. default y
  35. config TDX_CFG_BLOCK_IS_IN_EEPROM
  36. bool
  37. depends on TDX_HAVE_EEPROM
  38. default y
  39. config TDX_CFG_BLOCK_DEV
  40. int "Toradex config block eMMC device ID"
  41. depends on TDX_CFG_BLOCK_IS_IN_MMC
  42. config TDX_CFG_BLOCK_PART
  43. int "Toradex config block eMMC partition ID"
  44. depends on TDX_CFG_BLOCK_IS_IN_MMC
  45. config TDX_CFG_BLOCK_OFFSET
  46. int "Toradex config block offset"
  47. help
  48. Specify the byte offset of the Toradex config block within the flash
  49. device the config block is stored on.
  50. config TDX_CFG_BLOCK_OFFSET2
  51. int "Toradex config block offset, second instance"
  52. default 0
  53. help
  54. Specify the byte offset of the 2nd instance of the Toradex config block
  55. within the flash device the config block is stored on.
  56. Set to 0 on modules which have no 2nd instance.
  57. config TDX_CFG_BLOCK_2ND_ETHADDR
  58. bool "Set the second Ethernet address"
  59. help
  60. For each serial number two Ethernet addresses are available for dual
  61. Ethernet carrier boards. This options enables the code to set the
  62. second Ethernet address as environment variable (eth1addr).
  63. config TDX_CFG_BLOCK_EXTRA
  64. bool "Support for additional EEPROMs (carrier board, display adapter)"
  65. depends on TDX_HAVE_EEPROM_EXTRA
  66. help
  67. Enables fetching auxilary config blocks from carrier board/display
  68. adapter EEPROMs.
  69. config TDX_CFG_BLOCK_USB_GADGET_PID
  70. bool "Use config block product ID as USB product ID"
  71. depends on USB_GADGET_DOWNLOAD
  72. default y
  73. help
  74. Use the Toradex product ID learned from the config block as USB
  75. product ID. An offset of 0x4000 is added to the product ID since
  76. inside the Toradex vendor ID (0x1b67) the range starting from
  77. offset 0x4000 is reserved for Colibri/Apalis modules.
  78. endif