From patchwork Tue Dec 13 13:44:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 5632 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 273F923E0E for ; Tue, 13 Dec 2011 13:35:33 +0000 (UTC) Received: from mail-bw0-f52.google.com (mail-bw0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 16BC9A181C7 for ; Tue, 13 Dec 2011 13:35:33 +0000 (UTC) Received: by mail-bw0-f52.google.com with SMTP id 17so9189244bke.11 for ; Tue, 13 Dec 2011 05:35:33 -0800 (PST) Received: by 10.204.156.208 with SMTP id y16mr12898122bkw.72.1323783332891; Tue, 13 Dec 2011 05:35:32 -0800 (PST) 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.205.129.2 with SMTP id hg2cs81428bkc; Tue, 13 Dec 2011 05:35:32 -0800 (PST) Received: by 10.224.113.20 with SMTP id y20mr2600047qap.81.1323783330972; Tue, 13 Dec 2011 05:35:30 -0800 (PST) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe002.messaging.microsoft.com. [216.32.181.182]) by mx.google.com with ESMTPS id w10si7217694qcm.181.2011.12.13.05.35.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Dec 2011 05:35:30 -0800 (PST) Received-SPF: neutral (google.com: 216.32.181.182 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=216.32.181.182; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.181.182 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: from mail14-ch1-R.bigfish.com (10.43.68.248) by CH1EHSOBE004.bigfish.com (10.43.70.54) with Microsoft SMTP Server id 14.1.225.23; Tue, 13 Dec 2011 13:35:30 +0000 Received: from mail14-ch1 (localhost [127.0.0.1]) by mail14-ch1-R.bigfish.com (Postfix) with ESMTP id 3682F3402F0; Tue, 13 Dec 2011 13:35:30 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-SS: 13, X-FB-DOMAIN-IP-MATCH: fail Received: from mail14-ch1 (localhost.localdomain [127.0.0.1]) by mail14-ch1 (MessageSwitch) id 1323783329981708_3928; Tue, 13 Dec 2011 13:35:29 +0000 (UTC) Received: from CH1EHSMHS013.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.247]) by mail14-ch1.bigfish.com (Postfix) with ESMTP id E0F3D40042; Tue, 13 Dec 2011 13:35:29 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS013.bigfish.com (10.43.70.13) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 13 Dec 2011 13:35:26 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.355.3; Tue, 13 Dec 2011 07:35:25 -0600 Received: from r64343-desktop.ap.freescale.net (r64343-desktop.ap.freescale.net [10.192.242.36]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id pBDDZLs1001519; Tue, 13 Dec 2011 07:35:23 -0600 (CST) From: Jason Liu To: CC: Subject: [U-Boot][PATCH 1/3] i.mx: i.mx6q: Add the enet clock function Date: Tue, 13 Dec 2011 21:44:22 +0800 Message-ID: <1323783864-11614-2-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1323783864-11614-1-git-send-email-jason.hui@linaro.org> References: <1323783864-11614-1-git-send-email-jason.hui@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com Cc: Stefano Babic Signed-off-by: Jason Liu --- arch/arm/cpu/armv7/mx6/clock.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index b143535..fa3a124 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6/clock.c @@ -285,6 +285,11 @@ u32 imx_get_uartclk(void) return get_uart_clk(); } +u32 imx_get_fecclk(void) +{ + return decode_pll(PLL_ENET, CONFIG_SYS_MX6_HCLK); +} + unsigned int mxc_get_clock(enum mxc_clock clk) { switch (clk) {