[PATCH] fs: ubifs: Add support for ZSTD decompression

2024-05-28 Thread Piotr Wojtaszczyk
ZSTD can be a better tradeoff between NAND IO operations and decompression speed giving a better boot time. Signed-off-by: Piotr Wojtaszczyk --- fs/ubifs/ubifs-media.h | 2 ++ fs/ubifs/ubifs.c | 53 -- 2 files changed, 53 insertions(+), 2

[PATCH] fs: ubifs: Add support for ZSTD decompression

2024-04-30 Thread Piotr Wojtaszczyk
Signed-off-by: Piotr Wojtaszczyk --- fs/ubifs/ubifs-media.h | 2 ++ fs/ubifs/ubifs.c | 55 -- 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/fs/ubifs/ubifs-media.h b/fs/ubifs/ubifs-media.h index 2b5b26a01b..299d80f928 100644 --- a

[PATCH] gpio: mcp230xx: Add support for models with SPI interface.

2024-03-13 Thread Piotr Wojtaszczyk
Signed-off-by: Piotr Wojtaszczyk --- drivers/gpio/Kconfig | 3 + drivers/gpio/Makefile| 2 +- drivers/gpio/mcp230xx_gpio.c | 144 ++- 3 files changed, 144 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig

[PATCH v3 1/5] usb: ohci-generic: ignore ENOSYS and ENOTSUPP errors from clk and reset

2024-02-19 Thread Piotr Wojtaszczyk
If a machine doesn't have CONFIG_CLK set the call to clk_get_bulk() returns '-ENOSYS' error which should be handled the same way as '-ENOENT' error. The same applies to reset_get_bulk() and 'ENOTSUPP'. Signed-off-by: Piotr Wojtaszczyk --- Changes for v3: - Rem

[PATCH v2 1/5] usb: ohci-generic: ignore ENOSYS and ENOTSUPP errors from clk and reset

2024-02-19 Thread Piotr Wojtaszczyk
If a machine doesn't have CONFIG_CLK set the call to clk_get_bulk() returns '-ENOSYS' error which should be handled the same way as '-ENOENT' error. The same applies to reset_get_bulk() and 'ENOTSUPP'. Signed-off-by: Piotr Wojtaszczyk --- Changes for v2: - Chan

[PATCH 5/5] usb: lpc32xx: add DM_USB support

2024-01-26 Thread Piotr Wojtaszczyk
The legacy USB driver is modified into UCLASS_PHY which works with drivers/usb/host/ohci-generic.c This brings back USB functionality for LPC32xx. Signed-off-by: Piotr Wojtaszczyk --- arch/arm/dts/lpc3250-ea3250-u-boot.dtsi | 9 +++ arch/arm/dts/lpc32xx-u-boot.dtsi| 4 ++ configs/ea

[PATCH 4/5] lpc32xx: Make XTAL OSC freq configurable, add UART input clock selection

2024-01-26 Thread Piotr Wojtaszczyk
Allow to configure external XTAL OSC or external clock frequency. Add source clock selection for UART, selecting HCLK may be needed for higher clock resolution for specific XTAL OSC and baud rate combinations. HSUART is always driven by PERIPH_CLK. Signed-off-by: Piotr Wojtaszczyk --- arch/arm

[PATCH 3/5] lpc32xx: Build firmware files using binman instead a rule in Makefile

2024-01-26 Thread Piotr Wojtaszczyk
Also fixed rounding up in the header verification function. Previously Makefile was showing the header verification error but it was ignored. Signed-off-by: Piotr Wojtaszczyk --- Makefile | 2 +- arch/arm/Kconfig | 1 + arch/arm/dts/lpc32xx-u

[PATCH 2/5] binman: Add basic 'file_size' and 'int32' entry types

2024-01-26 Thread Piotr Wojtaszczyk
--- /dev/null +++ b/tools/binman/etype/file_size.py @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright 2023 Timesys +# Written by Piotr Wojtaszczyk +# + +from binman.entry import Entry +from dtoc import fdt_util +from u_boot_pylib import tools +import sys + +class Entry_file_siz

[PATCH 1/5] usb: ohci-generic: ignore ENOSYS and ENOTSUPP errors from clk and reset

2024-01-26 Thread Piotr Wojtaszczyk
If a machine doesn't have CONFIG_CLK set the call to clk_get_bulk() returns '-ENOSYS' error which should be handled the same way as '-ENOENT' error. The same applies to reset_get_bulk() and 'ENOTSUPP'. Signed-off-by: Piotr Wojtaszczyk --- drivers/usb/host/