From patchwork Fri Jun 24 09:41:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102094 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp855339qgy; Fri, 24 Jun 2016 02:42:27 -0700 (PDT) X-Received: by 10.98.101.198 with SMTP id z189mr5479792pfb.53.1466761347730; Fri, 24 Jun 2016 02:42:27 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id hf8si5931991pac.23.2016.06.24.02.42.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jun 2016 02:42:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bGNcA-00078l-R7; Fri, 24 Jun 2016 09:41:30 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bGNac-0004by-Po for linux-arm-kernel@lists.infradead.org; Fri, 24 Jun 2016 09:39:57 +0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0Lp7GG-1bsiXO1VTQ-00exeO; Fri, 24 Jun 2016 11:39:30 +0200 From: Arnd Bergmann To: Linus Walleij Subject: [PATCH 3/7] ARM: ux500: remove cpu_is_u* helpers Date: Fri, 24 Jun 2016 11:41:28 +0200 Message-Id: <20160624094132.1852086-4-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160624094132.1852086-1-arnd@arndb.de> References: <20160624094132.1852086-1-arnd@arndb.de> X-Provags-ID: V03:K0:KXQytD5Ao8/slwaUoJvBd/Bi+dM41hTnCaWzBY9ImkCx0VsMI6x ++zTITEFVftpm8BPJhNzx905wrz1L0U+F9o81fDDsGOfpge+4pSa7zD2t4ylDXRX/+E9iXl ZPQWyKjxHwAcQBP9sAnu1XpmDFhMnEu4DhG/+iaMS0seJLSnG04PAm2nqlOo37Q4VQRqeEA Inop7DpFlt/qWXq92WNLw== X-UI-Out-Filterresults: notjunk:1; V01:K0:iARxttvfa6w=:OObeUMGAq79k3W+ndhKyP4 Mm4ANbsFJGOCxXkFSQ9ORrx+iNjwu9Y6pbJkCEDVMSWAOBFEleTFONeHhnZ7Eb6tXNGctNTtS lHxx4Qaf3JHHcPhnuOn0xKnB5pD9TSTLWZXf6enChO/ztGY8hU1b/y7yjcx240vqqCbACzDrm ba16hFRoZM7jZaUJ7iAFW49dhVkm12GDtIGSfFvVmFs1zaQ1y1WmdzM2CRrg9Asc6J/Z+U4Ip xHrc6jTV+b+Qeu3UHKuzQD652n+QBBrycF+DKW9Vskww98GNRdSCnNKpq7EEOIGLKgqRtidp7 yl5SqJ75M4CPmzSJj2CxJCsK0iq7ucaK9S8GG5rnMk229cp+u1RrVArMlXdt7z359GkCj1FdC 92QwREoczZUmMVciNVdgMF28ziKRh8Mn+Qh7s1XgV+pXzUyvVEkwFfnHGGyh8udf985n33dG0 FpMCuyfGNHBgklKlL3yeKwcVxmK5QqNgDyubHwoWkepBDgSOqkLcHOSXaPv04f6DpniWrGPgO iWeKj1l1UiArmqJCH1hJ+ZrzUKo3vGSedKqx6j4TExPLkrXqcahW9s3Knv4fNS2CDtVPnb5/D Vi0zotGeVxSCe5fG05nX4hRFTskm1S2j27lYatCrFXSYT5lSGTCz3hyISqR4x/XuASaG1UQbZ j3cvzUyBJ61Z0x48nx5NV1iA5mzMIsXPPWt7apByiwtFz3ByYiYiTNVdYYy1lfBtwxi4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160624_023955_335646_C0E782B5 X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.10 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.10 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org These functions are all unused now and can be removed. Signed-off-by: Arnd Bergmann --- arch/arm/mach-ux500/id.h | 107 ----------------------------------------------- 1 file changed, 107 deletions(-) -- 2.9.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/mach-ux500/id.h b/arch/arm/mach-ux500/id.h index bcc58a8cccbc..929f78ecf3df 100644 --- a/arch/arm/mach-ux500/id.h +++ b/arch/arm/mach-ux500/id.h @@ -32,113 +32,6 @@ static inline unsigned int __attribute_const__ dbx500_revision(void) return dbx500_id.revision; } -/* - * SOCs - */ - -static inline bool __attribute_const__ cpu_is_u8500(void) -{ - return dbx500_partnumber() == 0x8500; -} - -static inline bool __attribute_const__ cpu_is_u8520(void) -{ - return dbx500_partnumber() == 0x8520; -} - -static inline bool cpu_is_u8500_family(void) -{ - return cpu_is_u8500() || cpu_is_u8520(); -} - -static inline bool __attribute_const__ cpu_is_u9540(void) -{ - return dbx500_partnumber() == 0x9540; -} - -static inline bool __attribute_const__ cpu_is_u8540(void) -{ - return dbx500_partnumber() == 0x8540; -} - -static inline bool __attribute_const__ cpu_is_u8580(void) -{ - return dbx500_partnumber() == 0x8580; -} - -static inline bool cpu_is_ux540_family(void) -{ - return cpu_is_u9540() || cpu_is_u8540() || cpu_is_u8580(); -} - -/* - * 8500 revisions - */ - -static inline bool __attribute_const__ cpu_is_u8500ed(void) -{ - return cpu_is_u8500() && dbx500_revision() == 0x00; -} - -static inline bool __attribute_const__ cpu_is_u8500v1(void) -{ - return cpu_is_u8500() && (dbx500_revision() & 0xf0) == 0xA0; -} - -static inline bool __attribute_const__ cpu_is_u8500v10(void) -{ - return cpu_is_u8500() && dbx500_revision() == 0xA0; -} - -static inline bool __attribute_const__ cpu_is_u8500v11(void) -{ - return cpu_is_u8500() && dbx500_revision() == 0xA1; -} - -static inline bool __attribute_const__ cpu_is_u8500v2(void) -{ - return cpu_is_u8500() && ((dbx500_revision() & 0xf0) == 0xB0); -} - -static inline bool cpu_is_u8500v20(void) -{ - return cpu_is_u8500() && (dbx500_revision() == 0xB0); -} - -static inline bool cpu_is_u8500v21(void) -{ - return cpu_is_u8500() && (dbx500_revision() == 0xB1); -} - -static inline bool cpu_is_u8500v22(void) -{ - return cpu_is_u8500() && (dbx500_revision() == 0xB2); -} - -static inline bool cpu_is_u8500v20_or_later(void) -{ - return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); -} - -/* - * 8540 revisions - */ - -static inline bool __attribute_const__ cpu_is_u8540v10(void) -{ - return cpu_is_u8540() && dbx500_revision() == 0xA0; -} - -static inline bool __attribute_const__ cpu_is_u8580v10(void) -{ - return cpu_is_u8580() && dbx500_revision() == 0xA0; -} - -static inline bool ux500_is_svp(void) -{ - return false; -} - #define ux500_unknown_soc() BUG() #endif