[PATCH] riscv: Enforce DWARF4 output

2023-04-06 Thread Bin Meng
Since commit 409e4b547872 ("Makefile: Enforce DWARF4 output") the whole U-Boot build switched to enforce DWARF4 output, but RISC-V is still on its own setting. Let's switch to use U-Boot's setting. Signed-off-by: Bin Meng --- arch/riscv/config.mk | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [PATCH 2/9] clang: Add $(CLANG_TARGET) to LDPPFLAGS

2023-04-06 Thread Simon Glass
On Thu, 6 Apr 2023 at 11:49, Tom Rini wrote: > > When we invoke $(CPP) to make u-boot.lds we have LDPPFLAGS available to > set other required flags here. As this file is for the target and not > the host, we must ensure that CPP knows what the target architecture is. > For this, pass in

Re: [PATCH 1/8] riscv: Optimize source end address calculation in start.S

2023-04-06 Thread Rick Chen
> From: Bin Meng > Sent: Thursday, March 30, 2023 12:20 PM > To: u-boot@lists.denx.de > Cc: Leo Yu-Chi Liang(梁育齊) ; Nikita Shubin > ; Rick Jian-Zhi Chen(陳建志) > Subject: [PATCH 1/8] riscv: Optimize source end address calculation in start.S > > The __bss_start is the source end address hence load

Re: [PATCH 1/9] arm: Only support ARM64_CRC32 when using GCC

2023-04-06 Thread Simon Glass
On Thu, 6 Apr 2023 at 11:49, Tom Rini wrote: > > Today, only gcc has __builtin_aarch64_crc32b (clang-16 does not, for > example). Make this option depend on CC_IS_GCC. > > Signed-off-by: Tom Rini > --- > arch/arm/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by:

Re: [PATCH] bootflow: Rework do_bootflow_menu() slightly

2023-04-06 Thread Simon Glass
On Fri, 7 Apr 2023 at 02:03, Tom Rini wrote: > > When building this with clang, we get a warning such as: > cmd/bootflow.c:412:27: warning: variable 'bflow' is uninitialized when used > here [-Wuninitialized] > printf("Selected: %s\n", bflow->os_name ? bflow->os_name : > bflow->name); >

Re: [PATCH 1/1] pytest: Use --lazy with umount

2023-04-06 Thread Simon Glass
Hi Tom, On Thu, 6 Apr 2023 at 14:19, Tom Rini wrote: > > Sometimes when doing tests on real hardware we sometimes run in to the > case where some of these mounts haven't been fully flushed. Using the > --lazy option with umount will allow us to continue while letting the OS > handle flushing

Re: [PATCH 3/9] clang: Don't look for libgcc

2023-04-06 Thread Simon Glass
On Thu, 6 Apr 2023 at 11:50, Tom Rini wrote: > > In the case of using clang to build, and having not already enabled the > private libgcc, do not look for it, as it will not be found nor > required. > > Signed-off-by: Tom Rini > --- > Makefile | 2 ++ > 1 file changed, 2 insertions(+) >

Re: [PATCH 9/9] doc: clang: Update and correct support notes

2023-04-06 Thread Simon Glass
On Thu, 6 Apr 2023 at 11:51, Tom Rini wrote: > > At this point, clang can be used on both 32bit and 64bit targets without > issue. > > Signed-off-by: Tom Rini > --- > doc/build/clang.rst | 16 > 1 file changed, 4 insertions(+), 12 deletions(-) Reviewed-by: Simon Glass

Re: [PATCH] qemu: dfu: Correct memset call in set_dfu_alt_info

2023-04-06 Thread Simon Glass
On Fri, 7 Apr 2023 at 01:58, Tom Rini wrote: > > When building with clang, we see: > board/emulation/common/qemu_dfu.c:51:24: warning: 'memset' call operates on > objects of type 'char' while the size is based on a different type 'char *' > [-Wsizeof-pointer-memaccess] > > As we're calling

Re: [PATCH 6/9] boot/image-board.c: Silence warning in select_ramdisk

2023-04-06 Thread Simon Glass
On Thu, 6 Apr 2023 at 11:50, Tom Rini wrote: > > When building with clang we get a warning that rdaddr could be > uninitialized in one case. While this cannot functionally happen, we can > easily silence the warning. > > Signed-off-by: Tom Rini > --- > boot/image-board.c | 2 +- > 1 file

Re: [PATCH 5/9] armv7: Use isb/dsb directly in start.S

2023-04-06 Thread Simon Glass
On Thu, 6 Apr 2023 at 11:50, Tom Rini wrote: > > Toolchains which do not directly support using "isb" and "dsb" directly > are no longer functionally supported in U-Boot. Furthermore, clang has > for a long time warned about using the alternate form that we were. > Update the code. > >

Re: [PATCH 4/9] arm: Centralize fixed register logic

