[PATCH 5/7] add-nand-read-prototype.patch
Andy Green
andy at openmoko.com
Mon Aug 18 00:24:24 CEST 2008
Signed-off-by: Andy Green <andy at openmoko.com>
---
include/qi.h | 1 +
src/gta02/gta02.c | 1 -
src/utils.c | 5 +++++
3 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/include/qi.h b/include/qi.h
index cc27c0c..16227a4 100644
--- a/include/qi.h
+++ b/include/qi.h
@@ -84,6 +84,7 @@ void hexdump(unsigned char *start, int len);
unsigned int _ntohl(unsigned int n);
unsigned long crc32(unsigned long crc, const unsigned char *buf,
unsigned int len);
+int nand_read_ll(unsigned char *buf, unsigned long start_addr, int size);
#endif
diff --git a/src/gta02/gta02.c b/src/gta02/gta02.c
index 066ed23..7566a9c 100644
--- a/src/gta02/gta02.c
+++ b/src/gta02/gta02.c
@@ -1,6 +1,5 @@
#include <qi.h>
#include <neo_gta02.h>
-#include "nand_read.h"
static const struct board_variant board_variants[] = {
[0] = {
diff --git a/src/utils.c b/src/utils.c
index 45605af..ccc14b4 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -23,6 +23,11 @@
#include <qi.h>
#include <string.h>
+int raise(int n)
+{
+ return 0;
+}
+
size_t strlen(const char *s)
{
size_t n = 0;
More information about the openmoko-kernel
mailing list