mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Mark Brown
parent
0b7d9b25e4
commit
e46ee2f07e
@@ -132,6 +132,7 @@
|
||||
#define FLCOMP_C0DEN_16M 0x05
|
||||
#define FLCOMP_C0DEN_32M 0x06
|
||||
#define FLCOMP_C0DEN_64M 0x07
|
||||
#define FLCOMP_C0DEN_128M 0x08
|
||||
|
||||
#define INTEL_SPI_TIMEOUT 5000 /* ms */
|
||||
#define INTEL_SPI_FIFO_SZ 64
|
||||
@@ -1347,7 +1348,12 @@ static int intel_spi_read_desc(struct intel_spi *ispi)
|
||||
case FLCOMP_C0DEN_64M:
|
||||
ispi->chip0_size = SZ_64M;
|
||||
break;
|
||||
case FLCOMP_C0DEN_128M:
|
||||
ispi->chip0_size = SZ_128M;
|
||||
break;
|
||||
default:
|
||||
dev_warn(ispi->dev, "unsupported C0DEN: %#lx\n",
|
||||
flcomp & FLCOMP_C0DEN_MASK);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user