2023-04-06 Thread Simon Glass
On Thu, 6 Apr 2023 at 11:50, Tom Rini wrote: > > When building for ARM64, we need to pass -ffixed-x18 and otherwise pass > -ffixed-r9. Rather than having this logic in two places, we can do this > once in arch/arm/config.mk. Further, while gcc will ignore being passed > both -ffixed-r9 and

Re: [PATCH] api: Rework menu, and make it depend on CC_IS_GCC

2023-04-06 Thread Simon Glass
On Fri, 7 Apr 2023 at 01:49, Tom Rini wrote: > > We can only use the old U-Boot API for standalone applications when > building U-Boot with GCC as it relies upon the "gd is a register" trick > that only GCC supports. Further, rework the rest of the options so that > they are in the API menu and

Re: [BUG] issues with new bootflow, uefi and virtio

2023-04-06 Thread Simon Glass
Hi Vincent, On Thu, 6 Apr 2023 at 22:05, Vincent Stehlé wrote: > > On Thu, Apr 06, 2023 at 06:38:16AM +1200, Simon Glass wrote: > (virtio device number 31 vs. blk index 0) > > This is strange. Can you try 'dm uclass' to see the sequence number > > for the virtio device? I would expect it to be

Re: [BUG] issues with new bootflow, uefi and virtio

2023-04-06 Thread Simon Glass
Hi Mathew, On Thu, 6 Apr 2023 at 12:25, Mathew McBride wrote: > > Hi Vincent, > > On Thu, Apr 6, 2023, at 1:04 AM, Vincent Stehlé wrote: > > Hi, > > > > I am hitting an issue with the new bootflow when booting with UEFI from a > > virtio device on Qemu Arm. > > > > It seems the device number

Re: [PATCH] ARM: configs: imx8mm: Sync i.MX8M Mini Toradex Verdin and Menlo board configs

2023-04-06 Thread Peng Fan
On 4/6/2023 7:51 AM, Marek Vasut wrote: Synchronize the i.MX8M Mini Toradex Verdin based Menlo board config with i.MX8M Mini Toradex Verdin carrier board. This enables DM MDIO, eMMC HS modes, TMU for thermal monitoring, LTO and multiple commands (hexdump, pmic, read, time). Signed-off-by:

Re: [PATCH 13/17] mmc: rockchip_sdhci: Add support for RK3588

2023-04-06 Thread Shawn Lin
在 2023/4/4 18:01, Kever Yang 写道: Add Shawn and Yifeng. Please help review this patch. Thanks, - Kever On 2023/4/4 04:48, Jonas Karlman wrote: Add support for RK3588 to the sdhci driver. RK3588 has the inverter flag in TXCLK reg instead of RXCLK and also make use of a new CMDOUT reg. Add and

Re: [PATCH] mmc: fsl_esdhc: Fix enablement of UHS mode

2023-04-06 Thread Peng Fan
On 4/6/2023 8:14 PM, Fabio Estevam wrote: From: Fabio Estevam Since commit 1a7904fdfa7d ("mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps") the following SD card error is observed on an imx7d-sdb board: U-Boot 2023.04-00652-g487e42f7bc5e (Apr 05 2023 - 22:14:21 -0300) CPU:

Re: [PATCH 1/8] riscv: Optimize source end address calculation in start.S

2023-04-06 Thread Bin Meng
On Thu, Mar 30, 2023 at 8:36 PM Bin Meng wrote: > > The __bss_start is the source end address hence load its address > directly into register 't2' for optimization. > > Signed-off-by: Bin Meng > --- > > arch/riscv/cpu/start.S | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff

Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-06 Thread Tom Rini
On Fri, Apr 07, 2023 at 10:46:08AM +0900, AKASHI Takahiro wrote: > Hi Ilias, > > On Thu, Apr 06, 2023 at 10:37:07PM +0300, Ilias Apalodimas wrote: > > Tom reports that when building with clang we see this warning: > > field guid within 'struct efi_hii_keyboard_layout' is less aligned than > >

Re: [PATCH] arm: mx6: module_fuse: fix build failure due to wrong argument name

2023-04-06 Thread Peng Fan
On 4/7/2023 12:17 AM, Giulio Benetti wrote: nodeoff variable should be variable off returned by fdt_path_offset() so let's rename it to off. Signed-off-by: Giulio Benetti Reviewed-by: Peng Fan

