From nobody Fri Feb 13 00:20:38 2026 Received: from lelvem-ot01.ext.ti.com (lelvem-ot01.ext.ti.com [198.47.23.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B88C1AF0CA for ; Thu, 2 Jan 2025 11:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.234 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735818713; cv=none; b=EzrT3luigT9WU8bdTzfi9ZR1ANhy74H3pgqEd9KiL+lYCiw107/cflCuEaPS7oRT79CqwljliUrg8oFQPV4HrGGts32+H20KNlcwJkT59TZxoyaPZ1/EqNyEvzAvs9mY2OUuamHh2p9lmo1pxwBOccQUdERHWaEryKg7/8UjCFQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735818713; c=relaxed/simple; bh=6YQZlRVWTOgRUjyhoI5DYpC5LCEcobVSrk21rw3x30c=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qvcqjTVM7rj9tEmdCW5l4+OvVaoj9mhh2+Dhk+/2y1I33l50t0856hA5vrrexvpxk5FPnAtmD6A60MoIu9ePxpZTuUeB9WkcdynFGum9dicB3rSQpbV10Sw57AENqIOT9P1jMXNmfQXgevv6zHOeV9u0xvlMJKxUHG6z1smoIck= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=N5MPArHV; arc=none smtp.client-ip=198.47.23.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="N5MPArHV" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 502BpROW1937107 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 2 Jan 2025 05:51:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1735818688; bh=lfL2mENsbnZ2nVSCWzqK5Cua6MqY9m3FvW1aPebZY9Y=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=N5MPArHVm9A3G2Yry8peBHtEANsZEkHBS7enOse4X+IrmeOaxPc8a6zlsVV23JKLc n+9KHJSVug8pVVaanIvPWGzQCzll2mgdpXkRt/bZ8XbpWBSfEPhJVOo9E9L8Vkhtxi GfaH4/2lSjff8pbB8GQHkAjdrghfmCLdiZXvfphY= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTP id 502BpRh5059897; Thu, 2 Jan 2025 05:51:27 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 2 Jan 2025 05:51:27 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 2 Jan 2025 05:51:27 -0600 Received: from santhoshkumark.dhcp.ti.com (santhoshkumark.dhcp.ti.com [172.24.227.241]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 502BpLpF030343; Thu, 2 Jan 2025 05:51:24 -0600 From: Santhosh Kumar K To: , , , , CC: , , , Subject: [PATCH 1/3] mtd: spinand: Define OctalIO ops Date: Thu, 2 Jan 2025 17:21:08 +0530 Message-ID: <20250102115110.1402440-2-s-k6@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250102115110.1402440-1-s-k6@ti.com> References: <20250102115110.1402440-1-s-k6@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" Define the macros for Octal-based read and load operations on OSPI NAND flashes. Signed-off-by: Santhosh Kumar K --- include/linux/mtd/spinand.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/linux/mtd/spinand.h b/include/linux/mtd/spinand.h index cbbcd44ac225..b730e334e399 100644 --- a/include/linux/mtd/spinand.h +++ b/include/linux/mtd/spinand.h @@ -122,6 +122,12 @@ SPI_MEM_OP_DUMMY(ndummy, 4), \ SPI_MEM_OP_DATA_IN(len, buf, 4)) =20 +#define SPINAND_PAGE_READ_FROM_CACHE_OCTALIO_OP(addr, ndummy, buf, len) \ + SPI_MEM_OP(SPI_MEM_OP_CMD(0xcb, 1), \ + SPI_MEM_OP_ADDR(2, addr, 8), \ + SPI_MEM_OP_DUMMY(ndummy, 8), \ + SPI_MEM_OP_DATA_IN(len, buf, 8)) + #define SPINAND_PROG_EXEC_OP(addr) \ SPI_MEM_OP(SPI_MEM_OP_CMD(0x10, 1), \ SPI_MEM_OP_ADDR(3, addr, 1), \ @@ -140,6 +146,12 @@ SPI_MEM_OP_NO_DUMMY, \ SPI_MEM_OP_DATA_OUT(len, buf, 4)) =20 +#define SPINAND_PROG_LOAD_OCTALIO(reset, addr, buf, len) \ + SPI_MEM_OP(SPI_MEM_OP_CMD(reset ? 0xc2 : 0xc4, 1), \ + SPI_MEM_OP_ADDR(2, addr, 8), \ + SPI_MEM_OP_NO_DUMMY, \ + SPI_MEM_OP_DATA_OUT(len, buf, 8)) + /** * Standard SPI NAND flash commands */ --=20 2.34.1