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 C6104C4332F for ; Sat, 19 Nov 2022 23:51:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15702852B4; Sun, 20 Nov 2022 00:46:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="e3Q41EvE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E2C4E850EA; Sun, 20 Nov 2022 00:46:15 +0100 (CET) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (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 7929885220 for ; Sun, 20 Nov 2022 00:46:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72c.google.com with SMTP id k2so5913201qkk.7 for ; Sat, 19 Nov 2022 15:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=nLnyhuI+O9LWUOVMc3DhTvtuar5iAxWLBoxS0+ZuWUI=; b=e3Q41EvEPYCoV7S9vUhL/wVLE6HQ9FsczSanpVTDwy5YyqueOH2CPAIbIwZ7viaiJW 8BHrmnvDX+ifbgKQdpyry+yg60u888z8zcsyFN8nDeEFcT/GsQsQp2igbTw7wpbUv33y uGHFqrToL2Oo1lnoNIA2hz3RIta6/NuXpD2TA= 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nLnyhuI+O9LWUOVMc3DhTvtuar5iAxWLBoxS0+ZuWUI=; b=XgxvPIwqv5kCHDRx6sKgweYc5K8eyDbUty0FkAKRbN4+vMI87iqQpFAOoVdFuizwzZ AA++F0QRjUqS22moQonY+5WCQOY8meED6QfytzVOnP/zATZogIjg03IYAjqginaWUlNm hLUdvcsWgLEx4HG96Aw3zYskZG6tgTccWckI65nSO0BCTghLANLDjPmbTfWap62BGyvf 0A1OXz2Gk+76lxcwLE8OKZ1Al5/9azu5Q98w3OWH+q3wYktwBJesdv4NrxVFeB8ytbFE 013+LW0hXujdI9Gk6wj4oFj24TSdah+bTNOcChr9yQ4v3lvGWU4K37+KxzSNb8qIf6bh bfdA== X-Gm-Message-State: ANoB5pn8QsXeVb5M/MRKucCKKaJRy2DeDQoT1Nmn752FrfzPqe+Pz9VP JIPQT1HOhXloztZarXNl5AfGdofRFUV8kg== X-Google-Smtp-Source: AA0mqf63TYHwQRevsrYQRWswqdsOoE3OQR+NZx1UnzHp2BaJDaMaAEsiXmOh+fR0jc38xn0ymC3sqA== X-Received: by 2002:a05:620a:9c3:b0:6fb:4a84:1c1 with SMTP id y3-20020a05620a09c300b006fb4a8401c1mr11382554qky.387.1668901562939; Sat, 19 Nov 2022 15:46:02 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-55ec-b699-c19f-3363.res6.spectrum.com. [2603:6081:7b00:6400:55ec:b699:c19f:3363]) by smtp.gmail.com with ESMTPSA id y11-20020a37f60b000000b006ce1bfbd603sm5169743qkj.124.2022.11.19.15.46.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Nov 2022 15:46:02 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 29/38] Convert CONFIG_TEGRA_CLOCK_SCALING et al to Kconfig Date: Sat, 19 Nov 2022 18:45:36 -0500 Message-Id: <20221119234545.404563-29-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221119234545.404563-1-trini@konsulko.com> References: <20221119234545.404563-1-trini@konsulko.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.6 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_TEGRA_CLOCK_SCALING CONFIG_TEGRA_LP0 CONFIG_TEGRA_PMU Signed-off-by: Tom Rini --- arch/arm/mach-tegra/tegra20/Kconfig | 12 ++++++++++++ arch/arm/mach-tegra/tegra20/warmboot.c | 4 ---- include/configs/seaboard.h | 5 ----- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-tegra/tegra20/Kconfig b/arch/arm/mach-tegra/tegra20/Kconfig index 5c4d35b5673d..345563fc789e 100644 --- a/arch/arm/mach-tegra/tegra20/Kconfig +++ b/arch/arm/mach-tegra/tegra20/Kconfig @@ -1,5 +1,15 @@ if TEGRA20 +config TEGRA_LP0 + bool + select TEGRA_CLOCK_SCALING + +config TEGRA_PMU + bool + +config TEGRA_CLOCK_SCALING + bool + choice prompt "Tegra20 board select" optional @@ -23,6 +33,8 @@ config TARGET_PLUTUX config TARGET_SEABOARD bool "NVIDIA Seaboard" select BOARD_LATE_INIT + select TEGRA_LP0 + select TEGRA_PMU config TARGET_TEC bool "Avionic Design Tamonten Evaluation Carrier" diff --git a/arch/arm/mach-tegra/tegra20/warmboot.c b/arch/arm/mach-tegra/tegra20/warmboot.c index 3d3758f6e6f4..5e3a9ebaceb3 100644 --- a/arch/arm/mach-tegra/tegra20/warmboot.c +++ b/arch/arm/mach-tegra/tegra20/warmboot.c @@ -23,10 +23,6 @@ DECLARE_GLOBAL_DATA_PTR; -#ifndef CONFIG_TEGRA_CLOCK_SCALING -#error "You must enable CONFIG_TEGRA_CLOCK_SCALING to use CONFIG_TEGRA_LP0" -#endif - /* * This is the place in SRAM where the SDRAM parameters are stored. There * are 4 blocks, one for each RAM code diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h index 73b738bd0993..f272fe9bf8f1 100644 --- a/include/configs/seaboard.h +++ b/include/configs/seaboard.h @@ -9,11 +9,6 @@ #include -/* LP0 suspend / resume */ -#define CONFIG_TEGRA_LP0 -#define CONFIG_TEGRA_PMU -#define CONFIG_TEGRA_CLOCK_SCALING - #include "tegra20-common.h" /* High-level configuration options */ -- 2.25.1