Re: [PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-06 Thread AKASHI Takahiro
Hi Ilias, On Thu, Apr 06, 2023 at 10:37:07PM +0300, Ilias Apalodimas wrote: > Tom reports that when building with clang we see this warning: > field guid within 'struct efi_hii_keyboard_layout' is less aligned than > 'efi_guid_t' and is usually due to 'struct efi_hii_keyboard_layout' being >

Re: [PATCH] ddr: marvell: a38x: Perform DDR training sequence again for 2nd boot

2023-04-06 Thread Tony Dinh
Hi Pali, Could you review this patch? Thanks, Tony On Sun, Apr 2, 2023 at 9:42 PM Tony Dinh wrote: > > - 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

Re: [PATCH 1/1] net: replace /* Fall through */

2023-04-06 Thread Tom Rini
On Sat, Apr 01, 2023 at 09:30:05AM +0200, Heinrich Schuchardt wrote: > gcc 12 does not understand /* Fall through */. > Use the fallthrough macro instead. > > Fallthrough at the start of a switch statement makes no sense. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Ramon Fried >

Re: [PATCH v2 3/4] rockchip: rk35xx: Fix boot with a large fdt blob

2023-04-06 Thread Jagan Teki
On Wed, 22 Mar 2023 at 03:14, Jonas Karlman wrote: > > The TF-A blobs used to boot RK3568 and RK3588 boards is based on atf > v2.3. Mainline atf v2.3 contains an issue that could lead to a crash > when it fails to parse the fdt blob being passed as the platform param. > An issue that was fixed in

[PATCH 2/2] efi_loader: Fix warnings on unaligned accesses

2023-04-06 Thread Ilias Apalodimas
Tom reports that when building with clang we see this warning: field guid within 'struct efi_hii_keyboard_layout' is less aligned than 'efi_guid_t' and is usually due to 'struct efi_hii_keyboard_layout' being packed, which can lead to unaligned accesses [-Wunaligned-access] This happens because

[PATCH 1/2] efi_loader: Fix flexible array member definitions

2023-04-06 Thread Ilias Apalodimas
When a structure contains a flexible array member, it is not supposed to be included in arrays or other structs. Quoting the C spec [0] "Such a structure (and any union containing, possibly recursively, a member that is such a structure) shall not be a member of a structure or an element of an

Re: [PATCH] arm: mach-k3: am642: move do_dt_magic() after sysfw loading

2023-04-06 Thread Bryan Brattlof
Hi Christian! On March 28, 2023 thus sayeth Christian Gmeiner: > Makes it possible to use e.g mcu_spi0 for custom board detection. > > Signed-off-by: Christian Gmeiner > --- > arch/arm/mach-k3/am642_init.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > I had to pick up the

Re: [PATCH] arm: mach-k3: Workaround errata ID i2331

2023-04-06 Thread Bryan Brattlof
Hi Vignesh! On April 6, 2023 thus sayeth Vignesh Raghavendra: > From: Nitin Yadav > > Errata doc: https://www.ti.com/lit/pdf/sprz457 > Errata ID i2331 CPSW: Device lockup when reading CPSW registers > > Details: A device lockup can occur during the second read of any CPSW > subsystem register

[PATCH v2 8/8] configs: am62x_evm_*: Enable USB and DFU support

2023-04-06 Thread Sjoerd Simons
Enable USB host as well as USB gadget and DFU support for a53; For the r5 due to the smaller available size create a new config just for DFU support Signed-off-by: Sjoerd Simons --- Changes in v2: - Create a seperate defconfig for R5 configs/am62x_evm_a53_defconfig | 35 +++-

[PATCH v2 7/8] arm: dts: k3-am625-sk: Enable usb ports in u-boot

2023-04-06 Thread Sjoerd Simons
Enable both usb0 as a peripheral for use with DFU and Signed-off-by: Sjoerd Simons --- Changes in v2: - Only enable usb port 0 DFU in SPL arch/arm/dts/k3-am625-sk-u-boot.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/dts/k3-am625-sk-u-boot.dtsi

[PATCH v2 5/8] usb: dwc3: Add dwc3 glue driver for am62

2023-04-06 Thread Sjoerd Simons
Add glue code for TI AM62 to the dwc3 driver; Most code adopted from TI vendor u-boot code. Signed-off-by: Sjoerd Simons --- Changes in v2: - Switch dwc3 glue to a seperate driver rather then in dwc-generic drivers/usb/dwc3/Kconfig | 14 drivers/usb/dwc3/Makefile| 1 +

[PATCH v2 6/8] configs: am62: Add configs for enabling USB in U-Boot

2023-04-06 Thread Sjoerd Simons
Add configs for enabling USB DFU in U-Boot. Signed-off-by: Sjoerd Simons --- Changes in v2: - Minimize config changes to just DFU configuration include/configs/am62x_evm.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/configs/am62x_evm.h

[PATCH v2 4/8] arm: dts: k3-am625-sk: Enable emmc in SPL

2023-04-06 Thread Sjoerd Simons
sdhci0 on the k3-am625-sk is the emmc, enable this in SPL as well to allow booting from that media. Signed-off-by: Sjoerd Simons Reviewed-by: Tom Rini --- (no changes since v1) arch/arm/dts/k3-am625-sk-u-boot.dtsi | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v2 3/8] arm: dts: k3-am62: Bump dtsi from linux

2023-04-06 Thread Sjoerd Simons
Update the am62 and am625 device-trees from linux v6.3-rc5 This needed the following tweaks to the u-boot specific dtsi as well: - Switch tick-timer to the main_timer as it's now defined in the main dtsi - Add mdio pins to the cpsw3g pinctrl. It moved to a subnode in the linux dtsi that u-boot

