u-boot-brain/board/altera/nios2-generic/text_base.S
Thomas Chou 8cbb0ddd7e nios2: add nios2-generic board
This is a generic approach to port u-boot for nios2 boards.
You may find the usage of this approach on the nioswiki,
http://nioswiki.com/DasUBoot

A fpga parameter file, which contains base address information
and drivers declaration, is generated from Altera's hardware system
description sopc file using tools.

The example fpga parameter file is compatible with EP1C20, EP1S10
and EP1S40 boards. So these boards can be removed after this commit.
Though epcs controller is removed to cut the dependency of altera_spi
driver.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-04-24 18:21:23 -04:00

22 lines
539 B
ArmAsm

/*
* text_base
*
* (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <config.h>
#ifdef CONFIG_SYS_MONITOR_BASE
.text
/* text base used in link script u-boot.lds */
.global text_base
.equ text_base,CONFIG_SYS_MONITOR_BASE
/* dummy func to let linker include this file */
.global text_base_hook
text_base_hook:
ret
#endif