From patchwork Fri Apr 27 07:02:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhao X-Patchwork-Id: 8278 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 1C32923E42 for ; Fri, 27 Apr 2012 07:03:36 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id E0B26A18363 for ; Fri, 27 Apr 2012 07:03:35 +0000 (UTC) Received: by yenl4 with SMTP id l4so237853yen.11 for ; Fri, 27 Apr 2012 00:03:35 -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=LvhPZiX2DehF2PdGkultpymTIrJkdB7sH/+z9RCSTEDQM6FFmxTfMldpODIrRTGfXf 6CwgonVqfop5cmv3iyvqHbnwHcJ68XC7XrHBn1DlUKkngxGIjdAIM1t7o6t+MTaAEaLc HF3bS86n+08Y/mQJPn4z1l2hV69OkAsBZLf9rh8hVpL161XJqBdQ4Cy8oQXzjOuyKLOp bkFxEVLyHhl7DuWDSi8PyG/K02r4PBc6AveQ3xj3gfqHCQT65FIjvfVE+BknP3vDy37P o/o/zzPEyTci8a0Ino9PAFdrb3rDC/nVvUkcFHdDyM9k6Yiqog09irE6Azr3iFx28Vvi 6xDw== Received: by 10.50.41.201 with SMTP id h9mr900276igl.19.1335510215093; Fri, 27 Apr 2012 00:03:35 -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 x6csp5452ibt; Fri, 27 Apr 2012 00:03:34 -0700 (PDT) Received: by 10.68.138.134 with SMTP id qq6mr22137135pbb.8.1335510214450; Fri, 27 Apr 2012 00:03:34 -0700 (PDT) Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe010.messaging.microsoft.com. [216.32.180.30]) by mx.google.com with ESMTPS id pr10si5932197pbc.247.2012.04.27.00.03.33 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Apr 2012 00:03:34 -0700 (PDT) Received-SPF: neutral (google.com: 216.32.180.30 is neither permitted nor denied by best guess record for domain of B20223@freescale.com) client-ip=216.32.180.30; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.180.30 is neither permitted nor denied by best guess record for domain of B20223@freescale.com) smtp.mail=B20223@freescale.com Received: from mail109-va3-R.bigfish.com (10.7.14.242) by VA3EHSOBE005.bigfish.com (10.7.40.25) with Microsoft SMTP Server id 14.1.225.23; Fri, 27 Apr 2012 07:03:31 +0000 Received: from mail109-va3 (localhost [127.0.0.1]) by mail109-va3-R.bigfish.com (Postfix) with ESMTP id E4C5F160351; Fri, 27 Apr 2012 07:03:30 +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 mail109-va3 (localhost.localdomain [127.0.0.1]) by mail109-va3 (MessageSwitch) id 133551020953912_30797; Fri, 27 Apr 2012 07:03:29 +0000 (UTC) Received: from VA3EHSMHS016.bigfish.com (unknown [10.7.14.252]) by mail109-va3.bigfish.com (Postfix) with ESMTP id 043E9400A5; Fri, 27 Apr 2012 07:03:29 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS016.bigfish.com (10.7.99.26) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 27 Apr 2012 07:03:29 +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.355.3; Fri, 27 Apr 2012 02:03:29 -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 q3R737LN008722; Fri, 27 Apr 2012 02:03:26 -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 15:02:59 +0800 Message-ID: <1335510185-7906-6-git-send-email-richard.zhao@freescale.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1335510185-7906-1-git-send-email-richard.zhao@freescale.com> References: <1335510185-7906-1-git-send-email-richard.zhao@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-Gm-Message-State: ALoCoQnRKph89E/FPLyLVk+VtVGNkI7mf4P49gvgj07Jtr+qAV4YtEDtJWaj2FwMcKDqxKNpMAqr 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);