summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2010-08-19 16:15:30 +0000
committeradrian <adrian@FreeBSD.org>2010-08-19 16:15:30 +0000
commit58e9636110b38fd013afa7a5c11540b418b6f7dc (patch)
treea4103a14ac3f8648fd1c27917bb6f7c05e3cbd44
parent0adc79620592d13e6156cad2d9ab11b1c95e6c68 (diff)
downloadFreeBSD-src-58e9636110b38fd013afa7a5c11540b418b6f7dc.zip
FreeBSD-src-58e9636110b38fd013afa7a5c11540b418b6f7dc.tar.gz
add the PLL set functions to cpuops
-rw-r--r--sys/mips/atheros/ar71xx_cpudef.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/mips/atheros/ar71xx_cpudef.h b/sys/mips/atheros/ar71xx_cpudef.h
index 4a29c8f..f26c55a 100644
--- a/sys/mips/atheros/ar71xx_cpudef.h
+++ b/sys/mips/atheros/ar71xx_cpudef.h
@@ -81,6 +81,16 @@ static inline int ar71xx_device_stopped(uint32_t mask)
return ar71xx_cpu_ops->ar71xx_chip_device_stopped(mask);
}
+static inline void ar71xx_device_set_pll_ge0(int speed)
+{
+ ar71xx_cpu_ops->ar71xx_chip_set_pll_ge0(speed);
+}
+
+static inline void ar71xx_device_set_pll_ge1(int speed)
+{
+ ar71xx_cpu_ops->ar71xx_chip_set_pll_ge1(speed);
+}
+
static inline void ar71xx_device_flush_ddr_ge0(void)
{
ar71xx_cpu_ops->ar71xx_chip_ddr_flush_ge0();
OpenPOWER on IntegriCloud