aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-04-17docs: boards: amlogic: add documentation for BananaPi M2-ProChristian Hewitt3-0/+146
Add build docs for the BPI-M2-PRO board. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230323143142.780306-6-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17boards: add BananaPi M2-Pro defconfigChristian Hewitt1-0/+76
Add configuration for the BananaPi M2-Pro board. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230323143142.780306-5-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17ARM: dts: add support for BananaPi M2-ProChristian Hewitt5-428/+550
Import the board dts from the linux-amlogic/for-next (6.4-rc1) branch. This involves spliting the BPI-M5 dts into a dtsi and then reusing this for the M2-Pro. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230323143142.780306-4-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17docs: boards: amlogic: add bananapi-m5 to u200 maintainer fileChristian Hewitt1-0/+1
The bananapi-m5 docs are missing from the file, so add them. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230323143142.780306-2-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: add documentation for ODROID-HC4Christian Hewitt2-0/+143
Add separate documentation for the ODROID-HC4 board to ensure users build U-Boot using the HC4 defconfig that enables PCIe SATA boot. This avoids user frustration trying to boot after using the C4 recipe which only works from SD card. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-34-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: add documentation for GS-King-XChristian Hewitt3-1/+125
GS-King-X is also supported with the beelink-s922x FIP sources and can use the GT-King defconfig. Add a board document with instructions. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-33-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: add documentation for BananaPi M5Christian Hewitt2-0/+143
Add missing build documentation for the BPI-M5 board. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-32-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: add documentation for BananaPi CM4IOChristian Hewitt4-1/+156
Add build instructions for the BananaPi BPI-CM4IO carrier board with BPI-CM4 module. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-31-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for WeTek Core2Christian Hewitt1-36/+48
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-30-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for W400Christian Hewitt1-54/+62
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-29-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for U200Christian Hewitt1-54/+60
Improve Documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-28-christianshewitt@gmail.com [narmstrong: fixed doc build, add commit msg] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for SEI610Christian Hewitt1-57/+62
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-27-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for SEI510Christian Hewitt1-54/+60
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-26-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for S400Christian Hewitt1-42/+48
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-25-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for Radxa ZeroChristian Hewitt1-21/+25
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-24-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for Q200Christian Hewitt1-34/+43
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-23-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for P201Christian Hewitt1-34/+54
Improve documentation. Notably we can now support U-Boot install to the internal eMMC storage in addition to SD cards. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-22-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for P200Christian Hewitt1-34/+54
Improve documentation. Notably we can now support U-Boot install to the internal eMMC storage in addition to SD cards. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-21-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for ODROID-N2LChristian Hewitt1-10/+24
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-20-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for ODROID-N2/N2+Christian Hewitt1-57/+66
Improve documentation. Notably mention the ODROID-N2+ and the option to use FDTDIR not FDT for automatic device-tree selection. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-19-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for ODROID GO ULTRAChristian Hewitt1-8/+20
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-18-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for ODROID-C4Christian Hewitt1-57/+61
Improve documentation. Notably drop references to the ODROID-HC4 board as its support has evolved and we will add an HC4 specific document in a later patch. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-17-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for ODROID-C2Christian Hewitt1-24/+31
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-16-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for NanoPi-K2Christian Hewitt1-39/+55
Improve documentation. Notably we can now support U-Boot install to the removable eMMC storage module in addition to SD cards. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-15-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for LePotatoChristian Hewitt1-69/+41
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-14-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for LaFriteChristian Hewitt1-35/+43
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-13-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for Khadas VIM3LChristian Hewitt1-69/+69
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-12-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for Khadas VIM3Christian Hewitt1-69/+69
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-11-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for Khadas VIM2Christian Hewitt1-35/+42
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-10-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for Khadas VIMChristian Hewitt1-35/+42
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-9-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for JetHub J80Christian Hewitt1-20/+27
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-8-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for JetHub J100Christian Hewitt1-31/+36
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-7-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for Beelink GT-King ProChristian Hewitt1-59/+60
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-6-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for Beelink GT-KingChristian Hewitt1-59/+60
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-5-christianshewitt@gmail.com [narmstrong: fixed doc build] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for pre-generated-fip'sChristian Hewitt1-50/+88
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-4-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for boot-flowChristian Hewitt1-88/+90
Improve documentation. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-3-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17doc: boards: amlogic: update documentation for index pageChristian Hewitt1-73/+64
Improve documentation. Notably we remove all the board names from the feature matrix to reduce table width. SoC types have been added to the titles in individual board documents so readers can still correlate a board against the features. This makes it easier to add new boards to to the document in the future. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Link: https://lore.kernel.org/r/20230320114609.930145-2-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17ARM: meson: Add initial support for BPI-CM4 module with BPI-CM4IO baseboardNeil Armstrong4-0/+92
Add support for both the BananaPi BPI-CM4 module and the BananaPi baseboard which is compatible with the RaspberryPi CM4IO baseboard. The BananaPi BPI-CM4 module follows the CM4 specifications at [1], but with a single HDMI port and a single DSI output. The current CM4IO baseboard DT should work fine on the Raspberry CM4 baseboard and other derivatives baseboards, but proper DT should be written for other baseboards. [1] https://datasheets.raspberrypi.com/cm4io/cm4io-datasheet.pdf Link: https://lore.kernel.org/r/20230307-u-boot-cm4-v1-2-43f5a393cd37@linaro.org Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-17ARM: dts: import initial DT for BPI-CM4 module with BPI-CM4IO baseboardNeil Armstrong3-0/+554
Import initial support for BPI-CM4 module with BPI-CM4IO baseboard from the Linux submission applied at [1]. The BananaPi BPI-CM4 module follows the CM4 specifications at [2], but with a single HDMI port and a single DSI output. The current CM4IO baseboard DT should work fine on the Raspberry CM4 baseboard and other derivatives baseboards, but proper DT should be written for other baseboards. [1] https://git.kernel.org/amlogic/c/0262f2736978b1763363224698f47112a148dab0 [2] https://datasheets.raspberrypi.com/cm4io/cm4io-datasheet.pdf Link: https://lore.kernel.org/r/20230307-u-boot-cm4-v1-1-43f5a393cd37@linaro.org Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-04-14Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-marvellWIP/14Apr2023Tom Rini37-91/+199
- mvebu: Boot support for 4K Native disks (Pali) - a38x: Perform DDR training sequence again for 2nd boot (Tony)
2023-04-14Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxiTom Rini19-274/+564
The biggest change is some refactoring of the H616 DRAM driver, which allows better fine-tuning for each board, and is the base for pending LPDDR3 and LPDDR4 support, needed by new boards. The sun8i-emac Ethernet driver sees some refactoring that enables it for the Allwinner D1 EMAC IP. The sunxi HDMI driver is now using more DT properties. Also the early SPL code now supports some odd H616 SoC variant. There are some more patches pending, that require the final review touches and some testing, I will send a separate PR for them later. The gitlab CI completed successfully, and I boot tested a few boards with different SoCs, via FEL and SD card, into Linux.
2023-04-13ddr: marvell: a38x: Perform DDR training sequence again for 2nd bootTony Dinh1-7/+0
- DDR Training sequence happens very fast. The speedup in boot time is negligible by skipping the training sequence during 2nd boot or after. So remove the check and skip. - This change improves the robustness of DDR training. If u-boot crashed during DDR training, the training could be left in a limbo state, where the BootROM has recorded that it is already in a 2nd boot. The training must be repeated in this scenario to get out of this limbo state, but due to the check it cannot be performed. Signed-off-by: Tony Dinh <mibodhi@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
2023-04-13arm: mvebu: spl: Allow to build SATA kwbimage for 4K Native disksPali Rohár3-0/+18
Add a new config option CONFIG_MVEBU_SPL_SATA_BLKSZ for specifying block size of SATA disk. This information is used during building of SATA kwbimage and must be correctly set, otherwise BootROM does not load SPL. For 4K Native disks CONFIG_MVEBU_SPL_SATA_BLKSZ must be set to 4096. Signed-off-by: Pali Rohár <pali@kernel.org> Tested-by: Martin Rowe <martin.p.rowe@gmail.com>
2023-04-13tools: kwboot: Add support for parsing SATA images with non-512 block sizePali Rohár1-1/+34
Currently kwboot expected that sector size for SATA image is always 512 bytes. If SATA image cannot be parsed with sector size of 512 bytes, try larger sector sizes which are power of two and up to the 32 kB. Maximal theoretical value is 32 kB because ATA IDENTIFY command returns sector size as 16-bit number. Signed-off-by: Pali Rohár <pali@kernel.org>
2023-04-13tools: kwbimage: Add support for SATA images with non-512 byte block sizePali Rohár1-27/+71
SATA kwbimage contains offsets in block size unit, not in bytes. Until now kwbimage expected that SATA disk always have block size of 512 bytes. But there are 4K Native SATA disks with block size of 4096 bytes. New SATA_BLKSZ command allows to specify different block size than 512 bytes and therefore allows to generate kwbimage for disks with different block sizes. This change add support for generating SATA images with different block size. Also it add support for verifying and dumping such images. Because block size itself is not stored in SATA kwbimage, image verification is done by checking every possible block size (it is any power of two value between 512 and 32 kB). Signed-off-by: Pali Rohár <pali@kernel.org>
2023-04-13tools: kwbimage: Simplify align codePali Rohár1-24/+24
Replace repeated code patterns by generic code. Signed-off-by: Pali Rohár <pali@kernel.org>
2023-04-13tools: imagetool: Extend print_header() by params argumentPali Rohár30-29/+41
This allows image type print_header() callback to access struct image_tool_params *params. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-04-13cmd: mvebu/bubt: a38x: Do not hardcode SATA block size to 512Pali Rohár1-2/+5
Find SATA block device by blk_get_devnum_by_uclass_id() function and read from it the real block size of the SATA disk. In case of error, fallback back to 512 bytes. Signed-off-by: Pali Rohár <pali@kernel.org>
2023-04-13arm: mvebu: spl: Do not hardcode SATA block size to 512Pali Rohár1-3/+8
Find SATA block device by blk_get_devnum_by_uclass_id() function and read from it the real block size of the SATA disk. Signed-off-by: Pali Rohár <pali@kernel.org>
2023-04-12sunxi: A64: drop boot0 header reservationAndre Przywara9-9/+0
In the early days of the Allwinner A64 U-Boot support, we relied on a vendor provided "boot0" binary to perform the DRAM initialisation. This replaced the SPL, and required to equip the U-Boot (proper) binary with a vendor specific header to be recognised as a valid boot0 payload. Fortunately these days are long gone (we gained SPL and DRAM support in early 2017!), and we never needed to use that hack on any later 64-bit Allwinner SoC. Since this is highly obsolete by now, remove that option from the defconfigs of all A64 boards. We leave the code still in here for now, since some people expressed their interest in this. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>