Skip to contentSkip to conversation

want to confirm that include/configs/xilinx_zynqmp*.h files seem unused

DISCUSSION Robert P. J. Day 2 participants 3 messages Dec 13, 2019

lore
Share & tools
lore
#0 lore raw

been a while since i wandered through the innards of u-boot so it's
possible this is a silly question.

was just placed on a project that involves a xilinx zynqmp-based
board, and need to upgrade the version of u-boot that's currently being used. as part of my perusal, i did a quick grep to see what existing boards were doing with any zynqmp-related header files, so i did this from the top of the current tree:

$ grep -r "include.*xilinx_zynqmp.*\.h" *
include/configs/xilinx_zynqmp_mini.h:#include <configs/xilinx_zynqmp.h>
include/configs/xilinx_zynqmp_mini_emmc.h:#include <configs/xilinx_zynqmp_mini.h>
include/configs/xilinx_zynqmp_mini_qspi.h:#include <configs/xilinx_zynqmp_mini.h>
include/configs/xilinx_zynqmp_mini_nand.h:#include <configs/xilinx_zynqmp_mini.h>
$

i'm aware of the ongoing migration of content from
include/configs/*.h files to defconfig files, so the above seems to suggest, given the circular inclusion of those header files with no one else including them, that those files are no longer referenced.

my guess is that all that content was migrated to defconfigs but the
header files were simply left there. is that a fair conclusion, or might there be something far more subtle i'm overlooking here?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 17 lines · Robert P. J. Day

been a while since i wandered through the innards of u-boot so it's
possible this is a silly question.

was just placed on a project that involves a xilinx zynqmp-based
board, and need to upgrade the version of u-boot that's currently being used. as part of my perusal, i did a quick grep to see what existing boards were doing with any zynqmp-related header files, so i did this from the top of the current tree:

$ grep -r "include.*xilinx_zynqmp.*\.h" *
include/configs/xilinx_zynqmp_mini.h:#include <configs/xilinx_zynqmp.h>
include/configs/xilinx_zynqmp_mini_emmc.h:#include <configs/xilinx_zynqmp_mini.h>
include/configs/xilinx_zynqmp_mini_qspi.h:#include <configs/xilinx_zynqmp_mini.h>
include/configs/xilinx_zynqmp_mini_nand.h:#include <configs/xilinx_zynqmp_mini.h>
$
Quoted 8 lines

i'm aware of the ongoing migration of content from
include/configs/*.h files to defconfig files, so the above seems to suggest, given the circular inclusion of those header files with no one else including them, that those files are no longer referenced.

my guess is that all that content was migrated to defconfigs but the
header files were simply left there. is that a fair conclusion, or might there be something far more subtle i'm overlooking here?

Nope.
All of them are used as configuration for configs/xilinx_zynqmp_mini* configurations.
But as I am looking at it SYS_MALLOC_LEN can be converted to Kconfig.

The rest - SYS_SDRAM_SIZE/BASE and SYS_INIT_SP_ADDR haven't been converted yet. But patches welcome. Then we can remove _emmc, _qspi, _nand configurations and keep just mini.h one till other stuff are converted.

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191213/dc856012/attachment.sig>
#2 lore raw
Quoted 23 lines · Michal Simek
Quoted 22 lines · Robert P. J. Day

been a while since i wandered through the innards of u-boot so it's
possible this is a silly question.

was just placed on a project that involves a xilinx zynqmp-based
board, and need to upgrade the version of u-boot that's currently being used. as part of my perusal, i did a quick grep to see what existing boards were doing with any zynqmp-related header files, so i did this from the top of the current tree:

$ grep -r "include.*xilinx_zynqmp.*\.h" *
include/configs/xilinx_zynqmp_mini.h:#include <configs/xilinx_zynqmp.h>
include/configs/xilinx_zynqmp_mini_emmc.h:#include <configs/xilinx_zynqmp_mini.h>
include/configs/xilinx_zynqmp_mini_qspi.h:#include <configs/xilinx_zynqmp_mini.h>
include/configs/xilinx_zynqmp_mini_nand.h:#include <configs/xilinx_zynqmp_mini.h>
$

i'm aware of the ongoing migration of content from
include/configs/*.h files to defconfig files, so the above seems to suggest, given the circular inclusion of those header files with no one else including them, that those files are no longer referenced.

Quoted 8 lines
Quoted 3 lines

my guess is that all that content was migrated to defconfigs but the
header files were simply left there. is that a fair conclusion, or might there be something far more subtle i'm overlooking here?

Nope.

All of them are used as configuration for
configs/xilinx_zynqmp_mini* configurations.

ah, i think i see what i overlooked (like i said, it's been a while
since i poked around here). i wasn't sure how those header files could be included if their actual names were not found in the source, until i looked at (for example) xilinx_zynqmp_mini_qspi_defconfig, where i saw the line:

CONFIG_SYS_CONFIG_NAME="xilinx_zynqmp_mini_qspi"

which i now assume is used as part of the build to identify the header file to be included, is that correct?

oh, and there it is in arch/arm/mach-zynqmp/Kconfig:

config SYS_CONFIG_NAME
string "Board configuration name"
default "xilinx_zynqmp"
help
This option contains information about board configuration name. Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header will be used for board configuration.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================