]> rtime.felk.cvut.cz Git - sysless.git/commit
Provide alternative memory reservation from USB RAM on LPC17xx.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 26 Sep 2010 08:38:18 +0000 (10:38 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 26 Sep 2010 08:38:18 +0000 (10:38 +0200)
commit1783e24074f6d438d273dd670b16f05bd4794509
tree8da9782916a41b5abdd4cc5f03d72e176a711d5b
parent10dd5ef50b0b79fab7d9f3aa4e4288a42ff6af12
Provide alternative memory reservation from USB RAM on LPC17xx.

The lpc_reserve_usb_ram() serves to runtime reserve
memory in USB RAM area after linker allocated variables.
There is no mechanism to release memory allocated
by by lpc_reserve_usb_ram(). Mechanism is provided
for one time reservation at application startup.

The uLAN driver and DOGXL display drivers can
be instructed to use this kind of allocation
by inclussion of next lines in application program.

  #include <hal_machperiph.h>

  void *(* const gr_driver_reserve_ram)(size_t size) =
lpc_reserve_usb_ram;

  void *(* const ul_drv_reserve_ram)(size_t size) =
lpc_reserve_usb_ram;

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
arch/arm/mach-lpc17xx/libs/hal/Makefile.omk
arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h
arch/arm/mach-lpc17xx/libs/hal/hal_reserve_usb_ram.c [new file with mode: 0644]
board/arm/lpc17xx-common/defines/system_def-lmc1.h
board/arm/lpc17xx-common/libs/ldscripts/lpc17xx-base.ld-app
board/arm/lpc17xx-common/libs/ldscripts/lpc17xx-base.ld-boot