Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C41F8C433EF for ; Thu, 2 Dec 2021 23:58:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8C59083094; Fri, 3 Dec 2021 00:58:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="bh7Z+8O3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77FE483094; Fri, 3 Dec 2021 00:58:02 +0100 (CET) Received: from smtpweb146.aruba.it (smtpweb146.aruba.it [62.149.158.146]) by phobos.denx.de (Postfix) with ESMTP id 4A5C883094 for ; Fri, 3 Dec 2021 00:57:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from localhost.localdomain ([146.241.138.59]) by Aruba Outgoing Smtp with ESMTPSA id svxcmhgb3rmmOsvxemQOuV; Fri, 03 Dec 2021 00:57:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1638489478; bh=JLqtLuC/b4SQstuwIXkNXiT61g8hIB6RgSmTz3elbAc=; h=From:To:Subject:Date:MIME-Version; b=bh7Z+8O3Lux1nvEg2AGpl6mN6V3OZbp7wm35v1e4aST07KwHHDmHlNlisXFKrQCp4 W5xZOqT6ZAc0VwIlhT47seCWSsnJVMsm51Q8TkdeRQtzNGMek/Rprhjq20WPPdfFdo gFNJbZDQL3auvrL1NbP08873l0IuQEsKalN9GITWx4Eny5lcajIgGKIcislChQiGz+ S49QlDu5f0wsvdYZHjj+at8PvMhnOHvFTyUXvWsmXdC7JoSBMwFvXCBYdzoeI6ggSD u0J+ZKS4ifrPV5JrAF9QUllN+vzJnSEvfYfoFByo3kPL8t0Dn/jsqqCvxKk2USsVLR Php7nX1Bk7asQ== From: Giulio Benetti To: Jagan Teki , Andre Przywara Cc: u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH 2/2] board/sunxi/dram_sun5i_auto: use DRAM_MEMORY_TYPE_DDR3 instead of magic number 3 Date: Fri, 3 Dec 2021 00:57:55 +0100 Message-Id: <20211202235755.45124-2-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211202235755.45124-1-giulio.benetti@benettiengineering.com> References: <20211202235755.45124-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfBKhjuNtqnSLwJdgswdOZkteA3jgwLkLrb6IF4rOpiHVxZiET7bmFISMV6E46fKWt4q1faDxGks0cX9fWKahXNp6j9SPZaTqWVmNhxjKpR9QYisPdFFf UI6jGSAjDfLFXhI5AdjBmF7w3LcaGdDD0kISBY/tCkD+ft8EgiRGtPKJh+XsmT0pABEh27SSaoAiyt5T+mk36rX7R8Hh9RAJF/xBHH2P/sGnBU28NSQD20OY Q+dgZ9cUMnxORjyu0DsEo1QJNQyo3eC+YS9soN5aBENO+xo1Qnc+2sqApK4XhORdFjlU1uIpzX5vSoXWfkfsgMZ13y8VnEes2AX5XUaI/xM= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Since DRAM_MEMORY_TYPE_DDR3 is defined let's use it instead of magic number 3. Signed-off-by: Giulio Benetti --- board/sunxi/dram_sun5i_auto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sunxi/dram_sun5i_auto.c b/board/sunxi/dram_sun5i_auto.c index a5f4f8b743..517506ccc4 100644 --- a/board/sunxi/dram_sun5i_auto.c +++ b/board/sunxi/dram_sun5i_auto.c @@ -7,7 +7,7 @@ static struct dram_para dram_para = { .clock = CONFIG_DRAM_CLK, .mbus_clock = CONFIG_DRAM_MBUS_CLK, - .type = 3, + .type = DRAM_MEMORY_TYPE_DDR3, .rank_num = 1, .density = 0, .io_width = 0, -- 2.25.1