From: Stefan E. <se...@us...> - 2002-10-14 13:18:05
|
Update of /cvsroot/blob/blob/src/blob In directory usw-pr-cvs1:/tmp/cvs-serv9483/src/blob Modified Files: Makefile.am Added Files: cep.c Log Message: - integrated CEP patch sent by "Matej Sekoranja" <mat...@co...> --- NEW FILE: cep.c --- /* * cep.c: Cep specific stuff * * Copyright (C) 2001 Erik Mouw (J.A...@it...) * * 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: cep.c,v 1.1 2002/10/14 13:17:31 seletz 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 Cep flash */ /* 2x Intel 28F128J3A strataflash (16MB) */ static const flash_descriptor_t cep_flash_descriptors[] = { { size: 2 * 128 * 1024, num: 64, lockable: 1 }, { /* NULL block */ }, }; static void init_cep_flash_driver(void) { flash_descriptors = cep_flash_descriptors; flash_driver = &intel32_flash_driver; } __initlist(init_cep_flash_driver, INIT_LEVEL_DRIVER_SELECTION); #define RS232_ENABLE 0x00001000 #define GREEN_LED_ENABLE 0x00004000 static void cep_init_hardware(void) { u32 *bcr = (u32 *)0x12000000; /* enable RS232 tranceiver */ *bcr = RS232_ENABLE; /* select serial driver */ serial_driver = &sa11x0_serial_driver; /* switch on the LED D3 */ *((volatile u8*)(0x40000004))= 0x02; } __initlist(cep_init_hardware, INIT_LEVEL_DRIVER_SELECTION); Index: Makefile.am =================================================================== RCS file: /cvsroot/blob/blob/src/blob/Makefile.am,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- Makefile.am 14 Aug 2002 21:04:23 -0000 1.32 +++ Makefile.am 14 Oct 2002 13:17:30 -0000 1.33 @@ -151,7 +151,7 @@ compr_rtime.c compr_rubin.c jffs2.c \ uucodec.c \ xmodem.c \ - accelent_sa.c assabet.c brutus.c badge4.c clart.c frodo.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 \ shannon.c system3.c trizeps.c pxa_idp.c |