From patchwork Thu Jan 9 15:23:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 3461611 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3E340C02DC for ; Thu, 9 Jan 2014 15:23:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2643820103 for ; Thu, 9 Jan 2014 15:23:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C68BE2013D for ; Thu, 9 Jan 2014 15:23:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751425AbaAIPXc (ORCPT ); Thu, 9 Jan 2014 10:23:32 -0500 Received: from mail-lb0-f174.google.com ([209.85.217.174]:65282 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750702AbaAIPXc (ORCPT ); Thu, 9 Jan 2014 10:23:32 -0500 Received: by mail-lb0-f174.google.com with SMTP id p9so554192lbv.5 for ; Thu, 09 Jan 2014 07:23:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PSPgBw/aOfBlGuPUxflNwy0ukClnD7a1pC2mT5JzlHU=; b=WsV48UJ+UhWv3RRoEk9+peLo73GReywVnhN8hcjNFBWxIg6CzjTh/EXYo8p6nrGdpz HxHVFOgPifP4QeJE2/mdsDT45KfdSJXrRttn8eUwI01WrYxYUhBMeb2wU/UX6h/yM8vP GKGU4yOGo0Kn//WqurtJPQbxdKplae7Ef30wrKf6plsOB2pj5UnwV/7lrI3/l46LVNEj lAK1sO9NGmxVBtBRZGGMM2zz9G4mUsN2AWyZUdylWdinMgPm1hnGWaQVYi2X/1sscwD8 rAQ9UkdmO41QO9iJpCZMu27sqk7jQxNPzQ29YPtUS/E+2iAARXk18sFKOt9sL+WHBhBv V8mA== X-Gm-Message-State: ALoCoQk5WIc+WJH34l4GxNuKdRDmM71uwrHFfZ0YsG0LqUTOCoUOed6d3IteE/tfKg76yLvW/a7a X-Received: by 10.152.225.161 with SMTP id rl1mr1486997lac.5.1389281010774; Thu, 09 Jan 2014 07:23:30 -0800 (PST) Received: from black.localnet ([93.100.122.208]) by mx.google.com with ESMTPSA id qx1sm1413329lbb.15.2014.01.09.07.23.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jan 2014 07:23:30 -0800 (PST) From: Valentine Barshak To: linux-sh@vger.kernel.org Cc: Simon Horman , Magnus Damm , Kuninori Morimoto , Laurent Pinchart Subject: [PATCH V2 3/4] ARM: shmobile: koelsch: Add SATA0 support Date: Thu, 9 Jan 2014 19:23:22 +0400 Message-Id: <1389281003-10253-4-git-send-email-valentine.barshak@cogentembedded.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1389281003-10253-1-git-send-email-valentine.barshak@cogentembedded.com> References: <1389281003-10253-1-git-send-email-valentine.barshak@cogentembedded.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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This adds SATA0 support to Koelsch board. SATA1 is not available since its pinmux configuration is fixed to PCIe. Signed-off-by: Valentine Barshak Acked-by: Magnus Damm --- arch/arm/mach-shmobile/board-koelsch.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c index de7cc64..2ab5c75 100644 --- a/arch/arm/mach-shmobile/board-koelsch.c +++ b/arch/arm/mach-shmobile/board-koelsch.c @@ -148,6 +148,21 @@ static const struct gpio_keys_platform_data koelsch_keys_pdata __initconst = { .nbuttons = ARRAY_SIZE(gpio_buttons), }; +/* SATA0 */ +static const struct resource sata0_resources[] __initconst = { + DEFINE_RES_MEM(0xee300000, 0x2000), + DEFINE_RES_IRQ(gic_spi(105)), +}; + +static const struct platform_device_info sata0_info __initconst = { + .parent = &platform_bus, + .name = "sata-r8a7791", + .id = 0, + .res = sata0_resources, + .num_res = ARRAY_SIZE(sata0_resources), + .dma_mask = DMA_BIT_MASK(32), +}; + static const struct pinctrl_map koelsch_pinctrl_map[] = { /* DU */ PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7791", "pfc-r8a7791", @@ -192,6 +207,8 @@ static void __init koelsch_add_standard_devices(void) sizeof(koelsch_keys_pdata)); koelsch_add_du_device(); + + platform_device_register_full(&sata0_info); } /*