From patchwork Thu Nov 15 15:11:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10684603 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 BB63B17EE for ; Thu, 15 Nov 2018 15:14:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABA092CA48 for ; Thu, 15 Nov 2018 15:14:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A98F42CA83; Thu, 15 Nov 2018 15:14:42 +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 243A32CA96 for ; Thu, 15 Nov 2018 15:14:42 +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=rh+1hS0tPdkZ7OM0HOjHVqq55ZvdbGjGEKlfZ2czH+I=; b=JUoUZwh3IfjlJ6rdLxVF+apW6V eNnfO9HfzioexvKg3aAjI/WoeHcQjyqgif+lzn9int6cS8kmQqw55Z03gM9GpYSwxw5y5ZV/HMnBl XosmA5ugdnJgz49D5QLSXiWKQr7I+41ee1t3KDoXLfd5AQRT0SkDKKUC/i1ftJUULBQko9naTKQ43 ONJ2Jb+09ZATLrkUQm7ZNnS1K4vBPlLxXsBeparcl2GMsyWpKb4+JtKil0iv0d7cIAJJ3fWCwcZqj CTXCzmy9ndWnhb3OkTjYPmzom8qWKxj0P6N70CSylXtmbI9mw9ddc93svdWxFj5AFbysfr6bM4DCi s+pWBccQ==; 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 1gNJLq-0000Ut-D4; Thu, 15 Nov 2018 15:14:38 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNJKH-0007Xv-0Q for linux-arm-kernel@bombadil.infradead.org; Thu, 15 Nov 2018 15:13:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=53jrnAIEHMLD+N9qBU0mnqtaMu0kY4ai74T8GgiAMks=; b=lGI6w6d5dcZY445n5Wck/LCax fP0Ar0ZXbd0GoOR01RbA01JDFpomKdWVx8jmIwUGCQm9W9A2h+7Vu/LpMhVEbbdBrnfNbWJIFaplN XJlT3Coc7t0SWgvuznOvUbacmfg2bjxLXZ7QvEYufuM2JXYWm/VOo1VmBj2juBosFNe19qFztsDRj +bBayBsYH+LN/c5zkJ7UfBK9wtO2GWHEvyWwAkGhJnDDp8d21ffz0AJYeiEBO+wEVlTX2BlUMk/9j 8PfqOHQr6AlTbRGWrjdzOu1uxAH7Qvoxl++aT9IrweY8Awzh7QU0rO2Q1XkbJsqyuNW54XNSUIy1f LrY0VzR0Q==; Received: from mailout3.samsung.com ([203.254.224.33]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNJKC-0001t6-Hl for linux-arm-kernel@lists.infradead.org; Thu, 15 Nov 2018 15:12:59 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20181115151245epoutp0309b65af1737959b62796cdaf78b6b2ca~nVOrxDkmp0615306153epoutp03Z; Thu, 15 Nov 2018 15:12:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20181115151245epoutp0309b65af1737959b62796cdaf78b6b2ca~nVOrxDkmp0615306153epoutp03Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1542294765; bh=53jrnAIEHMLD+N9qBU0mnqtaMu0kY4ai74T8GgiAMks=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=WBkP5uz/W0kugZUb4DeX3S2kj5wEKylIVH3XP0u4snHGiAGf/xub5A/3VxxI5e4/K aukZ+UO2+j1esuWZsGerztKaJVRABvSR4PdGzNpDclUR6evVgeINbsJs3GV+gVwpCF etfpViLvcm5XS+yEepE3YFiw41GujIqtyajU+POk= Received: from epsmges1p4.samsung.com (unknown [182.195.42.56]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181115151244epcas1p1e844a94abe3a03cacc9ffa78b525446b~nVOq-rit83268032680epcas1p1C; Thu, 15 Nov 2018 15:12:44 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id E7.FF.04149.CEC8DEB5; Fri, 16 Nov 2018 00:12:44 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20181115151243epcas1p382a3d1704a8ee0d1b0e0b7d214d11ec4~nVOpyKR7r3141131411epcas1p3u; Thu, 15 Nov 2018 15:12:43 +0000 (GMT) X-AuditID: b6c32a38-653ff70000001035-f2-5bed8cece776 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 77.B9.03701.BEC8DEB5; Fri, 16 Nov 2018 00:12:43 +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:43 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Krzysztof Kozlowski Subject: [PATCH 8/9] ARM: SAMSUNG: remove s5p_init_cpu() Date: Thu, 15 Nov 2018 16:11:37 +0100 Message-id: <1542294698-17470-9-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+NgFjrPIsWRmVeSWpSXmKPExsWy7bCmvu6bnrfRBp83y1ncWneO1eLvpGPs FhtnrGe1uP7lOavFwmnLGS36H79mtjh/fgO7xabH11gtLu+aw2Yx4/w+JouXR34wWqw9cpfd YtHWL+wOvB6/f01i9Lh1p95j06pONo/NS+o93u+7yubRt2UVo8fnTXIB7FFcNimpOZllqUX6 dglcGffv3GEvWClRsXDebeYGxk0iXYycHBICJhJzb31n6WLk4hAS2MEoceDjNkYI5zujxNFP d1hgqmYd+w9VtYFR4sXOHiYI5xejxNtFy1hBqtgErCQmtq9iBLFFBDQlrv/9DhZnFjjKLLHk igSILSxgIXFm1xpmEJtFQFXi6MEXYD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sWKSSQnliSmp2aWpBaBJNl4uCUamDc zpvaXn+svEsiPvqDt5PQ3l1ujZP1WssPfTmuZFHFqf7dsVzpO0vi83dbHLufxdoXG5iaTLyX aWvKc+zcq/kWi2byf7zS9F/MaIFo9fkCwxIW69NO9eKmMSf5ur4ytEVKiDsdmXD4Y5+q2b2K mtN3zn/xFLZIO35Pet61sokND234X/s5/lRiKc5INNRiLipOBAD+V+SjRgIAAA== X-CMS-MailID: 20181115151243epcas1p382a3d1704a8ee0d1b0e0b7d214d11ec4 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20181115151243epcas1p382a3d1704a8ee0d1b0e0b7d214d11ec4 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_151257_516222_5EB3B386 X-CRM114-Status: GOOD ( 16.75 ) 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 s5p_init_cpu() & co. Signed-off-by: Bartlomiej Zolnierkiewicz --- arch/arm/mach-exynos/exynos.c | 28 ---------------------------- arch/arm/plat-samsung/cpu.c | 7 ------- arch/arm/plat-samsung/include/plat/cpu.h | 1 - arch/arm/plat-samsung/include/plat/map-s5p.h | 2 -- 4 files changed, 38 deletions(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index ca367b7..d98574c 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -20,7 +20,6 @@ #include #include -#include #include "common.h" @@ -99,36 +98,9 @@ void __init exynos_sysram_init(void) } } -static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname, - int depth, void *data) -{ - struct map_desc iodesc; - const __be32 *reg; - int len; - - if (!of_flat_dt_is_compatible(node, "samsung,exynos4210-chipid")) - return 0; - - reg = of_get_flat_dt_prop(node, "reg", &len); - if (reg == NULL || len != (sizeof(unsigned long) * 2)) - return 0; - - iodesc.pfn = __phys_to_pfn(be32_to_cpu(reg[0])); - iodesc.length = be32_to_cpu(reg[1]) - 1; - iodesc.virtual = (unsigned long)S5P_VA_CHIPID; - iodesc.type = MT_DEVICE; - iotable_init(&iodesc, 1); - return 1; -} - static void __init exynos_init_io(void) { debug_ll_io_init(); - - of_scan_flat_dt(exynos_fdt_map_chipid, NULL); - - /* detect cpu id and rev. */ - s5p_init_cpu(S5P_VA_CHIPID); } /* diff --git a/arch/arm/plat-samsung/cpu.c b/arch/arm/plat-samsung/cpu.c index c633a24..8acba21 100644 --- a/arch/arm/plat-samsung/cpu.c +++ b/arch/arm/plat-samsung/cpu.c @@ -29,10 +29,3 @@ void __init s3c64xx_init_cpu(void) pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id); } - -void __init s5p_init_cpu(const void __iomem *cpuid_addr) -{ - samsung_cpu_id = readl_relaxed(cpuid_addr); - - pr_info("Samsung CPU ID: 0x%08lx\n", samsung_cpu_id); -} diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h index 02d7f99..93ecd71 100644 --- a/arch/arm/plat-samsung/include/plat/cpu.h +++ b/arch/arm/plat-samsung/include/plat/cpu.h @@ -109,7 +109,6 @@ extern void s3c_init_cpu(unsigned long idcode, extern void s3c24xx_init_io(struct map_desc *mach_desc, int size); extern void s3c64xx_init_cpu(void); -extern void s5p_init_cpu(const void __iomem *cpuid_addr); extern void s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no); diff --git a/arch/arm/plat-samsung/include/plat/map-s5p.h b/arch/arm/plat-samsung/include/plat/map-s5p.h index d69a0ca..3812085 100644 --- a/arch/arm/plat-samsung/include/plat/map-s5p.h +++ b/arch/arm/plat-samsung/include/plat/map-s5p.h @@ -9,8 +9,6 @@ #ifndef __ASM_PLAT_MAP_S5P_H #define __ASM_PLAT_MAP_S5P_H __FILE__ -#define S5P_VA_CHIPID S3C_ADDR(0x02000000) - #define VA_VIC(x) (S3C_VA_IRQ + ((x) * 0x10000)) #define VA_VIC0 VA_VIC(0) #define VA_VIC1 VA_VIC(1)