Re: [PATCH v1] common/memsize.c: Fix get_ram_size() when cache is enabled

2023-05-28 Thread Francesco Dolcini
On Fri, May 26, 2023 at 12:15:10PM -0400, Tom Rini wrote: > On Thu, May 25, 2023 at 03:01:13PM +0200, Francesco Dolcini wrote: > > > From: Emanuele Ghidoli > > > > Ensure that every write is flushed to memory and afterward reads are > > from memory. > > Since the algorithm rely on the fact that

Re: [PATCH v6 1/3] Move bootorder and bootoption apis to lib

2023-05-28 Thread Heinrich Schuchardt
On 5/26/23 23:36, Raymond Mao wrote: Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr Signed-off-by: Raymond Mao Reviewed-by: Heinrich Schuchardt --- Changes in v3 - Split the patch into moving and renaming functions and individual p

Re: [PATCH v6 2/8] efi_loader: store firmware version into FmpState variable

2023-05-28 Thread Heinrich Schuchardt
On 5/19/23 12:32, Masahisa Kojima wrote: Firmware version management is not implemented in the current FMP protocol. EDK II reference implementation capsule generation script inserts the FMP Payload Header right before the payload, FMP Payload Header contains the firmware version and lowest suppo

Re: [PATCH v6 0/8] FMP versioning support

2023-05-28 Thread Heinrich Schuchardt
On 5/19/23 12:32, Masahisa Kojima wrote: Firmware version management is not implemented in the current FMP implementation. This series aims to add the versioning support in FMP. Currently, there is no way to know the current running firmware version through the EFI interface. FMP->GetImageInfo()

[PATCH 1/2] rockchip: rk3568: Add support for FriendlyARM NanoPi R5S

2023-05-28 Thread Tianling Shen
FriendlyElec Nanopi R5S is an open-sourced mini IoT gateway device. Board Specifications - Rockchip RK3568 - 2 or 4GB LPDDR4X - 8GB or 16GB eMMC, SD card slot - GbE LAN (Native) - 2x 2.5G LAN (PCIe) - M.2 Connector - HDMI 2.0, MIPI DSI/CSI - 2xUSB 3.0 Host - USB Type C PD, 5V/9V/12V - GPIO: 12-pin

[PATCH 2/2] rockchip: rk3568: Add support for FriendlyARM NanoPi R5C

2023-05-28 Thread Tianling Shen
FriendlyARM NanoPi R5C is an open-sourced mini IoT gateway device. Specification: - Rockchip RK3568 - 1/4GB LPDDR4X RAM - 8/32GB eMMC - SD card slot - M.2 Connector - 2x USB 3.0 Port - 2x 2500 Base-T (PCIe, r8125) - HDMI 2.0 - MIPI DSI/CSI - USB Type C 5V The device tree is taken from kernel v6.4

Re: [PATCH 2/2] rockchip: rk3568: Add support for FriendlyARM NanoPi R5C

2023-05-28 Thread Tianling Shen
On Sun, May 28, 2023 at 5:40 PM Tianling Shen wrote: > > FriendlyARM NanoPi R5C is an open-sourced mini IoT gateway device. > > Specification: > - Rockchip RK3568 > - 1/4GB LPDDR4X RAM > - 8/32GB eMMC > - SD card slot > - M.2 Connector > - 2x USB 3.0 Port > - 2x 2500 Base-T (PCIe, r8125) > - HDMI

CONFIG_SPL_BUILD seems to be not defined in my u-boot-spl program.. why?

2023-05-28 Thread Chan Kim
Dear u-boot experts, While analyzing u-boot-spl program on qemu arm64 virtual machine, I'm seems the program counter skips part of a code and it seems the reason is that CONFIG_SPL_BUILD is not defined. But I'm running spl/u-boot-spl and the spl/u-boot.cfg file contains 'CONFIG_SPL_BUILD=1'. In wh

Re: [PATCH 4/8] m68k: use asm-generic/unaligned.h

