From mboxrd@z Thu Jan 1 00:00:00 1970 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 9A53CECAAA1 for ; Sun, 11 Sep 2022 11:47:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3AC2484991; Sun, 11 Sep 2022 13:47:57 +0200 (CEST) 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="hJ+smbqd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 369BD84B86; Sun, 11 Sep 2022 13:47:55 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 1C16F84A3D for ; Sun, 11 Sep 2022 13:47:49 +0200 (CEST) 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=1662896870; x=1694432870; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bCiEMmpAekrMndmIqPC7uPI8BefS68mP3yElWuDA6rY=; b=hJ+smbqdl4M6B5tPSdOUoDXTghzKVlK91cbF/7jNMojsuD4pa18AFk+3 ESo5YegQey80/X7Gq3LIq+QBAxkEh1yLjxoHjI2s3/mOCqGQTYuaS5DBB YXGhOoK52jcSaJvsfpPe0AJKL99ih91B8G921LXfR2qfrXtFTNB0kJqwT 3iKopcOcfi0Mha+eMt+H8rcNb6UAyOWfh2QoyQfAGdG9xbnnId4WwuTJB IT/6QmbP2mAYJdzgeRwA5LFiGqXD4HzNgtf33JmgnOV0iAOb+nDGM3GmV OUWPBCKvi0zTlbPH70+Su88Lvhyp3WkxO62SNpNzjoLdHWBoVwTc5utrS g==; X-IronPort-AV: E=McAfee;i="6500,9779,10466"; a="298516418" X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="298516418" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2022 04:47:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="615767731" Received: from pglmail07.png.intel.com ([10.221.193.207]) by orsmga002.jf.intel.com with ESMTP; 11 Sep 2022 04:47:43 -0700 Received: from localhost (pgli0028.png.intel.com [10.221.84.177]) by pglmail07.png.intel.com (Postfix) with ESMTP id D1CF432FA; Sun, 11 Sep 2022 19:47:42 +0800 (+08) Received: by localhost (Postfix, from userid 12048045) id CF48DE00414; Sun, 11 Sep 2022 19:47:42 +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 , Ley Foon Tan Subject: [PATCH 4/7] configs: HSD #1507526426-7: configs: socfpga: agilex: Add NAND support Date: Sun, 11 Sep 2022 19:47:37 +0800 Message-Id: <20220911114740.24447-4-jit.loon.lim@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20220911114740.24447-1-jit.loon.lim@intel.com> References: <20220911114740.24447-1-jit.loon.lim@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Ley Foon Tan Add NAND related CONFIGs. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index e8175926a3..38c77f2f4d 100644 --- a/include/configs/socfpga_soc64_common.h +++ b/include/configs/socfpga_soc64_common.h @@ -33,6 +33,28 @@ * U-Boot environment configurations */ + /* + * NAND support + */ +#ifdef CONFIG_NAND_DENALI +#define CONFIG_SPL_NAND_RAW_ONLY +#define CONFIG_SYS_NAND_ONFI_DETECTION +#define CONFIG_SYS_MAX_NAND_DEVICE 1 + +#define CONFIG_SYS_NAND_U_BOOT_SIZE (1 * 1024 * 1024) +#define CONFIG_SYS_NAND_U_BOOT_DST CONFIG_SYS_TEXT_BASE + +/* Environment for NAND boot */ +#if defined(CONFIG_ENV_IS_IN_NAND) +#undef CONFIG_ENV_OFFSET +#undef CONFIG_ENV_SIZE +#define CONFIG_ENV_OFFSET 0x00200000 +#define CONFIG_ENV_SIZE (128 * 1024) +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE +#endif +#endif /* CONFIG_NAND_DENALI */ + /* * Environment variable */ @@ -54,6 +76,7 @@ "mmcfitload=mmc rescan;" \ "load mmc 0:1 ${loadaddr} ${bootfile}\0" \ "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \ + "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ "linux_qspi_enable=if sf probe; then " \ "echo Enabling QSPI at Linux DTB...;" \ "fdt addr ${fdt_addr}; fdt resize;" \ -- 2.26.2