From: Abraham vd M. <ab...@us...> - 2002-02-01 14:39:00
|
Update of /cvsroot/blob/blob/src/blob In directory usw-pr-cvs1:/tmp/cvs-serv10209/src/blob Modified Files: Makefile.am flash.c Added Files: frodo.c Log Message: Added support for 2d3D, Inc. SA-1110 Development Board. --- NEW FILE: frodo.c --- /* * frodo.c: FRODO specific stuff * * Copyright (C) 2001 Abraham van der Merwe <ab...@2d...> * * 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: frodo.c,v 1.1 2002/02/01 14:38:55 abz Exp $" #ifdef HAVE_CONFIG_H # include <blob/config.h> #endif #include <blob/flash.h> #include <blob/init.h> #include <blob/serial.h> /* flash descriptor for FRODO flash */ /* 2x Intel 28F128J3A strataflash (32MB) */ static flash_descriptor_t frodo_flash_descriptors[] = { { size: 2 * 128 * 1024, num: 128, lockable: 1 }, { /* NULL block */ }, }; static void init_frodo_flash_driver(void) { flash_descriptors = frodo_flash_descriptors; flash_driver = &intel32_flash_driver; } __initlist(init_frodo_flash_driver, INIT_LEVEL_DRIVER_SELECTION); #define RS232_ENABLE 0x00001000 #define GREEN_LED_ENABLE 0x00000000 static void frodo_init_hardware(void) { u32 *bcr = (u32 *)0x12000000; /* enable RS232 tranceiver and green LED */ *bcr = RS232_ENABLE | GREEN_LED_ENABLE; /* select serial driver */ serial_driver = &sa11x0_serial_driver; } __initlist(frodo_init_hardware, INIT_LEVEL_DRIVER_SELECTION); Index: Makefile.am =================================================================== RCS file: /cvsroot/blob/blob/src/blob/Makefile.am,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- Makefile.am 2002/01/29 17:47:23 1.19 +++ Makefile.am 2002/02/01 14:38:55 1.20 @@ -160,7 +160,8 @@ nesa.c \ pleb.c \ shannon.c \ - system3.c + system3.c \ + frodo.c blob_rest_elf32_DEPENDENCIES = \ Index: flash.c =================================================================== RCS file: /cvsroot/blob/blob/src/blob/flash.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- flash.c 2002/01/16 23:19:27 1.13 +++ flash.c 2002/02/01 14:38:55 1.14 @@ -48,8 +48,8 @@ #include <blob/command.h> -/* this is enough for a 16MB flash with 128kB blocks */ -#define NUM_FLASH_BLOCKS (128) +/* this is enough for a 32MB flash with 128kB blocks */ +#define NUM_FLASH_BLOCKS (256) typedef struct { |