2023-05-28 Thread Angelo Dureghello
Hi, On 22/05/23 2:22 PM, Jens Wiklander wrote: M68k essentially duplicates the content of asm-generic/unaligned.h, with an exception for non-Coldfire configurations. Coldfire configurations are apparently able to do unaligned accesses. But in an attempt to clean up and handle unaligned accesses

[PATCH 2/5] imx8m: imx8mm-beacon: Migrate README to rst

2023-05-28 Thread Adam Ford
Since U-Boot builds HTML documentation, migrate the contents of the README file to an rst file which can generate the proper outputs. Signed-off-by: Adam Ford --- board/beacon/imx8mm/README | 37 doc/board/beacon/beacon-imx8mm.rst | 55 ++

[PATCH 1/5] imx: imx8mm-beacon: Move environment definition to env file

2023-05-28 Thread Adam Ford
Instead of cluttering up a header file with a bunch of defines, move the default environmental variables to a file called imx8mm_beacon.env and reference it from the defconfig. Signed-off-by: Adam Ford --- board/beacon/imx8mm/imx8mm_beacon.env | 19 ++ configs/imx8mm_beacon_defconfig

[PATCH 5/5] imx8m: beacon: Update MAINTAINER file to include beacon rst files

2023-05-28 Thread Adam Ford
With variou README files migrated to rst, add them to the MAINTAINER file for Beacon. Signed-off-by: Adam Ford --- board/beacon/imx8mm/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/beacon/imx8mm/MAINTAINERS b/board/beacon/imx8mm/MAINTAINERS index e887db20a2..d48ba8605b 10

[PATCH 4/5] imx8m: imx8mn-beacon: Migrate README to rst

2023-05-28 Thread Adam Ford
Since U-Boot builds HTML documentation, migrate the contents of the README file to an rst file which can generate the proper outputs. Signed-off-by: Adam Ford --- board/beacon/imx8mn/README | 38 - doc/board/beacon/beacon-imx8mn.rst | 53 ++

[PATCH 3/5] imx: imx8mn-beacon: Move environment definition to env file

2023-05-28 Thread Adam Ford
Instead of cluttering up a header file with a bunch of defines, move the default environmental variables to a file called imx8mn_beacon.env and reference it from the defconfigs. Signed-off-by: Adam Ford --- board/beacon/imx8mn/imx8mn_beacon.env | 25 +++ configs/imx8mn_beacon_2g_defconfi

Re: Issues with bcm2835-host: let firmware manage the clock divisor

2023-05-28 Thread Nuno Gonçalves
On Tue, May 23, 2023 at 1:16 PM Stefan Wahren wrote: > Because we stuck in this discussion, can you please provide more > information to reproduce this issue? > > What is the exact behavior based on debug UART and LED when Linux fails > to start from eMMC (timeout, SoC lockup, ...)? > Kernel say

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-28 Thread Bin Meng
On Sat, May 27, 2023 at 9:41 PM Yixun Lan wrote: > > Hi Guo, Jisheng: > > On 11:36 Sat 27 May , Guo Ren wrote: > > On Fri, May 26, 2023 at 8:41 PM Yixun Lan wrote: > > > > > > Add support for Sipeed's Lichee Pi 4A board which based on > > > T-HEAD's TH1520 SoC, only minimal device tree and se

Re: [RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-28 Thread Guo Ren
On Sat, May 27, 2023 at 5:17 PM Yixun Lan wrote: > > Hi Guo: > > On 09:43 Sat 27 May , Guo Ren wrote: > > Sorry, why we need dts here? If we put dts here, we could delete the > > one in Linux. > No, I think it's more than a historical reason for why we have two dts > both in u-boot and kernel.

Re: [PATCH] ARM: stm32: Power cycle Buck3 in reset on DHSOM

2023-05-28 Thread Marek Vasut
On 5/25/23 10:08, Patrick DELAUNAY wrote: Hi Marek, Hello Patrick, sorry for the abysmal delay. On 5/18/23 00:02, Marek Vasut wrote: In case the DHSOM is in suspend state and either reset button is pushed or IWDG2 triggers a watchdog reset, then DRAM initialization could fail as follows:  

Re: [PATCH] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-28 Thread Marek Vasut
On 5/25/23 13:57, Patrick DELAUNAY wrote: Hi Hello Patrick, +    /* Ping IWDG2 and ACK pretimer IRQ */ +    if (iwdg2_wake) { +    writel(IWDG_KR_RELOAD_KEY, STM32_IWDG2_BASE + IWDG_KR); +    writel(IWDG_EWCR_EWIC, STM32_IWDG2_BASE + IWDG_EWCR); +    } +    }      

