Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp20237rdh; Mon, 18 Dec 2023 03:08:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqbtgMF2iBGPvlwPnvxxfNzO7WOROddv528DXS/mkRSmZ42E0igDOWHim+QXVMI+PNA68k X-Received: by 2002:a50:cc9c:0:b0:551:9caa:fad1 with SMTP id q28-20020a50cc9c000000b005519caafad1mr4216204edi.25.1702897722147; Mon, 18 Dec 2023 03:08:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702897722; cv=none; d=google.com; s=arc-20160816; b=Kl9Se32OXnNTrQpx7GzM0mFjEEe5HuFVhH3HL5mbRQQGxHs6Aa0BiXi+YyPHoBHSAf FknIsCrH1mE/By+ERA8QDiSj/Cd5IcWjsJLmKqSBdXLh/I9zl+EN/3XZJjJ6zzRxZ5DP yKSeAF8p39/X8isQEG37h6S6RHOduh4XQEoHlN6uqLfIdkgx9+OhCm/qjdmG3UxYpTj7 6ofhY2W5hmSVxsdn8fIyUj6GHwxwspQAV/P2rN4FXzO1vQMiMM08wTTVlwPpobwz9TwB nD31wIicTJGrRpP2mwYmiypvh/BHEj85ZBypw5xCZBXiVxNp+52HmWrHMGDHglQZKLjb 13CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=lerjiFsv40IIbLDp1yKfCOrHgxz1kvFlDa/xJlfcdo0=; fh=nBHS+eeivT+H5xOXZ9rEmHW0m1mXBEHnEEhigrEOakg=; b=N3SiR5Wz99GR9JvCVSyYpcIuJbwDBDzqBxKRW6kjLLeKFRtGoBRyo7k2T9c4znSq/5 zq/H3S2OHSd0HMY7PNbpeZ/jtC2bOCGge9Ow9APnR5XkQyxNJ5eQFqIpRvP1uYfJ4T64 Fd8U701C6S12zuMJSDNi53o5I54PfuWmwqwAfYlXJgBGRAb38pfC5golI5NO9u77YvPe s7lWaqt5j/0kuNv8tsBcA1mdB1uA5Q79i8UEfEQoRgeUZEo4IDBaY8CHxn88zmrP0qv/ M61upU27Pju+DhHqQ7aRPZ4j/5iD0kheOjekMtyGL5J9gfwyXU6uRiHdN3J/dmrCx0ZM TZAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gaNksvEp; spf=pass (google.com: domain of linux-kernel+bounces-3412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v26-20020a50a45a000000b00553450b6cafsi874119edb.606.2023.12.18.03.08.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:08:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gaNksvEp; spf=pass (google.com: domain of linux-kernel+bounces-3412-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C6D3E1F23780 for ; Mon, 18 Dec 2023 11:08:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A8271C688; Mon, 18 Dec 2023 11:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gaNksvEp" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE31C1B28E; Mon, 18 Dec 2023 11:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a236ade46e7so6125266b.2; Mon, 18 Dec 2023 03:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702897631; x=1703502431; 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=lerjiFsv40IIbLDp1yKfCOrHgxz1kvFlDa/xJlfcdo0=; b=gaNksvEpnyqzbghpic1iMVz7pOQ3JyxURSYeA14gLobNA5tkvFMTt9VVuImOTBiy/n GOXy9AyAjaTGq7tPJTdrdwth3IsKIQ21xqVK51ThPJsgaUcPrqOV9gXaRkW3jJTViA3L BPWc3KwqtLMxUK9ZvW4iFjdAxMKZde07l4b41bGTEiHSzD63DpJy2rea3YPzpp9inuxs lE+tnnWumNGgVN7Xk5hBIcRQm/nFDXPQRHzYQpZ0pQ6oiDoTalngD5kKnkw8LJjp5I9S f/d9baHWv484rPLyKmPN1FfB2Ud/2Z2Ewscnu98Z7nJNjFtAlxWPEGVyXoEmrf/V3Im6 FVqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702897631; x=1703502431; 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=lerjiFsv40IIbLDp1yKfCOrHgxz1kvFlDa/xJlfcdo0=; b=aUV5MVaTBC4WpmvcsE3hyeRJbepx5HVZomaQMjMTRur5F85lrNHxRDnY7cZIrlRBOr ZVGZX1R4jPRu21bWh1fRlY7JHrVk5UXDNVNuYAVPNXCfbVZ2uZ0p7UK+9xbhud0Fczqy mAvxv9Uu5h9y/xJo0GVQTu8aTC1cL+F0RKx+6WngvIZwbDCHytp8auIBjVrFAhGJLZOu A1WcFG8u40QRIGBL76IjdO7Kl4NeSWXPofJyrhItWLJ/GGDBEIH5WkdyWDA8PWWVclCA zuTIsxSEXT2Z+LtIZY/MjJvCuyGePZKanbvbXIiJWL9Eq4xz6QYWYwsPwZxjbj+ARX/b Tkag== X-Gm-Message-State: AOJu0YyJZYMxoG8WoR82b07p1VW7ys/gBvIkfblYQKl2H8c8k+0qQJvX VeSxl3VfaM8GiP37mVXQw0w= X-Received: by 2002:a17:906:11cd:b0:a23:365d:fc74 with SMTP id o13-20020a17090611cd00b00a23365dfc74mr870108eja.125.1702897630746; Mon, 18 Dec 2023 03:07:10 -0800 (PST) Received: from localhost.localdomain ([154.72.163.164]) by smtp.gmail.com with ESMTPSA id pj4-20020a170906d78400b00a2353af1f7bsm1406769ejb.92.2023.12.18.03.07.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:07:10 -0800 (PST) From: Brandon Cheo Fusi To: Yangtao Li , Viresh Kumar , Nishanth Menon , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Maxime Ripard Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Brandon Cheo Fusi Subject: [PATCH v2 5/5] cpufreq: Make sun50i h6 cpufreq Kconfig option arch generic Date: Mon, 18 Dec 2023 12:05:43 +0100 Message-Id: <20231218110543.64044-6-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231218110543.64044-1-fusibrandon13@gmail.com> References: <20231218110543.64044-1-fusibrandon13@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Move the Allwinner SUN50I cpufreq driver from Kconfig.arm to the main Kconfig file so it supports other architectures, like RISC-V in our case, and drop the 'ARM_' prefix. Signed-off-by: Brandon Cheo Fusi --- drivers/cpufreq/Kconfig | 12 ++++++++++++ drivers/cpufreq/Kconfig.arm | 12 ------------ drivers/cpufreq/Makefile | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 35efb53d5..50aa66cfc 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -301,5 +301,17 @@ config QORIQ_CPUFREQ This adds the CPUFreq driver support for Freescale QorIQ SoCs which are capable of changing the CPU's frequency dynamically. +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. + endif endmenu diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index f91160689..98b8e6eef 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -29,18 +29,6 @@ config ACPI_CPPC_CPUFREQ_FIE If in doubt, say N. -config ARM_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 SoC. - - To compile this driver as a module, choose M here: the - module will be called sun50i-cpufreq-nvmem. - config ARM_APPLE_SOC_CPUFREQ tristate "Apple Silicon SoC CPUFreq support" depends on ARCH_APPLE || (COMPILE_TEST && 64BIT) diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index 8d141c71b..110b676d2 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -78,7 +78,7 @@ obj-$(CONFIG_ARM_SCMI_CPUFREQ) += scmi-cpufreq.o obj-$(CONFIG_ARM_SCPI_CPUFREQ) += scpi-cpufreq.o obj-$(CONFIG_ARM_SPEAR_CPUFREQ) += spear-cpufreq.o obj-$(CONFIG_ARM_STI_CPUFREQ) += sti-cpufreq.o -obj-$(CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o +obj-$(CONFIG_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o obj-$(CONFIG_ARM_TEGRA20_CPUFREQ) += tegra20-cpufreq.o obj-$(CONFIG_ARM_TEGRA124_CPUFREQ) += tegra124-cpufreq.o obj-$(CONFIG_ARM_TEGRA186_CPUFREQ) += tegra186-cpufreq.o -- 2.30.2