From 58e9502e6d98976e2df8ee7d9d8e61ce9250ad7b Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Thu, 10 Jan 2019 11:30:06 +0200 Subject: [PATCH 1/3] arm: sunxi: Enable SPL/SPI boot for Olinuxino Lime2-eMMC boards Starting from revision K the Olimex-Lime2-eMMC boards include eMMC 5.x chip. Unfortunately, the internal brom in the A20 cannot reliably initialize those chips resulting in random boot failures on those boards. To overcome this, all the latest Lime2-eMMC boards are populated with 16MB SPI flash and therefore enable support for SPI SPL boot. For now, SPI flash can be managed using sunxi-fel's spiflash tools. Signed-off-by: Priit Laes Reviewed-by: Jagan Teki --- configs/A20-OLinuXino-Lime2-eMMC_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/A20-OLinuXino-Lime2-eMMC_defconfig b/configs/A20-OLinuXino-Lime2-eMMC_defconfig index 7863a4e8e0..1010f41325 100644 --- a/configs/A20-OLinuXino-Lime2-eMMC_defconfig +++ b/configs/A20-OLinuXino-Lime2-eMMC_defconfig @@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_SUNXI=y CONFIG_SPL=y +CONFIG_SPL_SPI_SUNXI=y CONFIG_MACH_SUN7I=y CONFIG_DRAM_CLK=384 CONFIG_MMC0_CD_PIN="PH1" From 9b83787c0c3e814638ffcb2199b8ac17cea74e36 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 13 Jan 2019 17:41:47 +0100 Subject: [PATCH 2/3] sun50i: h5: Orange Pi Zero Plus: Fix SdCard detection The Detection pin is at PF6 and not at PH13 like defined before. I checked the schematics and now I am am not seeing this error message any more: Loading Environment from FAT... Card did not respond to voltage select! CONFIG_MMC_SUNXI_SLOT_EXTRA is also not needed because the second MCC slot is for the Wifi card. Fixes: 76d69eb01de ("sun50i: h5: Add initial Orange Pi Zero Plus support") Signed-off-by: Hauke Mehrtens Reviewed-by: Jagan Teki --- configs/orangepi_zero_plus_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/orangepi_zero_plus_defconfig b/configs/orangepi_zero_plus_defconfig index a2cfc7f59a..105d8f3251 100644 --- a/configs/orangepi_zero_plus_defconfig +++ b/configs/orangepi_zero_plus_defconfig @@ -4,8 +4,7 @@ CONFIG_SPL=y CONFIG_MACH_SUN50I_H5=y CONFIG_DRAM_CLK=624 CONFIG_DRAM_ZQ=3881977 -CONFIG_MMC0_CD_PIN="PH13" -CONFIG_MMC_SUNXI_SLOT_EXTRA=2 +CONFIG_MMC0_CD_PIN="PF6" CONFIG_NR_DRAM_BANKS=1 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set # CONFIG_CMD_FLASH is not set From d065a6c00a63c2f441bb8b5d31407c5e10da9612 Mon Sep 17 00:00:00 2001 From: Tomas Novotny Date: Tue, 5 Feb 2019 14:57:07 +0100 Subject: [PATCH 3/3] configs: tbs_a711: lower dram frequency The dram chip on the tablet was changed. The new one requires a lower frequency, so change it. Frequency 564MHz was also stable in the tests, but use slightly lower one to be on a safe side. Signed-off-by: Tomas Novotny [jagan: add MHz in commit message] Signed-off-by: Jagan Teki Reviewed-by: Jagan Teki --- configs/tbs_a711_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/tbs_a711_defconfig b/configs/tbs_a711_defconfig index 253ef5cce0..007ff89348 100644 --- a/configs/tbs_a711_defconfig +++ b/configs/tbs_a711_defconfig @@ -3,7 +3,7 @@ CONFIG_ARCH_SUNXI=y CONFIG_SPL=y CONFIG_MACH_SUN8I_A83T=y CONFIG_DRAM_TYPE=7 -CONFIG_DRAM_CLK=648 +CONFIG_DRAM_CLK=552 CONFIG_DRAM_ZQ=15355 CONFIG_DRAM_ODT_EN=y CONFIG_MMC_SUNXI_SLOT_EXTRA=2