From: Erik M. <er...@us...> - 2001-10-14 20:24:36
|
Update of /cvsroot/blob/blob/include/blob In directory usw-pr-cvs1:/tmp/cvs-serv31603/include/blob Modified Files: Makefile.am led.h main.h Added Files: arch.h Log Message: Large cleanup of the include files, all platform specific defines are moved into a single include file in include/blob/arch/ . *Please* check if the definitions for your platform are still OK. --- NEW FILE: arch.h --- /* * arch.h: Architecture specific defines * * Copyright (C) 2001 Erik Mouw (J.A...@it...) * * $Id: arch.h,v 1.1 2001/10/14 20:24:32 erikm Exp $ * * 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 * */ #ident "$Id: arch.h,v 1.1 2001/10/14 20:24:32 erikm Exp $" #ifndef BLOB_ARCH_H #define BLOB_ARCH_H /* memory start and end */ #define MEMORY_START (0xc0000000) #define MEMORY_END (0xe0000000) /* architecture specific include files */ #if defined ASSABET # include <blob/arch/assabet.h> #elif defined BRUTUS # include <blob/arch/brutus.h> #elif defined CLART # include <blob/arch/clart.h> #elif defined LART # include <blob/arch/lart.h> #elif defined NESA # include <blob/arch/nesa.h> #elif defined PLEB # include <blob/arch/pleb.h> #elif defined SHANNON # include <blob/arch/shannon.h> #elif defined PT_SYSTEM3 # include <blob/arch/system3.h> #else # error "Please add an architecture specific include file" #endif #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/blob/blob/include/blob/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Makefile.am 2001/10/14 14:49:42 1.9 +++ Makefile.am 2001/10/14 20:24:32 1.10 @@ -15,6 +15,7 @@ noinst_HEADERS = \ + arch.h \ command.h \ command_hist.h \ errno.h \ Index: led.h =================================================================== RCS file: /cvsroot/blob/blob/include/blob/led.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- led.h 2001/10/07 15:17:49 1.1 +++ led.h 2001/10/14 20:24:32 1.2 @@ -27,29 +27,10 @@ -/* define the GPIO pin for the LED */ -#if defined ASSABET -# define LED_GPIO 0x00020000 /* GPIO 17 */ -#elif (defined CLART) || (defined LART) || (defined NESA) -# define LED_GPIO 0x00800000 /* GPIO 23 */ -#elif defined PLEB -# define LED_GPIO 0x00010000 /* GPIO 16 */ -#elif defined PT_SYSTEM3 -# define LED_GPIO 0x00000400 /* GPIO 10 */ -#else -#warning "FIXME: Include code to turn on one of the LEDs on your board" -# define LED_GPIO 0x00000000 /* safe mode: no GPIO, so no LED */ -#endif - - - -#ifndef ASSEMBLY - void led_on(void); void led_off(void); void led_toggle(void); -#endif Index: main.h =================================================================== RCS file: /cvsroot/blob/blob/include/blob/main.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- main.h 2001/10/07 15:27:35 1.2 +++ main.h 2001/10/14 20:24:32 1.3 @@ -34,61 +34,6 @@ #ifndef BLOB_MAIN_H #define BLOB_MAIN_H -/* memory start and end */ -#define MEMORY_START (0xc0000000) -#define MEMORY_END (0xe0000000) - - -/* where does blob live when we download it */ -#if defined SHANNON -# define BLOB_RAM_BASE (0xc0100000) -#elif defined PT_SYSTEM3 -# define BLOB_RAM_BASE (0xc0100000) -#else -# define BLOB_RAM_BASE (0xc0100000) -#endif - - -#define BLOB_BLOCK_OFFSET (0x00000000) - -/* where does the paramater list live when we download it */ -#define PARAM_RAM_BASE (0xc0110000) - -/* where does the kernel live in RAM */ -#define KERNEL_RAM_BASE (0xC0008000) - -#define KERNEL_BLOCK_OFFSET (0x00008000) - - -/* where does the ramdisk live in RAM */ -#if defined ASSABET -# define RAMDISK_RAM_BASE (0xC0800000) -#elif defined SHANNON -# define RAMDISK_RAM_BASE (0xC8000000) -#elif defined PT_SYSTEM3 -# define RAMDISK_RAM_BASE (0xC0800000) -#else -# define RAMDISK_RAM_BASE (0xC0400000) -#endif - -#if defined ASSABET -# define RAMDISK_BLOCK_OFFSET (0x00800000) -#elif defined SHANNON -# define RAMDISK_BLOCK_OFFSET (0x00200000) -#elif defined PT_SYSTEM3 -# define RAMDISK_BLOCK_OFFSET (0x00800000) -#else -# define RAMDISK_BLOCK_OFFSET (0x00400000) -#endif - -/* where does the command block live in memory */ -/* As far as I know all architectures have this at the same address */ -#define BOOT_PARAMS (0xc0000100) - -/* the size to which the compressed ramdisk expands */ -#define RAMDISK_SIZE (8 * 1024) - - #include <blob/types.h> #include <blob/serial.h> #include <asm-arm/setup.h> |