]> git.sur5r.net Git - u-boot/commit
avr32: Use board_postclk_init instead of gclk_init
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Sun, 31 Aug 2008 16:24:24 +0000 (18:24 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 1 Sep 2008 12:21:34 +0000 (14:21 +0200)
commit36d375faf5cff98e8dca32aabbbb1ec6036437dd
treeba828554f9f7775e5970da69c298f599bf300fc7
parentabdde2b1d570b1ee77606bf783444fcddf7f0965
avr32: Use board_postclk_init instead of gclk_init

Replace the avr32-specific gclk_init() board hook with the standard
board_postclk_init() hook which is supposed to run at the same point
during initialization.

Provide a dummy weak alias for boards not implementing this hook. The
cost of this is:
  - 2 bytes for the dummy function (retal 0)
  - 2 bytes for each unnecessary function call (short rcall)

which is a pretty small price to pay for avoiding lots of #ifdef
clutter. In this particular case, all boards probably end up slightly
smaller because we avoid the conditional checking if the gclk_init
symbol is NULL.

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