From patchwork Tue Aug 23 06:01:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9294983 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6A70D607F0 for ; Tue, 23 Aug 2016 05:58:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B247288B3 for ; Tue, 23 Aug 2016 05:58:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DB9B28B48; Tue, 23 Aug 2016 05:58:59 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1D5428B3D for ; Tue, 23 Aug 2016 05:58:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756536AbcHWF65 (ORCPT ); Tue, 23 Aug 2016 01:58:57 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:58650 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756666AbcHWF6z (ORCPT ); Tue, 23 Aug 2016 01:58:55 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OCC01LWRLXSFDA0@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 23 Aug 2016 14:58:40 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [203.254.230.47]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id A5.8E.27902.016EBB75; Tue, 23 Aug 2016 14:58:40 +0900 (KST) X-AuditID: cbfee68e-f79cb6d000006cfe-f4-57bbe6106b07 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 9C.E7.05218.016EBB75; Tue, 23 Aug 2016 14:58:40 +0900 (KST) Received: from pankaj.sisodomain.com ([107.108.83.125]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OCC00A3XLXM2R10@mmp2.samsung.com>; Tue, 23 Aug 2016 14:58:39 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: k.kozlowski@samsung.com, krzk@kernel.org, kgene@kernel.org, Pankaj Dubey Subject: [PATCH v2] ARM: EXYNOS: Remove unused DMC and CMU offset and its mapping Date: Tue, 23 Aug 2016 11:31:16 +0530 Message-id: <1471932076-16528-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsVy+t8zfV2BZ7vDDZ6sk7V4/cLQov/xa2aL 8+c3sFtsenyN1WLG+X1MFou2fmF3YPPYtKqTzWPzknqPvi2rGD0+b5ILYInisklJzcksSy3S t0vgymj+uYW14LZwxZc5Gg2MqwS6GDk5JARMJE5tfc0MYYtJXLi3nq2LkYtDSGAlo8SMP42s XYwcYEW/74pAxGcxSpzePI0JwvnJKLFk61c2kG42AV2JJ+/ngk0SEfCWmHzmLzuIzSyQKbH5 QBuYLSwQLDFz2hOwehYBVYknhyYxgdi8Ah4S6y4+Yoe4Qk7i5rlOqIs+s0ksXSwEUS8g8W3y IRaIg2QlNh2AKpGUOLjiBssERsEFjAyrGEVTC5ILipPSi4z0ihNzi0vz0vWS83M3MUJCs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JutiP14++u7v5TVSJ7yHp7ro3wUqL+FfnfT+Zei70/CHd2tIfIhFWXEXv SgsCb27arMRSnJFoqMVcVJwIAJ19TBaWAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently there is no user of DMC and CMU SFR offsets we can safely remove mapping of their SFR address space and cleanup related offset macros from mach-exynos Signed-off-by: Pankaj Dubey --- Changes since v1: - Removed unused CMU register mapping and related SFR macros and updated commit message accordingly arch/arm/mach-exynos/exynos.c | 15 --------------- arch/arm/mach-exynos/include/mach/map.h | 5 ----- arch/arm/plat-samsung/include/plat/map-s5p.h | 4 ---- 3 files changed, 24 deletions(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index acabf0b..757fc11 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -30,25 +30,10 @@ static struct map_desc exynos4_iodesc[] __initdata = { { - .virtual = (unsigned long)S5P_VA_CMU, - .pfn = __phys_to_pfn(EXYNOS4_PA_CMU), - .length = SZ_128K, - .type = MT_DEVICE, - }, { .virtual = (unsigned long)S5P_VA_COREPERI_BASE, .pfn = __phys_to_pfn(EXYNOS4_PA_COREPERI), .length = SZ_8K, .type = MT_DEVICE, - }, { - .virtual = (unsigned long)S5P_VA_DMC0, - .pfn = __phys_to_pfn(EXYNOS4_PA_DMC0), - .length = SZ_64K, - .type = MT_DEVICE, - }, { - .virtual = (unsigned long)S5P_VA_DMC1, - .pfn = __phys_to_pfn(EXYNOS4_PA_DMC1), - .length = SZ_64K, - .type = MT_DEVICE, }, }; diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index c48ba4f..5fb0040 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -18,11 +18,6 @@ #define EXYNOS_PA_CHIPID 0x10000000 -#define EXYNOS4_PA_CMU 0x10030000 - -#define EXYNOS4_PA_DMC0 0x10400000 -#define EXYNOS4_PA_DMC1 0x10410000 - #define EXYNOS4_PA_COREPERI 0x10500000 #endif /* __ASM_ARCH_MAP_H */ diff --git a/arch/arm/plat-samsung/include/plat/map-s5p.h b/arch/arm/plat-samsung/include/plat/map-s5p.h index b63aeeb..0fe2828 100644 --- a/arch/arm/plat-samsung/include/plat/map-s5p.h +++ b/arch/arm/plat-samsung/include/plat/map-s5p.h @@ -14,10 +14,6 @@ #define __ASM_PLAT_MAP_S5P_H __FILE__ #define S5P_VA_CHIPID S3C_ADDR(0x02000000) -#define S5P_VA_CMU S3C_ADDR(0x02100000) - -#define S5P_VA_DMC0 S3C_ADDR(0x02440000) -#define S5P_VA_DMC1 S3C_ADDR(0x02480000) #define S5P_VA_COREPERI_BASE S3C_ADDR(0x02800000) #define S5P_VA_COREPERI(x) (S5P_VA_COREPERI_BASE + (x))