summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* configs: Resync with savedefconfigTom Rini2022-05-0547-93/+49
| | | | | | Rsync all defconfig files using moveconfig.py Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge branch '2022-05-05-platform-updates'Tom Rini2022-05-0548-71/+3561
|\ | | | | | | | | | | - Nuvoton NPCM750 board support and some related drivers - MediaTek pinctrl updates - Bugfixes for sandbox, ls10xxx, and 64bit TI platforms
| * gpio: npcm: Add support for Nuvoton NPCM SoCsStanley Chu2022-05-053-0/+131
| | | | | | | | | | | | Add Nuvoton BMC NPCM7xx/NPCM8xx gpio driver Signed-off-by: Stanley Chu <yschu@nuvoton.com>
| * include: configs: am**x/j721e/j721s2_evm.h: Move the stack pointer init ↵Aswath Govindraju2022-05-054-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | address in arm64 Currently, in case of arm64 bootloader and U-Boot the stack pointer is initialized at an offset of NON_SECURE_MSRAM_SIZE from arm64 SPL's text base address. After jumping to arm64, execution is done out of DDR. Therefore, having an offset corresponding to the size of MSRAM does not have any significance. Instead, initialize the stack pointer after an offset of 4MB from the SPL text base address. This helps in allocating larger memory for stack. ┌────────────────────┐0x80080000 │ │ │ arm64 SPL │ ├────────────────────┤ │ ▲ │ │ │ │ │ STACK │ ├────────────────────┤0x80480000 │ Memory for Load │ │ Buffer Allocation │ ├────────────────────┤0x80800000 │ │ │ U-Boot Image │ │ │ └────────────────────┘ Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
| * pinctrl: mediatek: add support for different types of IO pinsSam Shih2022-05-052-5/+81
| | | | | | | | | | | | | | | | | | | | There are many pins in an SoC, and register usage may vary by pins. This patch introduces a concept of "io type" and "io type group" to mediatek pinctrl drivers. This can provide different pinconf handlers implementation (eg: "bias-pull-up/down", "driving" and "input-enable") for IO pins that belong to different types. Signed-off-by: Sam Shih <sam.shih@mediatek.com>
| * pinctrl: mediatek: introduce multiple memory bases supportSam Shih2022-05-052-20/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pinctrl design of some mediatek SoC need to access registers that distribute in multiple memory base address. this patch introduce new mechanism in mediatek pinctrl driver to support the chips which have the new design. This patch add a member 'base_calc' in pinctrl private data, and changed original 'base' private data to an array of *iomem. When 'base_calc' attribute is set, it will requests multiplue regs base from the DT, if 'base_calc' attribute is not set, it only use legacy way to request single reg resource from the DT. Signed-off-by: Sam Shih <sam.shih@mediatek.com>
| * pinctrl: mediatek: rewrite mtk_pinconf_set and related functionsSam Shih2022-05-052-30/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are many pins in a SoCs, and different pin may belong to different "io_type", For example: some pins of MT7622 belongs to "io_type A", the other belongs to "io_type B", and pinctrl "V0" means handle pinconf via "io_type A" or "io_type B", so SoCs that contain "io_type A" and "io_type B" pins, use "V0" in pinctrl driver. This patch separates the implementation of register operations (e.g: "bias-pull-up/down", "driving" and "input-enable") into different functions, and lets the original V0/V1 ops to call the new functions. Signed-off-by: Sam Shih <sam.shih@mediatek.com>
| * sandbox: Avoid binman error when run without device treeSimon Glass2022-05-052-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With sandbox, U-Boot can be run without a device tree (i.e. no -d or -T parameter). In this case an empty device tree is created for convenience. With a recent change this causes an error due to the missing '/binman' node. Add this node to avoid the problem, as well as a test that U-Boot can be run without a device tree. Fixes: 059df5624b ("arch: Kconfig: imply BINMAN for SANDBOX") Fixes: https://source.denx.de/u-boot/u-boot/-/issues/11 Signed-off-by: Simon Glass <sjg@chromium.org>
| * test/py: Add a way to start sandbox without a device treeSimon Glass2022-05-051-7/+8
| | | | | | | | | | | | | | This is useful sometimes when running a specific test. Add support for it in the existing restart_uboot_with_flags() function. Signed-off-by: Simon Glass <sjg@chromium.org>
| * board: synquacer: developerbox: Remove Masami from MAINTAINERSMasami Hiramatsu2022-05-051-1/+0
| | | | | | | | | | | | | | Remove Masami Hiramatsu from MAINTAINERS since he will leave Linaro and his email will be not available anymore. Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
| * ls10xxx: Use a sane SPL_SYS_MALLOC_F_LEN defaultSean Anderson2022-05-051-3/+1
| | | | | | | | | | | | | | | | | | | | SPL_SYS_MALLOC_F_LEN defaults to SYS_MALLOC_F_LEN. 0x10000 is 64 KiB, or around half of the total OCRAM size. Revert to the default of 0x2000. This fixes SPL boot. Fixes: 545eceb520 ("imx8/ls10xx: Use a sane SYS_MALLOC_F_LEN default") Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Fabio Estevam <festevam@denx.de>
| * timer: npcm: Add NPCM timer supportJim Liu2022-05-053-0/+125
| | | | | | | | | | | | | | Add Nuvoton BMC NPCM7xx/NPCM8xx timer driver. Signed-off-by: Jim Liu <JJLIU0@nuvoton.com> Signed-off-by: Stanley Chu <yschu@nuvoton.com>
| * serial: npcm: Add support for Nuvoton NPCM SoCsJim Liu2022-05-053-0/+167
| | | | | | | | | | | | | | Add Nuvoton BMC NPCM7xx/NPCM8xx uart driver Signed-off-by: Jim Liu <JJLIU0@nuvoton.com> Signed-off-by: Stanley Chu <yschu@nuvoton.com>
| * clk: nuvoton: Add support for NPCM750Jim Liu2022-05-056-0/+548
| | | | | | | | | | | | | | | | Add clock controller driver for NPCM750 Signed-off-by: Jim Liu <JJLIU0@nuvoton.com> Signed-off-by: Stanley Chu <yschu@nuvoton.com> Reviewed-by: Sean Anderson <seanga2@gmail.com>
| * arm: nuvoton: Add support for Nuvoton NPCM750 BMCJim Liu2022-05-0522-0/+2291
|/ | | | | | Add basic support for the Nuvoton NPCM750 EVB (Poleg). Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
* Merge tag 'efi-2022-07-rc2-2' of ↵Tom Rini2022-05-0424-100/+576
|\ | | | | | | | | | | | | | | | | | | | | | | https://source.denx.de/u-boot/custodians/u-boot-efi Pull request for efi-2022-07-rc2-2 * Test Unit test for 'bootmenu' command * UEFI Preparatory patches for implementing a UEFI boot options based menu
| * bootmenu: add Kconfig option not to enter U-Boot consoleMasahisa Kojima2022-05-032-11/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the Kconfig option to disable to enter the U-Boot console from bootmenu. If CMD_BOOTMENU_ENTER_UBOOT_CONSOLE is enabled, "U-Boot console" entry is appeared as the last entry in the bootmenu, then user can enter U-Boot console. If CMD_BOOTMENU_ENTER_UBOOT_CONSOLE is disabled, "Quit" entry is appeared as the last entry instead of "U-Boot console". When user chooses "Quit" from bootmenu, the following default commands are invoked. - "bootefi bootmgr" (if efi bootmgr is enabled) - "run bootcmd" If the both commands are executed and returns to the bootmenu, the bootmenu will appears again. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
| * bootmenu: add UEFI boot entry into bootmenuMasahisa Kojima2022-05-031-1/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the UEFI related menu entries into the bootmenu. User can select which UEFI "Boot####" option to execute from bootmenu, then bootmenu sets the "BootNext" UEFI variable and invoke efi bootmgr. The efi bootmgr will handle the "BootNext" UEFI variable. If the "BootNext" UEFI variable is preset and efi bootmgr is enabled, bootmenu invokes efi bootmgr to handle "BootNext" as first priority. The UEFI boot entry has the "UEFI BOOTXXXX" prefix as below. *** U-Boot Boot Menu *** UEFI BOOT0000 : debian UEFI BOOT0001 : ubuntu Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
| * bootmenu: update bootmenu_entry structureMasahisa Kojima2022-05-032-32/+76
| | | | | | | | | | | | | | | | | | | | | | | | This is a preparation for succeeding addition of uefi boot and distro boot menu entries into bootmenu. The bootmenu_entry title is updated to u16 string because uefi use u16 string. This commit also factors out the function to prepare the entries generated by "bootmenu_x" U-Boot environment variable. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * efi_loader: bootmgr: add booting from removable mediaAKASHI Takahiro2022-05-032-1/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under the current implementation, booting from removable media using a architecture-specific default image name, say BOOTAA64.EFI, is supported only in distro_bootcmd script. See the commit 74522c898b35 ("efi_loader: Add distro boot script for removable media"). This is, however, half-baked implementation because 1) UEFI specification requires this feature to be implemented as part of Boot Manager's responsibility: 3 - Boot Manager 3.5.1 Boot via the Simple File Protocol When booting via the EFI_SIMPLE_FILE_SYSTEM_PROTOCOL, the FilePath will start with a device path that points to the device that implements the EFI_SIMPLE_FILE_SYSTEM_PROTOCOL or the EFI_BLOCK_IO_PROTOCOL. The next part of the FilePath may point to the file name, including subdirectories, which contain the bootable image. If the file name is a null device path, the file name must be generated from the rules defined below. ... 3.5.1.1 Removable Media Boot Behavior To generate a file name when none is present in the FilePath, the firmware must append a default file name in the form \EFI\BOOT\BOOT{machine type short-name}.EFI ... 2) So (1) entails the hehavior that the user's preference of boot media order should be determined by Boot#### and BootOrder variables. With this patch, the semantics mentioned above is fully implemented. For example, if you want to boot the system from USB and SCSI in this order, * define Boot0001 which contains only a device path to the USB device (without any file path/name) * define Boot0002 which contains only a device path to the SCSI device, and * set BootOrder to Boot0001:Boot0002 To avoid build error for sandbox, default file name "BOOTSANDBOX.efi" is defined even if it is out of scope of UEFI specification. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> On sandbox use binary name corresponding to host architecture. Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * efi_loader: export efi_locate_device_handle()AKASHI Takahiro2022-05-032-4/+7
| | | | | | | | | | | | | | | | | | This function will be used in the next commit where some behavior of EFI boot manager will be expanded. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * menu: menu_get_choice() return -ENOENT if menu item is emptyMasahisa Kojima2022-05-031-0/+3
| | | | | | | | | | | | | | | | | | menu_get_choice() needs to handle the case that menu item is empty. In this case, menu_get_choice() returns -ENOENT. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * menu: always show the menu regardless of the number of entryMasahisa Kojima2022-05-032-3/+1
| | | | | | | | | | | | | | | | | | To make user aware of the menu entry selection, menu always appears regardless of the number of entry. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Adjust test/py/tests/test_bootmenu.py Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * test: unit test for u16_strlcat()Masahisa Kojima2022-05-031-0/+50
| | | | | | | | | | | | | | Provide a unit test for function u16_strlcat(). Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * lib/charset: add u16_strlcat() functionMasahisa Kojima2022-05-032-0/+30
| | | | | | | | | | | | | | Provide u16 string version of strlcat(). Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * lib: fix selection of CONFIG_CHARSETHeinrich Schuchardt2022-05-035-5/+4
| | | | | | | | | | | | | | | | | | lib/charset.c is not optional for EFI_APP || EFI_LOADER || UFS || UT_UNICODE. These must select CONFIG_CHARSET. Fixes: 726cd9836db0 ("efi: Make unicode printf available to the app") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * efi_selftest: error handling in efi_selftest_tcg2Heinrich Schuchardt2022-05-031-2/+6
| | | | | | | | | | | | If memory allocation fails, write an error message. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * efi_selftest: clean up unaligned unit testHeinrich Schuchardt2022-05-031-5/+4
| | | | | | | | | | | | | | * fix typo %s/give/given/ * don't use void * in pointer arithmetic Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * efi_selftest: buildefi_selftest_unaligned.cHeinrich Schuchardt2022-05-031-1/+3
| | | | | | | | | | | | | | The unit test has not been built since CPU_V7 was rename CPU_V7A. Fixes: acf1500138bb ("arm: v7: Kconfig: Rename CPU_V7 as CPU_V7A") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * test: fix some pylint problems in test_capsule_firmware_raw.pyHeinrich Schuchardt2022-05-031-22/+20
| | | | | | | | | | | | | | * improve doc-string formatting * remove unused imports Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * efi_loader: reset colors before clearing screenHeinrich Schuchardt2022-05-031-2/+2
| | | | | | | | | | | | | | When resetting the text console the colors have to be set before clearing the screen. Otherwise the background color may be wrong. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * doc: fix typos in bootmenu.rstHeinrich Schuchardt2022-05-031-2/+2
| | | | | | | | | | | | | | | | %s/cammand/command/ %s/sequencies/sequences/ Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * cmd: simplify bootmenuHeinrich Schuchardt2022-05-031-13/+7
| | | | | | | | | | | | | | * correct output for timeout > 99 s * don't use spaces to advance to the output column Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * test: unit test for bootmenuHeinrich Schuchardt2022-05-032-0/+49
| | | | | | | | | | | | Provide a unit test for the bootmenu command Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
| * sandbox: enable bootmenu commandHeinrich Schuchardt2022-05-031-0/+1
| | | | | | | | | | | | Provide the bootmenu command on the sandbox for testing. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
* | Merge https://source.denx.de/u-boot/custodians/u-boot-marvellTom Rini2022-05-0497-2867/+33853
|\ \ | | | | | | | | | | | | - mips: octeon: Add ethernet support (Aaron & Stefan) - Misc mvneta changes, cleanups, fixes (Marek)
| * | net: mvneta: Drop unneeded macroMarek Behún2022-05-041-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Macro MVNETA_GMAC_FORCE_LINK_UP can be dropped from value assignment in fixed link case, since it's value is written into the register later in the function for link-down-to-link-up case. The value is written as MVNETA_GMAC_FORCE_LINK_DOWN | MVNETA_GMAC_FORCE_LINK_PASS, and so the macro definition can also be dropped. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Disable fixed PHY code if PHY_FIXED is not compiled inMarek Behún2022-05-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Guard the code handling the fixed PHY case by CONFIG_IS_ENABLED(PHY_FIXED). Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Drop fixed_link member from private structMarek Behún2022-05-041-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since this member is checked only at two places drop it and inline it's usage. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Write PHY address just before enabling HW pollingMarek Behún2022-05-041-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | Write PHY address just before enabling HW polling of the PHY. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Convert to use PHY_FIXED for fixed-linkMarek Behún2022-05-043-61/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop parsing fixed-link in the MAC driver. Instead support only PHY mode and let the fixed PHY driver handle the fixed-link case. Enable CONFIG_PHY_FIXED for mvneta boards that need it: Turris Omnia and ESPRESSObin. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Rename CONFIG_NR_CPUS to MVNETA_NR_CPUSMarek Behún2022-05-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The CONFIG_* macros are reserved for Kconfig. This was probably done when this driver was being imported from Linux. Rename the macro. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Don't check for CONFIG_PHYLIBMarek Behún2022-05-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Drop checking for CONFIG_PHYLIB in mvneta, this is already done in Kconfig. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Drop unnecessary spaceMarek Behún2022-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Drop unnecessary space in mvneta_adjust_link(). Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Use bool instead of int for boolean variableMarek Behún2022-05-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Use the bool type instead of int for status_change variable. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Drop one indentation level in mvneta_adjust_link()Marek Behún2022-05-041-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | Drop one indentation level in the mvneta_adjust_link() function. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Fix unused variable warning if DM_GPIO is disabledMarek Behún2022-05-041-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `ret` variable in mvneta_probe() is unused if DM_GPIO is disabled. Since the variable is used only once after assigning value, we can inline the usage and drop the variable. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mvneta: Don't register MDIO busMarek Behún2022-05-041-141/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This MDIO bus is now handled by a proper mvmdio DM driver. Remove it from mvneta. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | arm: mvebu: turris_mox: Use DM registered MDIOMarek Behún2022-05-042-63/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to be able to get rid of the non-DM MDIO bus registered in mvneta driver, start using the DM registered one in Turris MOX board code. This also allows us to drop the hack introduced in MOX' -u-boot.dtsi file. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
| * | net: mdio-uclass: add dm_phy_find_by_ofnode() helperMarek Behún2022-05-042-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | Add helper to resolve PHY node from it's ofnode via DM MDIO subsystem. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>