From patchwork Tue Jun 3 22:33:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 4291551 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D52329F1D6 for ; Tue, 3 Jun 2014 22:31:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E361C201E4 for ; Tue, 3 Jun 2014 22:31:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D18BB201DE for ; Tue, 3 Jun 2014 22:31:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754074AbaFCWbV (ORCPT ); Tue, 3 Jun 2014 18:31:21 -0400 Received: from mail-pb0-f51.google.com ([209.85.160.51]:41817 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbaFCWbV (ORCPT ); Tue, 3 Jun 2014 18:31:21 -0400 Received: by mail-pb0-f51.google.com with SMTP id ma3so6076468pbc.38 for ; Tue, 03 Jun 2014 15:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=YjbKquRGTJRhB9RaRQiwsQmteG2CLKS4xmL0is2dW8Y=; b=tZUmwBeg61TbZ1Hb7F6fzykWYnj5/2DYCu6KqCQzTlNEqIMWUT7RGYkUQQ/ieIzJ62 X2y/YIxBcbVUbOxJ0jQkLrG7UfHMfJsVUTp51u7KMt4ZIDJTyjme01gUZI+QLKdOIGBw F6I8nloSuiJLsHWm0dvRWmpdqgt1uPOXjLLFiNjkwSCS2gpvq1fqXkvA7posthpPl/FY +Qqwcu6zO/ySrpOcFZ/UTBjwvQheeeK3vPcMeKcXx6jN1c/T6DH3Dirb8OAuMDcYKUiE DB6/f0DWlmND+XYwmTbar8wYk2oIcxb6NbqzHV5Cj7wfrKOtAjphI8PE6oop64hEHQaB JkpA== X-Received: by 10.68.213.198 with SMTP id nu6mr54664011pbc.21.1401834680233; Tue, 03 Jun 2014 15:31:20 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id ix7sm1747727pbd.36.2014.06.03.15.31.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jun 2014 15:31:19 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm Date: Wed, 04 Jun 2014 07:33:23 +0900 Message-Id: <20140603223323.2193.96325.sendpatchset@w520> In-Reply-To: <20140603223255.2193.42153.sendpatchset@w520> References: <20140603223255.2193.42153.sendpatchset@w520> Subject: [PATCH 03/03] ARM: shmobile: Lager DT reference MMCIF DMAC prototype Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Magnus Damm Use AUXDATA to tie in the SYS-DMAC for MMCIF1 on Lager. Only the DT reference case is covered. Not for upstream merge. Signed-off-by: Magnus Damm --- Written on top of renesas-devel-v3.15-rc7-20140530 and [PATCH 01/03] ARM: shmobile: r8a7790: SYS-DMAC prototype [PATCH 02/03] ARM: shmobile: r8a7790: SYS-DMAC and MMCIF prototype arch/arm/mach-shmobile/board-lager-reference.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/arm/mach-shmobile/board-lager-reference.c +++ work/arch/arm/mach-shmobile/board-lager-reference.c 2014-06-03 22:06:43.000000000 +0900 @@ -20,6 +20,8 @@ #include #include +#include +#include #include #include #include @@ -98,11 +100,27 @@ static const struct clk_name clk_names[] { "lvds1", "lvds.1", "rcar-du-r8a7790" }, }; +static struct sh_mmcif_plat_data mmcif1_pdata = { + .caps = MMC_CAP_4_BIT_DATA | + MMC_CAP_8_BIT_DATA | + MMC_CAP_NONREMOVABLE, + .ccs_unsupported = true, + .slave_id_tx = SYS_DMAC_SLAVE_MMCIF1_TX, + .slave_id_rx = SYS_DMAC_SLAVE_MMCIF1_RX, +}; + +static struct of_dev_auxdata lager_auxdata_lookup[] __initdata = { + OF_DEV_AUXDATA("renesas,mmcif-r8a7790", 0xee220000, "sh_mmcif", + &mmcif1_pdata), + {}, +}; + static void __init lager_add_standard_devices(void) { shmobile_clk_workaround(clk_names, ARRAY_SIZE(clk_names), false); r8a7790_add_dt_devices(); - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); + of_platform_populate(NULL, of_default_bus_match_table, + lager_auxdata_lookup, NULL); lager_add_du_device(); }