]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: cadence_qspi: Select flash subnode at runtime
authorUdit Kumar <u-kumar1@ti.com>
Tue, 12 Sep 2023 09:50:35 +0000 (15:20 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Sat, 9 Dec 2023 11:13:00 +0000 (16:43 +0530)
commitc77efca2834f397a747c5a4eda18cd0f2b9bd8c5
tree242bdb2b05073f5fd8ccc6f9b0e5aa55aaf84a06
parenta08f7de39d62c659e651f1c6baaf9f9304447345
spi: cadence_qspi: Select flash subnode at runtime

Currently spi driver gets flash parameter from first subnode.

Few boards have more than one flash with different parameters
and selection of flash is done by on board switch settings.
In such case, uboot needs to be recompiled with updated
device tree to align with board switch settings.

This patch allows to select flash node at runtime.

Boards those are supporting multiple flashes
needs to implement cadence_qspi_get_subnode function and return correct
flash node.

Cc: Apurva Nandan <a-nandan@ti.com>
Signed-off-by: Udit Kumar <u-kumar1@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi.h