From patchwork Thu May 21 10:50:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 6453991 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B35D1C0432 for ; Thu, 21 May 2015 10:50:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B777D20435 for ; Thu, 21 May 2015 10:50:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CDF6620382 for ; Thu, 21 May 2015 10:50:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754017AbbEUKuX (ORCPT ); Thu, 21 May 2015 06:50:23 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:38751 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752515AbbEUKuX (ORCPT ); Thu, 21 May 2015 06:50:23 -0400 Received: by wichy4 with SMTP id hy4so9282115wic.1 for ; Thu, 21 May 2015 03:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=+SKASHhdYcR+dZe0VJO1JDY4infzMxePeRMGdnYu5g8=; b=TjULdtfqPguaYrIHJTvMwogFKXIionp2X1KnG1gJoCj1Os/y43wLvCq8u3WxKLh7P+ gv/ZlgywzT0hVaPWYoucDAEfgr5wwq5K1o0BipYILMsrszgF6qGb1b8q/8DYwhWAexAO ZtDaFrEsou/TXqIqAmfqWdeUwsK7JuSqGY+8bll2UAvYmpU+2aHn/gK3opvGaUoFtMqX RjqzWzlqEgMG39Fi3i2GxvnvIIBQQP0J+BQLnrDcAu3C6s+yhj2v35jucNsLHWiwUzyT aUnYYM7zOn7mWOotcSHFJo7sFlJxldgovtq0zEDMf3yV5a4V0/QUNETH6ZwZH0AkMo9b F+Sw== X-Received: by 10.180.91.137 with SMTP id ce9mr4959318wib.76.1432205421713; Thu, 21 May 2015 03:50:21 -0700 (PDT) Received: from groucho.site (ipbcc02225.dynamic.kabel-deutschland.de. [188.192.34.37]) by mx.google.com with ESMTPSA id it5sm2255631wid.3.2015.05.21.03.50.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 May 2015 03:50:20 -0700 (PDT) From: Ulrich Hecht To: linux-sh@vger.kernel.org, laurent.pinchart+renesas@ideasonboard.com Cc: horms@verge.net.au, magnus.damm@gmail.com, Ulrich Hecht Subject: [RFC 2/3] ARM: shmobile: r8a7793: use generic "renesas, rcar-gen2" machine Date: Thu, 21 May 2015 12:50:12 +0200 Message-Id: <1432205413-9584-3-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1432205413-9584-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1432205413-9584-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removes the unnecessary SoC-specific setup code and uses the generic R-Car Gen2 machine. Signed-off-by: Ulrich Hecht Acked-by: Laurent Pinchart Acked-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7793-gose.dts | 2 +- arch/arm/boot/dts/r8a7793.dtsi | 2 +- arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/setup-r8a7793.c | 34 ---------------------------------- 4 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 arch/arm/mach-shmobile/setup-r8a7793.c diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index 1edeba2..f6c5803 100644 --- a/arch/arm/boot/dts/r8a7793-gose.dts +++ b/arch/arm/boot/dts/r8a7793-gose.dts @@ -34,7 +34,7 @@ / { model = "Gose"; - compatible = "renesas,gose", "renesas,r8a7793"; + compatible = "renesas,gose", "renesas,r8a7793", "renesas,rcar-gen2"; aliases { serial0 = &scif0; diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi index 7ab3902..ea96479 100644 --- a/arch/arm/boot/dts/r8a7793.dtsi +++ b/arch/arm/boot/dts/r8a7793.dtsi @@ -13,7 +13,7 @@ #include / { - compatible = "renesas,r8a7793"; + compatible = "renesas,r8a7793", "renesas,rcar-gen2"; interrupt-parent = <&gic>; #address-cells = <2>; #size-cells = <2>; diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index a8f5d5d..81431c9 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -13,7 +13,6 @@ obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o -obj-$(CONFIG_ARCH_R8A7793) += setup-r8a7793.o obj-$(CONFIG_ARCH_R8A7794) += setup-r8a7794.o obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o diff --git a/arch/arm/mach-shmobile/setup-r8a7793.c b/arch/arm/mach-shmobile/setup-r8a7793.c deleted file mode 100644 index 2d7f18a..0000000 --- a/arch/arm/mach-shmobile/setup-r8a7793.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * r8a7793 processor support - * - * Copyright (C) 2015 Ulrich Hecht - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include -#include - -#include "common.h" -#include "r8a7793.h" -#include "rcar-gen2.h" - -static const char *r8a7793_boards_compat_dt[] __initconst = { - "renesas,r8a7793", - NULL, -}; - -DT_MACHINE_START(R8A7793_DT, "Generic R8A7793 (Flattened Device Tree)") - .init_early = shmobile_init_delay, - .init_time = rcar_gen2_timer_init, - .init_late = shmobile_init_late, - .reserve = rcar_gen2_reserve, - .dt_compat = r8a7793_boards_compat_dt, -MACHINE_END