lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4B1671C8.1030205@gmail.com>
Date:	Wed, 02 Dec 2009 21:55:20 +0800
From:	Wan ZongShun <mcuos.com@...il.com>
To:	linux-kernel <linux-kernel@...r.kernel.org>,
	linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
	Russell King <linux@....linux.org.uk>
Subject: [PATCH 3/4]ARM: NUC900: enable timer clock for nuc932

Dear Russell,

This patch enables timer clock support for nuc932.

Signed-off-by: Wan ZongShun <mcuos.com@...il.com>

---
 arch/arm/mach-w90x900/time_932.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-w90x900/time_932.c b/arch/arm/mach-w90x900/time_932.c
index c50f9c0..3f315fe 100644
--- a/arch/arm/mach-w90x900/time_932.c
+++ b/arch/arm/mach-w90x900/time_932.c
@@ -38,10 +38,12 @@
 static void __init nuc900_timer_init(void)
 {
 	struct clk *ck_ext = clk_get(NULL, "ext");
+	struct clk *ck_timer = clk_get(NULL, "timer");
 	unsigned int	rate;
 
-	BUG_ON(IS_ERR(ck_ext));
+	BUG_ON(IS_ERR(ck_ext) || IS_ERR(ck_timer));
 
+	clk_enable(ck_timer);
 	rate = clk_get_rate(ck_ext);
 	clk_put(ck_ext);
 	rate = rate / (PRESCALE + 0x01);
-- 
1.5.6.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