summaryrefslogtreecommitdiff
path: root/include/asm-avr32/arch-at32ap7000/clk.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2006-12-17 16:56:14 +0100
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-04-14 16:14:06 +0200
commitb4ec9c2d43d894729bb633bfdbdfa95a962c1556 (patch)
treef961ef6bec276aec5263b12d2a3e1017f1f04d3f /include/asm-avr32/arch-at32ap7000/clk.h
parentd5acb95b16a0a74c643524342c3437e765426d05 (diff)
downloadu-boot-imx-b4ec9c2d43d894729bb633bfdbdfa95a962c1556.zip
u-boot-imx-b4ec9c2d43d894729bb633bfdbdfa95a962c1556.tar.gz
u-boot-imx-b4ec9c2d43d894729bb633bfdbdfa95a962c1556.tar.bz2
AVR32: Add clk and gpio infrastructure for macb0 and macb1
Implement functions for configuring the macb0 and macb1 pins, as well as functions for getting the clock rate of the various busses the macb ethernet controllers are connected to. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/asm-avr32/arch-at32ap7000/clk.h')
-rw-r--r--include/asm-avr32/arch-at32ap7000/clk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap7000/clk.h b/include/asm-avr32/arch-at32ap7000/clk.h
index 4a25b17..1ca5b48 100644
--- a/include/asm-avr32/arch-at32ap7000/clk.h
+++ b/include/asm-avr32/arch-at32ap7000/clk.h
@@ -54,5 +54,13 @@ static inline unsigned long get_usart_clk_rate(unsigned int dev_id)
{
return get_pba_clk_rate();
}
+static inline unsigned long get_macb_pclk_rate(unsigned int dev_id)
+{
+ return get_pbb_clk_rate();
+}
+static inline unsigned long get_macb_hclk_rate(unsigned int dev_id)
+{
+ return get_hsb_clk_rate();
+}
#endif /* __ASM_AVR32_ARCH_CLK_H__ */