From patchwork Mon Aug 29 07:18:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 3753 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 11B7B23E52 for ; Mon, 29 Aug 2011 07:20:48 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 072DEA1880C for ; Mon, 29 Aug 2011 07:20:48 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 18so6192779fxd.11 for ; Mon, 29 Aug 2011 00:20:48 -0700 (PDT) Received: by 10.223.62.8 with SMTP id v8mr2925189fah.43.1314602447932; Mon, 29 Aug 2011 00:20:47 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.11.8 with SMTP id m8cs85917lab; Mon, 29 Aug 2011 00:20:47 -0700 (PDT) Received: by 10.150.131.4 with SMTP id e4mr4422742ybd.413.1314602446805; Mon, 29 Aug 2011 00:20:46 -0700 (PDT) Received: from VA3EHSOBE008.bigfish.com (va3ehsobe001.messaging.microsoft.com [216.32.180.11]) by mx.google.com with ESMTPS id l2si9218679wfg.2.2011.08.29.00.20.44 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Aug 2011 00:20:45 -0700 (PDT) Received-SPF: neutral (google.com: 216.32.180.11 is neither permitted nor denied by best guess record for domain of richard.zhu@linaro.org) client-ip=216.32.180.11; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.180.11 is neither permitted nor denied by best guess record for domain of richard.zhu@linaro.org) smtp.mail=richard.zhu@linaro.org Received: from mail122-va3-R.bigfish.com (10.7.14.253) by VA3EHSOBE008.bigfish.com (10.7.40.28) with Microsoft SMTP Server id 14.1.225.22; Mon, 29 Aug 2011 07:20:44 +0000 Received: from mail122-va3 (localhost.localdomain [127.0.0.1]) by mail122-va3-R.bigfish.com (Postfix) with ESMTP id C0FD3FF01AF; Mon, 29 Aug 2011 07:20:43 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail122-va3 (localhost.localdomain [127.0.0.1]) by mail122-va3 (MessageSwitch) id 1314602443647973_8326; Mon, 29 Aug 2011 07:20:43 +0000 (UTC) Received: from VA3EHSMHS018.bigfish.com (unknown [10.7.14.253]) by mail122-va3.bigfish.com (Postfix) with ESMTP id 7B22286004E; Mon, 29 Aug 2011 07:20:43 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS018.bigfish.com (10.7.99.28) with Microsoft SMTP Server (TLS) id 14.1.225.22; Mon, 29 Aug 2011 07:20:43 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.323.2; Mon, 29 Aug 2011 02:20:29 -0500 Received: from x-VirtualBox.ap.freescale.net (x-VirtualBox.ap.freescale.net [10.192.242.136]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id p7T7KFxh008655; Mon, 29 Aug 2011 02:20:26 -0500 (CDT) From: Richard Zhu To: CC: , , , , , , Richard Zhu Subject: [PATCH V6 4/5] MX53 Enable the AHCI SATA on MX53 LOCO board Date: Mon, 29 Aug 2011 15:18:57 +0800 Message-ID: <1314602339-18392-4-git-send-email-richard.zhu@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1314602339-18392-1-git-send-email-richard.zhu@linaro.org> References: <1314602339-18392-1-git-send-email-richard.zhu@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com Signed-off-by: Richard Zhu --- arch/arm/mach-mx5/board-mx53_loco.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mx5/board-mx53_loco.c b/arch/arm/mach-mx5/board-mx53_loco.c index 4e1d51d..551fc7c 100644 --- a/arch/arm/mach-mx5/board-mx53_loco.c +++ b/arch/arm/mach-mx5/board-mx53_loco.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -257,6 +258,11 @@ static const struct gpio_led_platform_data mx53loco_leds_data __initconst = { .num_leds = ARRAY_SIZE(mx53loco_leds), }; +static struct ahci_platform_data sata_data = { + .init = sata_init, + .exit = sata_exit, +}; + static void __init mx53_loco_board_init(void) { imx53_soc_init(); @@ -273,6 +279,7 @@ static void __init mx53_loco_board_init(void) imx53_add_sdhci_esdhc_imx(2, &mx53_loco_sd3_data); imx_add_gpio_keys(&loco_button_data); gpio_led_register_device(-1, &mx53loco_leds_data); + imx53_add_ahci_imx(0, &sata_data); } static void __init mx53_loco_timer_init(void)