Update of /cvsroot/blob/blob/include/blob
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15926/include/blob
Modified Files:
Makefile.am
Added Files:
autoboot.h
Log Message:
Factor out autoboot function. This is useful for boards which want to
do autoboot unless some special condition is met, such as a GPIO tied
to ground or similar.
Boards can set a callback for autoboot checking. This callback is initially
set to a default function which implements the "old" way of autobooting.
--- NEW FILE: autoboot.h ---
/*
* autoboot.h
*
* Copyright (C) 2003
* Stefan Eletzhofer <ste...@el...>
*
* 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
*
*/
#ifndef INC_BLOB_AUTOBOOT
#define INC_BLOB_AUTOBOOT 1
/*********************************************************************
* check_autoboot_fn - autoboot check function
* @priv: private pointer
*
* Platform dep. autoboot checker
*
* return 0 => no autoboot, enter command loop
* return 1 => autoboot
*
* Platforms may for example check a jumper on a GPIO to enable/disable
* autoboot for production boards.
*/
typedef int (*check_autoboot_fn)( void *priv );
/* Overwrite these in initcalls on arch dep. setup */
extern check_autoboot_fn blob_autoboot_fn;
extern void *blob_autoboot_priv;
/*********************************************************************
* default_check_autoboot - blobs default autoboot sequence
* @priv: here the commandline gets passed
*/
int default_check_autoboot( void *priv );
#endif
Index: Makefile.am
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/Makefile.am,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- Makefile.am 27 Nov 2003 08:02:31 -0000 1.22
+++ Makefile.am 5 Feb 2004 18:07:27 -0000 1.23
@@ -16,6 +16,7 @@
noinst_HEADERS = \
+ autoboot.h \
arch.h \
cf.h \
cfi.h \
|