From patchwork Thu Jan 10 09:30:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priit Laes X-Patchwork-Id: 1022824 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=plaes.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=plaes.org header.i=@plaes.org header.b="jqdK3Y6C"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43b11p3Kg6z9sMM for ; Thu, 10 Jan 2019 20:30:22 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 29A2AC2209B; Thu, 10 Jan 2019 09:30:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 198A1C21FD8; Thu, 10 Jan 2019 09:30:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C285DC21FD8; Thu, 10 Jan 2019 09:30:14 +0000 (UTC) Received: from plaes.org (plaes.org [188.166.43.21]) by lists.denx.de (Postfix) with ESMTPS id 5F211C21F8A for ; Thu, 10 Jan 2019 09:30:14 +0000 (UTC) Received: from localhost (unknown [IPv6:2001:bb8:4008:ff:21a:64ff:fe97:f62]) by plaes.org (Postfix) with ESMTPSA id 13BC8402DF; Thu, 10 Jan 2019 09:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=plaes.org; s=mail; t=1547112614; bh=9BI/s7D7O+wV/YOGb1Qw4deeoM/5Km6BpM3wLoIFK1w=; h=From:To:Cc:Subject:Date:From; b=jqdK3Y6CFLVHbhHDzGEArvm5EQ8hMq0XBwzq04p5BrjVy6V8sXz9zpUPgm+ek5ejS c9ASY3Cs+RgFsKBnaqKY1HwBRl5Y9+sz3OGo7QmHNG5XHpTguJa53l2m0dmOc/ma9l wkwDADpzOCJCJNrMU1dB2/QHCBL6I0A3G9VKg6bKquYcIowShlw2UprRdeA+1j4KSj W7LAeZPut1iloLG9YGTnzmBZ133yj6mRF13O1Vf/1NgmFRY0ROCvS/b48fBpihGV+K aMnwwOZHaO8MGnPzLhSavJlWK1ip4r8Banurt+PC+nXrIAnIrgLPlqRY+RJAuLFdPp BoTVcai5kWVwA== From: Priit Laes To: Olliver Schinagl , u-boot@lists.denx.de, Jagan Teki , Maxime Ripard , linux-sunxi@googlegroups.com Date: Thu, 10 Jan 2019 11:30:06 +0200 Message-Id: <20190110093006.11728-1-plaes@plaes.org> X-Mailer: git-send-email 2.11.0 Cc: Priit Laes Subject: [U-Boot] [PATCH] arm: sunxi: Enable SPL/SPI boot for Olinuxino Lime2-eMMC boards X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Priit Laes 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 --- 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 d37dc2906a..ac6213e364 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"