From patchwork Mon Dec 18 11:05:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13496615 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2464C35274 for ; Mon, 18 Dec 2023 11:06:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uCqM6dD3l9kPf989NB0nbgWWBP8gbLlX3l3V5/O8hkw=; b=tdOeMJVB91T9eQ FkpV4gCfoSkFNXxGd3C3YUkN94CV9yXsX8RD0xH9Gh3b0AAqN4QgGo+Cz7teFdsQK9TO5QPwNtSMk YQ2EUKqv3cu0B3R7W7L+YZsWgHPEk0oDHbcMbPEukOBfZhBRXvLTUGgP2iqsagj94/QUHfude5NAx Q8FOna0Wym9AMTeyKZty3/onos2j04LUsZ3OE/1l3fKYk1QlpvSG2rfkyxsYPSAG4xhdASrvC2b+i pic+VPiL4NJ/kzI0cCL5ZKuXWeiZPq7jejPEE5InWry94jhb1l3dxPD59T+Yit9p/+5mXiY3Jq1UN n5Obo3lkgXL7Mv/P9qAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFBS6-009ycd-2B; Mon, 18 Dec 2023 11:06:26 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFBS3-009yZ7-18; Mon, 18 Dec 2023 11:06:24 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-552fba34d69so1975508a12.3; Mon, 18 Dec 2023 03:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702897578; x=1703502378; darn=lists.infradead.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=6LeaDDQj7Ki4b0Ekhl8dm8Jbb6kPpIVsluEl7LY+BBI=; b=W9kbjWUYfnnLZOOUjkajeSYg4ZnGvDVf7Cor276Krl1VLTXSvMTIPblHQ7OS4Cu5Wz Utt/nhbkKV1Ar+Ceg4s71UC6GCKTNGSo1DhDpMyHnwytgTc6mfy0fCIJIo+n4PChRIfO B1xpGYhelaHI8+GGMCRk0itrMYi0QUPoE9m1pjqMdCdD/EHB3va1xHbALIBMkjjjE2km g9E5eScZ1JBcdjwgIbVKb+JucyHvokikTX7niSJdqghJdQU8e7UZBxCfBaDMDG0Y66yo Y+nSzejLwt7+LF9UVUPlaQUZqsUbX0hBbmWyzNGF+qiftpWnJEKDkuanZwirNsbN0W6V cwYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702897578; x=1703502378; 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=6LeaDDQj7Ki4b0Ekhl8dm8Jbb6kPpIVsluEl7LY+BBI=; b=vodLCBqaIUVjhiJiYLgIRmng7gzbRCE/omHjBuyj7pWOiyYtQ8LuGiFEE31AcCd6e6 VTeAptvBq01pvZ+SlqpvzWkJcERxWxXOfcQJh5preop+dIBP3ROIMLu4R9HNmcVU9v95 b7sh/wGcvPN3sBadfAmfCeVIw7ol2bSPGcmvfmXMgMO0X84XJTcuaWYfIdug0FArKR88 S+77qz8M+XC4iustZT5YGvyujgsFtm/sc6W2JgS7cDy8/I4nXaoCp1pUlRcnxx2yDHqf 7/kRpedHg414iFFelNloihS8/TYrfzO8vrALvhipLcyPZDd4O4hNzxU3eDzASlT+b+DZ 4BLQ== X-Gm-Message-State: AOJu0Yy3WK3VTh/aJ3i1NPIZkDerlbgVaVxQQum/qwzdK6S6EkKM5i/f e3Rz1DT5/3FLIBZfhglCGQ4= X-Google-Smtp-Source: AGHT+IGPZifkd//LzKxHy7u8xX0XqBW45bgrlj+EqkgnlzlL1DsOZUIoi9IVE+ojfJGXuEukc/v8NA== X-Received: by 2002:a17:906:74d5:b0:a23:65ec:8252 with SMTP id z21-20020a17090674d500b00a2365ec8252mr258761ejl.48.1702897578653; Mon, 18 Dec 2023 03:06:18 -0800 (PST) Received: from localhost.localdomain ([154.72.163.164]) by smtp.gmail.com with ESMTPSA id pj4-20020a170906d78400b00a2353af1f7bsm1406769ejb.92.2023.12.18.03.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:06:17 -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 1/5] riscv: dts: allwinner: Update opp table to allow CPU frequency scaling Date: Mon, 18 Dec 2023 12:05:39 +0100 Message-Id: <20231218110543.64044-2-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_030623_399843_2BDAB246 X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Two OPPs are currently defined for the D1/D1s; one at 408MHz and another at 1.08GHz. Switching between these can be done with the "sun50i-cpufreq-nvmem" driver. This patch populates the opp table appropriately, inspired by https://github.com/Tina-Linux/linux-5.4/blob/master/arch/riscv/boot/dts/sunxi/sun20iw1p1.dtsi The supply voltages are PWM-controlled, but support for that IP is still in the works. So stick to a target vdd-cpu supply of 0.9V, which seems to be the default on most D1 boards. Signed-off-by: Brandon Cheo Fusi --- arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi index 64c3c2e6c..2f1771c19 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi @@ -39,16 +39,22 @@ cpu0_intc: interrupt-controller { }; opp_table_cpu: opp-table-cpu { - compatible = "operating-points-v2"; + compatible = "allwinner,sun20i-d1-operating-points", + "allwinner,sun50i-h6-operating-points"; + nvmem-cells = <&cpu_speed_grade>; + nvmem-cell-names = "speed"; + opp-shared; opp-408000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ opp-hz = /bits/ 64 <408000000>; - opp-microvolt = <900000 900000 1100000>; + opp-microvolt-speed0 = <900000 900000 1100000>; }; opp-1080000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ opp-hz = /bits/ 64 <1008000000>; - opp-microvolt = <900000 900000 1100000>; + opp-microvolt-speed0 = <900000 900000 1100000>; }; }; @@ -115,3 +121,9 @@ pmu { <0x00000000 0x0000000f 0xffffffff 0xffffffff 0x00020000>; }; }; + +&sid { + cpu_speed_grade: cpu-speed-grade@0 { + reg = <0x00 0x2>; + }; +}; From patchwork Mon Dec 18 11:05:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13496616 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B921C35274 for ; Mon, 18 Dec 2023 11:07:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=966tXKStcX9FwxfS8z6bfn7ElGudtwmNr4AU2gnbyKM=; b=g5oau59Y0h/PkB 44cIh+vo1SYdykq8bf7GEKVYBHUF1SWWdyBTiOdF0qZ47jseC3hf+dUAkargr5AdidIBT1NZUqNd4 /q+ObuL58pen99e6VkNtYj9fSSVR3C2gqK0KAAAdvfrBY86cpQJRwJxRYOONZBJJOsKyzncDnYFps QtB1WWsBmgDDYvM8GKWSKY9aVTHnJiBsVuCOseSJWNkIRoxqvQEd9wdEkld8VT13BOv9OWgIU5X40 ZetYVbWoLiUyCkpGIcvw3LzQEVyuAatWUBYTcPMgycHBaUb7oCeaUM0wIHCcvpU6S6aLngEnPfWtY SFcR64IAEkdsV1mfWR0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFBSH-009yir-1Z; Mon, 18 Dec 2023 11:06:37 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFBSE-009ygC-2l; Mon, 18 Dec 2023 11:06:36 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a2345aaeb05so130262766b.0; Mon, 18 Dec 2023 03:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702897591; x=1703502391; darn=lists.infradead.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=E8/JnmQCAMS2cYksRjeaCp4G2NnTSXTyff3BziFBU7s=; b=Hht+T18TU3yINZcqpJf9VwjVEDS1dDcpsEePA9svMEA5X9A6vNCNlAzdTtDMX1PRyZ SlBM0Xj+KPztpqDwyrDGzPQIlOOGgqqRjj4CkqqU9qG3MpQUGQ5EBkayBf3/n6dSi2oh /M9OB0b50pZDKNP0PD8ZLGtXza8jgDbKkhxievP5IatB+ZKQar2u6XwhYqK1aAdj7Bnf qEhbwvhrn4moTmc9cRRGPRJqtfxKPed/G2UB8+b/ee6H9dyRrbWARlB212hww6q9HRTg LH2N7PW9UXT/dhFrqm4X0MBKhcxwAg5MRBpCNoI03H3U6wVLONO20sM6s0BPMmVfm4AH qPpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702897591; x=1703502391; 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=E8/JnmQCAMS2cYksRjeaCp4G2NnTSXTyff3BziFBU7s=; b=WX+pDTgWYzG5brBpjYQPsQ1DUYfFHA0M3uYRZJp4aRgUgFqJ8J2Zl9IMMWbcaQmQbK eu478JQS9QXPQqwSra0xz0DlkHnO+T8Rin0N2lPmyYwNPUKUWDS2mAdefK1cZ/+NZ2m5 hu6nSW52Xwv0HqsP7oTg6HqPc1/RuIv2KB7RoO4Mxf3GbiZZL1Ee8EQ2UqsgOaifRDna yK/+96QZNKSGn+79ZpQp4eGaoQHi+rcmLPfarlyGs5PB/+nDsJepn5X3mDBcT38EZ1AV Eo+yb/pbDy5Ps0xiFngBWSFR2x/1uocsnibjTJCxnUWEzZAy7YtebVZv6/uNQ6h3DAse t+TQ== X-Gm-Message-State: AOJu0YyE33MqjND5DtBj/LIC+Cl1RiTYuw4xlzLzV5nRIwMl/ARIb8A/ Kxf3sLFHhEseJ6Mc2EFYK84= X-Google-Smtp-Source: AGHT+IFf3fTdcqRMdf1nMW9QU6h5ioPHWtIwlndls7xDU+7sKH62DkfHYo+TKGbOTDX/dltHActCzw== X-Received: by 2002:a17:906:fd86:b0:a23:26e4:862a with SMTP id xa6-20020a170906fd8600b00a2326e4862amr2021405ejb.88.1702897591591; Mon, 18 Dec 2023 03:06:31 -0800 (PST) Received: from localhost.localdomain ([154.72.163.164]) by smtp.gmail.com with ESMTPSA id pj4-20020a170906d78400b00a2353af1f7bsm1406769ejb.92.2023.12.18.03.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:06:31 -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 2/5] dt-bindings: opp: sun50i: Add binding for D1 CPUs Date: Mon, 18 Dec 2023 12:05:40 +0100 Message-Id: <20231218110543.64044-3-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_030634_891073_CD4E7760 X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add binding for D1 CPU OPPs. Signed-off-by: Brandon Cheo Fusi --- .../bindings/opp/allwinner,sun50i-h6-operating-points.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml index 51f62c3ae..fddaa3216 100644 --- a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml +++ b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml @@ -23,7 +23,9 @@ allOf: properties: compatible: - const: allwinner,sun50i-h6-operating-points + enum: + - allwinner,sun50i-h6-operating-points + - allwinner,sun20i-d1-operating-points nvmem-cells: description: | From patchwork Mon Dec 18 11:05:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13496617 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AFEBAC35274 for ; Mon, 18 Dec 2023 11:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/WalAOu0QwY51iXRE6TfT8rdbF+Rp584n3WY4sg5ccU=; b=aSqEPmgsz/qJ8D XUmETGwjkWJQZ6jhD60e7/tZkiOPtn8/T3QvgFm5z7hQb5DVG1v6EPuNo5zxLoag3zxVN3/Ga/AMJ Uo7SK/WDRR95LS1hr9wNnTt/fnAKw+WvJQ8PZypZtwjcXuZA3wnKS8fpLaL7XJMqMAsCUEJflsfcO mS1UY+XTwcgoeBP6eoa+t7Od5IdCcqCe9xJ3xSx91wGcU7F0jKllQXaA9cYJikWQIAghejyepiDuJ 5sbf6YecSfAGhcUMyrP87gqLpKP/sZ8a/hI+bk6il9rxdTZ4Z2p+GLl2/a3HfV8bGjoqUf4us38H+ ryvRs6QAzniGhQ9DtIYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFBSe-009yxJ-1T; Mon, 18 Dec 2023 11:07:00 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFBSa-009yrT-2E; Mon, 18 Dec 2023 11:06:59 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9fa45e75ed9so324185366b.1; Mon, 18 Dec 2023 03:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702897611; x=1703502411; darn=lists.infradead.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=5YMMP/qsVfdoJtEElBLyEEO9c305KOAYJqUkekDdPZs=; b=EiY8/U6pmn9MsQbxlNCKQaA8nnRM8wch0EETlYEnUjmsFTBDEhRTakPucbZHhWdxJz 3x2PuH3lpvn9uwFn0wG0HCDS1smRyP7qI4LdIHOmQZWuxlolNS4MjHLW6OXY4cyzdkPv Na9ikJrxFmoZauCs6E7jw1zOMHDjStf35bzW9ItHVfMNkPgQANwZz5sjx6yRLnniY+EQ kwkcAEwHXEcJfGOplV6KWnolGD9oEXQwjIserlDeYIS86LAKpl8ibZ9WmPxu0hR3VVJz HaUnoamFuvivz0L436bW2vz3TMuEOGGkWGe5juAdluIjAIMjPLOcy1iiOuwbNkh9zZex 3wBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702897611; x=1703502411; 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=5YMMP/qsVfdoJtEElBLyEEO9c305KOAYJqUkekDdPZs=; b=uPpu0oehxcH7i76XWNXrMxhENpKAowjhJqMCcbVLr57qUi7Yuo7eRg8X0IQeExASxx tSwRTaYIO/oaRMXpt94liPzZlmyTtaLYh1rOsCMd5Yu3t+8zaKMjKxkbsRnlpeiqvbGq Nb8tkdeGVPebPpt5a2fIFt9cpw+uUL6EEzqvmSy4FemV20et2RhlJAe9lIIYUvmM+r40 3+igv8A4Czgm/RrITNHiyVCSnfG+jdFJVOLyjOq8rTh3Zi2u6o2oQeN3QzbDxjUlzq67 awAsqv4+CyRO9K5f6RVVNLMKMDZZ+N29EpOr5D1waRyO/5Qw1v3IUt0JeLJZL4zBMQ9A 7bZw== X-Gm-Message-State: AOJu0YwtJJeNpERlagsz5zMRNtzNqgnzhPj3avTNUROdu1jcPSy6KM4S VCGBsboJxS467jExEH8Ry601nne+TYnkGw== X-Google-Smtp-Source: AGHT+IFvCQuixkVNgpJoy4iekrTbntIvFyqQXesXqFyDPHUVUrNSA7K6fhKQ0zABch1KMEk0awPKmQ== X-Received: by 2002:a17:907:6094:b0:9fe:5d39:41c6 with SMTP id ht20-20020a170907609400b009fe5d3941c6mr8647546ejc.51.1702897611128; Mon, 18 Dec 2023 03:06:51 -0800 (PST) Received: from localhost.localdomain ([154.72.163.164]) by smtp.gmail.com with ESMTPSA id pj4-20020a170906d78400b00a2353af1f7bsm1406769ejb.92.2023.12.18.03.06.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:06:50 -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 3/5] cpufreq: sun50i: Add D1 support Date: Mon, 18 Dec 2023 12:05:41 +0100 Message-Id: <20231218110543.64044-4-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_030656_834963_2902A14E X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for D1 based devices to the Allwinner H6 cpufreq driver Signed-off-by: Brandon Cheo Fusi --- drivers/cpufreq/sun50i-cpufreq-nvmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/sun50i-cpufreq-nvmem.c b/drivers/cpufreq/sun50i-cpufreq-nvmem.c index 32a9c88f8..ccf83780f 100644 --- a/drivers/cpufreq/sun50i-cpufreq-nvmem.c +++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c @@ -160,6 +160,7 @@ static struct platform_driver sun50i_cpufreq_driver = { static const struct of_device_id sun50i_cpufreq_match_list[] = { { .compatible = "allwinner,sun50i-h6" }, + { .compatible = "allwinner,sun20i-d1" }, {} }; MODULE_DEVICE_TABLE(of, sun50i_cpufreq_match_list); From patchwork Mon Dec 18 11:05:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13496618 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD796C35274 for ; Mon, 18 Dec 2023 11:07:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ldt0eOwg9GoriqM2iJNF8uKJAQ5Ybq2N42NjTUtn9To=; b=v6df/3JgGNeSlV KYinpTJPLPHWvHWFAc6vKFycXcx8uVyo07U+2Z0NUyCnsWOhpIjWdfjep6wqbR1b0LO+hUy356t7n bn9V0fh2SQGf4OHePvz1+yqHklJMDWooyoRKIz91B0dI1+O1HMFikJevhujKT8EpXMctWP5M97oqe r11RA1sEPCR2KGX9sTG5LO4BmJIpbyZKoRRpigTj73DsXipFl6uX8yKlCDDjR39RcjHoLMLfYZSJe fxEKJyUBSrOCwWlOe4zvzC3zWmE4Y1wSyRIGzcdP8SUUSklEDjszpZahdDcHCijbXJMD/G6JO/914 fj3FPy6wekdk9kHIy58w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFBSn-009z3U-1D; Mon, 18 Dec 2023 11:07:09 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFBSj-009yyr-2p; Mon, 18 Dec 2023 11:07:07 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2cc6121c113so15611171fa.0; Mon, 18 Dec 2023 03:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702897622; x=1703502422; darn=lists.infradead.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=4SZpEgDuZF0Kd57Q/v4Kq9sCIukMURy5kzt0ohYZmr8=; b=Nf6dNKMtTZNpFYxCJVyx1T9CChgMb7Z0Ff6luqZIZ/LZB2JHFy/4MOWnUIKQ84CUbp thEU1tdUqB2hZnbGvCZIYWh4AnYFNk1BZ3o8Mi8nlqbI+6EmQXIwXzJXM4uW/PWHnaVA H1MZmFs9vffbnZbICjFvy+rvQL0tZLhzbXySz4jhBAGU4Km5nguDeOOMVnT/bpOMH2/2 yJIbAFvs5eoIGiJjIF7YH98VTE9/BO59MrzLlvrR2AXBNKh3XpmxOXRZQ9qH2I/ZQzZZ keOidIF9IUpOx+r1SffHJg0pwAVt8/O7qT/vhllmoaWo5cbHA1aTA5L7sCW0xq/fHr+w 74Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702897622; x=1703502422; 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=4SZpEgDuZF0Kd57Q/v4Kq9sCIukMURy5kzt0ohYZmr8=; b=TKes8vW3nnaD151P5+RHcBbdF5bj8r11y29QZILZscYt9CUZpnQQSRhZLCfS2xuJzF YNvLraJADM24zriqSJSoTSkBhYt1pPjXD+RgYJukYaHZ/x95vZPhKvN88XBlwWa93dnh VneZcOY5QhkG8zxjXDKp67PrGvUa8dZG05MUnezz2ogVuDF0wddRq0pJXsv61zCFw6dW h58r+mwHMKb+G4hjQFLp/4YLEwoVig68AmuwUPuz6iGxg6ISJCgGfBG4QQoZN9x1fzTk kM1q2hABsrVTRWg6/w/82Ux7i0o0Exg/1yZJWlAi8RyWm916vU2IVgtFL95Tj09UwRtq jAAA== X-Gm-Message-State: AOJu0Ywwd7XgFl9cgxEapP5UIsUufSOZYno8rD47C2Ek1mLLmDlg2J7/ fyzxUGmT6Hw+A6UZeAnAupU= X-Google-Smtp-Source: AGHT+IEEPpv4PbOGki1wpFYE/FNbr0LMBpvRkHRipU02IysiUzOQcuXrBHqB/ytN1/Alf/94bokq8Q== X-Received: by 2002:ac2:4d12:0:b0:50e:3dc2:ad16 with SMTP id r18-20020ac24d12000000b0050e3dc2ad16mr142258lfi.232.1702897621400; Mon, 18 Dec 2023 03:07:01 -0800 (PST) Received: from localhost.localdomain ([154.72.163.164]) by smtp.gmail.com with ESMTPSA id pj4-20020a170906d78400b00a2353af1f7bsm1406769ejb.92.2023.12.18.03.06.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:07:00 -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 4/5] cpufreq: dt-platdev: Blocklist allwinner,sun20i-d1 SoC Date: Mon, 18 Dec 2023 12:05:42 +0100 Message-Id: <20231218110543.64044-5-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_030705_954428_4B75D93E X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Allwinner D1 uses H6 cpufreq driver. Add it to blocklist so the "cpufreq-dt" device is not created twice. Signed-off-by: Brandon Cheo Fusi --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index bd1e1357c..2febcfc2c 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -104,6 +104,7 @@ static const struct of_device_id allowlist[] __initconst = { */ static const struct of_device_id blocklist[] __initconst = { { .compatible = "allwinner,sun50i-h6", }, + { .compatible = "allwinner,sun20i-d1", }, { .compatible = "apple,arm-platform", }, From patchwork Mon Dec 18 11:05:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13496619 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E2F2C35274 for ; Mon, 18 Dec 2023 11:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EE7rxuLeS3EEg146zqLUhR4yYYpOEZ5CMgL4WwQ9wHU=; b=2MxXeNFYDJUcO2 YZIsa7w2SFYJJvjowPB+C/PMulM6ry529JdUrNFbRqalQyIGdg9DtjMV1mFLiG1aYw3RS55JoOLAj 09xiQCdGgsvXQN8M4a3MMRcNy1prNr0TJhXrSYEFgFwvlAksWR9D4g//0pSJwyI2SX4rZih1QwAg4 V7HcsiMzZ9Z9uRMU6wBFuHiL3K9DCMNLPiAiIRp2A1TqFybVhurkPAyvroKjnuaCJwoIPMlVTDDvt TTe3UCvK+dkvhpvQD7nLucinUe+CejK1pzlZi783dzOOciTIA2Lv19F8MxnvFtbiUcYZ8XoCnCbeP NmbgYdUr+UfpyInYGR+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFBSu-009z9a-30; Mon, 18 Dec 2023 11:07:16 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFBSr-009z5O-3D; Mon, 18 Dec 2023 11:07:15 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a23566e91d5so103457466b.0; 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=lists.infradead.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=df+BLlgRpzbi81JPiwGtrgt8eNTg4ZrKAozUpuuW8ilDxAMS/ZHW7U0FwU8VoAhzZd GzmhjID1UmN6Di30eigSzSMh2dvch1Pm3U5c2NQ6mN5ULravYitsVC7DA3dXCQkguT2J NagUkmTzFHdqjnjK2Zov4RjVQVNpz3F7UmgAshh7QejoKcg4vQA+B7Twj0ppcvK7bIss gE3H+tac56ULCV2wd0XadWpnLxaxfMmNaoCBd+458Npc+Jd1rln6K2nIXGt5k/ImPRfe RwZBtUoFiSWzCrgEYoN4ECGWq2V53xj7iQJ1gCinXNscLg5jEF4XlP+ueiyNMRWsUtTZ L/YA== 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=mkwZdY0URlIH/n0lYX/nOc/rnJvUJbp2iO32TxLNEwGCYDyJ+ry7F7XPTnlK8x6Xvg iZFIIIAMvtp+f8ALk00IVvckQ5lEyBvv+nwWWGNbT26NT1JuC7mx+eM+ErYKOSASJO3C J279UBqNPS4u2QfsbiT+EGEgNoVe/Q4CKz18Q5EZ0kxj6NNWVvjgIdueA42NkfZfQJrz U2IgBTXJtUVXgSYislsOW9VMXtW9zhCL7R030YNIKIrlp+OqR1J7Z9CzvfZGLsGsst/E 8e2vqftMz+pu8g3cQoSleil7+eVcso/2kj/0OYbB95x+Nnerjnh6EAlGxRdTF0PAhoTm uUpA== X-Gm-Message-State: AOJu0YwqhhSrf/zxNn8a5nqbV5+4X8JWaZL3ZWSn7UNQ3BDO14MMnsi6 BQzmOCNyNWss07lqlxThZiA= X-Google-Smtp-Source: AGHT+IGQMtd6fso8NFusjQjFPqt6Spt8yZ8CBjuG18cqbhcpV/I/x5LWeBsLrRHnA3YL1WPAg7whNQ== 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_030714_062328_B7CD2BF1 X-CRM114-Status: GOOD ( 13.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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