Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5889926rdb; Thu, 14 Dec 2023 02:35:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7VsqPPL79GaAAsZDHMMGuNkCpyNtGnFbyynQ1msANOOMhW/gTVp4zP3AaT9R7NPMCMZda X-Received: by 2002:a05:6358:e49b:b0:16b:c467:695f with SMTP id by27-20020a056358e49b00b0016bc467695fmr6505028rwb.9.1702550158683; Thu, 14 Dec 2023 02:35:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702550158; cv=none; d=google.com; s=arc-20160816; b=x9+wp3WmjJK55Ybfduf2PWRqY02i8ABhfA3BpbuPEkWiwoEfTWf6RmnPiO3HlZn/eg XgeohHWVZwOv8irTLz8S3B1UIlYLllGx1EeiOIDZ478llGHC8IIPtY+C933VkCIk3WVo Gs7tZXvUnt1vcHZx7UtaPBeeg1LcSGnPJKzMEAjTGQT3IIQ+dZhm/6d/ylh6/ZAd/9Lp /Xrv+OcxIRB+NP5gRZw1m+2roW2WyEIYe9lTc4Gjx8JyHAyrrrIrff/3WAxmHjx7NGS4 EulFS0PaaFElYeDr/F8GemWLnUgEmuTRlSsuHFHWQByHBVq7vdBRfJmzDCL+2TY021Ca szjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JrT4GQFgUc2NFNy8QfHDcUrSUYysbuxBIxCpg4THq6A=; fh=rnrrVEVjIAVXEBXz1TJ37fn0yEjCSK95u4kuSjKp5h0=; b=XDICRMAMuDCTGR9MxpyRDlT3rVy8Nu4k6gJrhfItqIRyNO4OKpRC43JjF8Adn7FBfC Pznce/HSZTW532E4HibJQ2REeq+gVEVjPzpiZePuZnm8Sk0Hv+CcHVnvtM/uUO/j+hqf E6fl7cUIJrMOiDIBt/djN6MimahHDITuFpE3IDoyViZfQeiiROxGwyvMbaD5sSyW2r40 RDeWiR/vpn4G2R5LbXog0GxCsoysLANX9jSr9RWqTscT846xY2op3BroxZe8TiOhfyTt uQ/1hS3on5LhZPJFkBHbS4MP5EjowW+E1GUFOiaSPf2uHcaRfj6FvoE04apbFBvsOd1e xD8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="T9/rLp3l"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n2-20020a170902d2c200b001c3411c9b83si3282127plc.454.2023.12.14.02.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:35:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="T9/rLp3l"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A42F580FCC92; Thu, 14 Dec 2023 02:35:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443719AbjLNKfh (ORCPT + 99 others); Thu, 14 Dec 2023 05:35:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443743AbjLNKfX (ORCPT ); Thu, 14 Dec 2023 05:35:23 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E67B137; Thu, 14 Dec 2023 02:35:30 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40c3ca9472dso58872025e9.2; Thu, 14 Dec 2023 02:35:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702550128; x=1703154928; darn=vger.kernel.org; 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=JrT4GQFgUc2NFNy8QfHDcUrSUYysbuxBIxCpg4THq6A=; b=T9/rLp3lA9YvFk+eSwLr/+vJsfm7myTmt3cfTjY76HaDeR2Hy43toF2exFW2JQKWGe k7id6fqMefwQRdGLPVHSdgY/3G+h6EAhJiOdlnC54E4lL0KwB3F+vnhI9+ZVV8lyUcQM EYV840p4rvOI4/eUqFs+nraKPav+eBUZtxuT7I2TdjWnyADOsb0xHB1SIJ8cdd3fqEOp TUBWSZFyReLKhY+xeQEYvTzbee39h1CgZ3iY9JIRKWtvkmzh0H7vr6yQ1D+6bbGorEXg 0oFS3D9a2TIL6ySaulKCrR00uhDLhLy0NGxAk8lQfk0KgC6C71pa9uSVpUtfne2kLo0M WjKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702550128; x=1703154928; 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=JrT4GQFgUc2NFNy8QfHDcUrSUYysbuxBIxCpg4THq6A=; b=KWPxMFUKg4Qor6qhFV63Lg+QugqneI4aVGTfpI03m+cOOyI9alAYOVefAjeSZr+Ksb kfwBuVzM0m5eD3lAZ4ZVbfsNWs05F1pIrKrdJRKLd7OTLo8x98XucszVktJObxOcv9QC S6+1KnxOdkb7m/IwFfSP0phMOxh6/fudM/1WchIW9uxKuWKPmA6JILhGSydhRFLsBcey fR4MWVo+wG8NSYKBMaGNGOKwHZrK59TqyycvgrjrZSGL+ZoPp8XjhUaRKCq9owxceRAR btrjGmf9N5TO7dgBZb3PJIhIBU48ih5twhbBdsIZ5+414LxvsfJ5dR15KqiYo6zT459B J3Pg== X-Gm-Message-State: AOJu0YxWXGRFWtPSwlbCEEle2vudxrXoMbgX4kalqQQJ8jb04uv4Jp8E nC6kvuRkSBiAZy0hwFOIv7Q= X-Received: by 2002:a05:600c:2a41:b0:40c:32fa:4f45 with SMTP id x1-20020a05600c2a4100b0040c32fa4f45mr3510981wme.248.1702550128507; Thu, 14 Dec 2023 02:35:28 -0800 (PST) Received: from localhost.localdomain ([129.0.226.240]) by smtp.gmail.com with ESMTPSA id e4-20020a5d65c4000000b003333ed23356sm15849623wrw.4.2023.12.14.02.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:35:27 -0800 (PST) From: Brandon Cheo Fusi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Viresh Kumar , Yangtao Li Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Brandon Cheo Fusi Subject: [PATCH 4/5] cpufreq: Add support for RISC-V CPU Frequency scaling drivers Date: Thu, 14 Dec 2023 11:33:41 +0100 Message-Id: <20231214103342.30775-5-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231214103342.30775-1-fusibrandon13@gmail.com> References: <20231214103342.30775-1-fusibrandon13@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 02:35:54 -0800 (PST) Add Kconfig file for cpufreq scaling drivers that can handle RISC-V CPUs. An entry is included for the Allwinner H6 cpufreq driver that works with D1. Signed-off-by: Brandon Cheo Fusi --- drivers/cpufreq/Kconfig | 4 ++++ drivers/cpufreq/Kconfig.riscv | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 drivers/cpufreq/Kconfig.riscv diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 35efb53d5..4bef39fed 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -239,6 +239,10 @@ if PPC32 || PPC64 source "drivers/cpufreq/Kconfig.powerpc" endif +if RISCV +source "drivers/cpufreq/Kconfig.riscv" +endif + if MIPS config BMIPS_CPUFREQ tristate "BMIPS CPUfreq Driver" diff --git a/drivers/cpufreq/Kconfig.riscv b/drivers/cpufreq/Kconfig.riscv new file mode 100644 index 000000000..025c7c439 --- /dev/null +++ b/drivers/cpufreq/Kconfig.riscv @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# RISC-V CPU Frequency scaling drivers +# + +config ALLWINNER_SUN50I_CPUFREQ_NVMEM + tristate "Allwinner nvmem based SUN50I CPUFreq driver" + depends on ARCH_SUNXI + depends on NVMEM_SUNXI_SID + select PM_OPP + help + This adds the nvmem based CPUFreq driver for Allwinner + H6/D1 SoCs. + + To compile this driver as a module, choose M here: the + module will be called sun50i-cpufreq-nvmem. \ No newline at end of file -- 2.30.2