From: Stefan E. <se...@us...> - 2002-11-26 18:52:57
|
Update of /cvsroot/blob/blob/src/blob In directory sc8-pr-cvs1:/tmp/cvs-serv31229/src/blob Modified Files: Makefile.am Added Files: hackkit.c Log Message: - initial port to the Hack Kit core cpu board --- NEW FILE: hackkit.c --- /* * hackkit.c: PT System3 specific stuff * * Copyright (C) 2001 Erik Mouw (J.A...@it...) * Copyright (C) 2001,2002 Stefan Eletzhofer * (ste...@ww...) * * 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: hackkit.c,v 1.1 2002/11/26 18:52:53 seletz Exp $" /********************************************************************** * includes */ #ifdef HAVE_CONFIG_H # include <blob/config.h> #endif #include <blob/main.h> #include <blob/arch.h> #include <blob/errno.h> #include <blob/error.h> #include <blob/util.h> #include <blob/serial.h> #include <blob/flash.h> #include <blob/init.h> #include <blob/command.h> #include <blob/uucodec.h> #include <blob/serial.h> #include <blob/time.h> #include <blob/partition.h> #include <blob/sa1100.h> /********************************************************************** * defines */ /* this will send a cold shiver through erik's spine ... */ #define ERR( x ) { ret = x; goto DONE; } /* more readable IMHO */ #define MEM( x ) (*((u32 *)(x))) #define SET(reg,bit) ((reg) |= (1<<(bit))) #define RST(reg,bit) ((reg) &= ~(1<<(bit))) #define HKIT_DEBUG 1 /********************************************************************** * globals */ extern blob_status_t blob_status; /********************************************************************** * module globals */ #if HKIT_DEBUG static int hkit_dbg = 1; #else static int hkit_dbg = 0; #endif /* flash descriptor for System3 flash. */ /* System 3 uses 2xINTEL e28F640 Chips */ static const flash_descriptor_t hackkit_flash_descriptors[] = { { size: 2 * 128 * 1024, num: 64, lockable: 1 }, { /* NULL block */ }, }; /********************************************************************** * static functions */ static char module_version[] = "$Id: hackkit.c,v 1.1 2002/11/26 18:52:53 seletz Exp $"; /********************************************************************* * init_hackkit_flash - inits system 3 flash driver */ static void init_hackkit_flash_driver(void) { flash_descriptors = hackkit_flash_descriptors; flash_driver = &intel32_flash_driver; } __initlist(init_hackkit_flash_driver, INIT_LEVEL_DRIVER_SELECTION); /********************************************************************* * hackkit_init_hardware - inits system 3 LL hardware stuff */ static void hackkit_init_hardware(void) { /* tweak blob config */ blob_status.boot_delay = -1; //blob_status.terminalSpeed = baud_9600; /* select serial driver */ serial_driver = &sa11x0_serial_driver; } __initlist(hackkit_init_hardware, INIT_LEVEL_DRIVER_SELECTION); Index: Makefile.am =================================================================== RCS file: /cvsroot/blob/blob/src/blob/Makefile.am,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- Makefile.am 14 Oct 2002 13:17:30 -0000 1.33 +++ Makefile.am 26 Nov 2002 18:52:53 -0000 1.34 @@ -152,7 +152,7 @@ uucodec.c \ xmodem.c \ accelent_sa.c assabet.c brutus.c badge4.c cep.c clart.c frodo.c \ - h3600.c idr.c jornada720.c lart.c miniprint.c nesa.c pleb.c \ + hackkit.c h3600.c idr.c jornada720.c lart.c miniprint.c nesa.c pleb.c \ shannon.c system3.c trizeps.c pxa_idp.c |