[PATCH v2 2/8] arm: mach-k3: am62: Add timer0 id to the dev list

2023-04-06 Thread Sjoerd Simons
Timer0 is used by u-boot as the tick timer; Add it to the soc devices list so it can be enabled via the k3 power controller. Signed-off-by: Sjoerd Simons Reviewed-by: Tom Rini --- (no changes since v1) arch/arm/mach-k3/am62x/dev-data.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 1/8] omap: timer: add ti,am654-timer compatibility

2023-04-06 Thread Sjoerd Simons
THe TI AM654 timer is compatible with the omap-timer implementation, so add it to the id list Signed-off-by: Sjoerd Simons Reviewed-by: Tom Rini --- (no changes since v1) drivers/timer/omap-timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/timer/omap-timer.c

[PATCH v2 0/8] Add DFU, emmc and usb boot for TI am62x

2023-04-06 Thread Sjoerd Simons
This series adds more boot sources for the TI am62x. For that the dts' are synced from the upstream ti-next git tree (to add usb nodes), some dwc3 glue is and finally the default configuration is tuned to add support for DFU and USB (host and gadget) Changes in v2: - Update dts sync to

Re: [PATCH 1/2] rockchip: rng: add trngv1 for rk3588

2023-04-06 Thread Heinrich Schuchardt
Am 6. April 2023 18:17:35 MESZ schrieb Chris Morgan : >From: Chris Morgan > >This adds support for the TRNG found in the RK3588 SoC to the >rockchip_rng driver so that it can be used for things such as >seeding randomness to Linux. > >This code was taken wholesale from the Rockchip BSP U-Boot

[PATCH v3] doc: ti: Add switch setting for boot modes on AM62 SK

2023-04-06 Thread Judith Mendez
List some common boot modes and their corresponding switch settings for AM62 SK. List in a ASCII-style table. Signed-off-by: Judith Mendez --- Changes from v1: Change table format from ascii-art to list-table Changes from v2: Change table format to ASCII style doc/board/ti/am62x_sk.rst | 29

Re: [PATCH] doc: ti: Add switch setting for boot modes on AM62 SK

2023-04-06 Thread Mendez, Judith
Hello, On 4/4/2023 9:22 AM, Tom Rini wrote: On Tue, Apr 04, 2023 at 03:59:56PM +0200, Heinrich Schuchardt wrote: On 3/31/23 22:36, Judith Mendez wrote: List some common boot modes and their corresponding switch settings for AM62 SK. Signed-off-by: Judith Mendez --- Changes from v1: Change

[PATCH v1 9/9] DONOTMERGE: arm: dts: k3-am62a7-sk: Add TI TPS6593 PMIC support

2023-04-06 Thread Jerome Neanne
Add support for TPS6593 PMIC devices: - regulators (bucks and LDOs) on main I2C0 bus, - watchdog on MCU I2C0 bus. Signed-off-by: Julien Panis Signed-off-by: Jerome Neanne --- arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-)

[PATCH v1 8/9] configs: am62ax_evm_a53: Enable support for TI TPS6593 PMIC

2023-04-06 Thread Jerome Neanne
From: Julien Panis Add support for TPS6593 regulators and watchdog. PMIC is controlled by SoC through I2C interface. Signed-off-by: Julien Panis Signed-off-by: Jerome Neanne --- configs/am62ax_evm_a53_defconfig | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH v1 7/9] DONOTMERGE: arm: dts: k3-j721e: realign node name on linux dts name

2023-04-06 Thread Jerome Neanne
Change node name to reuse Linux common dts naming style. Signed-off-by: Jerome Neanne --- arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi

[PATCH v1 6/9] DONOTMERGE: arm: dts: k3-j721e: refactor r5 board file to use Linux dts tps6594 description

2023-04-06 Thread Jerome Neanne
Use a copy of Linux dts for TPS6594 PMIC description instead of custom u-boot Signed-off-by: Jerome Neanne --- .../arm/dts/k3-j721e-r5-common-proc-board.dts | 48 +-- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts

[PATCH v1 5/9] DONOTMERGE: arm: dts: k3-j721e: u-boot overlay for TI tps6594 PMIC

2023-04-06 Thread Jerome Neanne
j721e board includes 2 instances of TPS6594: - Primary PMIC - Secondary PMIC Add AVS class0 in u-boot SPL. AVS is supported only on CPU rail: vdd_cpu_avs. This rail is supplied by the primary PMIC: tps659413 This rail is supplied by a dual-phased buck: buck12. Other PMICs rails are not AVS

[PATCH v1 4/9] board: ti: k3-j721e: Force TPS65941 PMIC WD disable on j721e TI EVM board

2023-04-06 Thread Jerome Neanne
Using uclass_probe_all forces probe on all devices: Only probe for WD stop is really needed here. Probing other devices has no impact. Signed-off-by: Jerome Neanne --- board/ti/j721e/evm.c | 8 1 file changed, 8 insertions(+) diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c

