aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-07-28dra7xx: Remove explicit DRAM banks number from defconfigsPaul Kocialkowski
The common EMIF init code used for DRA7xx does not explicitly fill the gd->bd->bi_dram entries (like OMAP3 does), so there is no reason to set an explicit number of DRAM banks which doesn't correspond to anything in particular. Remove the CONFIG_NR_DRAM_BANKS option from the concerned defconfigs. The dram_init_banksize default implementation will be fine with the default value for the config option. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28omap3: Define DRAM banks number in Kconfig instead of defconfigsPaul Kocialkowski
The number of DRAM banks was defined to the same value in each OMAP3 board defconfig, which is expected and hardcoded in the code. Move the common definition to the Kconfig option declaration instead. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28omap3: Define maximum SPL size in Kconfig instead of defconfigsPaul Kocialkowski
The maximum SPL size was defined to the same value in each OMAP3 board defconfig. Move the common definition to the Kconfig option declaration instead. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28omap3: Define maximum U-Boot size in Kconfig instead of defconfigsPaul Kocialkowski
The maximum U-Boot size was defined to the same value in each OMAP3 board defconfig. Move the common definition to the Kconfig option declaration instead. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28dra7xx: Define common init stack pointer address in KconfigPaul Kocialkowski
The init stack pointer was defined to the same value in each DRA7xx board defconfig. Move the common definition to the Kconfig option declaration instead. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28dra7xx: Unify init stack pointer address across boardsPaul Kocialkowski
The DRA7xx EVM board use a slightly different init stack pointer address compared to the AM57xx EVM board, for no particular reason. Align the address with the AM57xx EVM board (which matches the usual offset to the end of SRAM used by other OMAP devices) prior to removing it as a per-board option in a later commit. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28am43xx: Define common init stack pointer address in KconfigPaul Kocialkowski
The init stack pointer was defined to the same value in each AM43xx board defconfig. Move the common definition to the Kconfig option declaration instead. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28am33xx: Define common init stack pointer address in KconfigPaul Kocialkowski
The init stack pointer was defined to the same value in each AM33xx board defconfig. Move the common definition to the Kconfig option declaration instead. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28am33xx: Unify init stack pointer address across boardsPaul Kocialkowski
The AM33xx chiliboard and guardian boards use a slightly different init stack pointer address compared to other AM33xx boards, for no particular reason. Align the address with other AM33xx boards prior to removing it as a per-board option in a later commit. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28omap3: Define common init stack pointer address in KconfigPaul Kocialkowski
The init stack pointer was defined to the same value in each OMAP3 board defconfig. Move the common definition to the Kconfig option declaration instead. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-28omap3: Define common SPL text base in Kconfig instead of defconfigsPaul Kocialkowski
The SPL text base was defined to the same value in each OMAP3 board defconfig. Move the common definition to the Kconfig option declaration instead. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2024-07-26Merge tag 'dm-pull-26jul24' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-dm buildman minor fix qconfig refactoring patman fix for Python 3.12
2024-07-26buildman: Show board list with -xSimon Glass
When -x is used, buildman does not show the list of boards that will be built, since there are no terms which cause boards to be added, only terms which cause them to be removed. Add a special case to fix this. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Tom Rini <trini@konsulko.com>
2024-07-26sandbox: Fix LTO to work with STACKPROTECTORAndrew Goodbody
Add the STACKPROTECTOR symbols to the script that generates the symbols that should not be removed by the use of LTO when linking a shared object. This prevents a fail to build due to link errors. https://source.denx.de/u-boot/u-boot/-/issues/35 Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
2024-07-26binman: Update cbfstoolSimon Glass
Update to a newer version of this tool, 4.22.01. This runs OK with the current binman tests and matches the one in CI. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
2024-07-26tools: patman: fix `pip install` with Python 3.12Brandon Maier
Installing patman with `cd ./tools/patman && pip install -e .` fails with the error below. As described in the error output below, the license line is not allowed to be only defined in the setup.py. We remove the 'license' field entirely, as the Python Packaging User Guide recommends using projects classifiers instead[1] and we already set the GPL-2.0+ classifier. > $ cd ./tools/patman && pip install -e . > Obtaining file:///.../u-boot/tools/patman > Installing build dependencies ... done > Checking if build backend supports build_editable ... done > Getting requirements to build editable ... error > error: subprocess-exited-with-error > > × Getting requirements to build editable did not run successfully. > │ exit code: 1 > ╰─> [61 lines of output] > /tmp/pip-build-env-mqjvnmz8/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:76: > _MissingDynamic: `license` defined outside of `pyproject.toml` is ignored. > !! > > ******************************************************************************** > The following seems to be defined outside of `pyproject.toml`: > > `license = 'GPL-2.0+'` > > According to the spec (see the link below), however, setuptools CANNOT > consider this value unless `license` is listed as `dynamic`. > > https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table > > To prevent this problem, you can list `license` under `dynamic` or alternatively > remove the `[project]` table from your file and rely entirely on other means of > configuration. > ******************************************************************************** > > !! [1] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license Signed-off-by: Brandon Maier <brandon.maier@collins.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move operation check into parse_args()Simon Glass
Put the check for an operation being provided into the parse_args() function, to reduce the size of main(). Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Drop col argument from Slots()Simon Glass
This is not needed since the progress indicator has the object. Use that instead. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Use the Color object in ProgressSimon Glass
Since the Progress class has the required object, use it from there instead of passing it around. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move the last two operations into their own functionsSimon Glass
Put the summary and database-writing code into separate functions to reduce the size of main(). Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move progress output into the classSimon Glass
Rather than create these outputs separately, put them in the class so that the main program doesn't need to deal with them. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move commit code into a separate functionSimon Glass
Reduce the size of main() by putting this code into its own function. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move all move_config code into move_config()Simon Glass
Move the setup and completion code into the move_config() function so it is all in one place. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Add a return value to do_find_config()Simon Glass
Return an exit code so we can use this function like do_tests(). Refactor the caller to handle this. Reduce the size of main() by putting this code into its own function. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move imply into a separate functionSimon Glass
Reduce the size of main() by putting this code into its own function, with the usage message staying in main(). Tidy up the comments for do_imply_config() while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Add a return value to do_scan_source()Simon Glass
Return an exit code so we can use this function like do_tests(). Refactor the caller to handle this. Reduce the size of main() by putting this code into its own function. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move testing into a separate functionSimon Glass
Reduce the size of main() by putting this code into its own function. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move converting config args to the topSimon Glass
Move this check to the top, so it happens always. There is no harm to doing this earlier and it separates the setup from actual program logic. Update the arg rather than adding a new variable, with the new variable only created when moving or building, since it is used more heavily. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move checking directory to the topSimon Glass
Move this check to the top, so it happens always. The tool should be run from the U-Boot source directory. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move getting the colour to where it is neededSimon Glass
Move this assignment down to just above where it is needed. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move arg checking to the top of main()Simon Glass
Check for 'test' as one of the possible operations for this tool, moving the check above the implementation. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move arg checking a little higherSimon Glass
Check for scan_source as one of the possible operations for this tool, moving the check above the scan_source implementation. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Move arg parsing into a separate functionSimon Glass
Reduce the size of main() by putting this code into its own function. For now the parser object needs to be returned too. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Rename the doc linkSimon Glass
This was missed during the renaming of the tool. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: ea4d6dead37 ("moveconfig: Rename the tool to qconfig")
2024-07-26qconfig: Correct format string in do_imply_config()Simon Glass
One of the strings was converted incorrectly. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: 1bd43060b3e ("moveconfig: Use f strings where possible")
2024-07-26qconfig: Tidy up some pylint warningsSimon Glass
Reduce the number of warnings in this file a little bit. Add my own name to the copyright message. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Make KconfigScanner a functionSimon Glass
This doesn't have any methods so is not good as a class. Make it a function instead, to keep pylint happy. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Drop the try_expand() functionSimon Glass
This is not used anymore, so drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26qconfig: Fix pylint error in read_database()Simon Glass
Fix this error by initing the variable before the loop: tools/qconfig.py:880:22: E0606: Possibly using variable 'defconfig' before assignment (possibly-used-before-assignment) Signed-off-by: Simon Glass <sjg@chromium.org>
2024-07-26Merge branch 'qcom-main' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-snapdragon * Qualcomm platforms >~2016 gain support for the RPMh (Resource Power Manager) peripheral which is used to control most regulators. The RB5 is now able to power up its USB VBUS regulator via the rpmh regulator driver. Git history from the original Linux driver is preserved for ease of maintenance. * IPQ40xx SoCs gain ethernet networking support via the new ESS EDMA driver.
2024-07-26arm: dts: add IPQ4019 ESS EDMA U-Boot additionsRobert Marko
IPQ4019 ESS EDMA support is not yet in upstream Linux, so for now lets use the latest pending Linux DTS node for wired networking. Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2024-07-26net: add Qualcomm ESS EDMA adapterRobert Marko
This adds the driver for the ESS EDMA ethernet adapter found inside of Qualcomm IPQ40xx SoC series. This driver also integrates the built in modified QCA8337N switch support as they are tightly integrated. Co-Developed-by: Gabor Juhos <j4g8y7@gmail.com> Signed-off-by: Gabor Juhos <j4g8y7@gmail.com> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2024-07-26clock: qcom: ipq4019: add missing networking resetsRobert Marko
IPQ4019 has more networking related resets that will be required for future wired networking support, so lets add them. This syncs the driver with Linux. Signed-off-by: Robert Marko <robert.marko@sartura.hr> Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-07-26dt-bindings: clock: qcom: ipq4019: drop downstream fileRobert Marko
IPQ4019 clock dt-bindings are available in Linux upstream, and we can just use those instead of carrying a downstream file that matches the upstream one anyway. Signed-off-by: Robert Marko <robert.marko@sartura.hr> Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
2024-07-26clock: qcom: ipq4019: add ESS clockRobert Marko
ESS clock is the Ethernet Subsystem clock, so lets add it as its already configured by SBL1. Signed-off-by: Robert Marko <robert.marko@sartura.hr> Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
2024-07-26qcom_defconfig: enable rpmh regulatorsCaleb Connolly
Enable RPMh, cmd-db, and RPMh regulators. Additionally enable CMD_REGULATOR for debugging. Acked-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-07-26power: regulator: qcom-rpmh-regulator: add build infraCaleb Connolly
Add Kconfig and Makefile entries for this driver now that it can build for U-Boot. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-07-26power: regulator: qcom-rpmh-regulator: adjust probe for U-BootCaleb Connolly
Refactor initialization to use U-Boot's driver model and API. Acked-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-07-26power: regulator: qcom-rpmh-regulator: port ops to U-BootCaleb Connolly
Port over the regulator ops to U-Boot's regulator API. Add back the pmic5 mode map using U-Boot dm_regulator_mode API and adjust the pmic5_pldo and pmic5_pldo_lv definitions. No functional changes. Acked-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-07-26power: regulator: qcom-rpmh-regulator: remove unused regulatorsCaleb Connolly
Initially just include the few regulators needed for the RB5 board. Others can be added back as-needed. Acked-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>