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 C4849C433F5 for ; Tue, 22 Feb 2022 01:32:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A0F2C83C75; Tue, 22 Feb 2022 02:32:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eeAxhWe7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 65AF383C63; Tue, 22 Feb 2022 02:31:50 +0100 (CET) Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) (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 77C6C83C87 for ; Tue, 22 Feb 2022 02:31:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pgwipeout@gmail.com Received: by mail-qv1-xf32.google.com with SMTP id 8so827733qvf.2 for ; Mon, 21 Feb 2022 17:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b11G8hdFjBUAWjCZHzyLyd0RmAi7OhI4PCxR2fqvk6s=; b=eeAxhWe7bXd8izwEzDxI7JyL1TDkmrI+jzhSu1o0WmWU52KBDhNaTmYFwGlQOcYzf5 eJ1K5cWpGPB1rBjd8uxAkg6gQMWIyuvHPdW7+FgDjJxvTnkT2VufoMcjLk7IyJJKqGEB DDl5BYVLbzbxf8KBU4jq6+bSQlgzd/6GGGLgsyBKVkmHab/VDflf3fEOYGa2oJ0m+A2G Ijod90CSt8V33ktN6BmgFPlkICMsWz8FNI+ShQMH3AkM83IgbN6NRdHmkZ9fYZP+pHBz fraQ8SJEFMTTeLC0ru1Oj5bjMs5Q/4KmNi27aEUjf3gw0VQZZ7qTGE2CkhGd8jRLNAop loHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b11G8hdFjBUAWjCZHzyLyd0RmAi7OhI4PCxR2fqvk6s=; b=aJLlJw9HK+JSzZnXu9IXAdACvR9I9Lz/Dn1hjRj0VmN0Of9hXeBUxKkDFksAx9z6Yb d3a+jbdoytK1TbDGR4g8j31FN/GHWc/nZmaIMlLK9ARAbFaflrBgKac+fgviDQt0rKvp dtLkeY9EA45Iu98xbU+yTZIOjmFBlBpzE+COAyV9Y1s7VWpMMeabGaPxRKSbiPeW/u17 xgV4bRjU7bpftOPuYZJYyABri8v76NXPVBMv6LHFbe5al6XJHeu246W8KS9w1rvX4wS+ DPWNIaxmK26DO0NmHdMsAhP3ZODALVk5ooJAiTVSbE8MC9Bb+gdc2/+3ekSzNMatr9A5 qEEQ== X-Gm-Message-State: AOAM532FMBCAFa8J6yqpOg6qGnXULxBYMgGoPRCAcssUBi5kDpYRPZ+0 Jk+7rF7ZJpC0xRmYX8NgY5m/lBigmy4= X-Google-Smtp-Source: ABdhPJwHs7V9h9wbBnpjzpvXnDhwgkeDjFKUDyk59TPbLzD7WStZfHV8tHHXcUiHthQybF2SQ+y0TA== X-Received: by 2002:a05:622a:1903:b0:2dd:a07e:659e with SMTP id w3-20020a05622a190300b002dda07e659emr16396098qtc.360.1645493497265; Mon, 21 Feb 2022 17:31:37 -0800 (PST) Received: from master-x64.sparksnet (c-98-233-193-225.hsd1.dc.comcast.net. [98.233.193.225]) by smtp.gmail.com with ESMTPSA id q12sm31597841qtx.51.2022.02.21.17.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 17:31:37 -0800 (PST) From: Peter Geis To: Cc: Peter Geis , u-boot@lists.denx.de Subject: [PATCH v1 05/11] spl: support adc drivers in spl Date: Mon, 21 Feb 2022 20:31:24 -0500 Message-Id: <20220222013131.3114990-6-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220222013131.3114990-1-pgwipeout@gmail.com> References: <20220222013131.3114990-1-pgwipeout@gmail.com> 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.5 at phobos.denx.de X-Virus-Status: Clean In order to handle the rockchip recovery handler in spl, we need the adc code to be available in spl. Add a toggle to allow adc drivers to function in spl. Signed-off-by: Peter Geis --- common/spl/Kconfig | 5 +++++ drivers/Makefile | 1 + 2 files changed, 6 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index e0d0a6f77b51..df99042e2fd6 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -454,6 +454,11 @@ config SPL_FIT_IMAGE_TINY ensure this information is available to the next image invoked). +config SPL_ADC + bool "Support ADC drivers in SPL" + help + Enable ADC drivers in SPL. + config SPL_CACHE bool "Support CACHE drivers" help diff --git a/drivers/Makefile b/drivers/Makefile index 4e7cf284405a..ce091ca9a7a4 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ +obj-$(CONFIG_$(SPL_)ADC) += adc/ obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/ obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/ obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/ -- 2.25.1