Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/imx From: Petri Laakso <petri.laakso%asd.fi@localhost>
details: https://anonhg.NetBSD.org/src/rev/aab760eb2d0c
branches: trunk
changeset: 335497:aab760eb2d0c
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jan 10 12:13:56 2015 +0000
description:
From: Petri Laakso <petri.laakso%asd.fi@localhost>
- Enable 24MHz clock for the Digital Filter.
diffstat:
sys/arch/arm/imx/imx23_clkctrl.c | 21 ++++++++++++++++++++-
sys/arch/arm/imx/imx23_clkctrlvar.h | 3 ++-
2 files changed, 22 insertions(+), 2 deletions(-)
diffs (48 lines):
diff -r cb011d8ba026 -r aab760eb2d0c sys/arch/arm/imx/imx23_clkctrl.c
--- a/sys/arch/arm/imx/imx23_clkctrl.c Sat Jan 10 12:13:00 2015 +0000
+++ b/sys/arch/arm/imx/imx23_clkctrl.c Sat Jan 10 12:13:56 2015 +0000
@@ -1,4 +1,4 @@
-/* $Id: imx23_clkctrl.c,v 1.1 2013/10/07 17:36:40 matt Exp $ */
+/* $Id: imx23_clkctrl.c,v 1.2 2015/01/10 12:13:56 jmcneill Exp $ */
/*
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -149,3 +149,22 @@
return;
}
+
+/*
+ * Enable 24MHz clock for the Digital Filter.
+ *
+ */
+void
+clkctrl_en_filtclk(void)
+{
+ struct clkctrl_softc *sc = _sc;
+
+ if (sc == NULL) {
+ aprint_error("clkctrl is not initalized");
+ return;
+ }
+
+ CLKCTRL_WR(sc, HW_CLKCTRL_XTAL_CLR, HW_CLKCTRL_XTAL_FILT_CLK24M_GATE);
+
+ return;
+}
diff -r cb011d8ba026 -r aab760eb2d0c sys/arch/arm/imx/imx23_clkctrlvar.h
--- a/sys/arch/arm/imx/imx23_clkctrlvar.h Sat Jan 10 12:13:00 2015 +0000
+++ b/sys/arch/arm/imx/imx23_clkctrlvar.h Sat Jan 10 12:13:56 2015 +0000
@@ -1,4 +1,4 @@
-/* $Id: imx23_clkctrlvar.h,v 1.1 2013/10/07 17:36:40 matt Exp $ */
+/* $Id: imx23_clkctrlvar.h,v 1.2 2015/01/10 12:13:56 jmcneill Exp $ */
/*
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -33,5 +33,6 @@
#define _ARM_IMX_IMX23_CLKCTRLVAR_H_
void clkctrl_en_usb(void);
+void clkctrl_en_filtclk(void);
#endif /* !_ARM_IMX_IMX23_CLKCTRLVAR_H_ */
Home |
Main Index |
Thread Index |
Old Index