From: Erik M. <er...@us...> - 2001-12-27 18:27:40
|
Update of /cvsroot/blob/blob/include/blob/arch In directory usw-pr-cvs1:/tmp/cvs-serv30527/include/blob/arch Modified Files: Makefile.am system3.h Added Files: badge4.h jornada720.h Log Message: - Add HP Jornada 720 port (Chris Hoover) - Add HP Labs Badge4 port (Chris Hoover) - Slightly change the SA1110 memory setup or otherwise the HP machines won't work - Move SA1111 base address into machine specific include files --- NEW FILE: badge4.h --- /* * badge4.h: Badge4 specific defines * * Copyright (C) 2001 Hewlett-Packard Company * Written by Christopher Hoover <ch...@hp...> * * $Id: badge4.h,v 1.1 2001/12/27 18:27:37 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: badge4.h,v 1.1 2001/12/27 18:27:37 erikm Exp $" #ifndef BLOB_ARCH_BADGE4_H #define BLOB_ARCH_BADGE4_H /* boot CPU speed */ #define CPU_SPEED (0x0a) /* serial port */ #define USE_SERIAL3 /* GPIO for the LED */ #define LED_GPIO (0x00000000) /* No LED */ /* 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 (0x0000A000) #define PARAM_FLASH_BASE (BLOB_FLASH_BASE + BLOB_FLASH_LEN) #define PARAM_FLASH_LEN (0x00006000) #define KERNEL_FLASH_BASE (PARAM_FLASH_BASE + PARAM_FLASH_LEN) #define KERNEL_FLASH_LEN (1 * 1024 * 1024) #define RAMDISK_FLASH_BASE (KERNEL_FLASH_BASE + KERNEL_FLASH_LEN) #define RAMDISK_FLASH_LEN (4 * 1024 * 1024 - KERNEL_FLASH_LEN - PARAM_FLASH_LEN - BLOB_FLASH_LEN) #define PARAM_START PARAM_FLASH_BASE /* 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 */ #define BADGE4_MDCNFG \ (MDCNFG_BANK0_ENABLE|MDCNFG_DTIM0_SDRAM|MDCNFG_DWID0_32B|MDCNFG_DRAC0(3)|MDCNFG_TRP0(4)|MDCNFG_TDL0(3)|MDCNFG_TWR0(3)) /* was 0x0000f435 */ /* On CS0: Intel TE28F320C3BA100 Advanced+ Boot Block Flash (4MB) */ #define BADGE4_CS0 \ (MSC_RT_ROMFLASH|MSC_RBW16|MSC_RDF(31)|MSC_RDN(31)|MSC_RRR(7)) /* On CS1: 2 x Toshbia TC55V400 FT-85 (SRAM 256K x 16 bit) [1MB total] */ #define BADGE4_CS1 \ (MSC_RT_SRAM_012|MSC_RBW32|MSC_RDF(31)|MSC_RDN(31)|MSC_RRR(7)) /* On CS2: 2 x Toshbia TC55V400 FT-85 (SRAM 256K x 16 bit) [1MB total] */ #define BADGE4_CS2 \ (MSC_RT_SRAM_012|MSC_RBW32|MSC_RDF(31)|MSC_RDN(31)|MSC_RRR(7)) /* On CS3: Nothing */ #define BADGE4_CS3 0 /* On CS4: Nothing */ #define BADGE4_CS4 0 /* On CS5: SA-1111 */ #define BADGE4_CS5 \ (MSC_RT_VARLAT_345|MSC_RBW16|MSC_RDF(31)|MSC_RDN(31)|MSC_RRR(7)) #define BADGE4_MSC0 (BADGE4_CS0 | (BADGE4_CS1<<16)) /* was: 0xfff9fffc */ #define BADGE4_MSC1 (BADGE4_CS2 | (BADGE4_CS3<<16)) /* was: 0x0000fff9 */ #define BADGE4_MSC2 (BADGE4_CS4 | (BADGE4_CS5<<16)) /* was: 0xfff90000 */ #ifdef BLOB_NEED_MEMCONFIG # define MDCNFG_VALUE BADGE4_MDCNFG /* 0x0 MDCNFG */ # define MDCAS00_VALUE 0xAAAAAAA7 /* 0x04 MDCAS00 */ # define MDCAS01_VALUE 0xAAAAAAAA /* 0x08 MDCAS01 */ # define MDCAS02_VALUE 0xAAAAAAAA /* 0x0c MDCAS02 */ # define MSC0_VALUE BADGE4_MSC0 /* 0x10 MSC0 */ # define MSC1_VALUE BADGE4_MSC1 /* 0x14 MSC1 */ # define MECR_VALUE 0x994a994a /* 0x18 MECR */ # define MDREFR_VALUE DO_NOT_USE_THIS_VALUE__GETS_AUTOMAGICALLY_COMPUTED # define MDCAS20_VALUE 0xAAAAAA7F /* 0x20 MDCAS20 */ # define MDCAS21_VALUE 0xAAAAAAAA /* 0x24 MDCAS21 */ # define MDCAS22_VALUE 0xAAAAAAAA /* 0x28 MDCAS22 */ # define MSC2_VALUE BADGE4_MSC2 /* 0x2C MSC2 */ # define SMCNFG_VALUE 0x00000000 /* 0x30 SMCNFG */ #endif #endif --- NEW FILE: jornada720.h --- /* * jornada720.h: Jornada720 specific defines * * Copyright (C) 2001 Hewlett-Packard Company * Written by Christopher Hoover <ch...@hp...> * * $Id: jornada720.h,v 1.1 2001/12/27 18:27:37 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: jornada720.h,v 1.1 2001/12/27 18:27:37 erikm Exp $" #ifndef BLOB_ARCH_JORNADA720_H #define BLOB_ARCH_JORNADA720_H /* boot CPU speed */ #define CPU_SPEED (0x09) /* serial port */ #define USE_SERIAL3 /* GPIO for the LED */ #define LED_GPIO (0x00000000) /* No LED */ /* 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 (128 * 1024) #define PARAM_FLASH_BASE (BLOB_FLASH_BASE + BLOB_FLASH_LEN) #define PARAM_FLASH_LEN (128 * 1024) #define KERNEL_FLASH_BASE (PARAM_FLASH_BASE + PARAM_FLASH_LEN) #define KERNEL_FLASH_LEN (1 * 1024 * 1024) #define RAMDISK_FLASH_BASE (KERNEL_FLASH_BASE + KERNEL_FLASH_LEN) #define RAMDISK_FLASH_LEN (2 * 1024 * 1024) #define PARAM_START PARAM_RAM_BASE /* 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 */ #define JORNADA720_MDCNFG \ (MDCNFG_BANK0_ENABLE|MDCNFG_DTIM0_SDRAM|MDCNFG_DWID0_32B|MDCNFG_DRAC0(5)|MDCNFG_TRP0(2)|MDCNFG_TDL0(3)|MDCNFG_TWR0(1)) /* was 0x00007255 */ /* On CS0: 2 x Intel 28F128J3A StratFlash (8M x 16bit) [32MB total] (was: 0x4f78) */ #define JORNADA720_CS0 \ (MSC_RT_ROMFLASH|MSC_RBW32|MSC_RDF(15)|MSC_RDN(15)|MSC_RRR(2)) /* On CS1 (was: 0xfff0) */ #define JORNADA720_CS1 \ (MSC_RT_ROMFLASH|MSC_RBW32|MSC_RDF(30)|MSC_RDN(31)|MSC_RRR(7)) /* On CS2 (was 0xfff0) */ #define JORNADA720_CS2 \ (MSC_RT_ROMFLASH|MSC_RBW32|MSC_RDF(30)|MSC_RDN(31)|MSC_RRR(7)) /* On CS3: (was 0xfff8) */ #define JORNADA720_CS3 \ (MSC_RT_ROMFLASH|MSC_RBW32|MSC_RDF(31)|MSC_RDN(31)|MSC_RRR(7)) /* On CS4: (was 0x2959) */ #define JORNADA720_CS4 \ (MSC_RT_VARLAT_345|MSC_RBW32|MSC_RDF(11)|MSC_RDN(9)|MSC_RRR(1)) /* On CS5: (was0x201d) */ #define JORNADA720_CS5 \ (MSC_RT_VARLAT_345|MSC_RBW16|MSC_RDF(3)|MSC_RDN(0)|MSC_RRR(1)) #define JORNADA720_MSC0 \ (JORNADA720_CS0 | (JORNADA720_CS1<<16)) /* was: 0xfff04f78 */ #define JORNADA720_MSC1 \ (JORNADA720_CS2 | (JORNADA720_CS3<<16)) /* was: 0xfff8fff0 */ #define JORNADA720_MSC2 \ (JORNADA720_CS4 | (JORNADA720_CS5<<16)) /* was: 0x201d2959 */ #ifdef BLOB_NEED_MEMCONFIG # define MDCNFG_VALUE JORNADA720_MDCNFG /* 0x0 MDCNFG */ # define MDCAS00_VALUE 0x5555557f /* 0x04 MDCAS00 */ # define MDCAS01_VALUE 0x55555555 /* 0x08 MDCAS01 */ # define MDCAS02_VALUE 0x55555555 /* 0x0c MDCAS02 */ # define MSC0_VALUE JORNADA720_MSC0 /* 0x10 MSC0 */ # define MSC1_VALUE JORNADA720_MSC1 /* 0x14 MSC1 */ # define MECR_VALUE 0x98c698c6 /* 0x18 MECR */ # define MDREFR_VALUE DO_NOT_USE_THIS_VALUE__GETS_AUTOMAGICALLY_COMPUTED # define MDCAS20_VALUE 0xd1284142 /* 0x20 MDCAS20 */ # define MDCAS21_VALUE 0x72249529 /* 0x24 MDCAS21 */ # define MDCAS22_VALUE 0x78414351 /* 0x28 MDCAS22 */ # define MSC2_VALUE JORNADA720_MSC2 /* 0x2C MSC2 */ # define SMCNFG_VALUE 0x00000000 /* 0x30 SMCNFG */ #endif #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/blob/blob/include/blob/arch/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.am 2001/12/16 04:34:03 1.4 +++ Makefile.am 2001/12/27 18:27:37 1.5 @@ -12,10 +12,12 @@ noinst_HEADERS = \ assabet.h \ + badge4.h \ brutus.h \ clart.h \ h3600.h \ idr.h \ + jornada720.h \ lart.h \ nesa.h \ pleb.h \ Index: system3.h =================================================================== RCS file: /cvsroot/blob/blob/include/blob/arch/system3.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- system3.h 2001/11/05 09:19:24 1.6 +++ system3.h 2001/12/27 18:27:37 1.7 @@ -89,6 +89,7 @@ #ifndef CPU_SPEED_133 // 206 Mhz +# define MDCNFG_VALUE 0x72547254 # define MDCAS00_VALUE 0xAAAAAA9F # define MDCAS01_VALUE 0xAAAAAAAA # define MDCAS02_VALUE 0xAAAAAAAA @@ -102,6 +103,7 @@ # define SMCNFG_VALUE 0 #else // 133 Mhz +# define MDCNFG_VALUE 0x72547254 # define MDCAS00_VALUE 0xAAAAAA9F # define MDCAS01_VALUE 0xAAAAAAAA # define MDCAS02_VALUE 0xAAAAAAAA @@ -127,5 +129,6 @@ # define _DBGU32( x ) #endif +# define SA1111_BASE (0x40000000) #endif |