[PATCH] scripts: include: rename printk.h to printf.h

2025-02-05 Thread Jules Maselbas
The include scripts/include/asm-generic/bug.h relied on a printk.h compatible header which is located in the scripts/include/ and was not updated when printk.h was renamed to printf.h. Fixes: d8ea946bcf ("include: rename printk.h to printf.h") Signed-off-by: Jules Maselbas --- scripts/include/{p

Re: [PATCH RFT v3] scripts: define _GNU_SOURCE for all source files

2025-02-05 Thread Jules Maselbas
Tested on alpine linux with musl 1.2.5, and it compiled without issue On Mon Jan 27, 2025 at 8:51 PM CET, Ahmad Fatoum wrote: > musl doesn't define loff_t, unless _GNU_SOURCE is defined, which > we don't do everywhere and glibc didn't mind. > > This led to build errors with musl when code makes it

[PATCH 4/9] ARM: k3: r5: add USB DFU and eMMC boot support

2025-02-05 Thread Sascha Hauer
This patch adds USB DFU and eMMC boot support for the k3 SoCs. DFU mode is entered when the SoC is booted from USB. For continuing the boot we need several binaries (bl31, OP-TEE, barebox, ti-dm firmware), these can be uploaded as distinct files or combined together as a FIP image. This patch also

[PATCH 6/9] mci: am654: parse generic mmc node properties

2025-02-05 Thread Sascha Hauer
Call mci_of_parse_node() to parse generic node properties like max-frequency to lower the maximum allowed frequency. Signed-off-by: Sascha Hauer --- drivers/mci/am654-sdhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mci/am654-sdhci.c b/drivers/mci/am654-sdhci.c index 978764201

[PATCH 9/9] serial: omap: Use ttyS as Linux console name

2025-02-05 Thread Sascha Hauer
Traditionally Linux used ttyO as console name for Omap devices. This has been changed to ttyS in 2014. Since then ttyO gets translated to ttyS by the Kernel. Use ttyS directly to avoid the translation in the Kernel. Signed-off-by: Sascha Hauer --- drivers/serial/serial_ns16550.c | 4 ++-- 1 file

[PATCH] environment: fix free() of unitialized variable

2025-02-05 Thread Sascha Hauer
of_find_path() doesn't initialize the outpath on error. In order to free() it in the error path we have to initialize devpath. Signed-off-by: Sascha Hauer --- drivers/of/barebox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/barebox.c b/drivers/of/barebox.c inde

[PATCH 8/9] ARM: am625-sk: put environment on eMMC when booting from it

2025-02-05 Thread Sascha Hauer
When booting from eMMC put the environment on the eMMC as well. Signed-off-by: Sascha Hauer --- arch/arm/boards/am625-sk/board.c | 5 + arch/arm/dts/k3-am625-sk.dts | 15 +++ 2 files changed, 20 insertions(+) diff --git a/arch/arm/boards/am625-sk/board.c b/arch/arm/boards/a

[PATCH 7/9] ARM: k3: limit eMMC frequency to 25MHz

2025-02-05 Thread Sascha Hauer
The eMMCs on am625 currently only work reliably with 25MHz. Until this issue is sorted out limit them to 25MHz on the affected boards (beagleplay and am625-sk). Signed-off-by: Sascha Hauer --- arch/arm/dts/k3-am625-beagleplay.dts | 4 arch/arm/dts/k3-am625-sk.dts | 4 2 files c

[PATCH 3/9] ARM: k3: do not mount /boot when booting from eMMC

2025-02-05 Thread Sascha Hauer
When booting from eMMC we load the subsequent stages from eMMC boot partitions, so we do not need a boot FAT partition on eMMC. We can use an unpartitioned area in the eMMC user area in this case, so bail out from mounting /boot when eMMC boot is detected. Signed-off-by: Sascha Hauer --- arch/ar

[PATCH 1/9] ARM: k3: Add function to enable 32k crystal

2025-02-05 Thread Sascha Hauer
The external 32k crystal is optional and by default LFOSC0 is sourced by a RC oscillator. This adds a function to be called by board code when the 32k crystal is present and shall be used to source LFOSC0 from the crystal. Signed-off-by: Sascha Hauer --- arch/arm/mach-k3/common.c | 20 ++

[PATCH 0/9] ARM: K3 updates

2025-02-05 Thread Sascha Hauer
change-id: 20250205-k3-emmc-eaa3df9f3ffd Best regards, -- Sascha Hauer

[PATCH 2/9] ARM: k3: add function to detect eMMC boot

2025-02-05 Thread Sascha Hauer
Booting from eMMC on K3 SoCs requires some special handling. With SD card boot we put the environment in the boot FAT partition whereas with eMMC boot we want to put it into the raw eMMC device. Also with eMMC boot we have to load the subsequent stages from the eMMC boot partitions and from the boo

[PATCH 5/9] ARM: am625-sk: enable 32k crystal

2025-02-05 Thread Sascha Hauer
The am625-sk board has the 32k crystal equipped. Enable it to source the RTC from the crystal rather than from the imprecise RC oscillator. Signed-off-by: Sascha Hauer --- arch/arm/boards/am625-sk/Makefile | 1 + arch/arm/boards/am625-sk/board.c | 30 ++ 2 files cha