[PATCH v1 3/9] configs: j721e_evm: Add support for TPS65941 PMICs on j721e TI EVM board

2023-04-06 Thread Jerome Neanne
Add PMIC and regulators feature support for j721e. PMIC is controlled by SoC through I2C interface. Signed-off-by: Jerome Neanne --- configs/j721e_evm_a72_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig

[PATCH v1 2/9] drivers: regulator: Fixes for TPS65941 LDO voltage conversion

2023-04-06 Thread Jerome Neanne
Fixes: 065a452ae6a power: regulator: tps65941: add regulator support LDO voltage conversion was incorrect. This was checked by writing and reading back value. Signed-off-by: Jerome Neanne --- drivers/power/regulator/tps65941_regulator.c | 71 +--- 1 file changed, 63

[PATCH v1 1/9] drivers: pmic: TPS65941 add support for WD disable

2023-04-06 Thread Jerome Neanne
This is not a proper WD driver because it's not planned to support WD driver for PMIC in u-boot at any time. The purpose is just WD disable. Signed-off-by: Jerome Neanne --- drivers/power/pmic/tps65941.c | 36 +++ include/power/tps65941.h | 25

[PATCH v1 0/9] TI TPS6594 PMIC support for multiple TI EVMs

2023-04-06 Thread Jerome Neanne
TPS6594 is a Power Management IC which provides regulators and others features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC can communicate through the I2C or SPI interfaces. TPS6594 is the super-set device while

[PATCH v4 12/12] arm: mach-k3: Remove empty sys_proto.h include

2023-04-06 Thread Andrew Davis
This header file is now empty, remove it. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/am642_init.c | 2 -- arch/arm/mach-k3/am654_init.c | 1 - arch/arm/mach-k3/common.c | 1 -

[PATCH v4 11/12] arm: mach-k3: Move J721s2 SPL init functions to mach-k3

2023-04-06 Thread Andrew Davis
This matches AM64 and J721e and removes the need to forward declare k3_spl_init(), k3_mem_init(), and check_rom_loaded_sysfw() in sys_proto.h. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/include/mach/sys_proto.h | 3 -- arch/arm/mach-k3/j721s2_init.c

[PATCH v4 01/12] arm: mach-k3: Move MSMC fixup to SoC level

2023-04-06 Thread Andrew Davis
The MSMC fixup is something we do based on SoC, not based on the board. So this fixup does not belong in the board files. Move this to the mach-k3 common file so that it does not have to be done in each board that uses these SoCs. We use ft_system_setup() here instead of ft_board_setup() since it

[PATCH v4 07/12] arm: mach-k3: Move sysfw-loader.h out of mach includes

2023-04-06 Thread Andrew Davis
This header is only used locally by K3 init files, no need to have it up with the global mach includes. Move into local includes. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/am625_init.c | 2 +- arch/arm/mach-k3/am62a7_init.c

[PATCH v4 10/12] arm: mach-k3: Move sdelay() and wait_on_value() declaration

2023-04-06 Thread Andrew Davis
These probably should be in some system wide header given their use. Until then move them out of K3 sys_proto.h so we can finish cleaning that header out. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/include/mach/sys_proto.h | 4

[PATCH v4 08/12] arm: mach-k3: Add weak do_board_detect() to common file

2023-04-06 Thread Andrew Davis
This matches how it was done for pre-K3 TI platforms and it allows us to move the forward declaration out of sys_proto.h. It also removes the need for K3_BOARD_DETECT as one is free to simply override the weak function in their board files as needed. Signed-off-by: Andrew Davis Reviewed-by:

[PATCH v4 09/12] arm: mach-k3: Remove unused fdt_disable_node()

2023-04-06 Thread Andrew Davis
This function is not used currently; remove it. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/common.c | 19 --- arch/arm/mach-k3/include/mach/sys_proto.h | 1 - 2 files changed, 20 deletions(-) diff --git

[PATCH v4 02/12] arm: mach-k3: Move J721e SoC detection out of common section

2023-04-06 Thread Andrew Davis
This belongs in the J721e specific file as it is the only place this is used. Any board level users should use the SOC driver. While here, move the J721e and J7200 SoC IDs out of sys_proto.h and into hardware.h. Use a macro borrowed from Rockchip and add the rest of the SoC IDs for completeness

[PATCH v4 06/12] arm: mach-k3: Make release_resources_for_core_shutdown() common

2023-04-06 Thread Andrew Davis
This function is the same for each device when it needs to shutdown the R5 core. Move this to the common section and move the remaining device specific ID list to the device hardware include. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/am642_init.c

[PATCH v4 03/12] soc: soc_ti_k3: Use hardware.h to remove definition duplication

2023-04-06 Thread Andrew Davis
The K3 JTAG and SoC ID information is already stored in the K3 arch hardware file, include that and use its definitions here. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- drivers/soc/Kconfig | 2 +- drivers/soc/soc_ti_k3.c | 30 +- 2 files

[PATCH v4 04/12] configs: j721x_evm: Remove unneeded check for SYS_K3_SPL_ATF

