[PATCH] mci: arasan: rework register_sdclk

2024-04-08 Thread Steffen Trumtrar
ype, u32 value) +{ + return -ENOSYS; +} +static inline int zynqmp_pm_sd_dll_reset(u32 node_id, u32 type) +{ + return -ENOSYS; +} +#endif int zynqmp_pm_write_ggs(u32 index, u32 value); int zynqmp_pm_read_ggs(u32 index, u32 *value); --- base-commit: aa03dc194997eabf157118b76b0ab5ef88a9faf

[PATCH] mci: sdhci: fix dma mapping

2024-04-08 Thread Marco Felsch
In case of MMC_DATA_READ the dest address should be used and in case of MMC_DATA_WRITE the src address should be used. We had no issues for now since both dest and src point to same address due to the union. Signed-off-by: Marco Felsch --- drivers/mci/sdhci.c | 4 ++-- 1 file changed, 2

[PATCH v2 1/2] bootm: replace CONFIG_BOOTM_FORCE_SIGNED_IMAGES with helper

2024-04-08 Thread Marco Felsch
From: Ahmad Fatoum In preparation for allowing even CONFIG_BOOTM_FORCE_SIGNED_IMAGES=n configurations to force boot of only signed images, replace direct use of IS_ENABLED(CONFIG_BOOTM_FORCE_SIGNED_IMAGES) with a helper that queries a static variable that can be forced at runtime in a follow-up

[PATCH v2 2/2] bootm: add support for dynamically forcing signature verification

2024-04-08 Thread Marco Felsch
From: Ahmad Fatoum So far, secure booting systems statically configured CONFIG_BOOTM_FORCE_SIGNED_IMAGES=y to restrict bootm to signed images. This remains the recommended way, but some systems require the ability to decide at runtime whether to enforce secure boot or to disable it, e.g. after

Re: [PATCH 2/2] bootm: always apply strict signed FIT boot rules

2024-04-08 Thread Marco Felsch
On 24-04-08, Ahmad Fatoum wrote: > Hello Marco, > > On 08.04.24 09:36, Marco Felsch wrote: > > We do use an strict boot rule if the CONFIG_BOOTM_FORCE_SIGNED_IMAGES > > switch was enabled. Instead of only checking the compile time switch we > > should check the runtime configurable

Re: [PATCH 1/2] bootm: don't allow bootm_set_verify_mode if BOOTM_FORCE_SIGNED_IMAGES is enabled

2024-04-08 Thread Marco Felsch
On 24-04-08, Ahmad Fatoum wrote: > Hello Marco, > > On 08.04.24 09:36, Marco Felsch wrote: > > The only allowed value for bootm_verify_mode is BOOTM_VERIFY_SIGNATURE > > if CONFIG_BOOTM_FORCE_SIGNED_IMAGES is enabled. This is set via the > > bootm_init() initcall. All further attempts to modify

Re: [PATCH 2/2] bootm: always apply strict signed FIT boot rules

2024-04-08 Thread Ahmad Fatoum
Hello Marco, On 08.04.24 09:36, Marco Felsch wrote: > We do use an strict boot rule if the CONFIG_BOOTM_FORCE_SIGNED_IMAGES > switch was enabled. Instead of only checking the compile time switch we > should check the runtime configurable $global.bootm.verify param too > while applying the rule. >

Re: [PATCH 1/2] bootm: don't allow bootm_set_verify_mode if BOOTM_FORCE_SIGNED_IMAGES is enabled

2024-04-08 Thread Ahmad Fatoum
Hello Marco, On 08.04.24 09:36, Marco Felsch wrote: > The only allowed value for bootm_verify_mode is BOOTM_VERIFY_SIGNATURE > if CONFIG_BOOTM_FORCE_SIGNED_IMAGES is enabled. This is set via the > bootm_init() initcall. All further attempts to modify this variable > should be prevented. > >

[PATCH 2/2] bootm: always apply strict signed FIT boot rules

2024-04-08 Thread Marco Felsch
We do use an strict boot rule if the CONFIG_BOOTM_FORCE_SIGNED_IMAGES switch was enabled. Instead of only checking the compile time switch we should check the runtime configurable $global.bootm.verify param too while applying the rule. Therefore make use of the bootm_get_verify_mode() to query

[PATCH 1/2] bootm: don't allow bootm_set_verify_mode if BOOTM_FORCE_SIGNED_IMAGES is enabled

2024-04-08 Thread Marco Felsch
The only allowed value for bootm_verify_mode is BOOTM_VERIFY_SIGNATURE if CONFIG_BOOTM_FORCE_SIGNED_IMAGES is enabled. This is set via the bootm_init() initcall. All further attempts to modify this variable should be prevented. Signed-off-by: Marco Felsch --- common/bootm.c | 5 + 1 file

Re: [PATCH] arm: mecsbc: fixup /regulator-sd device tree node

2024-04-08 Thread Sascha Hauer
On Fri, 05 Apr 2024 12:12:50 +0200, Sascha Hauer wrote: > The MECSBC prototype board has a bug which makes the 1.8V SD mode > unusable. Add a fixup which sets the regulator-min-microvolt property of > the SD regulator to 3.3V to prevent the Kernel from going into 1.8V. > > Applied, thanks!

Re: [PATCH 2/4] common: add wolfvision board code library

2024-04-08 Thread Sascha Hauer
On Fri, Apr 05, 2024 at 04:04:43PM +0200, Michael Riesch wrote: > Add board code library for all WolfVision boards. > > Signed-off-by: Michael Riesch > --- > common/boards/Kconfig | 3 + > common/boards/Makefile | 1 + > common/boards/wolfvision/Makefile | 2 + >