spi: intel: Add support for second flash chip
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 16 Aug 2022 13:08:18 +0000 (16:08 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 22 Aug 2022 13:07:29 +0000 (14:07 +0100)
commit3f03c618bebb024bf8770a74480a9416c847ce53
tree5dabd56916081bb2b45dc1867d8f632bbe70c170
parent51e99de583697cc073ef8888690675b07fe8ef3c
spi: intel: Add support for second flash chip

Intel SPI flash controller has been supporting two chip selects long
time already even if the most common configuration is to have a single
flash chip for the BIOS and related data. This adds support for the
second chip select if we find out that there are two flash components
(this information is available in the mandatory flash descriptor on the
first chip). The second chip is exposed as is without any partition
information.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20220816130818.89600-1-mika.westerberg@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-intel.c