summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)AuthorFilesLines
2024-12-23riscv: dts: dubhe: Add u-boot dtsi for Dubhe-83Ji Sheng Teoh1-0/+20
Add Dubhe-83 u-boot dtsi. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-12-13riscv: dts: dubhe: Update dma-reserved node to 0x90000000Ji Sheng Teoh1-4/+4
Update dma-reserved node to 0x90000000 following changes in Linux device tree. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-28board: starfive: dubhe: Add support to parse Dubhe-83 FIT configJi Sheng Teoh1-0/+1
Detect Dubhe-83 MARCHID and parse the matching FIT config. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-28riscv: dts: dubhe: Add binman support for Dubhe kernel FIT imageJi Sheng Teoh1-0/+122
Add binman node to support kernel FIT image generation for Dubhe-90, Dubhe-83, Dubhe-80, Dubhe-70 AXI, and Dubhe-70 StarLink. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-28riscv: dts: dubhe: Add U-Boot FIT for Dubhe-83Ji Sheng Teoh1-0/+17
Add U-Boot FIT Image generation for Dubhe-83. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-28riscv: dts: dubhe: Use overlay for Dubhe-70 AXI and StarLink U-Boot FITJi Sheng Teoh1-4/+14
Use overlay device tree to support U-Boot FIT image generation of Dubhe-70 AXI and StarLink variant. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-27riscv: dts: dubhe: Add Dubhe-83 DT supportJi Sheng Teoh4-1/+226
Add DT support for new Dubhe-83. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-27riscv: dts: dubhe: Sync device tree from Linux based on v6.6.63Ji Sheng Teoh10-39/+35
Sync device tree based on Linux v6.6.63. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-22riscv: starfive: dubhe: Remove common.h headerJi Sheng Teoh3-3/+0
Remove common.h header as it is not needed by the source file. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-22riscv: dts: dubhe: Add support for Dubhe-70 AXI and StarLink variantJi Sheng Teoh6-7/+49
Dubhe-70 supports AXI or StarLink based cache management, differentiate them by using the following naming convention: 1. dubhe70a - AXI variant 2. dubhe70s - StarLink variant. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-22riscv: dubhe: Check StarLinkLey Foon Tan1-0/+10
Read StarLink csr to detect if StarLink IP is available in hardware. If StarLink IP is not available, reading StarLink csr will trigger the exception. Software check mcause value after read csr. Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
2024-11-22riscv: dts: dubhe: Sync device tree from LinuxJi Sheng Teoh4-10/+24
Sync device tree from Linux based on v6.6.48. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-22riscv: dts: dubhe-70: Remove SvpbmtLey Foon Tan2-8/+8
Remove Svpmbt from Dubhe-70. Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
2024-11-22riscv: dubhe: Add handling for different cache modesLey Foon Tan1-2/+113
There are 3 cache modes: - Coherent - CMO extension - SBI L2 custom extension Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com> Signed-off-by: Tan En De <ende.tan@starfivetech.com>
2024-11-22riscv: dubhe: Update SBI_EXT_CACHE IDLey Foon Tan1-1/+1
Update to align with new SBI_EXT_CACHE ID. Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
2024-11-22riscv: dts: dubhe: Add Dubhe *-u-boot.dtsiLey Foon Tan4-1/+87
Move dubhe-fpga-u-boot.dtsi to dubhe_fpga_common-u-boot.dtsi and add dubhe*-u-boot.dtsi Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
2024-11-22riscv: dts: dubhe: Remove dubhe_fpga_secure.dtsLey Foon Tan1-266/+0
Remove unused dts. Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
2024-11-22riscv: dts: dubhe: Sync device tree from LinuxLey Foon Tan10-227/+600
Sync device tree from Linux (commit 699004da6bab) Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
2024-11-22riscv: dts: dubhe: Add root node compatible stringJi Sheng Teoh3-0/+12
Some fdt matching callback function relies on the root node compatible string instead of the cpu node compatible string to enable platform specific features. Add root node compatible string in each Dubhe SoC level dtsi to clearly distinguish them. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com> Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
2024-11-22arch: riscv: dts: dubhe: Add binman node to support Dubhe-90/80/70Ji Sheng Teoh2-1/+97
Add binman node to support booting into Dubhe-90/80/70 within a single fit image. They share the same U-Boot proper and OpenSBI firmware, and only differ by their fdt. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-22board: starfive: dubhe: Boot Dubhe-90/80/70 based on MARCHIDJi Sheng Teoh1-0/+14
Get MARCHID of Dubhe-90/80/70 platform, and allow SPL to select the correct fit image configuration to boot from, if the MARCHID and the configuration name matches. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-22arch: riscv: dts: dubhe: Add Dubhe-90/80/70 device treeJi Sheng Teoh9-44/+218
Add Dubhe-90/80/70 device tree support instead of using generic Dubhe device tree. This allows platform to enable platform specific properties in device tree. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
2024-11-22arch: riscv: dts: dubhe-fpga-u-boot.dtsi: Update dts for DubheWei Liang Lim1-14/+28
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22configs: starfive_dubhe_fpga_defconfig: Enable Dubhe SMPWei Liang Lim1-1/+3
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22arch: riscv: dts: dubhe: Update dts for DubheWei Liang Lim2-25/+57
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22arch: riscv: dts: dubhe-fpga-u-boot.dtsi: Update CPU1 nodeWei Liang Lim1-0/+4
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22arch: riscv: dts: dubhe_fpga: Update dts for DubheWei Liang Lim2-88/+27
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22riscv: dubhe: Set SYS_CACHELINE_SIZE 64Wei Liang Lim1-0/+3
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22arch: riscv: dts: dubhe_fpga.dts: Add static MAC address in dtsWei Liang Lim1-0/+1
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22dubhe: dwc_eth_qos: Fix errors and set the speed to 10M on FPGAWei Liang Lim2-0/+18
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22drivers: net: dwc_eth_qos: Add GMAC support for DubheWei Liang Lim2-6/+93
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22arch: riscv: dubhe: Update Dubhe supportWei Liang Lim3-1/+27
Signed-off-by: Wei Liang Lim <weiliang.lim@starfivetech.com>
2024-11-22Enable MMC support, FAT and EXT4 commandsWei Liang Lim1-0/+4
2024-11-22Enabling Dubhe FPGA secure bootWei Liang Lim4-72/+339
2024-11-22Add DDR driver frameworkwoonjiet.chong1-0/+9
Reassign address for SPL STACK to avoid global data being wiped off during mem_malloc_init Remove unused config CONFIG_SPL_LOAD_FIT_ADDRESS Signed-off-by: woonjiet.chong <woonjiet.chong@starfivetech.com>
2024-11-22Add cpu dubhewoonjiet.chong5-0/+85
2024-11-22Enable SPL, OpenSBI and U-Boot proper boot flow for Dubhe FPGAwoonjiet.chong5-0/+323
2024-09-25ARM: stm32: Fix secure_waitbits() mask checkMarek Vasut1-2/+1
Do not apply bitwise AND to register value and expected value, only apply bitwise AND to register value and mask, and only then compare the result with expected value that the function polls for. Fixes: b49105320a5b ("stm32mp: psci: Implement PSCI system suspend and DRAM SSR") Signed-off-by: Marek Vasut <marex@denx.de>
2024-09-25ARM: stm32: Fix TAMP_SMCR BKP..PROT fields on STM32MP15xxMarek Vasut1-2/+2
Update the TAMP_SMCR BKP..PROT fields to put first 10 registers into protection zone 1 and next 5 into zone 2. This fixes use of boot counter which is often in zone 3 and has to be updated from Linux, which runs in NS. Fixes: 73f7fc944cf6 ("ARM: stm32: Initialize TAMP_SMCR BKP..PROT fields on STM32MP15xx") Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2024-09-21dts: beagleboneai64: Add boothph in chipid nodeUdit Kumar1-0/+4
beagleboneai64 boot was broken after OF_UPSTREAM support for J721E SOC. So add bootph in chipid node similar to other boards of this SOC. Fixes: 46bb1405b461 ("arm: dts: k3-j721e: Move to OF_UPSTREAM") Reported-by: Robert Nelson <robertcnelson@gmail.com> Signed-off-by: Udit Kumar <u-kumar1@ti.com>
2024-09-10Merge https://gitlab.denx.de/u-boot/custodians/u-boot-riscvTom Rini3-4/+57
CI: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/22292 - Add rdcycle to RISC-V exception command - Some fixes and refactoring
2024-09-10riscv: show registers in crash dumps by defaultHeinrich Schuchardt1-0/+1
If an exception occurs in main U-Boot, show the registers. This makes analyzing crashes especially in external applications easier. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2024-09-10riscv: allow to enable SHOW_REGS in main U-Boot onlyHeinrich Schuchardt2-4/+15
To minimize SPL size it is reasonable to disable SHOW_REGS. For main U-Boot the size restrictions are much more relaxed. * Provide separate Kconfig symbols for SPL and main U-Boot. * Add a help text. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2024-09-10riscv: CONFIG_SPL_FRAMEPOINTER must depend on CONFIG_SPLHeinrich Schuchardt1-0/+1
The CONFIG_SPL_FRAMEPOINTER symbol is only relevant in SPL. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com> Reviewed-by: Ben Dooks <ben.dooks@codethink.co.uk>
2024-09-10riscv: define find_{first,next}_zero_bit in asm/bitops.hMaxim Kochetkov1-0/+40
These seem to be missing, and trying to build fastboot cmd without them is causing errors due to these being missing. Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru> Tested-by: E Shattow <lucent@gmail.com Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2024-09-10imx8mq-u-boot: Pass FIT offset to fix boot regressionFabio Estevam1-0/+2
Since commit 37e50627efac ("ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman") the imx8mq-evk fails to boot: U-Boot SPL 2024.10-rc4 (Sep 09 2024 - 16:08:22 -0300) PMIC: PFUZE100 ID=0x10 SEC0: RNG instantiated Normal Boot Trying to boot from MMC2 Fix it by passing the offset property for the FIT image, just like it is done on i.MX8MM. Fixes: 37e50627efac ("ARM: dts: imx: Convert i.MX8M flash.bin image generation to binman") Signed-off-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Acked-by: Marek Vasut <marex@denx.de>
2024-09-09ARM: dts: renesas: Minimize R8A779G0 V4H RPC SPI DT nodeMarek Vasut2-22/+1
The RPC SPI DT node is now part of mainline Linux DT, remove the duplicate content from U-Boot DT extras. The SPI flash DT node name has been changed from "spi-flash@0" to "flash@0", reflect this change in this patch. Retain "bank-width" and "num-cs" DT properties which are used by U-Boot. Retain "spi-rx-bus-width" and "spi-tx-bus-width" DT properties to indicate the bus should always be operated in 1-1-1 mode as the U-Boot RPC SPI driver does not support higher bus width modes yet. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2024-09-03arm: mvebu: turris_omnia: Use the i2c_eeprom misc driver for EEPROM reading ↵Marek Behún1-0/+1
in U-Boot proper Use the i2c_eeprom miscellaneous driver for reading Turris Omnia EEPROM in U-Boot proper. Keep using dm_i2c_read() in SPL build, since adding the i2c_eeprom driver to SPL build increases the image by 1.5 KiB. Signed-off-by: Marek Behún <kabel@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
2024-08-29mach-imx: do not use if_changed more than once per targetJerome Forissier1-6/+4
doc/develop/makefiles.rst has the following note: if_changed should not be used more than once per target. It stores the executed command in a corresponding .cmd file and multiple calls would result in overwrites and unwanted results when the target is up to date and only the tests on changed commands trigger execution of commands. The mach-imx Makefile does not follow this recommandation, so fix it by implementing a single command that performs both the cpp_cfg and imx9_check actions. This change fixes an issue with "tools/buildman/buildman imx8ulp_evk" failing every other time [1]. [1] https://lists.denx.de/pipermail/u-boot/2024-August/563192.html Fixes: f637dfe8c468 ("mach-imx: Add i.MX93 binman support.") Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
2024-08-13imx6-tqma6: Convert to OF_UPSTREAMFabio Estevam10-409/+0
Instead of using the local imx6-tqma6 devicetree copies from U-Boot, convert the imx6-tqma6 target to OF_UPSTREAM so that the upstream kernel devicetrees can be used instead. Signed-off-by: Fabio Estevam <festevam@denx.de>