From patchwork Tue Aug 23 05:50: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: 9294953 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 9C7F7607D0 for ; Tue, 23 Aug 2016 05:47:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E80E28AF9 for ; Tue, 23 Aug 2016 05:47:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82FBA28B0A; Tue, 23 Aug 2016 05:47:46 +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 CFAC128AF9 for ; Tue, 23 Aug 2016 05:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752299AbcHWFrp (ORCPT ); Tue, 23 Aug 2016 01:47:45 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:53952 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752458AbcHWFro (ORCPT ); Tue, 23 Aug 2016 01:47:44 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OCC01GZLLFIERC0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 23 Aug 2016 14:47:42 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id CA.2E.27902.E73EBB75; Tue, 23 Aug 2016 14:47:42 +0900 (KST) X-AuditID: cbfee68e-f79cb6d000006cfe-14-57bbe37eb81a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 40.C3.07740.D73EBB75; Mon, 22 Aug 2016 22:47:42 -0700 (MST) 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 <0OCC00L2LLFBO6A0@mmp2.samsung.com>; Tue, 23 Aug 2016 14:47:41 +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] ARM: EXYNOS: Remove unused DMC offset and its mapping Date: Tue, 23 Aug 2016 11:20:16 +0530 Message-id: <1471931416-15991-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBLMWRmVeSWpSXmKPExsVy+t8zA926x7vDDZ7vZLd4/cLQov/xa2aL 8+c3sFtsenyN1WLG+X1MFou2fmF3YPPYtKqTzWPzknqPvi2rGD0+b5ILYInisklJzcksSy3S t0vgyli8q4el4JpAxcoFlxgbGH/zdjFyckgImEjs6fnBDmGLSVy4t56ti5GLQ0hgJaPEnN/t TDBFt169ZoFIzGKUuLWjiRnC+ckoceLoYbB2NgFdiSfv5zKD2CIC3hKTz/wFizMLZEpsPtAG ZgsLuEkca93ABmKzCKhK7Hz5lgXE5hXwkDgzezUrxDY5iZvnOsEWSAi8Z5N4Oe0vI0SDgMS3 yYeAGjiAErISmw4wQ9RLShxccYNlAqPgAkaGVYyiqQXJBcVJ6UVGesWJucWleel6yfm5mxgh Adq3g/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rQyTmVcf27NuSX/uB/U6rZVrlfx/T95uO0+l0kDCQOb8H5mbR9lTrLdJfRdL2nlTNX66 1A0uAyWW4oxEQy3mouJEAP26rbqYAgAA 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 SFR offsets, so we can safely remove mapping of its SFR address space and cleanup related offset macros from mach-exynos. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/exynos.c | 10 ---------- arch/arm/mach-exynos/include/mach/map.h | 3 --- arch/arm/plat-samsung/include/plat/map-s5p.h | 3 --- 3 files changed, 16 deletions(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index acabf0b..139d1ef 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -39,16 +39,6 @@ static struct map_desc exynos4_iodesc[] __initdata = { .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..85d610d 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -20,9 +20,6 @@ #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..9a80bf6 100644 --- a/arch/arm/plat-samsung/include/plat/map-s5p.h +++ b/arch/arm/plat-samsung/include/plat/map-s5p.h @@ -16,9 +16,6 @@ #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)) #define S5P_VA_SCU S5P_VA_COREPERI(0x0)