summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2024-01-04arm: dts: k3-j721s2-binman: Add firewall configurationsManorit Chawdhry
The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry <[email protected]>
2024-01-04arm: dts: k3-j721e-binman: Add firewall configurationsManorit Chawdhry
The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry <[email protected]>
2024-01-04arm: dts: k3-binman: Add k3-security.h and include it in k3-binman.dtsiManorit Chawdhry
For readability during configuring firewalls, adding k3-security.h file and including it in k3-binman.dtsi to be accessible across K3 SoCs Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Manorit Chawdhry <[email protected]> Reviewed-by: Andrew Davis <[email protected]>
2024-01-03ARM: tegra114: support nonsecure state detectionSvyatoslav Ryhel
Principle is exactly the same as on T124, testing of register which behaves differently in secure and non-secure states. Signed-off-by: Svyatoslav Ryhel <[email protected]>
2024-01-03ARM: tegra114: expand MC register mapSvyatoslav Ryhel
This expansion is required for nonsecure detection to work correctly. Signed-off-by: Svyatoslav Ryhel <[email protected]>
2024-01-03ARM: tegra124: convert TEGRA_SUPPORT_NON_SECURE into KconfigSvyatoslav Ryhel
Signed-off-by: Svyatoslav Ryhel <[email protected]>
2024-01-03Merge tag 'v2024.01-rc6' into nextTom Rini
Prepare v2024.01-rc6
2024-01-03arm: dts: k3-am62a*: Sync with kernel v6.7-rc1Nishanth Menon
Sync with kernel v6.7-rc1 and sync up the u-boot dts files accordingly. Signed-off-by: Nishanth Menon <[email protected]>
2024-01-03arm: mach-k3: am62a: Add main_timer0 id to the dev listNishanth Menon
main_timer0 is used by u-boot as the tick-timer. Add it to the soc devices list so it an be enabled via the k3 power controller. Signed-off-by: Nishanth Menon <[email protected]> Reviewed-by: Neha Malcom Francis <[email protected]>
2024-01-03arm: dts: k3-am654: convert bootph-pre-ram to bootph-allBryan Brattlof
Many nodes are reused between WKUP SPL, MAIN SPL, and U-Boot. Using bootph-pre-ram is causing these nodes to be present in SPL builds but pruned away during the U-Boot build. Convert these nodes to bootph-all so they will remain no matter which dtb build is happening. Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate mcu secure proxy nodeBryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu secure proxy node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: move dummy_clock to root nodeBryan Brattlof
The dummy_clock node is used to help the drivers probe the IO needed to setup consoles and boot media to load firmware into the SoC. This dummy_clock isn't a device that exists nor does it exist in the mcu domain. So move it from cbass_mcu to the root node to avoid any confusion. Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove un-needed aliasesBryan Brattlof
These aliases are not needed in U-Boot. Remove them Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate root propertiesBryan Brattlof
With the Linux and U-Boot board dtb files unified, we have duplicate properties in the root node. Remove them Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate vtt pinmuxBryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate vtt_pinmux node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate mdioBryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mdio node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove usb0Bryan Brattlof
The pinmux for usb0 is missing from the Linux board dtb file. Remove it until we can introduce it in Linux Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate ospi0 nodeBryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate ospi0 node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate wkup_i2c0Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate wkup_i2c0 node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate sdhci1 pinmux nodeBryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate sdhci1 pinmux node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate sdhci0 pinmux nodeBryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate sdhci0 pinmux node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate main_uart0Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate main_uart0 node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate mcu_uart0 nodeBryan Brattlof
With the Linux and U-Boot board dtb files unified we now have a duplicate mcu_uart0 node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: add needed regs to udmap nodesBryan Brattlof
Ethernet is one of a few IPs in U-Boot that depend on DMA to operate. However there are a few missing registers ranges in the udmap nodes need to properly setup DMA for the am65x. A fix has been added to the Linux kernel[0] to add these ranges however they have not made it to a Linux tag. To keep DMA operational until the next DT sync from Linux, add these ranges to the *-u-boot.dtsi with a note for our future selves. [0] https://lore.kernel.org/r/[email protected] Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate mcu_udmapBryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu_udmap node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate mcu_ringaccBryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu_ringacc node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate timerBryan Brattlof
timer1 is really just the mcu_timer0 node redefined for the WKUP SPL. Remove the timer1 and replace it with the mcu_timer0 from the Linux device tree we imported into U-Boot. Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate wkup_uart0Bryan Brattlof
With the Linux and U-Boot board files unified, we now have a duplicate wkup_uart0 node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: remove duplicate vtt_supplyBryan Brattlof
With the Linux and U-Boot board dtb files unified we now have a duplicate vtt_supply node. Remove it Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: include a53 board dtb for r5 buildBryan Brattlof
To make things as organized as possible, start from the Linux board dtbs and apply all properties needed for U-Boot in our *-u-boot.dtsi file for the MAIN SPL and U-Boot builds. We can then include these files for the WKUP SPL build making further edits to the needed properties and nodes for the WKUP SPL bootloader's view of the am65x. Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: copy bootph properties to a53 dtsBryan Brattlof
In order to unify the R5 board dtb file with the Linux board dtb file, we will need to copy all bootph-pre-ram properties to the *-u-boot.dtsi overlay. Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654: pull in dtb update from LinuxBryan Brattlof
Pull in dtb updates for the am654 base board from v6.7-rc1 of Linux Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-03arm: dts: k3-am654-r5: Merge board file and U-Boot overlayBryan Brattlof
The R5 board file for U-Boot should be the same as the board file copied from Linux with a few alterations to work with the R5's view of the SoC. First we need to unify the R5 board file and it's U-Boot overlay before we can unify the Linux board file with this one. Tested-by: Tom Rini <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> Reviewed-by: Nishanth Menon <[email protected]>
2024-01-02tegra114: clock: define MIPI calibration peripheral clockSvyatoslav Ryhel
TEGRA114_CLK_MIPI_CAL is a fixed child of PLLP and is used as clock source of the MIPI PHY calibration mechanism. Signed-off-by: Svyatoslav Ryhel <[email protected]>
2023-12-31bloblist: Adjust API to align in powers of 2Simon Glass
The updated bloblist structure stores the alignment as a power-of-two value in its structures. Adjust the API to use this, to avoid needing to calling ilog2(). Update the bloblist alignment from 16 bytes to 8 bytes. Drop a stale comment while we are here. Signed-off-by: Simon Glass <[email protected]> Co-developed-by: Raymond Mao <[email protected]> Signed-off-by: Raymond Mao <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]>
2023-12-31x86: coral: Align bootph SPI-flash subnodes with parentSimon Glass
The subnode has different tags from the parents, which is not correct. Fix the subnode. Signed-off-by: Simon Glass <[email protected]>
2023-12-27andes: cpu: Enable cache and TLB ECC supportLeo Yu-Chi Liang
Andes CPU supports cache and TLB ECC. Enable them by default. Signed-off-by: Leo Yu-Chi Liang <[email protected]> Reviewed-by: Yu Chien Peter Lin <[email protected]>
2023-12-27andes: cpu: Enable memboost featureLeo Yu-Chi Liang
Andes CPU has memboost feature including prefetch, write-around and non-blocking load. Enable them by default. Signed-off-by: Leo Yu-Chi Liang <[email protected]> Reviewed-by: Yu Chien Peter Lin <[email protected]>
2023-12-27andes: ae350: Implement cache switch via KconfigLeo Yu-Chi Liang
Kconfig provides SYS_[I|D]CACHE_OFF config options to switch off caches. Provide the corresponding implementation to the options. Signed-off-by: Leo Yu-Chi Liang <[email protected]> Reviewed-by: Yu Chien Peter Lin <[email protected]>
2023-12-27andes: csr.h: Clean up CSR definitionLeo Yu-Chi Liang
Signed-off-by: Leo Yu-Chi Liang <[email protected]> Reviewed-by: Yu Chien Peter Lin <[email protected]>
2023-12-27riscv: Extend board compatible string with "qemu,mbv"Michal Simek
Extend compatible string to match the latest change in dt binding. Fixes: 7576ab2facae ("riscv: Add support for AMD/Xilinx MicroBlaze V") Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2023-12-27riscv: cache: support cache enable in SPL stageZong Li
The power gating feature of pl2 should be enabled as early as possible, it would be better to put it in SPL stage. Signed-off-by: Zong Li <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
2023-12-21Merge patch series "Complete decoupling of bootm logic from commands"Tom Rini
Simon Glass <[email protected]> says: This series continues refactoring the bootm code to allow it to be used with CONFIG_COMMAND disabled. The OS-handling code is refactored and a new bootm_run() function is created to run through the bootm stages. This completes the work. A booti_go() function is created also, in case it proves useful, but at last for now standard boot does not use this. This is cmdd (part d of CMDLINE refactoring) It depends on dm/bootstda-working which depends on dm/cmdc-working
2023-12-21stm32: Use bootm_run() and bootz_run()Simon Glass
Use the new bootm/z_run() functions to avoid having to create an argument list for the stm32prog code. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-12-21stm32: Use local vars in stm32prog for initrd and fdtSimon Glass
Rather than assigning to the bootm_argv[] array multiple times, use local variables for the two things that can change and assign them at the end. This makes it easier to drop the array eventually. Tidu up an overly short line while we are here. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]>
2023-12-21bootm: Rename do_bootm_states() to bootm_run_states()Simon Glass
Rename the function to bootm_run_states() to better indicate ts purpose. The 'do_' prefix is used to indicate a command processor, which this is now not. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2023-12-21bootm: Adjust arguments of boot_os_fnSimon Glass
Adjust boot_os_fn to use struct bootm_info instead of the separate argc, argv and image parameters. Update the handlers accordingly. Few of the functions make use of the arguments, so this improves code size slightly. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2023-12-21sandbox: bootm: Enable more bootm OS methodsSimon Glass
It is useful for sandbox to build as much code as possible. Enable support for booting various other operating systems. Add the missing cache functions. These operating systems do not actually boot on sandbox, of course. Signed-off-by: Simon Glass <[email protected]>
2023-12-21riscv: Add a reset_cpu() functionSimon Glass
The current do_reset() is called from a command context. Add a function which can be used from anywhere, as is done on ARM. Adjust do_reset() to call it. Note that reset_cpu() is normally provided by SYSRESET so make this declaration conditional on that being disabled. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Chanho Park <[email protected]> Tested-by: Chanho Park <[email protected]>
2023-12-21nios2: Add a reset_cpu() functionSimon Glass
The current do_reset() is called from a command context. Add a function which can be used from anywhere, as is done on ARM. Signed-off-by: Simon Glass <[email protected]>