From patchwork Tue Nov 22 15:33:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jit Loon Lim X-Patchwork-Id: 1707912 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=OqXQ8/4t; dkim-atps=neutral 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NGpFC48HTz23nl for ; Wed, 23 Nov 2022 02:33:33 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F1A438544E; Tue, 22 Nov 2022 16:33:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.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=intel.com header.i=@intel.com header.b="OqXQ8/4t"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 579748545A; Tue, 22 Nov 2022 16:33:27 +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=0.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4957E85126 for ; Tue, 22 Nov 2022 16:33:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jitloonl@ecsmtp.png.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669131204; x=1700667204; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4PLE+mf7lo8G8TECKI1sc4YHE/BW9czh30g86vqBpTg=; b=OqXQ8/4tRBum8NBbPFnM1WE2tlzoRI9ZKq5l/u4v78/ZQ8SMHhq/GDuV rNGCG1+1Tw/LsmB8mxrYrY9BPttfJG4wVAJ6jHAXKxLhDhKUCZFtfzCyz TUxFqzIZk+xawLkygft0eknoijLINmbmKHgcqmlBVcTI1OrBdff330cOj JY6Ku2SsSdVO64I1OEDlGHAWRanzYqzG6e3kTRI0jINzmoyJAy/wNTmEC KlMpPS6VR1GBaaBzEVKPHec9LLGMJdkuv6uz2SYWCKVVu1vSEwHeHQpY6 Pdb5ivyO4dRj/2Pe1Ap94Qs3zxDRJfD00YxDvKBDHDGqZk0h6C+baSyxt Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="315662088" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="315662088" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 07:33:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="766371105" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="766371105" Received: from pglmail07.png.intel.com ([10.221.193.207]) by orsmga004.jf.intel.com with ESMTP; 22 Nov 2022 07:33:17 -0800 Received: from localhost (pgli0028.png.intel.com [10.221.84.177]) by pglmail07.png.intel.com (Postfix) with ESMTP id B27F6482A; Tue, 22 Nov 2022 23:33:17 +0800 (+08) Received: by localhost (Postfix, from userid 12048045) id AF009E00214; Tue, 22 Nov 2022 23:33:17 +0800 (+08) From: Jit Loon Lim To: u-boot@lists.denx.de Cc: Jagan Teki , Vignesh R , Marek , Simon , Tien Fong , Kok Kiang , Siew Chin , Sin Hui , Raaj , Dinesh , Boon Khai , Alif , Teik Heng , Hazim , Jit Loon Lim , Sieu Mun Tang Subject: [PATCH] arm: socfpga: n5x: Replace with soc64 env settings Date: Tue, 22 Nov 2022 23:33:16 +0800 Message-Id: <20221122153316.15607-1-jit.loon.lim@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean From: Tien Fong Chee Only DDR and clock changes in N5X compare with existing SOC64 devices, so a common SOC64 env setting can be used in N5X. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- include/configs/socfpga_n5x_socdk.h | 33 ----------------------------- 1 file changed, 33 deletions(-) diff --git a/include/configs/socfpga_n5x_socdk.h b/include/configs/socfpga_n5x_socdk.h index c295e91e3d..4929705259 100644 --- a/include/configs/socfpga_n5x_socdk.h +++ b/include/configs/socfpga_n5x_socdk.h @@ -9,37 +9,4 @@ #include -#undef CONFIG_EXTRA_ENV_SETTINGS -#define CONFIG_EXTRA_ENV_SETTINGS \ - "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ - "bootfile=" CONFIG_BOOTFILE "\0" \ - "fdt_addr=1100000\0" \ - "fdtimage=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ - "mmcroot=/dev/mmcblk0p2\0" \ - "mmcboot=setenv bootargs " CONFIG_BOOTARGS \ - " root=${mmcroot} rw rootwait;" \ - "booti ${loadaddr} - ${fdt_addr}\0" \ - "mmcload=mmc rescan;" \ - "load mmc 0:1 ${loadaddr} ${bootfile};" \ - "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ - "mmcfitboot=setenv bootargs " CONFIG_BOOTARGS \ - " root=${mmcroot} rw rootwait;" \ - "bootm ${loadaddr}\0" \ - "mmcfitload=mmc rescan;" \ - "load mmc 0:1 ${loadaddr} ${bootfile}\0" \ - "ramboot=setenv bootargs " CONFIG_BOOTARGS";" \ - "booti ${loadaddr} - ${fdt_addr}\0" \ - "linux_qspi_enable=if sf probe; then " \ - "echo Enabling QSPI at Linux DTB...;" \ - "fdt addr ${fdt_addr}; fdt resize;" \ - "fdt set /soc/spi@ff8d2000 status okay;" \ - "if fdt set /soc/clocks/qspi-clk clock-frequency" \ - " ${qspi_clock}; then" \ - " else fdt set /soc/clkmgr/clocks/qspi_clk clock-frequency" \ - " ${qspi_clock}; fi; fi\0" \ - "scriptaddr=0x02100000\0" \ - "scriptfile=u-boot.scr\0" \ - "fatscript=if fatload mmc 0:1 ${scriptaddr} ${scriptfile};" \ - "then source ${scriptaddr}; fi\0" - #endif /* __CONFIG_SOCFGPA_N5X_H__ */