2023-04-06 Thread Andrew Davis
The TARGET_x_R5_EVM check is already enough to limit these defines to only the correct builds. Remove the extra outer check. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- board/ti/j721e/j721e.env | 2 -- board/ti/j721s2/j721s2.env | 2 -- 2 files changed, 4 deletions(-)

[PATCH v4 05/12] configs: j721s2_evm.h: Remove refrences to J7200 EVM

2023-04-06 Thread Andrew Davis
The J7200 EVM will not include this file, this J7200 checks look to be a copy/paste errora from j721e_evm.h, which J7200 *can* include. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- include/configs/j721s2_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v4 00/12] Remove K3 misc sys_proto.h header

2023-04-06 Thread Andrew Davis
Hello all, Some minor cleanups with end patch removing sys_proto.h. Why? Becouse I don't like headers of "miscellaneous". Thanks, Andrew Changes from v3: - [2/12] Fix copy/paste error (thanks Christian) - add more tags and rebase on latest Changes from v2: - Reworked patch [2/12] to use

Re: [PATCH v3 02/12] arm: mach-k3: Move J721e SoC detection out of common section

2023-04-06 Thread Andrew Davis
On 4/6/23 10:59 AM, Christian Gmeiner wrote: This belongs in the J721e specific file as it is the only place this is used. Any board level users should use the SOC driver. While here, move the J721e and J7200 SoC IDs out of sys_proto.h and into hardware.h. Use a macro borrowed from Rockchip

[PATCH 1/2] rockchip: rng: add trngv1 for rk3588

2023-04-06 Thread Chris Morgan
From: Chris Morgan This adds support for the TRNG found in the RK3588 SoC to the rockchip_rng driver so that it can be used for things such as seeding randomness to Linux. This code was taken wholesale from the Rockchip BSP U-Boot source located here:

[PATCH 2/2] ARM: dts: rockchip: rk3588s-u-boot: Add rng node

2023-04-06 Thread Chris Morgan
From: Chris Morgan Add a node for the trng found on RK3588 SoCs. Signed-off-by: Chris Morgan --- arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi index f880f4a167..43aeeb4de3 100644

[PATCH 0/2] Add RK3588 TRNG

2023-04-06 Thread Chris Morgan
From: Chris Morgan Add support for the RK3588 TRNG. The code was taken directly from the Rockchip BSP U-Boot source. Chris Morgan (2): rockchip: rng: add trngv1 for rk3588 ARM: dts: rockchip: rk3588s-u-boot: Add rng node arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++

[PATCH] arm: mx6: module_fuse: fix build failure due to wrong argument name

2023-04-06 Thread Giulio Benetti
nodeoff variable should be variable off returned by fdt_path_offset() so let's rename it to off. Signed-off-by: Giulio Benetti --- arch/arm/mach-imx/mx6/module_fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/module_fuse.c

Re: [PATCH v3 12/12] arm: mach-k3: Remove empty sys_proto.h include

2023-04-06 Thread Christian Gmeiner
> > This header file is now empty, remove it. > > Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner > --- > arch/arm/mach-k3/am642_init.c | 2 -- > arch/arm/mach-k3/am654_init.c | 1 - > arch/arm/mach-k3/common.c | 1 - >

Re: [PATCH v3 08/12] arm: mach-k3: Add weak do_board_detect() to common file

2023-04-06 Thread Christian Gmeiner
> > This matches how it was done for pre-K3 TI platforms and it allows > us to move the forward declaration out of sys_proto.h. > > It also removes the need for K3_BOARD_DETECT as one is free to simply > override the weak function in their board files as needed. > > Signed-off-by: Andrew Davis

Re: [PATCH v3 02/12] arm: mach-k3: Move J721e SoC detection out of common section

2023-04-06 Thread Christian Gmeiner
> > This belongs in the J721e specific file as it is the only place > this is used. Any board level users should use the SOC driver. > > While here, move the J721e and J7200 SoC IDs out of sys_proto.h > and into hardware.h. Use a macro borrowed from Rockchip and add > the rest of the SoC IDs for

Re: [PATCH v2 1/4] sunxi: spl: Disable padding from SPL_PAD_TO

2023-04-06 Thread Andre Przywara
On Sun, 22 Jan 2023 15:15:27 -0600 Samuel Holland wrote: Hi Samuel, > Starting with H6, Allwinner removed the artificial 32 KiB SPL size limit > from the boot ROM. Now SPL size is only limited by the available SRAM. > This limit ranges from 152 KiB on H6 to a whopping 2052 KiB on R329. To >

Re: [PATCH v2 1/3] fdt: validate/fix cells count on mtdpart fixup

2023-04-06 Thread Tom Rini
On Tue, Apr 04, 2023 at 06:18:03PM +0200, Francesco Dolcini wrote: > +Stefano > > On Mon, Feb 06, 2023 at 06:17:31PM -0500, Tom Rini wrote: > > On Mon, Feb 06, 2023 at 11:48:36PM +0100, Francesco Dolcini wrote: > > > > > From: Francesco Dolcini > > > > > > Fixup #size-cells value when updating

