Luca Ceresoli | b0172c3 | 2018-06-22 12:40:16 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Copyright (c) 2018, Luca Ceresoli <luca@lucaceresoli.net> |
| 4 | |
| 5 | if ARCH_ZYNQ || ARCH_ZYNQMP |
| 6 | |
| 7 | config 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 | |
| 41 | endif |
Ibai Erkiaga | 6f65820 | 2019-10-02 15:57:36 +0100 | [diff] [blame] | 42 | |
Ibai Erkiaga | fd48fd7 | 2019-10-02 15:57:37 +0100 | [diff] [blame] | 43 | config XILINX_OF_BOARD_DTB_ADDR |
Ibai Erkiaga | 6f65820 | 2019-10-02 15:57:36 +0100 | [diff] [blame] | 44 | hex |
Ibai Erkiaga | fd48fd7 | 2019-10-02 15:57:37 +0100 | [diff] [blame] | 45 | default 0x1000 if ARCH_VERSAL |
| 46 | default 0x100000 if ARCH_ZYNQ || ARCH_ZYNQMP |
Ibai Erkiaga | 6f65820 | 2019-10-02 15:57:36 +0100 | [diff] [blame] | 47 | depends on OF_BOARD |
| 48 | help |
| 49 | Offset in the memory where the board configuration DTB is placed. |