spi: Add MXIC controller driver
authorZhengxun <zhengxunli.mxic@gmail.com>
Wed, 23 Jun 2021 17:15:15 +0000 (17:15 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 25 Jun 2021 15:29:45 +0000 (20:59 +0530)
commit0d7066bce23d3732cd3a59176ccd7a3ee7be9d63
tree0536a3a1b301ba0483c82312e1206474c60e7745
parent67edf2553f15e5148efca213af3f41cef3410680
spi: Add MXIC controller driver

Add a driver for Macronix SPI controller IP.

This patch referred from linux spi-mxic.c. The difference from the
linux version is described here.

1. To adapt uboot spi framework, modify some functions naming.

2. Remove the incompatible functions of Uboot.

3. Add dummy byte recalculattion function to support dummy buswidth
   not align data buswidth operation.(ex: 1-1-4, 1-1-8)

4. Add Octal mode support.

Signed-off-by: Zhengxun <zhengxunli.mxic@gmail.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
[jagan: fixed file permission, comment line, kconfig]
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-mxic.c [new file with mode: 0644]