]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit7c5f7530ca99580dde7325fe2c4eabeca141c8cf
tree0536a3a1b301ba0483c82312e1206474c60e7745
parent902beb925cb6b5ca8c7ce96913317bad7ad28b34
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]