From patchwork Thu Dec 19 17:57:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 3383801 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 D8CAFC0D4A for ; Thu, 19 Dec 2013 17:57:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D14E6206A1 for ; Thu, 19 Dec 2013 17:57:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C3F662069A for ; Thu, 19 Dec 2013 17:57:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750895Ab3LSR5b (ORCPT ); Thu, 19 Dec 2013 12:57:31 -0500 Received: from mail-la0-f54.google.com ([209.85.215.54]:58082 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753403Ab3LSR5a (ORCPT ); Thu, 19 Dec 2013 12:57:30 -0500 Received: by mail-la0-f54.google.com with SMTP id b8so608728lan.41 for ; Thu, 19 Dec 2013 09:57:29 -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=CXYE4nph5du8CGJhrE5ldeZlWbAA+Dx+/yDwumMHm7I=; b=f9ELyKWyXRnX9dQ8TkO/TYqOu9w99dCurJlqWsjNITtR1A6LLfBNr4DQxAQRXEjZEQ NvfO9IATK2VO3nzWDLILvW8DnA0zLCtfjdOID2t2M7KrRCdtfF0yESfgcj10SuSmrYco No5bnnNXv9IRWYk6sCA4I3RczQRsZUtPZ6fhywV9MEFnr6N82bnNYsno4kwj0Xv9uLRB PNL6enLg0IKZUU/1Lzh/0fiI8g124VXRuQNQxnsZ+neT6yeRV4Qnsm1PAngwvGrZDTHR Q7l3bGR/6Vf39rEyLVNpc3aarjkGXBqsFWEuTzgrLp84piG5fSLd/pipB/pm9R8YRL+h wEoA== X-Gm-Message-State: ALoCoQmVsF4S4cjC0k204egs4qYHVVkvDgm5h3obq7Pr+RsBbjZIsXbkww4gXzAs4KCKUQsteRxZ X-Received: by 10.112.143.163 with SMTP id sf3mr1292691lbb.20.1387475849434; Thu, 19 Dec 2013 09:57:29 -0800 (PST) Received: from black.localnet ([93.100.122.208]) by mx.google.com with ESMTPSA id e6sm2887117lbs.3.2013.12.19.09.57.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2013 09:57:28 -0800 (PST) From: Valentine Barshak To: linux-sh@vger.kernel.org Cc: Simon Horman , Magnus Damm , Kuninori Morimoto , Laurent Pinchart Subject: [PATCH 2/2] arm: shmobile: lager: Add SATA support Date: Thu, 19 Dec 2013 21:57:23 +0400 Message-Id: <1387475843-25849-3-git-send-email-valentine.barshak@cogentembedded.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1387475843-25849-1-git-send-email-valentine.barshak@cogentembedded.com> References: <1387475843-25849-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=-7.4 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 SATA support to Lager board. Only SATA1 port is available. Signed-off-by: Valentine Barshak --- arch/arm/mach-shmobile/board-lager.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index f20c10a..9756038 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c @@ -291,6 +291,21 @@ static const struct resource qspi_resources[] __initconst = { DEFINE_RES_IRQ(gic_spi(184)), }; +/* SATA1 */ +static const struct resource sata1_resources[] __initconst = { + DEFINE_RES_MEM(0xee500000, 0x2000), + DEFINE_RES_IRQ(gic_spi(106)), +}; + +static const struct platform_device_info sata1_info __initconst = { + .parent = &platform_bus, + .name = "sata-r8a7790", + .id = 1, + .res = sata1_resources, + .num_res = ARRAY_SIZE(sata1_resources), + .dma_mask = DMA_BIT_MASK(32), +}; + static const struct pinctrl_map lager_pinctrl_map[] = { /* DU (CN10: ARGB0, CN13: LVDS) */ PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7790", "pfc-r8a7790", @@ -368,6 +383,8 @@ static void __init lager_add_standard_devices(void) &vccq_sdhi0_info, sizeof(struct gpio_regulator_config)); platform_device_register_data(&platform_bus, "gpio-regulator", gpio_regulator_idx++, &vccq_sdhi2_info, sizeof(struct gpio_regulator_config)); + + platform_device_register_full(&sata1_info); } /*