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 3D436C38142 for ; Sun, 29 Jan 2023 01:12:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 54773857B8; Sun, 29 Jan 2023 02:11:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="Tww83FXh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D1EC385742; Sun, 29 Jan 2023 02:10:39 +0100 (CET) Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 894C785798 for ; Sun, 29 Jan 2023 02:10:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12d.google.com with SMTP id d10so3844097ilc.12 for ; Sat, 28 Jan 2023 17:10:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g2eHAvZI0Dt+Y+6eQcq1rb4kkQRcCY2w8ExeVa/xFqQ=; b=Tww83FXhKNY8yrmLKhdQxSMJP1bj5g12uASs23zcXDeGL5wazLmVR2siogmSUF31sb fmAhUy9n8J6IgKVE+/n/vJSGEbRvjqeJNgCKAr0J5x3h1m3W0pfVEpZcHxpM5VoZ0V6f MQlsQLHBVtqbI1d8ocuidXHmpj0VB59L9Tu3A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g2eHAvZI0Dt+Y+6eQcq1rb4kkQRcCY2w8ExeVa/xFqQ=; b=mJ/tnIFEB/c6GjlpZUojsd7RsoTzw8cQuVT6PfcUu26nBwPvcDGblrifNPL5bY202N Y1EyfG7kLZnjUlqnU80YW8BO0xvcVIKMDYPUACWemCbEyhikzcruwPdpTQk+5NY8e3uf Hjjx3QqDXOriyVAPZoB+//R4L5PfvY8TGrxt2K3g4oK6znJD+oYhITZeSrSx9XdOe/jM SI6oqknjpXL1e6ansFStdd4YoztmEXS8m/EK03YQV64qemXBLcDsWf4t9GAlNbweAcBA psuzChYwJHk6yHF7epysraUbwZiZQZTZ8k0dEsVvHLpQlb1wUxWTtgYK7mFD8UaRdf+H SQaw== X-Gm-Message-State: AO0yUKVB9/5ZF1Ciw02oqiwtfPaHu2nSChHrg70eJlFsdts+FocP1rQw 9ncBHeNZ/eKMhMj8Aeh2H44gjs0uSW0Zgkk9 X-Google-Smtp-Source: AK7set8SoxPSR0afKBJSNAsp/6SiFbWhVFPUAQvca/9vacMkJgQohVZDTw/kijxCotjZC0umISeoEA== X-Received: by 2002:a05:6e02:1c21:b0:310:eb06:cccf with SMTP id m1-20020a056e021c2100b00310eb06cccfmr231876ilh.8.1674954626020; Sat, 28 Jan 2023 17:10:26 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id b5-20020a92c145000000b003024dd5c682sm568613ilh.71.2023.01.28.17.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Jan 2023 17:10:25 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v2 48/87] mtd: Drop unused nand_plat driver Date: Sat, 28 Jan 2023 17:58:24 -0700 Message-Id: <20230129005903.74918-49-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230129005903.74918-1-sjg@chromium.org> References: <20230129005903.74918-1-sjg@chromium.org> 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 This is not used since this commit: 936478e797a SPARC: Remove Drop the driver and Kconfig option. Signed-off-by: Simon Glass --- (no changes since v1) drivers/mtd/nand/raw/Makefile | 1 - drivers/mtd/nand/raw/nand_plat.c | 65 -------------------------------- 2 files changed, 66 deletions(-) delete mode 100644 drivers/mtd/nand/raw/nand_plat.c diff --git a/drivers/mtd/nand/raw/Makefile b/drivers/mtd/nand/raw/Makefile index c25acb11804..add2b4cf655 100644 --- a/drivers/mtd/nand/raw/Makefile +++ b/drivers/mtd/nand/raw/Makefile @@ -70,7 +70,6 @@ obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o -obj-$(CONFIG_NAND_PLAT) += nand_plat.o obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o obj-$(CONFIG_NAND_MXIC) += mxic_nand.o obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o diff --git a/drivers/mtd/nand/raw/nand_plat.c b/drivers/mtd/nand/raw/nand_plat.c deleted file mode 100644 index 81e7aa218d5..00000000000 --- a/drivers/mtd/nand/raw/nand_plat.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Genericish driver for memory mapped NAND devices - * - * Copyright (c) 2006-2009 Analog Devices Inc. - * Licensed under the GPL-2 or later. - */ - -/* Your board must implement the following macros: - * NAND_PLAT_WRITE_CMD(chip, cmd) - * NAND_PLAT_WRITE_ADR(chip, cmd) - * NAND_PLAT_INIT() - * - * It may also implement the following: - * NAND_PLAT_DEV_READY(chip) - */ - -#include -#include -#include -#ifdef NAND_PLAT_GPIO_DEV_READY -# include -# define NAND_PLAT_DEV_READY(chip) gpio_get_value(NAND_PLAT_GPIO_DEV_READY) -#endif - -#include - -static void plat_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) -{ - struct nand_chip *this = mtd_to_nand(mtd); - - if (cmd == NAND_CMD_NONE) - return; - - if (ctrl & NAND_CLE) - NAND_PLAT_WRITE_CMD(this, cmd); - else - NAND_PLAT_WRITE_ADR(this, cmd); -} - -#ifdef NAND_PLAT_DEV_READY -static int plat_dev_ready(struct mtd_info *mtd) -{ - return NAND_PLAT_DEV_READY((struct nand_chip *)mtd_to_nand(mtd)); -} -#else -# define plat_dev_ready NULL -#endif - -int board_nand_init(struct nand_chip *nand) -{ -#ifdef NAND_PLAT_GPIO_DEV_READY - gpio_request(NAND_PLAT_GPIO_DEV_READY, "nand-plat"); - gpio_direction_input(NAND_PLAT_GPIO_DEV_READY); -#endif - -#ifdef NAND_PLAT_INIT - NAND_PLAT_INIT(); -#endif - - nand->cmd_ctrl = plat_cmd_ctrl; - nand->dev_ready = plat_dev_ready; - nand->ecc.mode = NAND_ECC_SOFT; - - return 0; -} -- 2.39.1.456.gfc5497dd1b-goog