From 400558b561e2bdb47f87b96b3510dda0881a3662 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sat, 2 Apr 2005 23:52:25 +0000 Subject: Prepare for SoC rework of ARM code: - rename CONFIG_BOOTBINFUNC into CONFIG_INIT_CRITICAL - rename memsetup into lowlevel_init (function name and source files) --- board/purple/Makefile | 2 +- board/purple/lowlevel_init.S | 37 +++++++++++++++++++++++++++++++++++++ board/purple/memsetup.S | 37 ------------------------------------- board/purple/u-boot.lds | 2 +- 4 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 board/purple/lowlevel_init.S delete mode 100644 board/purple/memsetup.S (limited to 'board/purple') diff --git a/board/purple/Makefile b/board/purple/Makefile index a9463b6..b2f2fc0 100644 --- a/board/purple/Makefile +++ b/board/purple/Makefile @@ -27,7 +27,7 @@ include $(TOPDIR)/config.mk LIB = lib$(BOARD).a OBJS = $(BOARD).o flash.o sconsole.o -SOBJS = memsetup.o +SOBJS = lowlevel_init.o $(LIB): .depend $(OBJS) $(SOBJS) $(AR) crv $@ $(OBJS) diff --git a/board/purple/lowlevel_init.S b/board/purple/lowlevel_init.S new file mode 100644 index 0000000..668124a --- /dev/null +++ b/board/purple/lowlevel_init.S @@ -0,0 +1,37 @@ +/* + * Memory sub-system initialization code for PURPLE development board. + * + * Copyright (c) 2003 Wolfgang Denk + * + * 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 +#include +#include + +#define MC_IOGP 0xBF800800 + + .globl lowlevel_init +lowlevel_init: + li t0, MC_IOGP + li t1, 0xf24 + sw t1, 0(t0) + j ra + nop diff --git a/board/purple/memsetup.S b/board/purple/memsetup.S deleted file mode 100644 index d532ceb..0000000 --- a/board/purple/memsetup.S +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Memory sub-system initialization code for PURPLE development board. - * - * Copyright (c) 2003 Wolfgang Denk - * - * 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 -#include -#include - -#define MC_IOGP 0xBF800800 - - .globl memsetup -memsetup: - li t0, MC_IOGP - li t1, 0xf24 - sw t1, 0(t0) - j ra - nop diff --git a/board/purple/u-boot.lds b/board/purple/u-boot.lds index 6263dd0..aeea5d4 100644 --- a/board/purple/u-boot.lds +++ b/board/purple/u-boot.lds @@ -35,7 +35,7 @@ SECTIONS .text : { cpu/mips/start.o (.text) - board/purple/memsetup.o (.text) + board/purple/lowlevel_init.o (.text) cpu/mips/cache.o (.text) common/main.o (.text) common/dlmalloc.o (.text) -- cgit v1.1