From patchwork Mon Jun 1 14:22:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 6522461 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E76C69F444 for ; Mon, 1 Jun 2015 14:23:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 18A6120527 for ; Mon, 1 Jun 2015 14:23:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8FD0A205F4 for ; Mon, 1 Jun 2015 14:23:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753465AbbFAOXQ (ORCPT ); Mon, 1 Jun 2015 10:23:16 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:33882 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753470AbbFAOXK (ORCPT ); Mon, 1 Jun 2015 10:23:10 -0400 Received: by wgv5 with SMTP id 5so115882789wgv.1 for ; Mon, 01 Jun 2015 07:23:09 -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=JUpIE304JOz0cpT8COgqCVHAeL/526nLChWXkSeyo0Y=; b=LsLoy5IrBY1wzIyzXdKJTEtF+MbgNvOX5w5DpSlIYcfuREXeZLV9bxVOXZg2iG4AXq DTma+lLoxVkULX3QMsH0+nTnW0ZFA+Lf4Nfw8vVDbn+xBiIuDotVIEjDkH6RfTkaPnz5 WC5ebopAHBnTMRMezN3UTtZHs8GhzlC7xXcUSSr5pcBCW5UTmFR73XHSM6OYXj5uRVwN rO190hbAk4hRJFLmhcMvB0gTl3710PHuXz3DoQOxcS38yyWLw7J1igxnLV5byOHpMgMr 6xxK5A7s2i7gnc5RrrQaV+HolnJnL073T/09Oe6Q48VkVZ0Qddj0twnja8YFlFwe/hzi 0JSA== X-Received: by 10.180.206.45 with SMTP id ll13mr21257440wic.94.1433168589080; Mon, 01 Jun 2015 07:23:09 -0700 (PDT) Received: from groucho.site ([46.166.190.220]) by mx.google.com with ESMTPSA id bw5sm1794145wjc.31.2015.06.01.07.23.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2015 07:23:08 -0700 (PDT) From: Ulrich Hecht To: horms@verge.net.au, linux-sh@vger.kernel.org Cc: magnus.damm@gmail.com, laurent.pinchart+renesas@ideasonboard.com, geert@linux-m68k.org, kuninori.morimoto.gx@renesas.com, Ulrich Hecht Subject: [PATCH v5 4/4] ARM: shmobile: gose: enable R-Car Gen2 regulator quirk Date: Mon, 1 Jun 2015 16:22:57 +0200 Message-Id: <1433168577-7678-5-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.4.2 In-Reply-To: <1433168577-7678-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1433168577-7678-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 Regulator setup seems identical to Koelsch. Signed-off-by: Ulrich Hecht Acked-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/Kconfig | 1 + arch/arm/mach-shmobile/Makefile | 1 + arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index c59d75e..429157d 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig @@ -83,6 +83,7 @@ config ARCH_R8A7791 config ARCH_R8A7793 bool "R-Car M2-N (R8A7793)" select ARCH_RCAR_GEN2 + select I2C config ARCH_R8A7794 bool "R-Car E2 (R8A77940)" diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index e4b8fdb..def7a09 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -35,6 +35,7 @@ obj-$(CONFIG_ARCH_RCAR_GEN2) += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y) CFLAGS_setup-rcar-gen2.o += -march=armv7-a obj-$(CONFIG_ARCH_R8A7790) += regulator-quirk-rcar-gen2.o obj-$(CONFIG_ARCH_R8A7791) += regulator-quirk-rcar-gen2.o +obj-$(CONFIG_ARCH_R8A7793) += regulator-quirk-rcar-gen2.o # SMP objects smp-y := $(cpu-y) diff --git a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c index 384e6e9..62437b5 100644 --- a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c +++ b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c @@ -123,7 +123,8 @@ static int __init rcar_gen2_regulator_quirk(void) u32 mon; if (!of_machine_is_compatible("renesas,koelsch") && - !of_machine_is_compatible("renesas,lager")) + !of_machine_is_compatible("renesas,lager") && + !of_machine_is_compatible("renesas,gose")) return -ENODEV; irqc = ioremap(IRQC_BASE, PAGE_SIZE);