From patchwork Fri Sep 20 07:24:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1987709 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Nss5sCwX; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X93qN1G8Lz1y27 for ; Fri, 20 Sep 2024 17:26:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4FBAE893DE; Fri, 20 Sep 2024 09:25:19 +0200 (CEST) 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="Nss5sCwX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8CCC3893EF; Fri, 20 Sep 2024 09:25:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 ABD82893BF for ; Fri, 20 Sep 2024 09:25:15 +0200 (CEST) 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-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42e5e1e6d37so15783305e9.3 for ; Fri, 20 Sep 2024 00:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726817115; x=1727421915; darn=lists.denx.de; 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=LwBkOs9bDu7Hw+se9VudOUbKN6FDGhNYn8RcAN9fPrA=; b=Nss5sCwXfewB6ZzqOaqk18pWfy03GJqbnO5A0QKd4mTtCf+BC9bDJStQ4XnJkVVEmt SmCRkAU/bDkYDnoHkjQCF8/seTGUwbRajzHjjHIZV1LXZ5ttUgbV2yHpo+v8st68JGs3 H7qYLBLq0sG5+fn1QfKlK4liYJiu4habTdjZ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726817115; x=1727421915; 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=LwBkOs9bDu7Hw+se9VudOUbKN6FDGhNYn8RcAN9fPrA=; b=Xsf2HU1x7k8sSB5njX/ZJtoFnNbWyYtsZOaEBjAb3skFV9SG9+Or2LZNUi5FIYXBVe 6NYbnRJz2xARyrcu8KbfbY1mD+lFZejBXtnotOlmlwyIUardDkDKMzMWDIVTIeaZsEvY 0Lrpxe9/3s8UQZx9BP056ud8LquHeKitHmYkp4AsHyvzd8/6JanyPcehOVO5Lp0Rkjjy 5kenxz+4ELqhWQfh4b9DpyNA2ARM94Es/sJTZwctQ7NWFO15k+CB9agQzVIHF2Dif8px xmDyebBMlM4S+EyIC8rXnENlIpF7tFdgwESwLVk3EWK7fruaEpM8Bl8umG9eP6oSGDQ8 aJng== X-Gm-Message-State: AOJu0Yw3mvxAHoTXPv/oqEHyXMhqFb+5agUJxLj6ZvHoQhOAC8r1QKRb WtG7CTah+pLko39mkOTd2JSRZLMw0aC0VnYXlfzORwVHV92Hz9fqKPfL94sqQ5siDAX+eVgJvfP Sy15t X-Google-Smtp-Source: AGHT+IEqVRGSqLhKpTFXa/8QCRa7IJvjIHcx7eYbem8/4kJIslChMffvqghWFSSCE2jnvHYKIw2g5A== X-Received: by 2002:a05:600c:5359:b0:42b:af52:2525 with SMTP id 5b1f17b1804b1-42e7d143601mr7533315e9.16.1726817114841; Fri, 20 Sep 2024 00:25:14 -0700 (PDT) Received: from chromium.org ([185.44.53.103]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7540e32fsm41504535e9.9.2024.09.20.00.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 00:25:14 -0700 (PDT) From: Simon Glass To: u-boot@lists.denx.de Cc: Simon Glass , Greg Malysa , Heinrich Schuchardt , Jaehoon Chung , Jonas Karlman , Kongyang Liu , Marek Vasut , Oleksandr Suvorov , Paul Barker , Peng Fan , Tom Rini Subject: [PATCH v2 12/18] mmc: Support driver model in TPL Date: Fri, 20 Sep 2024 09:24:36 +0200 Message-ID: <20240920072444.134997-13-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240920072444.134997-1-sjg@chromium.org> References: <20240920072444.134997-1-sjg@chromium.org> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Some boards want to use DM_MMC in TPL so add an option for that. Signed-off-by: Simon Glass --- Changes in v2: - Default this option to off to avoid TPL-code-size increases drivers/mmc/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 982e84dc3bc..22c65681f0a 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig @@ -61,6 +61,17 @@ config SPL_DM_MMC appear as block devices in U-Boot and can support filesystems such as EXT4 and FAT. +config TPL_DM_MMC + bool "Enable MMC controllers using Driver Model in TPL" + depends on TPL_DM && DM_MMC + select TPL_BLK + help + This enables the MultiMediaCard (MMC) uclass which supports MMC and + Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.) + and non-removable (e.g. eMMC chip) devices are supported. These + appear as block devices in U-Boot and can support filesystems such + as EXT4 and FAT. + if MMC config MMC_SDHCI_ADMA_HELPERS