This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
IXP425: Allow RedBoot to be built without flash support.
- From: David Vrabel <dvrabel at arcom dot com>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 05 Nov 2004 10:43:24 +0000
- Subject: IXP425: Allow RedBoot to be built without flash support.
2004-11-05 David Vrabel <dvrabel@arcom.com>
* src/ixp425_redboot.c: Put #ifdef CYGPKG_IO_FLASH around flash
functions so a RedBoot without flash support can be built.
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
Index: hal/arm/xscale/ixp425/current/src/ixp425_redboot.c
===================================================================
RCS file: /var/cvs/ecos/packages/hal/arm/xscale/ixp425/current/src/ixp425_redboot.c,v
retrieving revision 1.1.1.1
diff -u -B -p -r1.1.1.1 ixp425_redboot.c
--- hal/arm/xscale/ixp425/current/src/ixp425_redboot.c 14 Oct 2004 10:54:09 -0000 1.1.1.1
+++ hal/arm/xscale/ixp425/current/src/ixp425_redboot.c 5 Nov 2004 10:43:57 -0000
@@ -51,7 +51,9 @@
//========================================================================*/
#include <redboot.h>
+#ifdef CYGPKG_IO_FLASH
#include <cyg/io/flash.h>
+#endif
#ifdef CYGOPT_REDBOOT_FIS
extern void *fis_addr;
@@ -61,6 +63,8 @@ extern void *fis_addr;
extern void *cfg_base;
#endif
+#ifdef CYGPKG_IO_FLASH
+
//
// Little endian mode requires some trickery due to the way the IXP4xx
// AHB and expansion busses work.
@@ -139,6 +143,8 @@ hal_flash_program(void *addr, void *data
return retval;
}
+#endif // CYGPKG_IO_FLASH
+
/*------------------------------------------------------------------------*/
// EOF ixp425_redboot.c