Kconfig 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Copyright (c) 2018, Luca Ceresoli <luca@lucaceresoli.net>
  4. if ARCH_ZYNQ || ARCH_ZYNQMP
  5. config XILINX_PS_INIT_FILE
  6. string "Zynq/ZynqMP PS init file(s) location"
  7. help
  8. On Zynq and ZynqMP U-Boot SPL (or U-Boot proper if
  9. ZYNQMP_PSU_INIT_ENABLED is set) is responsible for some
  10. basic initializations, such as enabling peripherals and
  11. configuring pinmuxes. The PS init file (called
  12. psu_init_gpl.c on ZynqMP, ps7_init_gpl.c for Zynq-7000)
  13. contains the code for such initializations.
  14. U-Boot contains PS init files for some boards, but each of
  15. them describes only one specific configuration. Users of a
  16. different board, or needing a different configuration, can
  17. generate custom files using the Xilinx development tools.
  18. There are three ways to give a PS init file to U-Boot:
  19. 1. Set this variable to the path, either relative to the
  20. source tree or absolute, where the psu_init_gpl.c or
  21. ps7_init_gpl.c file is located. U-Boot will build this
  22. file.
  23. 2. If you leave an empty string here, U-Boot will use
  24. board/xilinx/zynq/$(CONFIG_DEFAULT_DEVICE_TREE)/ps7_init_gpl.c
  25. for Zynq-7000, or
  26. board/xilinx/zynqmp/$(CONFIG_DEFAULT_DEVICE_TREE)/psu_init_gpl.c
  27. for ZynqMP.
  28. 3. If the above file does not exist, U-Boot will use
  29. board/xilinx/zynq/ps7_init_gpl.c for Zynq-7000, or
  30. board/xilinx/zynqmp/psu_init_gpl.c for ZynqMP. This file
  31. is not provided by U-Boot, you have to copy it there
  32. before the build.
  33. endif
  34. config XILINX_OF_BOARD_DTB_ADDR
  35. hex "Default DTB pickup address"
  36. default 0x1000 if ARCH_VERSAL
  37. default 0x100000 if ARCH_ZYNQ || ARCH_ZYNQMP
  38. depends on OF_BOARD || OF_SEPARATE
  39. help
  40. Offset in the memory where the board configuration DTB is placed.
  41. config BOOT_SCRIPT_OFFSET
  42. hex "Boot script offset"
  43. depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL || MICROBLAZE
  44. default 0xFC0000 if ARCH_ZYNQ || MICROBLAZE
  45. default 0x3E80000 if ARCH_ZYNQMP
  46. default 0x7F80000 if ARCH_VERSAL
  47. help
  48. Specifies distro boot script offset in NAND/QSPI/NOR flash.
  49. config ZYNQ_MAC_IN_EEPROM
  50. bool "Reading MAC address from EEPROM"
  51. help
  52. Enable this option if your MAC address is saved in eeprom and
  53. xlnx,eeprom DT property in chosen node points to it.
  54. if ZYNQ_MAC_IN_EEPROM
  55. config ZYNQ_GEM_I2C_MAC_OFFSET
  56. hex "Set the I2C MAC offset"
  57. default 0x0
  58. depends on DM_I2C
  59. help
  60. Set the MAC offset for i2C.
  61. endif
  62. config CMD_FRU
  63. bool "FRU information for product"
  64. help
  65. This option enables FRU commands to capture and display FRU
  66. information present in the device. The FRU Information is used
  67. to primarily to provide "inventory" information about the boards
  68. that the FRU Information Device is located on.