blob: 17880661736d2d7869d70365e6423212641d01a5 [file] [log] [blame]
Luca Ceresolib0172c32018-06-22 12:40:16 +02001# SPDX-License-Identifier: GPL-2.0
2#
3# Copyright (c) 2018, Luca Ceresoli <luca@lucaceresoli.net>
4
5if ARCH_ZYNQ || ARCH_ZYNQMP
6
7config XILINX_PS_INIT_FILE
8 string "Zynq/ZynqMP PS init file(s) location"
9 help
10 On Zynq and ZynqMP U-Boot SPL (or U-Boot proper if
11 ZYNQMP_PSU_INIT_ENABLED is set) is responsible for some
12 basic initializations, such as enabling peripherals and
13 configuring pinmuxes. The PS init file (called
14 psu_init_gpl.c on ZynqMP, ps7_init_gpl.c for Zynq-7000)
15 contains the code for such initializations.
16
17 U-Boot contains PS init files for some boards, but each of
18 them describes only one specific configuration. Users of a
19 different board, or needing a different configuration, can
20 generate custom files using the Xilinx development tools.
21
22 There are three ways to give a PS init file to U-Boot:
23
24 1. Set this variable to the path, either relative to the
25 source tree or absolute, where the psu_init_gpl.c or
26 ps7_init_gpl.c file is located. U-Boot will build this
27 file.
28
29 2. If you leave an empty string here, U-Boot will use
30 board/xilinx/zynq/$(CONFIG_DEFAULT_DEVICE_TREE)/ps7_init_gpl.c
31 for Zynq-7000, or
32 board/xilinx/zynqmp/$(CONFIG_DEFAULT_DEVICE_TREE)/psu_init_gpl.c
33 for ZynqMP.
34
35 3. If the above file does not exist, U-Boot will use
36 board/xilinx/zynq/ps7_init_gpl.c for Zynq-7000, or
37 board/xilinx/zynqmp/psu_init_gpl.c for ZynqMP. This file
38 is not provided by U-Boot, you have to copy it there
39 before the build.
40
41endif
Ibai Erkiaga6f658202019-10-02 15:57:36 +010042
Ibai Erkiagafd48fd72019-10-02 15:57:37 +010043config XILINX_OF_BOARD_DTB_ADDR
Michal Simek0e142642020-08-20 14:02:47 +020044 hex "Default DTB pickup address"
Ibai Erkiagafd48fd72019-10-02 15:57:37 +010045 default 0x1000 if ARCH_VERSAL
Ovidiu Panait57c89d22021-12-02 21:56:56 +020046 default 0x8000 if MICROBLAZE
Ibai Erkiagafd48fd72019-10-02 15:57:37 +010047 default 0x100000 if ARCH_ZYNQ || ARCH_ZYNQMP
Michal Simek878ba362019-12-19 17:45:15 +010048 depends on OF_BOARD || OF_SEPARATE
Ibai Erkiaga6f658202019-10-02 15:57:36 +010049 help
50 Offset in the memory where the board configuration DTB is placed.
T Karthik Reddy5fa6c1e2019-12-18 03:34:41 -070051
52config BOOT_SCRIPT_OFFSET
53 hex "Boot script offset"
Michal Simek841aa512020-10-22 11:08:58 +020054 depends on ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL || MICROBLAZE
55 default 0xFC0000 if ARCH_ZYNQ || MICROBLAZE
T Karthik Reddy5fa6c1e2019-12-18 03:34:41 -070056 default 0x3E80000 if ARCH_ZYNQMP
57 default 0x7F80000 if ARCH_VERSAL
58 help
Michal Simek841aa512020-10-22 11:08:58 +020059 Specifies distro boot script offset in NAND/QSPI/NOR flash.
Michal Simek4b773f22020-10-14 17:08:14 +020060
61config ZYNQ_MAC_IN_EEPROM
62 bool "Reading MAC address from EEPROM"
63 help
64 Enable this option if your MAC address is saved in eeprom and
65 xlnx,eeprom DT property in chosen node points to it.
66
67if ZYNQ_MAC_IN_EEPROM
68
69config ZYNQ_GEM_I2C_MAC_OFFSET
70 hex "Set the I2C MAC offset"
71 default 0x0
72 depends on DM_I2C
73 help
74 Set the MAC offset for i2C.
75
76endif
Siva Durga Prasad Paladugu7177d022019-04-10 12:38:10 +053077
78config CMD_FRU
79 bool "FRU information for product"
80 help
81 This option enables FRU commands to capture and display FRU
82 information present in the device. The FRU Information is used
83 to primarily to provide "inventory" information about the boards
84 that the FRU Information Device is located on.