summaryrefslogtreecommitdiff
path: root/lib_arm/board.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-02-28 00:49:47 +0000
committerwdenk <wdenk>2003-02-28 00:49:47 +0000
commit6069ff265362ef6239749b5f598b137f407b821e (patch)
tree991432052f2aa7da45d8c1d51db9f80478d7e75d /lib_arm/board.c
parent2a9e02ead3024f33658f1f4110834d0601dd6b2f (diff)
downloadu-boot-imx-6069ff265362ef6239749b5f598b137f407b821e.zip
u-boot-imx-6069ff265362ef6239749b5f598b137f407b821e.tar.gz
u-boot-imx-6069ff265362ef6239749b5f598b137f407b821e.tar.bz2
* Add support for 16 MB flash configuration of TRAB board
* Patch by Erwin Rol, 27 Feb 2003: Add support for RTEMS * Add image information to README * Fix dual PCMCIA slot support (when running with just one slot populated) * Add VFD type detection to trab board * extend drivers/cs8900.c driver to synchronize ethaddr environment variable with value in the EEPROM * Start adding MIPS support files
Diffstat (limited to 'lib_arm/board.c')
-rw-r--r--lib_arm/board.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c
index b6b5cdb..31cdd9c 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -46,9 +46,7 @@ static ulong mem_malloc_start = 0;
static ulong mem_malloc_end = 0;
static ulong mem_malloc_brk = 0;
-#if !defined(CONFIG_MODEM_SUPPORT)
static
-#endif
void mem_malloc_init (ulong dest_addr)
{
mem_malloc_start = dest_addr;
@@ -187,7 +185,7 @@ void start_armboot (void)
gd_t gd_data;
bd_t bd_data;
init_fnc_t **init_fnc_ptr;
-#if defined(CONFIG_VFD) && !defined(CONFIG_MODEM_SUPPORT)
+#if defined(CONFIG_VFD)
unsigned long addr;
#endif
@@ -208,10 +206,9 @@ void start_armboot (void)
display_flash_config (size);
#ifdef CONFIG_VFD
-#ifndef CONFIG_MODEM_SUPPORT
-#ifndef PAGE_SIZE
-#define PAGE_SIZE 4096
-#endif
+# ifndef PAGE_SIZE
+# define PAGE_SIZE 4096
+# endif
/*
* reserve memory for VFD display (always full pages)
*/
@@ -223,20 +220,18 @@ 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 */
+ /* initialize environment */
+ env_relocate ();
+
#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 ();
/* IP Address */
bd_data.bi_ip_addr = getenv_IPaddr ("ipaddr");
@@ -267,15 +262,15 @@ void start_armboot (void)
enable_interrupts ();
#ifdef CONFIG_DRIVER_CS8900
- if (!getenv ("ethaddr")) {
- cs8900_get_enetaddr (gd->bd->bi_enetaddr);
- }
+ cs8900_get_enetaddr (gd->bd->bi_enetaddr);
#endif
#ifdef BOARD_POST_INIT
board_post_init ();
#endif
+printf ("### vfd_type=0x%02X vfd_data_lines_inv=%d\n",gd->vfd_type,gd->vfd_inv_data);
+
/* main_loop() can return to retry autoboot, if so just run it again. */
for (;;) {
main_loop ();