From: Holger S. <hol...@us...> - 2003-08-15 06:22:53
|
Update of /cvsroot/blob/blob/src/diag In directory sc8-pr-cvs1:/tmp/cvs-serv14645/src/diag Added Files: ramses.c Log Message: Ramses support --- NEW FILE: ramses.c --- /********************************************************************** * ramses.c * * Implements several POST routines for M&N Ramses MN-CI * * Copyright (C) 2001 Stefan Eletzhofer <ste...@ww...> * Copyright (c) 2002 Jeff Sutherland <je...@ac...> * Copyright (c) 2003 Holger Schurig <h.s...@mn...> * * 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 */ /********************************************************************** * Includes */ #ifdef HAVE_CONFIG_H # include <blob/config.h> #endif #include <blob/types.h> #include <blob/errno.h> #include <blob/util.h> #include <blob/command.h> #include <blob/init.h> #include <blob/serial.h> #include <blob/time.h> #include <blob/arch.h> #define MEM(adr) (*((u32*)adr)) #define SET(reg,bit) ((reg) |= (1<<(bit))) #define CLR(reg,bit) ((reg) &= ~(1<<(bit))) static void ramses_init_hardware(void) { /* select serial driver */ // also have to set up all gpio's here as well serial_driver = &pxa_serial_driver; } __initlist(ramses_init_hardware, INIT_LEVEL_DRIVER_SELECTION); |