diff options
author | wdenk <wdenk> | 2002-03-10 18:20:43 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2002-03-10 18:20:43 +0000 |
commit | 7e7f3e352dd7cfefe6ee715e11a4d35adb7fc095 (patch) | |
tree | cca23ce8e7ca31b4fa342e1854167740fe77e609 /board/cpu86 | |
parent | c6f35e6998592edb84dc3c0549172ae69751940d (diff) | |
download | u-boot-7e7f3e352dd7cfefe6ee715e11a4d35adb7fc095.tar.gz u-boot-7e7f3e352dd7cfefe6ee715e11a4d35adb7fc095.tar.xz u-boot-7e7f3e352dd7cfefe6ee715e11a4d35adb7fc095.zip |
Initial revision
Diffstat (limited to 'board/cpu86')
-rw-r--r-- | board/cpu86/Makefile | 40 | ||||
-rw-r--r-- | board/cpu86/cpu86.h | 27 | ||||
-rw-r--r-- | board/cpu86/u-boot.lds | 118 |
3 files changed, 185 insertions, 0 deletions
diff --git a/board/cpu86/Makefile b/board/cpu86/Makefile new file mode 100644 index 0000000000..35b84288da --- /dev/null +++ b/board/cpu86/Makefile @@ -0,0 +1,40 @@ +# +# (C) Copyright 2001 +# Wolfgang Denk, DENX Software Engineering, wd@denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +include $(TOPDIR)/config.mk + +LIB = lib$(BOARD).a + +OBJS = $(BOARD).o flash.o + +$(LIB): .depend $(OBJS) + $(AR) crv $@ $^ + +######################################################################### + +.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) + $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@ + +sinclude .depend + +######################################################################### diff --git a/board/cpu86/cpu86.h b/board/cpu86/cpu86.h new file mode 100644 index 0000000000..cf7852cefd --- /dev/null +++ b/board/cpu86/cpu86.h @@ -0,0 +1,27 @@ +#ifndef __BOARD_CPU86__ +#define __BOARD_CPU86__ + +#include <config.h> + +#define REG8(x) (*(volatile unsigned char *)(x)) + +/* CPU86 register definitions */ +#define CPU86_VME_EAC REG8(CFG_BCRS_BASE + 0x00) +#define CPU86_VME_SAC REG8(CFG_BCRS_BASE + 0x01) +#define CPU86_VME_MAC REG8(CFG_BCRS_BASE + 0x02) +#define CPU86_BCR REG8(CFG_BCRS_BASE + 0x03) +#define CPU86_BSR REG8(CFG_BCRS_BASE + 0x04) +#define CPU86_WDOG_RPORT REG8(CFG_BCRS_BASE + 0x05) +#define CPU86_MBOX_IRQ REG8(CFG_BCRS_BASE + 0x04) +#define CPU86_REV REG8(CFG_BCRS_BASE + 0x07) +#define CPU86_VME_IRQMASK REG8(CFG_BCRS_BASE + 0x80) +#define CPU86_VME_IRQSTATUS REG8(CFG_BCRS_BASE + 0x81) +#define CPU86_LOCAL_IRQMASK REG8(CFG_BCRS_BASE + 0x82) +#define CPU86_LOCAL_IRQSTATUS REG8(CFG_BCRS_BASE + 0x83) +#define CPU86_PMCL_IRQSTATUS REG8(CFG_BCRS_BASE + 0x84) + +/* Board Control Register bits */ +#define CPU86_BCR_FWPT 0x01 +#define CPU86_BCR_FWRE 0x02 + +#endif /* __BOARD_CPU86__ */ diff --git a/board/cpu86/u-boot.lds b/board/cpu86/u-boot.lds new file mode 100644 index 0000000000..5df4cdb321 --- /dev/null +++ b/board/cpu86/u-boot.lds @@ -0,0 +1,118 @@ +/* + * (C) Copyright 2001 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +OUTPUT_ARCH(powerpc) +SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib); +/* Do we need any of these for elf? + __DYNAMIC = 0; */ +SECTIONS +{ + /* Read-only sections, merged into text segment: */ + . = + SIZEOF_HEADERS; + .interp : { *(.interp) } + .hash : { *(.hash) } + .dynsym : { *(.dynsym) } + .dynstr : { *(.dynstr) } + .rel.text : { *(.rel.text) } + .rela.text : { *(.rela.text) } + .rel.data : { *(.rel.data) } + .rela.data : { *(.rela.data) } + .rel.rodata : { *(.rel.rodata) } + .rela.rodata : { *(.rela.rodata) } + .rel.got : { *(.rel.got) } + .rela.got : { *(.rela.got) } + .rel.ctors : { *(.rel.ctors) } + .rela.ctors : { *(.rela.ctors) } + .rel.dtors : { *(.rel.dtors) } + .rela.dtors : { *(.rela.dtors) } + .rel.bss : { *(.rel.bss) } + .rela.bss : { *(.rela.bss) } + .rel.plt : { *(.rel.plt) } + .rela.plt : { *(.rela.plt) } + .init : { *(.init) } + .plt : { *(.plt) } + .text : + { + cpu/mpc8260/start.o (.text) + *(.text) + common/environment.o(.text) + *(.fixup) + *(.got1) + . = ALIGN(16); + *(.rodata) + *(.rodata1) + } + .fini : { *(.fini) } =0 + .ctors : { *(.ctors) } + .dtors : { *(.dtors) } + + /* Read-write section, merged into data segment: */ + . = (. + 0x0FFF) & 0xFFFFF000; + _erotext = .; + PROVIDE (erotext = .); + .reloc : + { + *(.got) + _GOT2_TABLE_ = .; + *(.got2) + _FIXUP_TABLE_ = .; + *(.fixup) + } + __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2; + __fixup_entries = (. - _FIXUP_TABLE_) >> 2; + + .data : + { + *(.data) + *(.data1) + *(.sdata) + *(.sdata2) + *(.dynamic) + CONSTRUCTORS + } + _edata = .; + PROVIDE (edata = .); + + __start___ex_table = .; + __ex_table : { *(__ex_table) } + __stop___ex_table = .; + + . = ALIGN(4096); + __init_begin = .; + .text.init : { *(.text.init) } + .data.init : { *(.data.init) } + . = ALIGN(4096); + __init_end = .; + + __bss_start = .; + .bss : + { + *(.sbss) *(.scommon) + *(.dynbss) + *(.bss) + *(COMMON) + } + _end = . ; + PROVIDE (end = .); +} + |