Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: intel: Add support for 128M component density

With the recent hardware the flash component density can be increased to
128M. Update the driver to support this. While there log a warning if we
encounter an unsupported value in this field.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://patch.msgid.link/20251020145415.3377022-2-mika.westerberg@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Mika Westerberg and committed by
Mark Brown
e46ee2f0 0b7d9b25

+6
+6
drivers/spi/spi-intel.c
··· 132 132 #define FLCOMP_C0DEN_16M 0x05 133 133 #define FLCOMP_C0DEN_32M 0x06 134 134 #define FLCOMP_C0DEN_64M 0x07 135 + #define FLCOMP_C0DEN_128M 0x08 135 136 136 137 #define INTEL_SPI_TIMEOUT 5000 /* ms */ 137 138 #define INTEL_SPI_FIFO_SZ 64 ··· 1348 1347 case FLCOMP_C0DEN_64M: 1349 1348 ispi->chip0_size = SZ_64M; 1350 1349 break; 1350 + case FLCOMP_C0DEN_128M: 1351 + ispi->chip0_size = SZ_128M; 1352 + break; 1351 1353 default: 1354 + dev_warn(ispi->dev, "unsupported C0DEN: %#lx\n", 1355 + flcomp & FLCOMP_C0DEN_MASK); 1352 1356 return -EINVAL; 1353 1357 } 1354 1358