u-boot/lib_avr32
Haavard Skinnemoen 36d375faf5 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>
2008-09-01 14:21:34 +02:00
..
Makefile [Makefile] Sort COBJS in lib_<arch> Makefiles 2008-02-27 11:00:47 +01:00
board.c avr32: Use board_postclk_init instead of gclk_init 2008-09-01 14:21:34 +02:00
bootm.c bootm: refactor do_reset and os boot function args 2008-08-26 23:48:01 +02:00
interrupts.c AVR32: Fix logic inversion in disable_interrupts() 2007-12-17 11:02:44 +01:00
memset.S avr32: Put memset in its own section 2008-05-27 15:27:30 +02:00