From patchwork Mon Aug 29 07:18:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 3752 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 5A59323E52 for ; Mon, 29 Aug 2011 07:20:44 +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 4FA15A1880E for ; Mon, 29 Aug 2011 07:20:44 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 18so6192779fxd.11 for ; Mon, 29 Aug 2011 00:20:44 -0700 (PDT) Received: by 10.223.88.214 with SMTP id b22mr4828833fam.5.1314602443248; Mon, 29 Aug 2011 00:20:43 -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 m8cs85913lab; Mon, 29 Aug 2011 00:20:43 -0700 (PDT) Received: by 10.236.116.194 with SMTP id g42mr22965831yhh.0.1314602442208; Mon, 29 Aug 2011 00:20:42 -0700 (PDT) Received: from VA3EHSOBE007.bigfish.com (va3ehsobe006.messaging.microsoft.com [216.32.180.16]) by mx.google.com with ESMTPS id m7si11773528wfe.102.2011.08.29.00.20.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Aug 2011 00:20:41 -0700 (PDT) Received-SPF: neutral (google.com: 216.32.180.16 is neither permitted nor denied by best guess record for domain of richard.zhu@linaro.org) client-ip=216.32.180.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.180.16 is neither permitted nor denied by best guess record for domain of richard.zhu@linaro.org) smtp.mail=richard.zhu@linaro.org Received: from mail139-va3-R.bigfish.com (10.7.14.237) by VA3EHSOBE007.bigfish.com (10.7.40.11) with Microsoft SMTP Server id 14.1.225.22; Mon, 29 Aug 2011 07:20:39 +0000 Received: from mail139-va3 (localhost.localdomain [127.0.0.1]) by mail139-va3-R.bigfish.com (Postfix) with ESMTP id 5F11E9C8329; Mon, 29 Aug 2011 07:20:39 +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 mail139-va3 (localhost.localdomain [127.0.0.1]) by mail139-va3 (MessageSwitch) id 1314602439198951_29140; Mon, 29 Aug 2011 07:20:39 +0000 (UTC) Received: from VA3EHSMHS005.bigfish.com (unknown [10.7.14.249]) by mail139-va3.bigfish.com (Postfix) with ESMTP id F11621A2804F; Mon, 29 Aug 2011 07:20:38 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS005.bigfish.com (10.7.99.15) with Microsoft SMTP Server (TLS) id 14.1.225.22; Mon, 29 Aug 2011 07:20:38 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.323.2; Mon, 29 Aug 2011 02:20:26 -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 p7T7KFxg008655; Mon, 29 Aug 2011 02:20:24 -0500 (CDT) From: Richard Zhu To: CC: , , , , , , Richard Zhu Subject: [PATCH V6 3/5] MX53 Enable the AHCI SATA on MX53 ARD board Date: Mon, 29 Aug 2011 15:18:56 +0800 Message-ID: <1314602339-18392-3-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_ard.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mx5/board-mx53_ard.c b/arch/arm/mach-mx5/board-mx53_ard.c index 76a67c4..d265cee 100644 --- a/arch/arm/mach-mx5/board-mx53_ard.c +++ b/arch/arm/mach-mx5/board-mx53_ard.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -220,6 +221,11 @@ static struct platform_device *devices[] __initdata = { &ard_smsc_lan9220_device, }; +static struct ahci_platform_data sata_data = { + .init = sata_init, + .exit = sata_exit, +}; + static void __init mx53_ard_board_init(void) { imx53_soc_init(); @@ -234,6 +240,7 @@ static void __init mx53_ard_board_init(void) imx53_add_imx_i2c(1, &mx53_ard_i2c2_data); imx53_add_imx_i2c(2, &mx53_ard_i2c3_data); imx_add_gpio_keys(&ard_button_data); + imx53_add_ahci_imx(0, &sata_data); } static void __init mx53_ard_timer_init(void)