[PATCH 1/1] arm: dts: icnova-a20-adb4006: Add board support

2023-04-06 Thread Ludwig Kormann
Add board support for ICnova A20 SomPi compute module on ICnova ADB4006 development board. Specification: SoM - Processor: Allwinner A20 Cortex-A7 Dual Core at 1GHz - 512MB DDR3 RAM - Fast Ethernet (Phy: Realtek RTL8201CP) ADB4006 - I2C - 2x USB 2.0 - 1x Fast Ethernet port - 1x SATA - 2x buttons

[PATCH v1 10/14] spi: mpc8xxx: Add support for SPI on mpc832x

2023-04-06 Thread Christophe Leroy
On mpc832x, SPI can be either handled by CPU or QE. In order to work in CPU mode, bit 17 of SPMODE has to be set to 1, that bit is called OP. Also, data is located at a different place than the one expected by the driver today. In 8 bits mode with REV set, data to be transmitted is located in the

[PATCH v1 12/14] board: cssi: Refactor EEPROM read

2023-04-06 Thread Christophe Leroy
On cmpc885 board, the ethernet addresses are stored in an EEPROM that is accessed through SPI. A 3 bytes command is sent to the chip then the content gets read. At the time being a single block access is performed, ignoring the first 3 bytes read. Reword the SPI transfer to first send 3 bytes

[PATCH v1 14/14] board: cssi: Add CPU board CMPCPRO

2023-04-06 Thread Christophe Leroy
CSSI has another CPU board, similar to the CMPC885 board that get plugged on the two base boards MCR3000_2G and MIAE. That CPU board is called CMPCPRO because it has a MPC8321E CPU, also known as Power QUICC II PRO. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc83xx/Kconfig | 5 +

[PATCH v1 11/14] board: cssi: Create dedicated file for common sources

2023-04-06 Thread Christophe Leroy
In preparation of the new cssi board called cmpcpro which we be introduce in a future patch, move common functions into a dedicated file in a common directory. Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/Makefile | 2 +- board/cssi/cmpc885/cmpc885.c | 54

[PATCH v1 09/14] gpio: Add QUICC Engine GPIOs driver

2023-04-06 Thread Christophe Leroy
The mpc832x has GPIOs handled by the QUICC Engine. The registers are different from the one for the non QE mpc83xx GPIOs. Implement a GPIO driver for those. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 5 + drivers/gpio/Kconfig |

[PATCH v1 13/14] board: cssi: Move all mother board code into common.c

2023-04-06 Thread Christophe Leroy
All the code used to manage the mother boards will be common to soon to come CPU board. Move all that code into common.c Signed-off-by: Christophe Leroy --- board/cssi/cmpc885/cmpc885.c | 152 +-- board/cssi/common/common.c | 124 +++-

[PATCH v1 02/14] watchdog: mpc8xx: Rename it mpc8xxx

2023-04-06 Thread Christophe Leroy
mpc8xx, mpc83xx and mpc86xx have similar watchdog with almost same memory registers. Rename it mpc8xxx which is the generic name used for drivers supporting several mpc families. The driver will be made more generic in following patch. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig

[PATCH v1 04/14] watchdog: mpc8xxx: Add support for mpc83xx

2023-04-06 Thread Christophe Leroy
Introduce a new compatible "fsl,pq2pro-wdt" On mpc83xx, the prescaling factor is 0x1. Don't write the watchdog configuration register in start.S as it can be written only once. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc83xx/cpu.c | 2 +- arch/powerpc/cpu/mpc83xx/start.S | 2

[PATCH v1 08/14] clk: mpc83xx: Fix clocks for mpc832x

2023-04-06 Thread Christophe Leroy
gd->arch.sdhc_clk only exists when CONFIG_FSL_ESDHC is set, so enclose it inside ifdefs. gd->arch.qe_clk and gd->arch.brg_clk must be populated when CONFIG_QE is set. Signed-off-by: Christophe Leroy --- drivers/clk/mpc83xx_clk.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v1 06/14] powerpc: mpc83xx: Fix soc.h

2023-04-06 Thread Christophe Leroy
There are helpers included in soc.h Declare them static inline so that soc.h can be included in several places. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/arch-mpc83xx/soc.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v1 03/14] watchdog: mpc8xxx: Make it generic

2023-04-06 Thread Christophe Leroy
mpc8xx, mpc83xx and mpc86xx have similar watchdog with almost same memory registers. Refactor the driver to get the register addresses from the device tree and use the compatible to know the prescale factor. Calculate the watchdog setup value from the provided timeout. Don't declare it anymore

[PATCH v1 05/14] powerpc: mpc832x: Fix reset word

2023-04-06 Thread Christophe Leroy
According to the reference manual, the Reset Configuration Word Low Register bits 2-3 must be set to 0b10. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc83xx/hrcw/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/cpu/mpc83xx/hrcw/Kconfig

