aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2019-10-16 19:19:25 +0530
committerJagan Teki <jagan@amarulasolutions.com>2019-10-25 00:48:31 +0530
commitf8cb77ffbac5ca01b6372bae413f4c205edf089d (patch)
treede2ade2f010224d8f3e399ab64a55e5283223c3c
parent7945caf22c44a9e394ef535a27b502ec3f3ba5ed (diff)
downloadu-boot-f8cb77ffbac5ca01b6372bae413f4c205edf089d.zip
u-boot-f8cb77ffbac5ca01b6372bae413f4c205edf089d.tar.gz
u-boot-f8cb77ffbac5ca01b6372bae413f4c205edf089d.tar.bz2
configs: sopine-baseboard: Enable SPI-FLASH
SoPine has winbond SPI-FLASH, so enable the same in defconfig and add aliases for spi0 in -u-boot.dtsi Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
-rw-r--r--arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi12
-rw-r--r--configs/sopine_baseboard_defconfig1
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi b/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi
new file mode 100644
index 0000000..02b1ae0
--- /dev/null
+++ b/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com>
+ */
+
+#include "sunxi-u-boot.dtsi"
+
+/ {
+ aliases {
+ spi0 = &spi0;
+ };
+};
diff --git a/configs/sopine_baseboard_defconfig b/configs/sopine_baseboard_defconfig
index 5833234..c9123fd 100644
--- a/configs/sopine_baseboard_defconfig
+++ b/configs/sopine_baseboard_defconfig
@@ -10,6 +10,7 @@ CONFIG_DRAM_ZQ=3881949
CONFIG_MMC0_CD_PIN=""
CONFIG_MMC_SUNXI_SLOT_EXTRA=2
CONFIG_SPL_SPI_SUNXI=y
+CONFIG_SPI_FLASH_WINBOND=y
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
CONFIG_USE_PREBOOT=y
CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000