From patchwork Mon Mar 7 16:22:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 407 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:42:25 -0000 Delivered-To: patches@linaro.org Received: by 10.224.60.68 with SMTP id o4cs107058qah; Mon, 7 Mar 2011 08:20:24 -0800 (PST) Received: by 10.142.201.13 with SMTP id y13mr3369426wff.198.1299514823796; Mon, 07 Mar 2011 08:20:23 -0800 (PST) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id y5si7293474wfj.138.2011.03.07.08.20.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Mar 2011 08:20:23 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by mail-pz0-f50.google.com with SMTP id 5so1110068pzk.37 for ; Mon, 07 Mar 2011 08:20:23 -0800 (PST) Received: by 10.142.232.3 with SMTP id e3mr3329502wfh.400.1299514823093; Mon, 07 Mar 2011 08:20:23 -0800 (PST) Received: from localhost.localdomain ([114.216.147.253]) by mx.google.com with ESMTPS id w11sm4629111wfh.6.2011.03.07.08.20.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Mar 2011 08:20:22 -0800 (PST) From: Shawn Guo To: linaro-dev@lists.linaro.org, devicetree-discuss@lists.ozlabs.org Cc: patches@linaro.org, Shawn Guo Subject: [PATCH 2/5] arm/mxc: add clk members to ease dt clock support Date: Tue, 8 Mar 2011 00:22:09 +0800 Message-Id: <1299514932-13558-3-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1299514932-13558-1-git-send-email-shawn.guo@linaro.org> References: <1299514932-13558-1-git-send-email-shawn.guo@linaro.org> The 'rate' is added for fixed-clock support, while 'pll_base' is for pll clock. These two particular type of clocks are supposed to be gracefully supported by the common clk api when it gets ready. Signed-off-by: Shawn Guo --- arch/arm/plat-mxc/include/mach/clock.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-mxc/include/mach/clock.h b/arch/arm/plat-mxc/include/mach/clock.h index 753a598..a29dc45 100644 --- a/arch/arm/plat-mxc/include/mach/clock.h +++ b/arch/arm/plat-mxc/include/mach/clock.h @@ -38,6 +38,10 @@ struct clk { /* Register address for clock's enable/disable control. */ void __iomem *enable_reg; u32 flags; + /* clock rate used by fixed-clock */ + unsigned long rate; + /* base address of pll */ + void __iomem *pll_base; /* get the current clock rate (always a fresh value) */ unsigned long (*get_rate) (struct clk *); /* Function ptr to set the clock to a new rate. The rate must match a