spi: Introduce setup_for_spinand()
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 7 Apr 2025 20:01:54 +0000 (22:01 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 17 Apr 2025 01:57:19 +0000 (19:57 -0600)
commitef45b9c395f92d9239d6c363b1f5a89f6a53f2e6
treea4c134806236664831cd3d23c5ca01632f22aa16
parent225d1ec702b5092cc514932378e810e5e9e92bf7
spi: Introduce setup_for_spinand()

A common device attached to SPI are SPI NAND and some device might
require to have info on the attached NAND to know the flash page size
and spare size.

To support this, introduce setup_for_spinand() that pass the attached
spinand info from manufacturer.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
[trini: Switch to forward declaration of struct spinand_info]
Signed-off-by: Tom Rini <trini@konsulko.com>
include/spi.h