From a6c7ad2f65afaa717ba19cbf9d8d138b5f10ccf9 Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 3 Dec 2002 21:28:10 +0000 Subject: * Fix startup problems with VFD display on TRAB * Patch by Pierre Aubert, 20 Nov 2002 Add driver for Epson SED13806 graphic controller. Add support for BMP logos in cfb_console driver. --- lib_arm/board.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib_arm') diff --git a/lib_arm/board.c b/lib_arm/board.c index 47dc53c..b6b5cdb 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -46,7 +46,10 @@ static ulong mem_malloc_start = 0; static ulong mem_malloc_end = 0; static ulong mem_malloc_brk = 0; -static void mem_malloc_init (ulong dest_addr) +#if !defined(CONFIG_MODEM_SUPPORT) +static +#endif +void mem_malloc_init (ulong dest_addr) { mem_malloc_start = dest_addr; mem_malloc_end = dest_addr + CFG_MALLOC_LEN; @@ -184,7 +187,7 @@ void start_armboot (void) gd_t gd_data; bd_t bd_data; init_fnc_t **init_fnc_ptr; -#ifdef CONFIG_VFD +#if defined(CONFIG_VFD) && !defined(CONFIG_MODEM_SUPPORT) unsigned long addr; #endif @@ -205,6 +208,7 @@ void start_armboot (void) display_flash_config (size); #ifdef CONFIG_VFD +#ifndef CONFIG_MODEM_SUPPORT #ifndef PAGE_SIZE #define PAGE_SIZE 4096 #endif @@ -219,14 +223,17 @@ void start_armboot (void) addr += size; addr = (addr + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); mem_malloc_init (addr); +#endif /* CONFIG_MODEM_SUPPORT */ #else /* armboot_real_end is defined in the board-specific linker script */ mem_malloc_init (_armboot_real_end); #endif /* CONFIG_VFD */ #ifdef CONFIG_VFD +#ifndef CONFIG_MODEM_SUPPORT /* must do this after the framebuffer is allocated */ drv_vfd_init(); +#endif /* CONFIG_MODEM_SUPPORT */ #endif /* initialize environment */ env_relocate (); -- cgit v1.1