aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-02-08Merge branch '2023-02-08-increase-default-LMB-regions'WIP/08Feb2023Tom Rini14-19/+40
- Correct my mistake with defaulting to not setting LMB_USE_MAX_REGIONS, and fix the lmb test to scale with more than 8 regions before setting the new default to 16 regions.
2023-02-08Bump LMB_MAX_REGIONS default to 16Sjoerd Simons1-1/+1
Since commit 06d514d77c37 ("lmb: consider EFI memory map") the EFI regions are also pushed into the lmb if EFI_LOADER is enabled (which is by default on most system). Which can cause the number of entries to go over the maximum as it's default is only 8. Specifically i ran into this case on an TI am62 which has an fdt with 4 reserved regions (in practice 3 lmb entries due to adjecent ranges). As this is likely to impact more devices bump the default max regions to 16 so there is a bit more slack. Fixes: 06d514d77c ("lmb: consider EFI memory map") Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1207562 Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com> Signed-off-by: Sjoerd Simons <sjoerd@collabora.com> Signed-off-by: Michal Suchanek <msuchanek@suse.de> [trini: collect tags from the other equivalent patch]
2023-02-08test: lmb: Rework lib_test_lmb_max_regions test to scaleTom Rini1-18/+26
First, this test depends on CONFIG_LMB_USE_MAX_REGIONS, so add that as a test before building. Second, instead of using a hard-coded value of 8, which is the default of CONFIG_LMB_USE_MAX_REGIONS previously, use that directly and update the comments. The only trick here is that one part of the test itself also was written with the value of 8 itself in mind. Rework the size of the lmb region we allocate to scale with the value of CONFIG_LMB_USE_MAX_REGIONS. Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-02-08Revert "lmb: Default to not-LMB_USE_MAX_REGIONS"Tom Rini13-0/+13
As explained by Philippe Schenker, I was misinterpreting what happened in the case where we do not set LMB_USE_MAX_REGIONS and so had re-introduced the problem I was attempting to more widely resolve. This reverts commit 007ae5d108a37564905ea1588cb279f3a522cc3d. Reported-by: Philippe Schenker <philippe.schenker@toradex.com> Signed-off-by: Tom Rini <trini@konsulko.com>
2023-02-07Merge branch '2023-02-07-Kconfig-cleanup-dead-code-removal'Tom Rini134-16258/+371
To quote the author: This series adds source scanning to moveconfig.py so that it can look for Kconfig options mentioned in the source which do not appear in Kconfig, and vice versa. This tool is then used to clean up the unused or obsolete options mentioned in Makefiles, along with any attached source code.
2023-02-07fdt: Drop use of non-existent OF_PLATDATA optionWIP/2023-02-07-Kconfig-cleanup-dead-code-removalSimon Glass1-2/+2
These are only present in SPL. Drop the references to non-SPL versions. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07freescale: Drop unused zm7300 driverSimon Glass3-254/+0
This is not used anymore. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07tools: Drop xway-swap-bytes toolSimon Glass3-49/+0
This is very old and does not appear to be used. The CONFIG option enabling it is no-longer present. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07freescale: Drop unused vsc3316_3308 driverSimon Glass2-531/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07imx: Drop CONFIG_USE_PLUGINSimon Glass1-4/+0
This option is not defined anywhere. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07usb: Drop unused sl811-hcd driverSimon Glass3-819/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07usb: Drop unused ehci-vct driverSimon Glass2-45/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07rmobile: Drop unused ehci-rmobile driverSimon Glass3-276/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07usb: Drop unused fotg210 gadgetSimon Glass4-1336/+1
This is not used and appears to be associated with the faraday board which has been removed. Drop the driver and Kconfig options. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07usb: Drop unused ehci-faraday driverSimon Glass5-215/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07armada: usb: net: Drop unused USB driversSimon Glass4-130/+0
These are not used. Drop the drivers and Kconfig option. Also drop an old declaration in the netdev.h header. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07ppc: Makefile: Drop unused ppc4xx codeSimon Glass1-11/+0
CONFIG_UBOOT_PAD_TO is not defined anywhere. Drop this dead code. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
2023-02-07freescale: Drop CONFIG_TARGET_MPC8536DS et alSimon Glass1-3/+0
This option as well as CONFIG_TARGET_P1022DS and CONFIG_TARGET_P5020DS are not defined anywhere. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07compulab: Drop CONFIG_TARGET_MCM_IMX8M_MINISimon Glass1-4/+0
This option is not defined anywhere. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07sh4: Drop unused kona_i2c driverSimon Glass2-729/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
2023-02-07gdsys: Drop unused fpga fileSimon Glass2-29/+0
This is not used since CONFIG_SYS_FPGA_COMMON is not defined anywhere. Drop the code and the Makefile rule. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07sysreset: at91: Correct Makefile rule for SYSRESET_AT91Simon Glass1-1/+1
The SPL_TPL part is in the wrong place. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: 71d4393f846 ("sysreset: Add Atmel/Microchip sysreset driver") Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
2023-02-07Drop ubsha1 toolSimon Glass4-93/+0
This seems to have been used by ppc4xx which was removed a while back. The Kconfig does not exist so it is never built. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07sh4: Drop unused pci_sh7780 driverSimon Glass3-95/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07rmobile: Drop CONFIG_SH73A0 and associated codeSimon Glass10-3715/+4
This option does not exist, so the code attached to it is not used. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07mtd: Drop unused scf0403_lcd driverSimon Glass3-308/+0
This is not used since this commit: 76386d6195a arm: Remove cm_t35 board Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07mtd: Drop unused CONFIG_S32V234Simon Glass1-1/+0
This option does not exist, so the Makefile rule does nothing. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07rtc: Drop old and unused driversSimon Glass12-2114/+0
These drivers are not used and have not been converted to driver model. Drop them and references to the non-existent CONFIG options they use. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07rmobile: Drop CONFIG_RMOBILESimon Glass1-1/+0
This has been renamed to CONFIG_ARCH_RMOBILE but this one was left behind. It doesn't point to a directory that exists, so just drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07freescale: Drop unused pq-mds-pib driverSimon Glass3-70/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07power: Drop unused muic_max8997 driverSimon Glass2-75/+0
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07power: Drop unused muic_max77693 driver and mfd codeSimon Glass3-84/+0
This driver is not used and has lain unconverted since: fc47cf9d054 arm: exynos: i2c: Convert exynos boards to use DM_I2C Drop it and the entire mfd directory, since there is nothing left. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07power: Drop unused fg_max17042 driver and fuel gauge codeSimon Glass4-367/+0
This driver is not used. Drop it and the entire fuel_gauge directory, since there is nothing left. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07power: Drop unused bat_trats driver and battery codeSimon Glass4-164/+0
This driver and bat_trats2 are not used. Drop them and the entire battery directory, since there is nothing left. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07gpio: Drop unused pca9698 driverSimon Glass5-188/+1
This is not used. Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07ppc: Drop unused CONFIG_P2020DSSimon Glass1-1/+0
This option does not exist, so the Makefile rule does nothing. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07omap: Drop unused CONFIG_OMAP_USB_PHYSimon Glass1-1/+0
This option does not exist, so the Makefile rule does nothing. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-02-07Makefile: Drop CONFIG_OF_EARLY_FLATTREESimon Glass1-4/+0
This option does not exist, so drop the dead code. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07mtd: Drop unused nand_plat driverSimon Glass2-66/+0
This is not used since this commit: 936478e797a SPARC: Remove Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07mtd: Drop unused fsmc_nand driverSimon Glass3-555/+0
This is not used since this commit: 570c3dcfc15 arm: Remove spear600 boards and the rest of SPEAr support Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
2023-02-07mtd: Drop unused fsl_upm driverSimon Glass3-232/+0
This is not used since this commit: 8d1e3cb1400 powerpc: mpc83xx: remove MPC8360ERDK, EMPC8360EMDS support Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com>
2023-02-07nand: Drop unused actl_nand driverSimon Glass2-50/+0
This is not used since this commit: ed7fe2bee12 ppc: Remove xpedite boards Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07imx: Rename CONFIG_MXS to CFG_MXSSimon Glass2-3/+3
This is not a Kconfig option so we should not be setting it in the Makefile. Rename it to use a CFS_ prefix, since this is still used in mxsimage.c In general tools should support all the features without reference to CONFIG options, but this is left to the maintainer to look at. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07gpio: Drop unused mpc83xx_gpio driverSimon Glass2-184/+0
This is not used since this commit: 7458f18e5c2 ppc: Remove MPC8313ERDB boards Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07arc: Drop CONFIG_MMUSimon Glass2-9/+0
This option is set in the Makefile but has no effect in the assembly code, i.e. the #ifdef branch is never used. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07arm: Drop CONFIG_MMUSimon Glass1-21/+0
This option does not exist, so the #ifdefs do nothing. Drop this code. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07m68k: Drop unused CONFIG_MACH_DAVINCI_DA830_EVMSimon Glass1-1/+0
This option does not exist, so the Makefile rule does nothing. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07m68k: Drop unused CONFIG_M52277Simon Glass1-1/+0
This option does not exist, so the Makefile rule does nothing. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07video: Drop unused lg4573 driverSimon Glass2-332/+0
This is not used since this commit: 3cf02f5ffa4 imx6: remove not longer supported aristainetos boards Drop the driver and Kconfig option. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-02-07arm: Drop old kona codeSimon Glass8-229/+0
The KONA and KONA_GPIO options don't exist anymore, since this commit: 0f6807e77b0 arm: Remove bcm28155_ap board Drop the dead code. Signed-off-by: Simon Glass <sjg@chromium.org>