diff options
author | Takahiro Kuwano <Takahiro.Kuwano@infineon.com> | 2023-04-07 08:41:00 +0200 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@linaro.org> | 2023-04-08 08:30:17 +0200 |
commit | 7ab8b810757a32b083c75a61b5638bca82e17a4c (patch) | |
tree | 6f9760ca7d962396bade1c43a456310319f546d9 /usr/gen_initramfs.sh | |
parent | mtd: spi-nor: Extract volatile register offset from SCCR map (diff) | |
download | linux-7ab8b810757a32b083c75a61b5638bca82e17a4c.tar.xz linux-7ab8b810757a32b083c75a61b5638bca82e17a4c.zip |
mtd: spi-nor: sfdp: Add support for SCCR map for multi-chip device
SCCR map for multi-chip devices contains the number of additional dice in
the device and register offset values for each additional dice.
spi_nor_parse_sccr_mc() is added to determine the number of dice and
volatile register offset for each die. The volatile register offset table
may already be allocated and contains offset value for die-0 via SCCR map
parse. So, we should use devm_krealloc() to expand the table with
preserving die-0 offset.
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Link: https://lore.kernel.org/r/89c892d52f8cbddbd14373f6a02db496885ae4f1.1680849425.git.Takahiro.Kuwano@infineon.com
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to 'usr/gen_initramfs.sh')
0 files changed, 0 insertions, 0 deletions