summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-11board: MCR3000: Migrate to using CONFIG_EXTRA_ENV_TEXTChristophe Leroy
We can move all of the environment changes to come from CONFIG_EXTRA_ENV_TEXT. Suggested-by: Tom Rini <[email protected]> Signed-off-by: Christophe Leroy <[email protected]>
2023-02-10Merge tag 'efi-2023-04-rc2' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request for efi-2023-04-rc2 Documentation: * Provide page with links to talks on U-Boot UEFI: * Enable CTRL+S to save the boot order in eficonfig command * Run attribute check for QueryVariableInfo() only for the file store * Bug fixes Others: * Improve output formatting of the coninfo command # -----END PGP SIGNATURE----- # gpg: Signature made Fri 10 Feb 2023 12:15:45 PM EST # gpg: using RSA key 6DC4F9C71F29A6FA06B76D33C481DBBC2C051AC4 # gpg: Good signature from "Heinrich Schuchardt <[email protected]>" [unknown] # gpg: aka "[jpeg image of size 1389]" [unknown] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 6DC4 F9C7 1F29 A6FA 06B7 6D33 C481 DBBC 2C05 1AC4
2023-02-10Merge branch '2023-02-10-assorted-updates-and-additions'Tom Rini
- DM_SERIAL conversion for bcm7xxx, button input driver, qcom updates, environment and network related cleanup, ftmac100 update, add a IS_ENABLED conversion that was just missed.
2023-02-10net: ftmac100: add mii read and write callbacksSergei Antonov
Register mii_bus with read and write callbacks to allow the 'mii' command to work. Use a timeout of 10 ms to wait for the R/W operations to complete. Signed-off-by: Sergei Antonov <[email protected]> Reviewed-by: Rick Chen <[email protected]> Tested-by: Rick Chen <[email protected]>
2023-02-10net: ftmac100: simplify priv->iobase castingSergei Antonov
Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in struct ftmac100_data. It allows to remove casting in a number of places. Since priv->iobase is phys_addr_t, use phys_to_virt() to make a pointer from it. Signed-off-by: Sergei Antonov <[email protected]> Reviewed-by: Rick Chen <[email protected]>
2023-02-10net: ftmac100: change driver name from nds32_mac to ftmac100Sergei Antonov
So it will be named similarly to the related ftgmac100 driver. The old name 'nds32_mac' is not referred to anywhere in U-Boot. Signed-off-by: Sergei Antonov <[email protected]> Reviewed-by: Ramon Fried <[email protected]> Reviewed-by: Rick Chen <[email protected]>
2023-02-10dm: input: add button_kbd driverDzmitry Sankouski
Bootmenu requires an input device with arrows and enter key. A common smartphone luckily has power, volume up/down buttons, which may be used for controlling bootmenu. To use driver, add 'button-kbd' to stdin. Signed-off-by: Dzmitry Sankouski <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-10board: MCR3000: Use lowercase filenamesChristophe Leroy
Rename MCR3000.* to mcr3000.* to be more in line with other boards. Signed-off-by: Christophe Leroy <[email protected]>
2023-02-10powerpc/mpc8xx: Zero boot_flags arg for calling board_init_f()Christophe Leroy
Copied from e83a7e94532 ("powerpc/mpc83xx: Zero boot_flags arg for calling board_init_f()") The argument boot_flags of board_init_f() is not used at all in the powerpc specific board.c init sequence. Now with the generic init sequence, this boot_flags arg is used by board_init_f(). This patch sets the r3 register that is used to pass the boot_flags argument from the start.S board_init_f() call to 0 prior to the function call to avoid unknown content to end up in gd->flags. Signed-off-by: Christophe Leroy <[email protected]> Fixes: 09f3ca3dd53 ("arm, powerpc: select SYS_GENERIC_BOARD")
2023-02-10dm: button: add support for linux_code in button-gpio.c driverDzmitry Sankouski
Linux event code must be used in input devices, using buttons. Signed-off-by: Dzmitry Sankouski <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-10test: create dedicated fdt node for ofnode_for_each_prop testDzmitry Sankouski
Property count may change in /buttons node, if more button tests added, and this will break ofnode_for_each_prop. Add separate node for mentioned test. Signed-off-by: Dzmitry Sankouski <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-10dts: add missing linux,code in gpio-keysDzmitry Sankouski
gpio-keys linux driver enforces user to specify linux,code. Add missing linux,code before implementing button input support. - arch/arm/dts/rk3288-popmetal.dtsi -> KEY_POWER - arch/arm/dts/rk3288-tinker.dtsi -> KEY_POWER - arch/arm/dts/am3517-evm-ui.dtsi -> KEY_RECORD - sandbox/dts/sandbox.dtsi -> BTN_1 - sandbox/dts/sandbox.dts -> BTN_1 Signed-off-by: Dzmitry Sankouski <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-10gpio: qcom: add direction functions for pwrkeyDzmitry Sankouski
GPIO button driver requires direction functions to probe button gpio. Those functions are blank, since pwrkey is not really gpio, and don't support direction settings. Signed-off-by: Dzmitry Sankouski <[email protected]> Reviewed-by: Sumit Garg <[email protected]>
2023-02-10dts: qcs404-evb: Add I2C controller nodesSumit Garg
Signed-off-by: Sumit Garg <[email protected]>
2023-02-10i2c: Add support for Qualcomm I2C driverSumit Garg
Add support for Qualcomm I2C QUP driver which is inspired from corresponding driver in Linux: drivers/i2c/busses/i2c-qup.c. Currently this driver only support FIFO polling mode which is sufficient to support devices like eeprom, rtc etc. Co-developed-by: Mike Worsfold <[email protected]> Signed-off-by: Mike Worsfold <[email protected]> Signed-off-by: Sumit Garg <[email protected]>
2023-02-10pinctrl: qcs404: Enable I2C pinmux optionsSumit Garg
Co-developed-by: Mike Worsfold <[email protected]> Signed-off-by: Mike Worsfold <[email protected]> Signed-off-by: Sumit Garg <[email protected]>
2023-02-10clock-snapdragon: Add clk_rcg_set_rate() with mnd_width=0Sumit Garg
Add clk_rcg_set_rate() which allows to configure clocks without programming MND values. This is required for configuring I2C clocks on QCS404. Co-developed-by: Mike Worsfold <[email protected]> Signed-off-by: Mike Worsfold <[email protected]> Signed-off-by: Sumit Garg <[email protected]>
2023-02-10dts: qcs404-evb: Add ethernet controller nodeSumit Garg
Signed-off-by: Sumit Garg <[email protected]>
2023-02-10net: dwc_eth_qos: Add Qcom ethernet driver glue layerSumit Garg
The Qualcom ETHQOS hardware supports an RGMII macro which needs to be configured according to following link speeds: - SPEED_1000 - SPEED_100 - SPEED_10 So add a corresponding glue driver to configure RGMII macro. Signed-off-by: Sumit Garg <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2023-02-10net: dwc_eth_qos: Allow platform to override tx/rx_fifo_szSumit Garg
The GMAC controller on QCS404 SoC (support added by upcoming patch) fails to work with maximum tx/rx_fifo_sz supported by the hardware (16K). So allow platforms to override FIFO size using corresponding DT node properties. Signed-off-by: Sumit Garg <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2023-02-10net: dwc_eth_qos: Make eqos_get_tick_clk_rate callback optionalSumit Garg
Signed-off-by: Sumit Garg <[email protected]> Reviewed-by: Ramon Fried <[email protected]>
2023-02-10pinctrl-snapdragon: Get rid of custom drive-strength valuesSumit Garg
Use standard pinconf drive-strength values from Linux DT bindings rather than ones based on custom u-boot header. These changes are in direction to make u-boot DTs for Qcom SoCs to be compatible with standard Linux DT bindings. Also, add support for pinconf bias-pull-up. Signed-off-by: Sumit Garg <[email protected]>
2023-02-10pinctrl: qcs404: Enable ethernet pinmux optionsSumit Garg
Signed-off-by: Sumit Garg <[email protected]>
2023-02-10clocks: qcs404: Add support for ethernet clocksSumit Garg
Signed-off-by: Sumit Garg <[email protected]>
2023-02-10qcs404-evb: Enable msm_gpio driver supportSumit Garg
Signed-off-by: Sumit Garg <[email protected]>
2023-02-10qcs404: sysmap: Don't map reserved memory rangesSumit Garg
Currently u-boot maps whole of 1G RAM but there reserved memory ranges on QCS404 which are reserved for TrustZone, various firmware components etc. Any access to these reserved memory ranges causes a bus hang issue. So disable mapping for reserved memory ranges in u-boot. Signed-off-by: Sumit Garg <[email protected]>
2023-02-10env: Couple networking-related variable flags to CONFIG_NETJan Kiszka
Boards may set networking variables programmatically, thus may have CONFIG_NET on but CONFIG_CMD_NET off. The IOT2050 is an example. CC: Joe Hershberger <[email protected]> Signed-off-by: Jan Kiszka <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2023-02-10env: Complete generic support for writable listJan Kiszka
This completes what 890feecaab72 started by selecting ENV_APPEND and loading the default env before any other sources. This ensures that load operations pick up all non-writable vars from the default env and only permitted parts from other locations according to the regular priorities. With this change, boards only need to define the list of writable variables but no longer have to provide a custom env_get_location implementation. CC: Joe Hershberger <[email protected]> CC: Marek Vasut <[email protected]> CC: Stefan Herbrechtsmeier <[email protected]> Signed-off-by: Jan Kiszka <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
2023-02-10arm: bcm7xxx: Convert to DM_SERIALThomas Fitzsimmons
Remove ns16550 configuration from header files. Document DM_SERIAL-required prior stage device tree configuration.
2023-02-10Correct SPL use of EFI_SECURE_BOOTSimon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_EFI_SECURE_BOOT defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Merge branch '2023-02-08-Kconfig-cleanup-CONFIG_IS_ENABLED-to-IS_ENABLED'Tom Rini
- This series brings in a large number of patches in the form of changing CONFIG_IS_ENABLED(FOO) to IS_ENABLED(CONFIG_FOO) when there it is the case that CONFIG_xPL_FOO is never a valid symbol. The majority of the times where we do this, it is unintentional and does not make the code more useful, or rarely, introduces bugs.
2023-02-10Correct SPL use of ATMEL_PIO4Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_ATMEL_PIO4 defined in Kconfig Reviewed-by: Eugen Hristev <[email protected]> Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL uses of ROCKCHIP_OTPSimon Glass
This converts 2 usages of this option to the non-SPL form, since there is no SPL_ROCKCHIP_OTP defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL use of PANELSimon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_PANEL defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL uses of OF_BOARDSimon Glass
This converts 3 usages of this option to the non-SPL form, since there is no SPL_OF_BOARD defined in Kconfig Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Matthias Brugger <[email protected]>
2023-02-10Correct SPL uses of FEC_MXCSimon Glass
This converts 4 usages of this option to the non-SPL form, since there is no SPL_FEC_MXC defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL uses of FASTBOOT_FLASH_NANDSimon Glass
This converts 3 usages of this option to the non-SPL form, since there is no SPL_FASTBOOT_FLASH_NAND defined in Kconfig Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]>
2023-02-10Correct SPL uses of FASTBOOT_FLASH_MMCSimon Glass
This converts 5 usages of this option to the non-SPL form, since there is no SPL_FASTBOOT_FLASH_MMC defined in Kconfig Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]>
2023-02-10Correct SPL uses of FASTBOOTSimon Glass
This converts 3 usages of this option to the non-SPL form, since there is no SPL_FASTBOOT defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL use of EFI_MM_COMM_TEESimon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_EFI_MM_COMM_TEE defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL uses of CMD_BOOTEFI_BOOTMGRSimon Glass
This converts 3 usages of this option to the non-SPL form, since there is no SPL_CMD_BOOTEFI_BOOTMGR defined in Kconfig Signed-off-by: Simon Glass <[email protected]> Acked-by: Heinrich Schuchardt <[email protected]>
2023-02-10Correct SPL use of ARCH_VERSALSimon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_ARCH_VERSAL defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL uses of DISPLAY_AER_BRIEFSimon Glass
This converts 2 usages of this option to the non-SPL form, since there is no SPL_DISPLAY_AER_BRIEF defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL uses of ZYNQMP_FIRMWARESimon Glass
This converts 2 usages of this option to the non-SPL form, since there is no SPL_ZYNQMP_FIRMWARE defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL uses of XEN_SERIALSimon Glass
This converts 4 usages of this option to the non-SPL form, since there is no SPL_XEN_SERIAL defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL use of WATCHDOG_AUTOSTARTSimon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_WATCHDOG_AUTOSTART defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL use of VIDEO_BPP32Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_VIDEO_BPP32 defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL use of VIDEO_BPP16Simon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_VIDEO_BPP16 defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL use of VIDEO_ANSISimon Glass
This converts 1 usage of this option to the non-SPL form, since there is no SPL_VIDEO_ANSI defined in Kconfig Signed-off-by: Simon Glass <[email protected]>
2023-02-10Correct SPL uses of VIDEOSimon Glass
This converts 2 usages of this option to the non-SPL form, since there is no SPL_VIDEO defined in Kconfig Signed-off-by: Simon Glass <[email protected]>