Re: [RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-28 Thread Yixun Lan
Hi Guo: see my comment below. On 09:19 Mon 29 May , Guo Ren wrote: > On Sat, May 27, 2023 at 5:17 PM Yixun Lan wrote: > > > > Hi Guo: > > > > On 09:43 Sat 27 May , Guo Ren wrote: > > > Sorry, why we need dts here? If we put dts here, we could delete the > > > one in Linux. > > No, I thin

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-28 Thread Yixun Lan
Hi Bin: On 09:12 Mon 29 May , Bin Meng wrote: > On Sat, May 27, 2023 at 9:41 PM Yixun Lan wrote: > > > > Hi Guo, Jisheng: > > > > On 11:36 Sat 27 May , Guo Ren wrote: > > > On Fri, May 26, 2023 at 8:41 PM Yixun Lan wrote: > > > > > > > > Add support for Sipeed's Lichee Pi 4A board which

Re: [RESEND PATCH v1 1/4] riscv: t-head: licheepi4a: initial support added

2023-05-28 Thread Bin Meng
On Mon, May 29, 2023 at 11:10 AM Yixun Lan wrote: > > Hi Bin: > > On 09:12 Mon 29 May , Bin Meng wrote: > > On Sat, May 27, 2023 at 9:41 PM Yixun Lan wrote: > > > > > > Hi Guo, Jisheng: > > > > > > On 11:36 Sat 27 May , Guo Ren wrote: > > > > On Fri, May 26, 2023 at 8:41 PM Yixun Lan wro

[PATCH v2 2/2] rockchip: rk3568: Add support for FriendlyARM NanoPi R5C

2023-05-28 Thread Tianling Shen
FriendlyARM NanoPi R5C is an open-sourced mini IoT gateway device. Specification: - Rockchip RK3568 - 1/4GB LPDDR4X RAM - 8/32GB eMMC - SD card slot - M.2 Connector - 2x USB 3.0 Port - 2x 2500 Base-T (PCIe, r8125) - HDMI 2.0 - MIPI DSI/CSI - USB Type C 5V The device tree is taken from kernel v6.4

[PATCH v2 1/2] rockchip: rk3568: Add support for FriendlyARM NanoPi R5S

2023-05-28 Thread Tianling Shen
FriendlyElec Nanopi R5S is an open-sourced mini IoT gateway device. Board Specifications - Rockchip RK3568 - 2 or 4GB LPDDR4X - 8GB or 16GB eMMC, SD card slot - GbE LAN (Native) - 2x 2.5G LAN (PCIe) - M.2 Connector - HDMI 2.0, MIPI DSI/CSI - 2xUSB 3.0 Host - USB Type C PD, 5V/9V/12V - GPIO: 12-pin

Re: [RESEND PATCH v1 2/4] riscv: dts: t-head: Add basic device tree for Sipeed Lichee PI 4A board

2023-05-28 Thread Guo Ren
On Mon, May 29, 2023 at 11:01 AM Yixun Lan wrote: > > Hi Guo: > > see my comment below. > > On 09:19 Mon 29 May , Guo Ren wrote: > > On Sat, May 27, 2023 at 5:17 PM Yixun Lan wrote: > > > > > > Hi Guo: > > > > > > On 09:43 Sat 27 May , Guo Ren wrote: > > > > Sorry, why we need dts here? I