[PATCH v1 07/14] powerpc: mpc83xx: Don't activate MMU when not necessary

2023-04-06 Thread Christophe Leroy
At startup, some RAM is needed (for instance for stack) before DRAM is initialised. One way to offer such RAM, used by mpc83xx, is to lock some entries in the cache. To do that, MMU needs to be activated. On mpc83xx having a QUICC Engine an alternative is to user some part of from the Multi User

[PATCH v1 00/14] Add new CS GROUP CPU board CMPCPRO (v1)

2023-04-06 Thread Christophe Leroy
This series adds support for the last CPU board from CS GROUP France (previously CSSI). That CPU board called CMPCPRO has a mpc8321E CPU (Family PQII PRO hence its name) and can be plugged in place of the CMPC885 board. In order to support that new board, the following changes are included in

[PATCH v1 01/14] powerpc: mpc8xx: Migrate to CONFIG_SYS_CLK_FREQ

2023-04-06 Thread Christophe Leroy
8xx has CONFIG_8xx_GCLK_FREQ which is similar to CONFIG_SYS_CLK_FREQ, and doesn't set CONFIG_SYS_CLK_FREQ. Due to that, get_board_sys_clk() returns 0. Remove CONFIG_8xx_GCLK_FREQ and use CONFIG_SYS_CLK_FREQ instead. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Kconfig | 3 ---

Re: [GIT PULL] please pull fsl-qoriq-2023-4-6 for 2023.07-rc1

2023-04-06 Thread Tom Rini
On Thu, Apr 06, 2023 at 02:11:23AM +, Peng Fan wrote: > Hi Tom, > > Please pull fsl-qoriq-2023-4-6 Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH v3 12/12] arm: mach-k3: Remove empty sys_proto.h include

2023-04-06 Thread Andrew Davis
This header file is now empty, remove it. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/am642_init.c | 2 -- arch/arm/mach-k3/am654_init.c | 1 - arch/arm/mach-k3/common.c | 1 - arch/arm/mach-k3/include/mach/sys_proto.h | 10 --

[PATCH v3 11/12] arm: mach-k3: Move J721s2 SPL init functions to mach-k3

2023-04-06 Thread Andrew Davis
This matches AM64 and J721e and removes the need to forward declare k3_spl_init(), k3_mem_init(), and check_rom_loaded_sysfw() in sys_proto.h. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/include/mach/sys_proto.h | 3 -- arch/arm/mach-k3/j721s2_init.c

[PATCH v3 09/12] arm: mach-k3: Remove unused fdt_disable_node()

2023-04-06 Thread Andrew Davis
This function is not used currently; remove it. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/common.c | 19 --- arch/arm/mach-k3/include/mach/sys_proto.h | 1 - 2 files changed, 20 deletions(-) diff --git

[PATCH v3 08/12] arm: mach-k3: Add weak do_board_detect() to common file

2023-04-06 Thread Andrew Davis
This matches how it was done for pre-K3 TI platforms and it allows us to move the forward declaration out of sys_proto.h. It also removes the need for K3_BOARD_DETECT as one is free to simply override the weak function in their board files as needed. Signed-off-by: Andrew Davis ---

[PATCH v3 10/12] arm: mach-k3: Move sdelay() and wait_on_value() declaration

2023-04-06 Thread Andrew Davis
These probably should be in some system wide header given their use. Until then move them out of K3 sys_proto.h so we can finish cleaning that header out. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/include/mach/sys_proto.h | 4

[PATCH v3 07/12] arm: mach-k3: Move sysfw-loader.h out of mach includes

2023-04-06 Thread Andrew Davis
This header is only used locally by K3 init files, no need to have it up with the global mach includes. Move into local includes. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/am625_init.c | 2 +- arch/arm/mach-k3/am62a7_init.c

[PATCH v3 06/12] arm: mach-k3: Make release_resources_for_core_shutdown() common

2023-04-06 Thread Andrew Davis
This function is the same for each device when it needs to shutdown the R5 core. Move this to the common section and move the remaining device specific ID list to the device hardware include. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- arch/arm/mach-k3/am642_init.c

[PATCH v3 05/12] configs: j721s2_evm.h: Remove refrences to J7200 EVM

2023-04-06 Thread Andrew Davis
The J7200 EVM will not include this file, this J7200 checks look to be a copy/paste errora from j721e_evm.h, which J7200 *can* include. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- include/configs/j721s2_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 04/12] configs: j721x_evm: Remove unneeded check for SYS_K3_SPL_ATF

2023-04-06 Thread Andrew Davis
The TARGET_x_R5_EVM check is already enough to limit these defines to only the correct builds. Remove the extra outer check. Signed-off-by: Andrew Davis Reviewed-by: Christian Gmeiner --- board/ti/j721e/j721e.env | 2 -- board/ti/j721s2/j721s2.env | 2 -- 2 files changed, 4 deletions(-)

  1   2   >