AVR32: Resource management rewrite
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Sun, 19 Nov 2006 17:06:53 +0000 (18:06 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Sat, 14 Apr 2007 13:20:27 +0000 (15:20 +0200)
commitdf548d3c3e2bbc40258713167859ffc2ce99a900
tree63759a73724848ba192874aa552861e03faf1058
parent03d1e1365796cd15d1726e8a51fd8b5be50b2fe9
AVR32: Resource management rewrite

Rewrite the resource management code (i.e. I/O memory, clock gating,
gpio) so it doesn't depend on any global state. This is necessary
because this code is heavily used before relocation to RAM, so we
can't write to any global variables.

As an added bonus, this makes u-boot's memory footprint a bit smaller,
although some functionality has been left out; all clocks are enabled
all the time, and there's no checking for gpio line conflicts.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
26 files changed:
board/atmel/atstk1000/atstk1000.c
cpu/at32ap/Makefile
cpu/at32ap/at32ap7000/Makefile
cpu/at32ap/at32ap7000/devices.c [deleted file]
cpu/at32ap/at32ap7000/gpio.c [new file with mode: 0644]
cpu/at32ap/at32ap7000/hebi.c [deleted file]
cpu/at32ap/cpu.c
cpu/at32ap/device.c [deleted file]
cpu/at32ap/hsdramc.c
cpu/at32ap/hsdramc1.h
cpu/at32ap/hsmc3.h
cpu/at32ap/interrupts.c
cpu/at32ap/pio.c
cpu/at32ap/pio2.h
cpu/at32ap/pm.c
cpu/at32ap/sm.h
drivers/atmel_usart.c
drivers/atmel_usart.h
include/asm-avr32/arch-at32ap7000/clk.h [new file with mode: 0644]
include/asm-avr32/arch-at32ap7000/gpio.h [new file with mode: 0644]
include/asm-avr32/arch-at32ap7000/hmatrix2.h
include/asm-avr32/arch-at32ap7000/platform.h [deleted file]
include/asm-avr32/global_data.h
include/configs/atstk1002.h
lib_avr32/avr32_linux.c
lib_avr32/board.c