From patchwork Tue Jan 11 12:56:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12709841 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0AA3CC433F5 for ; Tue, 11 Jan 2022 12:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qO5IDZjkA5miLGVHEw2ThSPQ63Updjt4hHgV622nTQo=; b=fMJHNCxKVOpR2d T0QJrh+G88HXxr+pExVGl6+jlNJYKmwMBcW8/QuPUPS3RaHJ77cxNeehWy+sipA6pnRsndT+b6v/y 3kt8dNpNOBqTkn6YU0tMcrMdbuEpzJ7ilVUxllyQPGHSjW0sbq/SzArrOuJKVxd1wSwfFF8yxc4Hp ilftqsxJOTvOj77QB32gpR9FfDyzRtEAls8hs+90GQ5xv3WdrlF1Ekf90nM0+nYOz44EziZnep334 5iRI/zhqmP9Enxpz1N2QM9lZg5idAiZlZ6+TPbKoll6lz18TYHmxqLEJqrdB7890EmxcA8hesKha6 hqrCxdoxseGcobfVPVNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7Gho-00GGFr-FL; Tue, 11 Jan 2022 12:56:52 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7Ghl-00GGF4-3y for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 12:56:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1641905809; x=1673441809; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lpBCZMTfwjqmUBoS1O/VdPaK28PYoT9VGvqougv00cQ=; b=Dg+r3X35ld9AGaUpq4NfdTW7tOB0o0WBqp+27hiWZ+9R6jMgpLp61geP pRn2kb8qW6BPBxjrNQGua4cMCRSrbdfAvw235xDqAmLkKLy1NPgESUui4 drbkX6vAxSzbHtdHrw9bR7JpjormUh+5S5htZQIPucqLsNIMAlxYAdxkd lo2rij4cv5JmDRhyu61G+yjjK1PZWM9lKVw31Im3ETt14br9NJao2a61l cCNMJEQn6HLC0Jfw5bU05LSa9bZrRcq6A8oZtSxYIFoFrMnuGKcEsz3aI rmsbegb4gucc7x6C/dnnHxf5Mq/UeDqEJsfUovnuXPUhGun9AKQVn3E9k Q==; IronPort-SDR: aN0T1vtM72Uz1fnwU2pOc2/lRdUsa1XlyF1tB3sXuulPjDBx9BqpQ68XJYNj1QghuI1+xRriMc DuiPtRxD4XQ7aAELJOWkpBKnAf+GDOlzypUSO4GHnWjSclkIPFywI1S1Ew4/cZ1tbB4RHq7dBy 4u+4RBK5aDJcqyIvc2roXzR6s28rxZzBKBiHSjbN4BOMK4D14CMLaj6UEDKTVkpIvKECMwtf18 Cs6PVK4o76prsgaq8Xn5ZY9/LLVlEvMRf124Qo+bBT5/25wOwmmfZGEAFXPxG81xs8r9W5DNki g7Tr+DRSErqAMrgXVf0BIQQ0 X-IronPort-AV: E=Sophos;i="5.88,279,1635231600"; d="scan'208";a="145038185" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Jan 2022 05:56:48 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Tue, 11 Jan 2022 05:56:48 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 11 Jan 2022 05:56:45 -0700 From: Tudor Ambarus To: CC: , , , , , Tudor Ambarus Subject: [PATCH] ARM: configs: at91: sama7: Enable NAND / SMC Date: Tue, 11 Jan 2022 14:56:41 +0200 Message-ID: <20220111125641.903624-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_045649_252097_9D347A19 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the Static Memory Controller. Tested with Micron MT29F4G08ABAEAWP NAND flash. Software error correction is not needed, as the SMC includes a PMECC error correction hardware module. Signed-off-by: Tudor Ambarus Acked-by: Nicolas Ferre --- arch/arm/configs/sama7_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig index 0368068e04d9..342d9f30d9d2 100644 --- a/arch/arm/configs/sama7_defconfig +++ b/arch/arm/configs/sama7_defconfig @@ -82,6 +82,9 @@ CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_TESTS=m CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_RAW_NAND=y +CONFIG_MTD_NAND_ATMEL=y +# CONFIG_MTD_NAND_ECC_SW_HAMMING is not set CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y @@ -174,7 +177,6 @@ CONFIG_DMATEST=y CONFIG_STAGING=y CONFIG_MICROCHIP_PIT64B=y # CONFIG_IOMMU_SUPPORT is not set -# CONFIG_ATMEL_EBI is not set CONFIG_IIO=y CONFIG_IIO_SW_TRIGGER=y CONFIG_AT91_SAMA5D2_ADC=y