From patchwork Thu Jul 9 11:17:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1471 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 879313F06D for ; Thu, 9 Jul 2020 13:19:19 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id v22sf1081291pfu.22 for ; Thu, 09 Jul 2020 04:19:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594293558; cv=pass; d=google.com; s=arc-20160816; b=Z6E/EOQ+DfhdwZNcxKm0O9xJ2FFOPQ7dtF33hCt2FsGjuUKWTAZ4vvtxNnmaNeYFyI 4SXpsjJsImgE1oUBv/uL3p32oHeZaXrHYr6m1XYcBodcUfT+A3kqK985HehSfZ0VdplS BOeYyZ3lWTDZpM8pg2yDFI06MfyOnxmL9RnRyHxPczcbHTO6SXNGK3fvY7IuD7o2rQhd BsqTCYgJDG9yBxO7mix3laOtwrrHCU/QQuXPeq1GbfBfO5h5ljeqCNFwZGkagXQ4Jfmk uKk5H4dDRiw5MbQH+eM7x1pY0hZUKmxNqN8RQnuDoyvLCHq+AqFZaT+HcdXa85BcUMcN P7Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=M9CsHKdOS13c4GmLbbEDeE2DEN0Noun6KjeNjq0jgkM=; b=uzzX/zYZGnu36RD2vuwOxFU3cQNCag8c7pzr3fJ1egIOAgiWSKGA6zk86vXMcXXmCg +pIr5yMgcDUTgOL8v1Gv6jM6zZU+DIsbvReEm0yIL9S6GEYuLIZ6ADzHX0cA/MWhA3/j mTpZIZfN7jGlaF2FgeVFYorT3rzIWmQTyWTnHc7byq/zqMwtCb6OnJSipLn/ZjsanJdj egHhICKEJaFbefXKMdPRCLlpY8QYDS3+9xlCj7/+n5q+W+9oOmH1PyqL675Q8Rp4Gu6U 5s4e+KrowmnXJvJnS/OY/hUHgjFQNAPJJAj9P2XsOJOUBbY+TeZMpROrNwK13DAwSvyV invw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CFsnb00R; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=M9CsHKdOS13c4GmLbbEDeE2DEN0Noun6KjeNjq0jgkM=; b=ey5wO0uxa5GtdU3dVlhPZdkFWt2XEdALgE3uNzA/lkNuCkqZ0obMGIniSMnFl0FWkK a+mKS8Z/9aCcnTMZImotSZLpXBGWWyJX0mqhoYHw9IotxpzZmQwJ+03iHTb53v2+8951 jnUa+HjnF+whRxVsV/6s4xxblQtd1W4ona6mo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=M9CsHKdOS13c4GmLbbEDeE2DEN0Noun6KjeNjq0jgkM=; b=m+4Ou2ZJpnw9JoW2w33YaWSa44JP0cSohIe/TH4fkBB5VCMGRx8yc2urHvkjAML9AK 2/btrl8iwmR4cLH6e/r4ORLg/ZIBDEYirG6yMjZtXxaK0MR3tSRnobiLk0b799ndIxYu q8hp2xdEGHvdCnPQ8QYBkN/VDZpVnsvLvPyJQwcG7u5P9aWN3UIDsRcYEDTNB0s5ntiL rtnRjVT7wTNF3vHTv8xEect44F2uKrg5V0P8hQ16ljgu2nOUIcw7D9SkdfImx2oj+dO1 m3SHUFCGMyrohSEhs02ZGBTy8YVUAbRuZr8xzQsRlYyDuz+uP/HdHGjL8RJrTqoQlQ/7 AUSQ== X-Gm-Message-State: AOAM5327gIzw0paJiKOSS8h8IIrkUdzhNSmpKAjrZg6HgiPYC/z5prhg iGFDeHGvFklhxV9gE6UOCzBr/lv1 X-Google-Smtp-Source: ABdhPJxIMtrPIqYcwNY/D0vFnZ+KavS0sIY5Jf5VzP9T1W2y7nRx4QfPRrTD1kVW/LBqlrFo1frpCw== X-Received: by 2002:aa7:8513:: with SMTP id v19mr48956587pfn.74.1594293558261; Thu, 09 Jul 2020 04:19:18 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:52ca:: with SMTP id z10ls1718672pgp.10.gmail; Thu, 09 Jul 2020 04:19:18 -0700 (PDT) X-Received: by 2002:a63:745:: with SMTP id 66mr55396266pgh.316.1594293557672; Thu, 09 Jul 2020 04:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594293557; cv=none; d=google.com; s=arc-20160816; b=GyX+HTM6s9vLtOfOoXlKBaRp7WA+OxyZRXC2pHZ42e6seg7iXFb17nzS9QR7pzvp6a 9mqM3mP8AKY4IajssfSS8NK1+CJe4TmrEfBtK0zKvXaqsiV57YzFfHRz0OKkCjWYovuG EK2AxwaMMh1xfxE+tPoSOqGeI48E3cdouLNEBw/QKrguwvvAcoe47V2+/WAnPgMuSW+I zP7zOMcqGYaAvRCwtfRYnIrbsKedvVYuw2tiB781i2hKsgXDQLpaMfYg4kH28Y/GZPpF ndRQJGQ59PP/uJZmum02NhKXZjgt0T4KiHFC511E/cfC0Efq/mUqUDm9hAU7peK+pBkg jy2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=+WPrI6b4YjyGQk7j34oEc307pgHblhnSEDd3lM76efM=; b=PRN7KVpbv3lLPCJgTyIFW9O17UUKpAWEfv8Z1a0D3v3R0IsYDMeywRU850Jy9XxCW5 ZrW21kC+tyTlX7b33ifzUwTG+4OofYgTnjfZa3Se+Pu6+JpRUNQccfaLb4kmi6mwrcQM Mt6uWJaJAtXhXgXPcHcjWWPlZpSthGFaoztTRIqDtlMrhZX2ysOOE1Ev6rpGSqog5+/z K7xx6Eu7EzBvtwoOCeF181Tj3uTMd0aJOQDjjxVOFPcRGhVXUZJOZ97vxJ8BQGlF8Klc e4HTzH3N0qAp1hjHNiihdJBtxX+xLPYLIKgwdcD4AvMftiFSz0RXnMIzrbCQ97Zfqz98 lU3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CFsnb00R; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id q6sor3192050pgp.48.2020.07.09.04.19.17 for (Google Transport Security); Thu, 09 Jul 2020 04:19:17 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:a843:: with SMTP id i3mr54624622pgp.190.1594293557406; Thu, 09 Jul 2020 04:19:17 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:24b9:69b0:e917:1d11]) by smtp.gmail.com with ESMTPSA id o23sm2608130pfd.126.2020.07.09.04.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 04:19:16 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Cc: Simon Glass , Vignesh R , Tom Rini , Peng Fan , Daniel Schwierzeck , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 3/5] mtd: Add SPL_DM_MTD option Date: Thu, 9 Jul 2020 16:47:07 +0530 Message-Id: <20200709111709.68904-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709111709.68904-1-jagan@amarulasolutions.com> References: <20200709111709.68904-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CFsnb00R; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add SPL option for DM_MTD. Cc: Simon Glass Cc: Vignesh R Signed-off-by: Jagan Teki --- drivers/mtd/Kconfig | 8 ++++++++ drivers/mtd/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 348b43e653..3feedf311f 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -17,6 +17,14 @@ config DM_MTD flash, RAM and similar chips, often used for solid state file systems on embedded devices. +config SPL_DM_MTD + bool "Enable Driver Model for MTD drivers in SPL" + depends on SPL_DM + help + Enable driver model for Memory Technology Devices (MTD), such as + flash, RAM and similar chips, often used for solid state file + systems on embedded devices. + config MTD_NOR_FLASH bool "Enable parallel NOR flash support" help diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 318788c5e2..f6b0719746 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -4,7 +4,7 @@ # Wolfgang Denk, DENX Software Engineering, wd@denx.de. mtd-$(CONFIG_MTD) += mtdcore.o mtd_uboot.o -mtd-$(CONFIG_DM_MTD) += mtd-uclass.o +mtd-$(CONFIG_$(SPL_)DM_MTD) += mtd-uclass.o mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o mtd-$(CONFIG_MTD_CONCAT) += mtdconcat.o mtd-$(CONFIG_ALTERA_QSPI) += altera_qspi.o