Commit b330eeb8 authored by Icenowy Zheng's avatar Icenowy Zheng
Browse files

spi: add support for V3s SoC



The Allwinner V3s SoC have the same SPI0 pinmux configuration, SPI clock
configuration and SPI controller (base address and the controller) with
H3.

Add spiflash support for it.
Signed-off-by: default avatarIcenowy Zheng <icenowy@aosc.io>
parent 613e4bae
...@@ -154,6 +154,7 @@ static bool spi0_init(feldev_handle *dev) ...@@ -154,6 +154,7 @@ static bool spi0_init(feldev_handle *dev)
switch (soc_info->soc_id) { switch (soc_info->soc_id) {
case 0x1625: /* Allwinner A13 */ case 0x1625: /* Allwinner A13 */
case 0x1680: /* Allwinner H3 */ case 0x1680: /* Allwinner H3 */
case 0x1681: /* Allwinner V3s */
case 0x1718: /* Allwinner H5 */ case 0x1718: /* Allwinner H5 */
gpio_set_cfgpin(dev, PC, 0, SUNXI_GPC_SPI0); gpio_set_cfgpin(dev, PC, 0, SUNXI_GPC_SPI0);
gpio_set_cfgpin(dev, PC, 1, SUNXI_GPC_SPI0); gpio_set_cfgpin(dev, PC, 1, SUNXI_GPC_SPI0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment