roc-pc-rk3399: Enable SPI Flash
authorJagan Teki <jagan@amarulasolutions.com>
Sat, 21 Dec 2019 07:54:38 +0000 (13:24 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 30 Jan 2020 03:44:01 +0000 (11:44 +0800)
Enable winbond SPI flash for ROC-PC-RK3399 board.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
configs/roc-pc-rk3399_defconfig

index 77d5cf5d3cd61fb5828c7f3e90b6e222dc6bf5b4..574644298112e5b1fab709b9f2871ab67acd2235 100644 (file)
@@ -7,6 +7,10 @@
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
 / {
+       aliases {
+               spi0 = &spi1;
+       };
+
        chosen {
                u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
        };
index 39c3e18ab2686a18eafd4fa669712c55b73447ee..e51197c80c0f5347505a6643ada59e1b26852c42 100644 (file)
@@ -42,6 +42,8 @@ CONFIG_RAM_RK3399_LPDDR4=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYSRESET=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_ROCKCHIP_SPI=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y