From patchwork Fri Dec 16 15:17:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 5820 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 2450F23E33 for ; Fri, 16 Dec 2011 15:08:14 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1743AA184D7 for ; Fri, 16 Dec 2011 15:08:14 +0000 (UTC) Received: by eaak10 with SMTP id k10so3724770eaa.11 for ; Fri, 16 Dec 2011 07:08:14 -0800 (PST) Received: by 10.204.156.208 with SMTP id y16mr3107414bkw.72.1324048093841; Fri, 16 Dec 2011 07:08:13 -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.204.41.207 with SMTP id p15cs7985bke; Fri, 16 Dec 2011 07:08:13 -0800 (PST) Received: by 10.180.90.234 with SMTP id bz10mr12974937wib.46.1324048092460; Fri, 16 Dec 2011 07:08:12 -0800 (PST) Received: from DB3EHSOBE003.bigfish.com (db3ehsobe003.messaging.microsoft.com. [213.199.154.141]) by mx.google.com with ESMTPS id fi2si6210102wbb.107.2011.12.16.07.08.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Dec 2011 07:08:12 -0800 (PST) Received-SPF: neutral (google.com: 213.199.154.141 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=213.199.154.141; Authentication-Results: mx.google.com; spf=neutral (google.com: 213.199.154.141 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: from mail68-db3-R.bigfish.com (10.3.81.240) by DB3EHSOBE003.bigfish.com (10.3.84.23) with Microsoft SMTP Server id 14.1.225.23; Fri, 16 Dec 2011 15:08:10 +0000 Received: from mail68-db3 (localhost [127.0.0.1]) by mail68-db3-R.bigfish.com (Postfix) with ESMTP id 9B5965202EA; Fri, 16 Dec 2011 15:08:20 +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 mail68-db3 (localhost.localdomain [127.0.0.1]) by mail68-db3 (MessageSwitch) id 1324048100498682_24075; Fri, 16 Dec 2011 15:08:20 +0000 (UTC) Received: from DB3EHSMHS012.bigfish.com (unknown [10.3.81.247]) by mail68-db3.bigfish.com (Postfix) with ESMTP id 68BDA620045; Fri, 16 Dec 2011 15:08:20 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB3EHSMHS012.bigfish.com (10.3.87.112) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 16 Dec 2011 15:08:05 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.355.3; Fri, 16 Dec 2011 09:08:04 -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 pBGF80l5021112; Fri, 16 Dec 2011 09:08:03 -0600 (CST) From: Jason Liu To: CC: Subject: [U-Boot][PATCH v2 1/3] i.mx: i.mx6q: Add the enet clock function Date: Fri, 16 Dec 2011 23:17:06 +0800 Message-ID: <1324048628-27516-2-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1324048628-27516-1-git-send-email-jason.hui@linaro.org> References: <1324048628-27516-1-git-send-email-jason.hui@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com Cc: Stefano Babic Signed-off-by: Jason Liu Acked-by: Stefano Babic --- v2: Add Stefano's ack --- 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) {