From patchwork Thu Dec 2 23:57:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1563050 X-Patchwork-Delegate: andre.przywara@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=TDCyqGPE; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J4tFS5S6Xz9t1r for ; Fri, 3 Dec 2021 10:58:20 +1100 (AEDT) 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 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 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, From patchwork Thu Dec 2 23:57:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1563049 X-Patchwork-Delegate: andre.przywara@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=bh7Z+8O3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J4tFR2XPmz9s3q for ; Fri, 3 Dec 2021 10:58:19 +1100 (AEDT) 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 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 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,