From patchwork Fri Apr 27 06:55:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhao X-Patchwork-Id: 8242 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 C39462400A for ; Fri, 27 Apr 2012 06:56:43 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7FA43A186F3 for ; Fri, 27 Apr 2012 06:56:43 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so857924iag.11 for ; Thu, 26 Apr 2012 23:56:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :x-spamscore:x-bigfish:x-forefront-antispam-report:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:x-originatororg:x-gm-message-state; bh=/X+IrmK3M1VHTGewSn0+vPu5opVW/4A7yvRWJVZb93o=; b=Lx0zbBaB4xGVVyc7fX9Y47P7E6tkq30faGQNtJJ7oLmFlQ8Ml2vKaZ+DjgwkgjH26R JvCaR3Sh/KM+sX020A+thpUOuGER3PjCkfXUX34sj6nb/pklS1K7otzAaVYj1UijR6Yx Gx7YUIb2nVC/zWo7fx41mH9KyTTPLq+Caa2uPJNmWVeCsrL2ZyIhxprQOGndTbSv3f2Y cB1Uy8FMiUYzarMjDz6n2H3+7ncmmJXckelW+n6Oi0mQhTSQ1JXG35/Mg5vLyKiR8N5s tkzNSRj/CuR1Sw9mQQmlG1228ucccNHPFpAFZSacSGApkWwpR7JXmeCFic2P2bgkC6ay qfQQ== Received: by 10.50.154.167 with SMTP id vp7mr776955igb.55.1335509803320; Thu, 26 Apr 2012 23:56: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.231.137.198 with SMTP id x6csp5122ibt; Thu, 26 Apr 2012 23:56:42 -0700 (PDT) Received: by 10.216.138.17 with SMTP id z17mr6171630wei.18.1335509801859; Thu, 26 Apr 2012 23:56:41 -0700 (PDT) Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe003.messaging.microsoft.com. [213.199.154.206]) by mx.google.com with ESMTPS id u18si6737369weq.79.2012.04.26.23.56.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Apr 2012 23:56:41 -0700 (PDT) Received-SPF: neutral (google.com: 213.199.154.206 is neither permitted nor denied by best guess record for domain of B20223@freescale.com) client-ip=213.199.154.206; Authentication-Results: mx.google.com; spf=neutral (google.com: 213.199.154.206 is neither permitted nor denied by best guess record for domain of B20223@freescale.com) smtp.mail=B20223@freescale.com Received: from mail5-am1-R.bigfish.com (10.3.201.242) by AM1EHSOBE003.bigfish.com (10.3.204.23) with Microsoft SMTP Server id 14.1.225.23; Fri, 27 Apr 2012 06:56:39 +0000 Received: from mail5-am1 (localhost [127.0.0.1]) by mail5-am1-R.bigfish.com (Postfix) with ESMTP id 34AC4320564; Fri, 27 Apr 2012 06:56:39 +0000 (UTC) X-SpamScore: 3 X-BigFish: VS3(zcb8kzzz1202hzz8275bhz2dh2a8h668h839hd24he5bh) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail5-am1 (localhost.localdomain [127.0.0.1]) by mail5-am1 (MessageSwitch) id 1335509797958779_6365; Fri, 27 Apr 2012 06:56:37 +0000 (UTC) Received: from AM1EHSMHS019.bigfish.com (unknown [10.3.201.240]) by mail5-am1.bigfish.com (Postfix) with ESMTP id E2FD2120066; Fri, 27 Apr 2012 06:56:37 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS019.bigfish.com (10.3.206.22) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 27 Apr 2012 06:56:37 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.355.3; Fri, 27 Apr 2012 01:56:37 -0500 Received: from b20223-02.ap.freescale.net (b20223-02.ap.freescale.net [10.192.242.124]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id q3R6uBpn008244; Fri, 27 Apr 2012 01:56:34 -0500 (CDT) From: Richard Zhao To: , , CC: , , , , , , , Richard Zhao Subject: [PATCH 05/11] ARM: imx6q: move imx6q_sabrelite specific code to a dedicated function Date: Fri, 27 Apr 2012 14:55:56 +0800 Message-ID: <1335509762-7777-6-git-send-email-richard.zhao@freescale.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1335509762-7777-1-git-send-email-richard.zhao@freescale.com> References: <1335509762-7777-1-git-send-email-richard.zhao@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-Gm-Message-State: ALoCoQkejexKS8yWyq2tZ3FHI6I4bawd4rCNyi3p4qD2woukPEQy42BTxp9JFlH2b8ow5R3RNIqE It'll be easier to add other board specific code. Signed-off-by: Richard Zhao --- arch/arm/mach-imx/mach-imx6q.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index da6c1d9..d25c5d8 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c @@ -75,11 +75,16 @@ static int ksz9021rn_phy_fixup(struct phy_device *phydev) return 0; } +static void __init imx6q_sabrelite_init(void) +{ + phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, + ksz9021rn_phy_fixup); +} + static void __init imx6q_init_machine(void) { if (of_machine_is_compatible("fsl,imx6q-sabrelite")) - phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, - ksz9021rn_phy_fixup); + imx6q_sabrelite_init(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);