aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* arm: mvebu: turris_mox: Move options to defconfigMarek Behún2021-10-212-7/+2
| | | | | | | | Move config options CONFIG_LAST_STAGE_INIT and CONFIG_DISPLAY_BOARDINFO_LATE to turris_mox_defconfig. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
* tools: termios_linux.h: Fix tcsendbreak() implementationPali Rohár2021-10-211-1/+5
| | | | | | | | | | | | | | | | | | | | | There are two Linux ioctls which implements tcsendbreak() functionality: TCSBRK and TCSBRKP TCSBRK with non-zero parameter implements tcdrain() and with zero parameter implements tcsendbreak() for duration of 0.25s. TCSBRKP with zero parameter is same as TCSBRK and with non-zero parameter implements tcsendbreak() for duration in deciseconds specified by parameter. TCSBRKP does not have to be provided by older toolchain versions. So tcsendbreak() has to either use TCSBRK with zero parameter or TCSBRKP with any parameter. Fix code to use TCSBRKP and fallback to TCSBRK with 0. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
* cmd: tlv_eepromSven Auhagen2021-10-211-0/+3
| | | | | | | The function show_eeprom is missing int i if debug is enabled. Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de> Reviewed-by: Stefan Roese <sr@denx.de>
* Merge branch '2021-10-19-assorted-changes'Tom Rini2021-10-1916-11/+245
|\ | | | | | | - Assorted minor fixes and a new GPIO driver
| * clk: fixed_rate: add dummy disable() functionWIP/2021-10-19-assorted-changesSamuel Holland2021-10-191-0/+1
| | | | | | | | | | | | | | | | | | commit 6bf6d81c1112 ("clk: fixed_rate: add dummy enable() function") implemented .enable, so fixed rate clocks can be used where drivers might call clk_enable(). Implement the .disable op for the same reason; some drivers, e.g. USB PHYs, may attempt to disable clocks at runtime. Signed-off-by: Samuel Holland <samuel@sholland.org>
| * arm: total_compute: increase DRAM to 8GBUsama Arif2021-10-192-0/+6
| | | | | | | | | | | | The extra 6GB start at 0x8080000000. Signed-off-by: Usama Arif <usama.arif@arm.com>
| * tools: Stop re-defining -std= when building toolsTom Rini2021-10-192-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | While we intentionally set -std=gnu11 for building host tools, and have for quite some time, we never dropped -std=gnu99 from tools/Makefile. This resulted in passing -std=gnu11 ... -std=gnu99 when building, and gnu99 would win. This in turn would result now in warnings such as: tools/mkeficapsule.c:25:15: warning: redefinition of typedef 'u32' is a C11 feature [-Wtypedef-redefinition] typedef __u32 u32; ^ Signed-off-by: Tom Rini <trini@konsulko.com>
| * configs: am335x_evm: enable CONFIG_CLK_TI_CTRLAmjad Ouled-Ameur2021-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables the clock controller driver support on TI's SoCs. This will fix this GPIO issue at boot time: request_and_set_gpio: Unable to request GPIO_PR1_MII_CTRL request_and_set_gpio: Unable to request GPIO_MUX_MII_CTRL request_and_set_gpio: Unable to request GPIO_FET_SWITCH_CTRL request_and_set_gpio: Unable to request GPIO_PHY_RESET This issue comes from the fact that the clock controller is not probed. Enable the TI's clock controller driver support to solve this. Signed-off-by: Amjad Ouled-Ameur <aouledameur@baylibre.com>
| * drivers/gpio: add support for MAX7320 i2c i/o expanderHannes Schmelzer2021-10-194-0/+158
| | | | | | | | | | | | This commit adds support for the MAX7320 (and clones) gpio expander. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
| * Makefile: Only build dtc if neededSimon Glass2021-10-195-8/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | At present U-Boot always builds dtc if CONFIG_OF_CONTROL is defined, even when DTC is provided. The built dtc is not actually used, so this is a waste of time. Update the Makefile logic to build dtc only if one is not provided to the build with the DTC variable. Add documentation to explain this. This saves about 3.5 seconds of elapsed time on a clean build of sandbox_spl for me. Signed-off-by: Simon Glass <sjg@chromium.org>
| * Revert "kbuild: remove unused dtc-version.sh script"Simon Glass2021-10-193-0/+24
|/ | | | | | | | | We need this to make building dtc optional. It makes no sense to build our own dtc if the system one works correctly. This reverts commit ddb87a0b40262ff99d675e946f57427642303938. Signed-off-by: Simon Glass <sjg@chromium.org>
* Merge branch '2021-10-18-OF_xxx-cleanup'Tom Rini2021-10-1923-51/+44
|\ | | | | | | - Clean things up and rework such that we can drop OF_PRIOR_STAGE
| * treewide: Remove OF_PRIOR_STAGEWIP/bisect-testingIlias Apalodimas2021-10-184-25/+8
| | | | | | | | | | | | | | | | | | The previous patches removed OF_PRIOR_STAGE from the last consumers of the Kconfig option. Cleanup any references to it in documentation, code and configuration options. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
| * board: arm: Remove OF_PRIOR_STAGE from the remaining Arm boardsIlias Apalodimas2021-10-184-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | At some point back in 2018 prior_stage_fdt_address and OF_PRIOR_STAGE got introduced, in order to support a DTB handed over by an earlier stage boo loader. However we have another option in the Kconfig (OF_BOARD) which has identical semantics. So let's remove the option in an effort to simplify U-Boot's config and DTB management, and use OF_BOARD instead. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
| * riscv: Remove OF_PRIOR_STAGE from RISC-V boardsIlias Apalodimas2021-10-1816-23/+28
|/ | | | | | | | | | | | | | | | | | At some point back in 2018 prior_stage_fdt_address and OF_PRIOR_STAGE got introduced, in order to support a DTB handed over by an earlier stage boo loader. However we have another option in the Kconfig (OF_BOARD) which has identical semantics. On RISC-V some of the boards pick up the DTB from a1 and copy it in their private gd_t. Apart from that they copy it to prior_stage_fdt_address, if the Kconfig option is selected, which is unnecessary. So let's switch the config option for those boards to OF_BOARD and define the required board_fdt_blob_setup() for them. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
* Merge tag 'u-boot-rockchip-20211015' of ↵WIP/17Oct2021Tom Rini2021-10-1714-100/+117
|\ | | | | | | | | | | | | | | | | | | https://source.denx.de/u-boot/custodians/u-boot-rockchip - Fix for Rockchip mmc HS400 mode; - Fix for px30 board Odroid Go; - rockchip_sfc update; - rk3568 clk update; - doc fix;
| * mmc: rockchip_sdhci: enable strobe line for HS400Yifeng Zhao2021-10-151-0/+3
| | | | | | | | | | | | | | | | | | The default configuration of rk3399 EMMC PHY does not enable the strobe line, and EMMC controller will got data transmission error at HS400 mode. Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * clk: rockchip: rk3568: update clksElaine Zhang2021-10-152-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | fix up ppll init freq. support tclk_emmc. add freq (26M) for mmc device. fix up the sfc clk rate unit error. Change in V2: remove change id. Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * spi: rockchip_sfc: Using read_pollJon Lin2021-10-151-32/+35
| | | | | | | | | | | | | | | | Using read_poll logic. Tested-by: Chris Morgan <macromorgan@hotmail.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * spi: rockchip_sfc: Implement set_speed logicJon Lin2021-10-151-43/+39
| | | | | | | | | | | | | | | | | | Set clock related processing into set_speed logic. And Optimize printing format. Tested-by: Chris Morgan <macromorgan@hotmail.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: px30: sync serial flash controller bindings with mainlineChris Morgan2021-10-153-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | The devicetree submitted and approved for the mainline linux kernel is slightly different than the one present here. This syncs both devicetrees (for the Rockchip SFC node at least) present on the PX30 and the Odroid Go Advance. Changes include renaming the flash node, reordering the values in the SFC node for the rk3326-odroid-go2, changing the name of the cs pinctrl node to cs0, and updating the u-boot specific tree to utilize the new flash node value. Signed-off-by: Chris Morgan <macromorgan@hotmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * doc: rockchip: write all brand names with a capitalJohan Jonker2021-10-151-8/+8
| | | | | | | | | | | | | | | | Brand names are supposed to be written with a capital, so change them all. Signed-off-by: Johan Jonker <jbx6244@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * doc: rockchip: sort rockchip support list for rk3188Johan Jonker2021-10-151-2/+2
| | | | | | | | | | | | | | | | | | In the list of mainline U-boot supported Rockchip boards rk3188 is placed below under the name rv3188. Give back it's original name and sort the list in alphabetical order. Signed-off-by: Johan Jonker <jbx6244@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: rk33xx: Drop ROCKCHIP_USB2_PHY on boards without itPeter Robinson2021-10-155-5/+0
| | | | | | | | | | | | | | | | | | The 64 bit rk33xx chips don't have the ROCKCHIP_USB2_PHY IP so drop the configs as they were likely copied over from other boards during enablement. Signed-off-by: Peter Robinson <pbrobinson@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: board: remove SCLK_GPU from U-Boot DTChris Morgan2021-10-151-0/+10
| | | | | | | | | | | | | | | | | | | | | | Starting with commit 92f1e9a4b31c ("clk: Detect failure to set defaults") the clk driver for the PX30 would fail to probe for the Odroid Go Advance. This patch is to remove the clock for the GPU from the U-Boot specific devicetree, as that clock is not supported by the U-Boot clk_px30 driver. Signed-off-by: Chris Morgan <macromorgan@hotmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
| * rockchip: px30: add support for setting cpll clockChris Morgan2021-10-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Starting with commit 92f1e9a4b31c ("clk: Detect failure to set defaults") the clk driver for the PX30 for the Odroid Go Advance would no longer probe correctly, because setting the cpll and gpu clocks are not supported with the clk_px30 U-Boot driver. This adds support for setting the cpll clock to the clk_px30 driver. Another patch will update the U-Boot specific device-tree to remove the GPU clock which is not used by U-Boot. Signed-off-by: Chris Morgan <macromorgan@hotmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
* | Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-tegraWIP/15Oct2021Tom Rini2021-10-1513-308/+321
|\ \ | | | | | | | | | | | | | | | | | | On merge, fixup order of fdtdec_add_reserved_memory parameters in arch/arm/cpu/armv8/fsl-layerscape/soc.c Signed-off-by: Tom Rini <trini@konsulko.com>
| * | ARM: tegra: Copy memory-region-names propertyThierry Reding2021-10-131-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If multiple entries are present in the memory-region property, this new memory-region-names property can be used to specify names for each of them so that they can be more easily distinguished. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
| * | ARM: tegra: Refactor DT update helpersThierry Reding2021-10-135-355/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than duplicate the Ethernet MAC address and carveout updating code for each board, move it to a common location and make it more reusable. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
| * | ARM: tegra: Support EMC frequency tables on Tegra210Thierry Reding2021-10-133-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The EMC frequency tables are created from a training sequence performed during early boot and passed in via a reserved memory region by nvtboot. Copy this table to the kernel DTB so that the kernel can use it to scale the EMC frequency at runtime. Note that early bootloaders store the EMC table at an address that currently intersects with the load address of the initial ramdisk. In order to avoid copying the table to a different address, simply change the load address for the initial ramdisk in U-Boot. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
| * | ARM: tegra: Support multiple reserved memory regionsThierry Reding2021-10-133-39/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support multiple reserved memory regions per device to support platforms that use both a framebuffer and color conversion lookup table for early boot display splash. While at it, also pass along the name, compatible strings and flags of the carveouts. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
| * | fdtdec: Support reserved-memory flagsThierry Reding2021-10-1310-34/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reserved memory nodes can have additional flags. Support reading and writing these flags to ensure that reserved memory nodes can be properly parsed and emitted. This converts support for the existing "no-map" flag to avoid extending the argument list for fdtdec_add_reserved_memory() to excessive length. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
| * | fdtdec: Reorder fdtdec_set_carveout() parameters for consistencyThierry Reding2021-10-137-24/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fdtdec_set_carveout() function's parameters are inconsistent with the parameters passed to fdtdec_add_reserved_memory(). Fix up the order to make it more consistent. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
| * | fdtdec: Support compatible string list for reserved memoryThierry Reding2021-10-1310-24/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reserved memory nodes can have a compatible string list to identify the type of reserved memory that they represent. Support specifying an optional compatible string list when creating these nodes. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
| * | fdtdec: Support retrieving the name of a carveoutThierry Reding2021-10-136-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When retrieving a given carveout for a device, allow callers to query the name. This helps differentiating between carveouts when there are more than one. This is also useful when copying carveouts to help assign a meaningful name that cannot always be guessed. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
| * | fdtdec: Allow using fdtdec_get_carveout() in loopsThierry Reding2021-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order make it possible to use fdtdec_get_carveout() in loops, return FDT_ERR_NOTFOUND when the passed-in index exceeds the number of phandles present in the given property. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
* | | Merge branch '2021-10-15-Kconfig-migrations'Tom Rini2021-10-15240-321/+38
|\ \ \ | |_|/ |/| | | | | - Assorted Kconfig migration patches
| * | configs: Resync with savedefconfigWIP/2021-10-15-Kconfig-migrationsTom Rini2021-10-15206-220/+17
| | | | | | | | | | | | | | | | | | Resync all defconfig files using moveconfig.py Signed-off-by: Tom Rini <trini@konsulko.com>
| * | Convert CONFIG_USB_EHCI_IS_TDI to KconfigMarek Behún2021-10-1526-61/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | On mvebu this is defined if and only if !ARM64. Otherwise it is defined for boards with ARCH_MX23, ARCH_TEGRA and ARCH_ZYNQ, and also for SOC_AR934X (tplink_wdr4300). Signed-off-by: Marek Behún <marek.behun@nic.cz>
| * | Drop CONFIG_USB_EHCI_KIRKWOODMarek Behún2021-10-152-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | This config option doesn't do anything. nas220 uses USB_EHCI_MARVELL. Signed-off-by: Marek Behún <marek.behun@nic.cz>
| * | Convert CONFIG_USB_EHCI_MXS to KconfigMarek Behún2021-10-153-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option is only used for mx23evk_defconfig mx23_olinuxino_defconfig which are the only i.MX23 boards. Add depend on ARCH_MX23 and default to y. Signed-off-by: Marek Behún <marek.behun@nic.cz>
| * | Rename CONFIG_EHCI_IS_TDI to CONFIG_USB_EHCI_IS_TDIMarek Behún2021-10-1525-25/+25
| | | | | | | | | | | | | | | | | | | | | In preparation for moving this option to Kconfig, rename it to be consistent with other USB EHCI Kconfig options. Signed-off-by: Marek Behún <marek.behun@nic.cz>
| * | Remove unused CONFIG_CONS_NONEPatrick Delaunay2021-10-152-2/+0
| | | | | | | | | | | | | | | | | | | | | Remove the latest reference of CONFIG_CONS_NONE in code Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | Remove unused CONFIG_SYS_FLASH_AMD_CHECK_DQ7Patrick Delaunay2021-10-153-3/+0
| | | | | | | | | | | | | | | | | | | | | Remove the latest reference of CONFIG_SYS_FLASH_AMD_CHECK_DQ7 in code Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | Remove unused CONFIG_NO_RELOCATIONPatrick Delaunay2021-10-152-2/+0
| | | | | | | | | | | | | | | | | | | | | Remove the latest reference of CONFIG_NO_RELOCATION in code Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | am33x: Remove unused define CONFIG_MUSB_HOSTPatrick Delaunay2021-10-152-8/+0
| | | | | | | | | | | | | | | | | | | | | This define was left over from a previous revision, and was never used. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | scripts: remove some configs in config_whitelist.txtPatrick Delaunay2021-10-154-20/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove some config finishing by _ badly added by scripts/build-whitelist.sh when joker is used in comments. for example: doc/uImage.FIT/command_syntax_extensions.txt: ... #ifdef CONFIG_OF_* | ... cmd/nvedit.c:# error Define one of CONFIG_ENV_IS_IN_{EEPROM| \ FLASH|MMC|FAT|EXT4|\ Remove also configs only used in comments: - CONFIG_BOOGER in include/linux/kconfig.h - CONFIG_COMMANDS - CONFIG_INIT_IGNORE_ERROR - CONFIG_REG_* - CONFIG_HOTPLUG : drivers/watchdog/omap_wdt.c:18 Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
* | Merge branch '2021-10-14-assorted-updates'Tom Rini2021-10-1514-34/+119
|\ \ | |/ |/| | | | | - Update to LLVM-13 in CI, assorted PCI fixes and pytest in CI improvements
| * board/km: update MAINTAINERS filesWIP/2021-10-14-assorted-updatesHolger Brunck2021-10-144-6/+5
| | | | | | | | | | | | | | | | Update the e-mail addresses and person responsible. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com> CC: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com> CC: Rainer Boschung <rainer.boschung@hitachienergy.com>
| * pytest: Show a message when sandbox crashesSimon Glass2021-10-142-12/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a test hands on a real board there is no way on the console to obtain any information about why it hung. With sandbox we can actually find out that it died and get a signal or exit code. Add this to make it easier to figure out what happened. So instead of: test/py/u_boot_spawn.py:171: in expect c = os.read(self.fd, 1024).decode(errors='replace') E OSError: [Errno 5] Input/output error We get: test/py/u_boot_spawn.py:171: in expect c = os.read(self.fd, 1024).decode(errors='replace') E ValueError: U-Boot exited with signal 11 (Signals.SIGSEGV) Signed-off-by: Simon Glass <sjg@chromium.org>