From: Jeff S. <je...@us...> - 2002-08-14 20:57:58
|
Update of /cvsroot/blob/blob/include/blob/arch In directory usw-pr-cvs1:/tmp/cvs-serv20812 Modified Files: Makefile.am Added Files: lubbock.h pxa_idp.h Log Message: --- NEW FILE: lubbock.h --- /* * lubbock.h: Lubbock specific defines * * Copyright (C) 2002 Intel Corporation * Written by Rusty Geldmacher (rus...@in...) * * 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 * */ #ifndef BLOB_ARCH_LUBBOCK_H #define BLOB_ARCH_LUBBOCK_H /* boot CPU speed */ #define CPU_SPEED (0x0b) /* the base address were BLOB is loaded by the first stage loader */ #define BLOB_ABS_BASE_ADDR (0xc0200400) /* where do various parts live in RAM */ #define BLOB_RAM_BASE (0xc0100000) #define KERNEL_RAM_BASE (0xC0008000) #define PARAM_RAM_BASE (0xc0110000) #define RAMDISK_RAM_BASE (0xC0400000) /* and where do they live in flash */ #define BLOB_FLASH_BASE (0x00000000) #define BLOB_FLASH_LEN (256 * 1024) #define PARAM_FLASH_BASE (BLOB_FLASH_BASE + BLOB_FLASH_LEN) #define PARAM_FLASH_LEN (256 * 1024) #define KERNEL_FLASH_BASE (PARAM_FLASH_BASE + PARAM_FLASH_LEN) #define KERNEL_FLASH_LEN (1024 * 1024) #define LOAD_RAMDISK 1 /* load ramdisk into ram */ #define RAMDISK_FLASH_BASE (KERNEL_FLASH_BASE + KERNEL_FLASH_LEN) #define RAMDISK_FLASH_LEN (4 * 1024 * 1024) /* the position of the kernel boot parameters */ #define BOOT_PARAMS (0xc0000100) /* the size (in kbytes) to which the compressed ramdisk expands */ #define RAMDISK_SIZE (8 * 1024) /* Memory configuration */ /* get these values later */ #endif --- NEW FILE: pxa_idp.h --- /* * pxa_idp.h: Accelent PXA-IDP specific defines * * Copyright (C) 2001 Erik Mouw (J.A...@it...) * Copyright (C) 2002 Holger Schurig <h.s...@mn...> * Copyright (c) 2002 Jeff Sutherland <je...@ac...> * * 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 * */ #ifndef BLOB_ARCH_PXA_IDP_H #define BLOB_ARCH_PXA_IDP_H /* speed definitions are more complex on Xscale- need core, internal bus, * and memory numbers. Not all combinations are valid. */ #undef CPU_SPEED_400 /* boot CPU speed */ #ifdef CPU_SPEED_100 # define CPU_SPEED (0x05) #else # define CPU_SPEED (0x0a) #endif /* serial port */ #define USE_SERIAL1 #define TERMINAL_SPEED baud_115200 /* GPIO for the LED */ #define LED_GPIO (0x00000002) /* GPIO 1 */ /* the base address were BLOB is loaded by the first stage loader */ #define BLOB_ABS_BASE_ADDR (0xa0200400) /* where do various parts live in RAM */ #define BLOB_RAM_BASE (0xa0100000) #define KERNEL_RAM_BASE (0xa0008000) #define PARAM_RAM_BASE (0xa0110000) #define RAMDISK_RAM_BASE (0xa0400000) /* and where do they live in flash */ #define BLOB_FLASH_BASE (0x00000000) #define BLOB_FLASH_LEN (256 * 1024) #define PARAM_FLASH_BASE (BLOB_FLASH_BASE + BLOB_FLASH_LEN) #define PARAM_FLASH_LEN (256 * 1024) #define KERNEL_FLASH_BASE (PARAM_FLASH_BASE + PARAM_FLASH_LEN) #define KERNEL_FLASH_LEN (1024 * 1024) #define LOAD_RAMDISK 1 /* load ramdisk into ram */ #define RAMDISK_FLASH_BASE (KERNEL_FLASH_BASE + KERNEL_FLASH_LEN) #define RAMDISK_FLASH_LEN (4 * 1024 * 1024) /* the position of the kernel boot parameters */ #define BOOT_PARAMS (0xa0000100) /* the size (in kbytes) to which the compressed ramdisk expands */ #define RAMDISK_SIZE (8 * 1024) /* #ifdef BLOB_NEED_MEMCONFIG */ #if 1 /* this is full tilt boogie (400MHz cpu, 100Mhz mem, 100MHz clk) #define MDCNFG_VALUE 0x0A000AC9 #define MDREFR_VALUE 0x0085C017 #define MSC0_VALUE 0x29DCA4D2 #define MSC1_VALUE 0x439C493C #define MSC2_VALUE 0x7FD449D1 #define MECR_VALUE 0x00000003 */ /* I took these from the Lubbock setup, they should probably be changed * for actual IDP values, but these are there for now :-) */ #define PERIF_BASE_PHYSICAL 0x40000000 #define MEMC_BASE_PHYSICAL 0x48000000 #define SDRAM_BASE_PHYSICAL 0xA0000000 #define OST_OFFSET 0x00A00000 #define OSCR_OFFSET 0x10 #define OST_BASE_PHYSICAL (PERIF_BASE_PHYSICAL + OST_OFFSET) #define OSCR_BASE_PHYSICAL (OST_BASE_PHYSICAL + OSCR_OFFSET) #define MSC0_VAL 0x23F223F2 #define MSC1_VAL 0x3FF1A441 #define MSC2_VAL 0x7FF17FF1 #define MECR_VAL 0x00000000 #define MCMEM0_VAL 0x00010504 #define MCMEM1_VAL 0x00010504 #define MCATT0_VAL 0x00010504 #define MCATT1_VAL 0x00010504 #define MCIO0_VAL 0x00004715 #define MCIO1_VAL 0x00004715 #define MDREFR_VAL 0x00018018 #define MDCNFG_VAL 0x00001AC9 #define MDMRS_VAL 0x00000000 /* #ifndef __ASSEMBLY__ memregs->sxlcr = 0x00000000 memregs->sxcnfg = 0x00000000 memregs->flycnfg = 0x01FE01FE memregs->sxmrs = 0x00000000 memregs->mcmem0 = 0x00014405 memregs->mcmem1 = 0x00014405 memregs->mcatt0 = 0x00014405 memregs->mcatt1 = 0x00014405 memregs->mcio0 = 0x00014405 memregs->mcio1 = 0x00014405 memregs->mdmrs = 0x00320032 memregs->boot_def = 0x00000008 #endif */ #else // Do a low speed version at some point... #endif /* #endif */ // the control-registers in the FPGA #define CONTROL_REG __REG(0x42000000) /* Debugging macros used in accelent code */ #define ACCELENT_DEBUG 1 #ifdef ACCELENT_DEBUG # define _DBGU32( x ) SerialOutputString( #x"=0x" ); \ SerialOutputHex( (u32)x ); \ serial_write( '\n' ); #else # define _DBGU32( x ) #endif #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/blob/blob/include/blob/arch/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Makefile.am 27 May 2002 10:01:48 -0000 1.9 +++ Makefile.am 14 Aug 2002 20:57:56 -0000 1.10 @@ -21,12 +21,14 @@ idr.h \ jornada720.h \ lart.h \ + lubbock.h \ miniprint.h \ nesa.h \ pleb.h \ shannon.h \ system3.h \ - trizeps.h + trizeps.h \ + pxa_idp.h CLEANFILES = ${srcdir}/*~ |