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 F00BBC636CC for ; Sat, 11 Feb 2023 10:08:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A5A2D85780; Sat, 11 Feb 2023 11:08:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=emagii.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=emagii.com header.i=@emagii.com header.b="QDuoROmx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B343885718; Sat, 11 Feb 2023 11:08:00 +0100 (CET) Received: from emagii.se (www.emagii.com [185.133.207.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 24DB285726 for ; Sat, 11 Feb 2023 11:07:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=emagii.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot@emagii.com Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id 59BDF1201F2; Sat, 11 Feb 2023 11:07:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emagii.com; s=default; t=1676110072; bh=TBYrGK4PYkehd5gcvMETJ35ZJ3Jcm525JSE6oHHuoYI=; h=From:To:Subject; b=QDuoROmx8k2c7aFjvciGmK9IAy33C4TX8taJyEw7yhvrAZ7O4WKGbLPj+f7O+0imh DKPTWuWyNAOehMGe+rOCG1lIKs2SHFHhJIH40wU6tluj37tf9QPwz/6z5cLK4mc2Ql TEkccYuuJZJ9GpVMv+QaZYOhVZ+rA2i9KmM4CRf4= Authentication-Results: emagii.beebytevps.io; spf=pass (sender IP is 84.55.68.216) smtp.mailfrom=u-boot@emagii.com smtp.helo=valinor.ownit.se Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) From: u-boot@emagii.com To: u-boot@lists.denx.de Cc: marex@denx.de, monstr@monstr.eu, sjg@chromium.org, Ulf Samuelsson Subject: [PATCH 1/4] include/mtd/mtd-abi.h: Add FPGA as MTD device Date: Sat, 11 Feb 2023 11:07:40 +0100 Message-Id: <20230211100743.12087-2-u-boot@emagii.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230211100743.12087-1-u-boot@emagii.com> References: <20230211100743.12087-1-u-boot@emagii.com> X-PPP-Message-ID: <167611007266.3658121.14303235531925443704@localhost.localdomain> X-PPP-Vhost: emagii.com 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: , Reply-To: u-boot@emagii.com 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: Ulf Samuelsson Signed-off-by: Ulf Samuelsson --- include/mtd/mtd-abi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index ea244fbaeb..cd826b64dd 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h @@ -89,6 +89,7 @@ struct mtd_write_req { #define MTD_DATAFLASH 6 #define MTD_UBIVOLUME 7 #define MTD_MLCNANDFLASH 8 /* MLC NAND (including TLC) */ +#define MTD_FPGA 9 #define MTD_WRITEABLE 0x400 /* Device is writeable */ #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ @@ -100,6 +101,7 @@ struct mtd_write_req { #define MTD_CAP_RAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE) #define MTD_CAP_NORFLASH (MTD_WRITEABLE | MTD_BIT_WRITEABLE) #define MTD_CAP_NANDFLASH (MTD_WRITEABLE) +#define MTD_CAP_FPGA (MTD_WRITEABLE | MTD_NO_ERASE) /* Obsolete ECC byte placement modes (used with obsolete MEMGETOOBSEL) */ #define MTD_NANDECC_OFF 0 // Switch off ECC (Not recommended) -- 2.17.1