diff options
| author | Mark Brown <broonie@kernel.org> | 2025-03-04 12:34:18 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-03-04 12:34:18 +0000 |
| commit | 5fac6c2785f95ddd73db33289dcd3cd5a68be226 (patch) | |
| tree | 676afcf6e597c007e156edb8013ea9bc5d377753 /lib/stackinit_kunit.c | |
| parent | 7304d1909080ef0c9da703500a97f46c98393fcd (diff) | |
| parent | 79b8a705e26c08f8f09dd55f1dd56f2375973d2d (diff) | |
| download | linux-5fac6c2785f95ddd73db33289dcd3cd5a68be226.tar.gz linux-5fac6c2785f95ddd73db33289dcd3cd5a68be226.zip | |
Add STM32MP25 SPI NOR support
Merge series from patrice.chotard@foss.st.com:
This series adds SPI NOR support for STM32MP25 SoCs from STMicroelectronics.
On STM32MP25 SoCs family, an Octo Memory Manager block manages the muxing,
the memory area split, the chip select override and the time constraint
between its 2 Octo SPI children.
Due to these depedencies, this series adds support for:
- Octo Memory Manager driver (not applied for SPI).
- Octo SPI driver.
- yaml schema for Octo Memory Manager and Octo SPI drivers.
The device tree files adds Octo Memory Manager and its 2 associated Octo
SPI chidren in stm32mp251.dtsi and adds SPI NOR support in stm32mp257f-ev1
board.
Diffstat (limited to 'lib/stackinit_kunit.c')
| -rw-r--r-- | lib/stackinit_kunit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stackinit_kunit.c b/lib/stackinit_kunit.c index fbe910c9c825..135322592faf 100644 --- a/lib/stackinit_kunit.c +++ b/lib/stackinit_kunit.c @@ -75,8 +75,10 @@ static bool stackinit_range_contains(char *haystack_start, size_t haystack_size, */ #ifdef CONFIG_M68K #define FILL_SIZE_STRING 8 +#define FILL_SIZE_ARRAY 2 #else #define FILL_SIZE_STRING 16 +#define FILL_SIZE_ARRAY 8 #endif #define INIT_CLONE_SCALAR /**/ @@ -345,11 +347,11 @@ union test_small_start { short three; unsigned long four; struct big_struct { - unsigned long array[8]; + unsigned long array[FILL_SIZE_ARRAY]; } big; }; -/* Mismatched sizes, with one and two being small */ +/* Mismatched sizes, with three and four being small */ union test_small_end { short one; unsigned long two; |
