]> git.sur5r.net Git - u-boot/commit
avr32: Add gclk helper functions
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Sun, 31 Aug 2008 16:05:32 +0000 (18:05 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 1 Sep 2008 12:21:34 +0000 (14:21 +0200)
commit98090cd75cdb40b2ab94c806c338540a5716748b
tree1e401a8b0b0b1b46f170d603edc8b58227faf346
parentab0df36fc7db9dda0b786b909f653e279dfeb9cf
avr32: Add gclk helper functions

Add two helper functions for configuring and enabling generic clocks:
  - gclk_enable_output: Enables output on a GCLKx pin
  - gclk_set_rate: Configures a gclk to run at a specific rate

This should eliminate any reason to go mucking about with PM registers
from board code.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
cpu/at32ap/at32ap700x/clk.c
include/asm-avr32/arch-at32ap700x/clk.h