From patchwork Thu Nov 15 15:11:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10684601 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AA3FF13BB for ; Thu, 15 Nov 2018 15:14:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AB832CA48 for ; Thu, 15 Nov 2018 15:14:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EC272CA95; Thu, 15 Nov 2018 15:14:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 390B32CA48 for ; Thu, 15 Nov 2018 15:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=XZNuxT2lZWejCFpEfbPt3bOo7OiFZrg/rRAwV2HVRY8=; b=Ns0atxbvcdWOhAMYmQszs7Bf9D +pIEIePkM8Ae14alSre6kozC6c7nAL+A+RujVonrC4jBq3EC0ujkOqOncvCoX1j+9nErLncSfW6Mn QWaTLqSQ/Wg6pmGae4qiJLiQ5P0gcx0gHubDWiOjRgP2zXCvMbawFAZ8Ms95PdemU0pHcQt2kN8RR 9NVCMRqQujKJHSsGJ4P2NG+ASY2qz7Mw0j0IPUFycCFJR2o8MXxA5IxVC4rxJPPTDbbP/F68xHeCo 3gd1YlO7oogGlfajAtGCu807eDAbLp/UkyQqyUjmDBbeyQ8QPteHUhvCWmS4SR2PgV3ILOKHf6lBS jjoF2fnw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNJLY-0000Eo-IH; Thu, 15 Nov 2018 15:14:20 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNJKF-0007VP-Le for linux-arm-kernel@bombadil.infradead.org; Thu, 15 Nov 2018 15:12:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-reply-to:Message-id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=69RbD6GTi1cC4wdBdTW6otNhXoInfb9R1q91ZnYeExc=; b=z+8abQxJow9jx+Ml1lxYlfMu3 U+MYQ0xcwg/J2T4QsCvFOpk8Ljxr4qCf3CcYauD3kv9Tqpimr3RH8CqWyvg048/c3Y8zTZFGCesDD 74KX0B1i3JomatqF1n5YLZKRRMipqJi4/zuIlvgetvamuKKayY15SMfOn0JrZY4sIHFK8kxdCIRIW QQq0FD2l8r7sXueuxsS3DSoPUt46wseFV0EH40xyQRfqQF88ENbixhMKwPmiuRdc4oUqaSvfBH5wL DESTpGtZQo2CK8emAovUCYZeIcGSgm/ThFSGLtgjcngH/1iVbf8PU9gJPa8YLVKONLGfOdQ5hVduB OGYLmnuEQ==; Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNJKC-00044y-Nn for linux-arm-kernel@lists.infradead.org; Thu, 15 Nov 2018 15:12:57 +0000 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20181115151236epoutp021293842fd5b2373005a8a4dc87ed6c06~nVOjP3iw62573825738epoutp02H; Thu, 15 Nov 2018 15:12:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20181115151236epoutp021293842fd5b2373005a8a4dc87ed6c06~nVOjP3iw62573825738epoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1542294756; bh=69RbD6GTi1cC4wdBdTW6otNhXoInfb9R1q91ZnYeExc=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=FMG11F9Kdz0c8OIC0UE78aCIQPPMavE0cFr/d+sUi1MSfNHoQZh7OWpHE46FcY06V FnUmwYH/YIStCh2UEiVqcO3FjGEzNeRj3ehvZDH1zDLypZuppcIkeyT7xu50v9ZlWZ zKBektNytTV0jyqgkTJ2m3vwgx48i4aLiTz4RgN8= Received: from epsmges1p3.samsung.com (unknown [182.195.42.55]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20181115151235epcas1p32a5c7c399985b92ca0f61f1a9f127649~nVOiuJM961924719247epcas1p3P; Thu, 15 Nov 2018 15:12:35 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 10.E3.04072.3EC8DEB5; Fri, 16 Nov 2018 00:12:35 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20181115151234epcas1p2006b64ae88567526c855869758ff8b9c~nVOhlq8D01093210932epcas1p2Y; Thu, 15 Nov 2018 15:12:34 +0000 (GMT) X-AuditID: b6c32a37-887ff70000000fe8-5c-5bed8ce3c38b Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 96.B9.03701.2EC8DEB5; Fri, 16 Nov 2018 00:12:34 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PI8006WJQ7YQ380@mmp2.samsung.com>; Fri, 16 Nov 2018 00:12:34 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Krzysztof Kozlowski Subject: [PATCH 6/9] ARM: EXYNOS: remove soc_is_exynos*() macros Date: Thu, 15 Nov 2018 16:11:35 +0100 Message-id: <1542294698-17470-7-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1542294698-17470-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsWy7bCmru7jnrfRBrMmaFjcWneO1eLvpGPs FhtnrGe1uP7lOavFwmnLGS36H79mtjh/fgO7xabH11gtLu+aw2Yx4/w+JouXR34wWqw9cpfd YtHWL+wOvB6/f01i9Lh1p95j06pONo/NS+o93u+7yubRt2UVo8fnTXIB7FFcNimpOZllqUX6 dglcGXM2fGIs+Cxa8XrlYeYGxn7hLkZODgkBE4lP+4+wdjFycQgJ7GCU6J1wngUkISTwnVHi 25YimKK3E78xQRRtYJRY33iXDcL5xSixatNKNpAqNgEriYntqxhBbBEBTYnrf7+zgtjMAkeZ JZZckQCxhQUcJC4ceQNWwyKgKvH2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5XmpBYfYpTmYFES572ddyxSSCA9sSQ1OzW1ILUIJsvEwSnVwCi2 8MZtszr3ltuikfpbH4qseLIqnJ1lCVNI4A+h21+33uQWOJ/6eYaL2o6DV27fF5l97WbDQstj W67ZbtFPsfDVl9J8us35WqaOTfVjwzONob2zMwpLp9aL2ZxaclCfVWfphz8WsaJ8dYVHNjIH mymwn1hTJyenEhPT26cS5RZ/TTb29ju/SiWW4oxEQy3mouJEAIHxlDdFAgAA X-CMS-MailID: 20181115151234epcas1p2006b64ae88567526c855869758ff8b9c X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20181115151234epcas1p2006b64ae88567526c855869758ff8b9c References: <1542294698-17470-1-git-send-email-b.zolnierkie@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181115_101257_415229_D81BE233 X-CRM114-Status: GOOD ( 17.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Arnd Bergmann , Chanwoo Choi , Pankaj Dubey , b.zolnierkie@samsung.com, Javier Martinez Canillas , linux-kernel@vger.kernel.org, Markus Reichl , Andrzej Hajda , Kukjin Kim , linux-arm-kernel@lists.infradead.org, Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove no longer needed soc_is_exynos*() macros & co. Signed-off-by: Bartlomiej Zolnierkiewicz --- arch/arm/mach-exynos/common.h | 71 ------------------------------------------- 1 file changed, 71 deletions(-) diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index 20d205e..1dfd434 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h @@ -17,81 +17,10 @@ extern bool soc_dev_is_exynos4412(void); extern bool soc_dev_is_exynos542x(void); -#define EXYNOS3250_SOC_ID 0xE3472000 -#define EXYNOS3_SOC_MASK 0xFFFFF000 - -#define EXYNOS4210_CPU_ID 0x43210000 -#define EXYNOS4412_CPU_ID 0xE4412200 -#define EXYNOS4_CPU_MASK 0xFFFE0000 - -#define EXYNOS5250_SOC_ID 0x43520000 -#define EXYNOS5410_SOC_ID 0xE5410000 -#define EXYNOS5420_SOC_ID 0xE5420000 -#define EXYNOS5800_SOC_ID 0xE5422000 -#define EXYNOS5_SOC_MASK 0xFFFFF000 - -extern unsigned long samsung_cpu_id; - -#define IS_SAMSUNG_CPU(name, id, mask) \ -static inline int is_samsung_##name(void) \ -{ \ - return ((samsung_cpu_id & mask) == (id & mask)); \ -} - -IS_SAMSUNG_CPU(exynos3250, EXYNOS3250_SOC_ID, EXYNOS3_SOC_MASK) -IS_SAMSUNG_CPU(exynos4210, EXYNOS4210_CPU_ID, EXYNOS4_CPU_MASK) -IS_SAMSUNG_CPU(exynos4412, EXYNOS4412_CPU_ID, EXYNOS4_CPU_MASK) -IS_SAMSUNG_CPU(exynos5250, EXYNOS5250_SOC_ID, EXYNOS5_SOC_MASK) -IS_SAMSUNG_CPU(exynos5410, EXYNOS5410_SOC_ID, EXYNOS5_SOC_MASK) -IS_SAMSUNG_CPU(exynos5420, EXYNOS5420_SOC_ID, EXYNOS5_SOC_MASK) -IS_SAMSUNG_CPU(exynos5800, EXYNOS5800_SOC_ID, EXYNOS5_SOC_MASK) - -#if defined(CONFIG_SOC_EXYNOS3250) -# define soc_is_exynos3250() is_samsung_exynos3250() -#else -# define soc_is_exynos3250() 0 -#endif - -#if defined(CONFIG_CPU_EXYNOS4210) -# define soc_is_exynos4210() is_samsung_exynos4210() -#else -# define soc_is_exynos4210() 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS4412) -# define soc_is_exynos4412() is_samsung_exynos4412() -#else -# define soc_is_exynos4412() 0 -#endif - #define EXYNOS4210_REV_0 (0x0) #define EXYNOS4210_REV_1_0 (0x10) #define EXYNOS4210_REV_1_1 (0x11) -#if defined(CONFIG_SOC_EXYNOS5250) -# define soc_is_exynos5250() is_samsung_exynos5250() -#else -# define soc_is_exynos5250() 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS5410) -# define soc_is_exynos5410() is_samsung_exynos5410() -#else -# define soc_is_exynos5410() 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS5420) -# define soc_is_exynos5420() is_samsung_exynos5420() -#else -# define soc_is_exynos5420() 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS5800) -# define soc_is_exynos5800() is_samsung_exynos5800() -#else -# define soc_is_exynos5800() 0 -#endif - extern u32 cp15_save_diag; extern u32 cp15_save_power;