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 E8CBCC433F5 for ; Thu, 2 Dec 2021 23:58:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7FFF28375B; Fri, 3 Dec 2021 00:58:08 +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="TDCyqGPE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C880F8341A; 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 F023A811BA for ; Fri, 3 Dec 2021 00:57:58 +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 svxcmhgb3rmmOsvxcmQOtk; 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=m57zbrwBJfKOeaBJWjSej1JA/9YrKe0xmcbThuzvPig=; h=From:To:Subject:Date:MIME-Version; b=TDCyqGPEDmC1t73yREpeFMhkiBcQj1HjA0LQ8jIAF336Huc1HSVkj3iCGxGvCkDPi zyhU4KeDagvJolULmpNILvEcoTCJ940sYaZef081UscPcKRia6GrTLme4SvUqdS8KR j4TGnRceN4Nm8W7CMtdmghYiQzEsSSS1SI9B1zHWGrBFIlfONIWej1ES7NEhfOF/eT CHeG9RLpYnPG33GmAIdjyZZgqnhTdduI7K43jkUUXVRywZeHUX54Vvt+OWDQrzuMvT 1tRQaA8i22L8RT+uUfxPskTOoFmyrr8m2xRwPvXDKmDvFnlkcqhU9RBNmrvP8XmZO5 5ZCGtlrr0mJjg== From: Giulio Benetti To: Jagan Teki , Andre Przywara Cc: u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH 1/2] board/sunxi/dram_sun4i_auto: use DRAM_MEMORY_TYPE_DDR3 instead of magic number 3 Date: Fri, 3 Dec 2021 00:57:54 +0100 Message-Id: <20211202235755.45124-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 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_sun4i_auto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sunxi/dram_sun4i_auto.c b/board/sunxi/dram_sun4i_auto.c index e8bbee4ee5..547d1c0cb4 100644 --- a/board/sunxi/dram_sun4i_auto.c +++ b/board/sunxi/dram_sun4i_auto.c @@ -4,7 +4,7 @@ static struct dram_para dram_para = { .clock = CONFIG_DRAM_CLK, - .type = 3, + .type = DRAM_MEMORY_TYPE_DDR3, .rank_num = 1, .density = 0, .io_width = 0, -- 2.25.1