From patchwork Mon Mar 6 08:05:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 735624 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vcCHS1FHsz9s83 for ; Mon, 6 Mar 2017 19:14:12 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id DCA95C21D88; Mon, 6 Mar 2017 08:07:51 +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=none 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 457C3C21DBA; Mon, 6 Mar 2017 08:05:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AED43C21C32; Mon, 6 Mar 2017 08:05:31 +0000 (UTC) Received: from wens.csie.org (mirror2.csie.ntu.edu.tw [140.112.30.76]) by lists.denx.de (Postfix) with ESMTPS id 92601C21C39 for ; Mon, 6 Mar 2017 08:05:27 +0000 (UTC) Received: by wens.csie.org (Postfix, from userid 1000) id E8ABF5FD86; Mon, 6 Mar 2017 16:05:19 +0800 (CST) From: Chen-Yu Tsai To: u-boot@lists.denx.de Date: Mon, 6 Mar 2017 16:05:12 +0800 Message-Id: <20170306080518.8487-8-wens@csie.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170306080518.8487-1-wens@csie.org> References: <20170306080518.8487-1-wens@csie.org> Cc: Jagan Teki , linux-sunxi@googlegroups.com, Maxime Ripard Subject: [U-Boot] [PATCH v2 07/13] sunxi: Provide defaults for R40 DRAM settings 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" These values were taken from the Banana Pi M2 Ultra fex file found in the released vendor BSP. This is the only publicly available R40 device at the time of this writing. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- board/sunxi/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index b7674fc2e7ec..be9f6922fa2f 100644 --- a/board/sunxi/Kconfig +++ b/board/sunxi/Kconfig @@ -201,6 +201,7 @@ config DRAM_TYPE config DRAM_CLK int "sunxi dram clock speed" default 792 if MACH_SUN9I + default 648 if MACH_SUN8I_R40 default 312 if MACH_SUN6I || MACH_SUN8I default 360 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I default 672 if MACH_SUN50I @@ -222,6 +223,7 @@ config DRAM_ZQ int "sunxi dram zq value" default 123 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I default 127 if MACH_SUN7I + default 3881979 if MACH_SUN8I_R40 default 4145117 if MACH_SUN9I default 3881915 if MACH_SUN50I ---help--- @@ -231,6 +233,7 @@ config DRAM_ODT_EN bool "sunxi dram odt enable" default n if !MACH_SUN8I_A23 default y if MACH_SUN8I_A23 + default y if MACH_SUN8I_R40 default y if MACH_SUN50I ---help--- Select this to enable dram odt (on die termination).