summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a5cbd7b)
raw | patch | inline | side by side (parent: a5cbd7b)
author | Mike Line <m-line1@ti.com> | |
Wed, 22 Dec 2010 22:31:40 +0000 (17:31 -0500) | ||
committer | Mike Line <m-line1@ti.com> | |
Wed, 22 Dec 2010 22:31:40 +0000 (17:31 -0500) |
index 588b8b2b6ded466c7bf9ba979f20721c59aa518e..1d6d9a17d281082dbe1328718c388ebf3ee7ca14 100644 (file)
--- a/src/device/c6455/c6455.c
+++ b/src/device/c6455/c6455.c
#include "device.h"
#include "pllapi.h"
#include "emif31api.h"
+#include "nandhwapi.h"
/**
maddr[4] = 0;
maddr[5] = 0;
}
+
+/**
+ * @brief Return the NAND interface call table. Only GPIO is supported on c6455
+ */
+
+#ifndef EXCLUDE_NAND
+nandCtbl_t nandCtbl = {
+
+ nandHwDriverInit,
+ nandHwDriverReadBytes,
+ nandHwDriverReadPage,
+ nandHwDriverClose
+
+};
+
+nandCtbl_t *deviceGetNandCtbl (int32 interface)
+{
+ return (&nandCtbl);
+}
+#endif
+
index ef06ed32f4a857402ec9ba129d02de61145e29da..9701783678c8717d0c73d6f31beab19da0b5a4ff 100644 (file)
--- a/src/device/c6457/c6457.c
+++ b/src/device/c6457/c6457.c
#include "emif31api.h"
#include "pscapi.h"
#include "gpio.h"
+#include "nandhwapi.h"
#include <string.h>
extern cregister unsigned int DNUM;
}
+/**
+ * @brief Return the NAND interface call table. Only GPIO is supported on c6457
+ */
+
+#ifndef EXCLUDE_NAND
+nandCtbl_t nandCtbl = {
+
+ nandHwDriverInit,
+ nandHwDriverReadBytes,
+ nandHwDriverReadPage,
+ nandHwDriverClose
+
+};
+
+nandCtbl_t *deviceGetNandCtbl (int32 interface)
+{
+ return (&nandCtbl);
+}
+#endif
+
index be82b646ffabe4169097d7a9886b88f99bd4ac00..accd7df46ce0644d5aeb62ee8d599513741d1fab 100644 (file)
--- a/src/device/c6472/c6472.c
+++ b/src/device/c6472/c6472.c
#include "emif31api.h"
#include "pscapi.h"
#include "gpio.h"
+#include "nandhwapi.h"
#include <string.h>
extern cregister unsigned int DNUM;
+/**
+ * @brief Return the NAND interface call table. Only GPIO is supported on c6472
+ */
+
+#ifndef EXCLUDE_NAND
+nandCtbl_t nandCtbl = {
+
+ nandHwDriverInit,
+ nandHwDriverReadBytes,
+ nandHwDriverReadPage,
+ nandHwDriverClose
+
+};
+
+nandCtbl_t *deviceGetNandCtbl (int32 interface)
+{
+ return (&nandCtbl);
+}
+#endif
+
+
index 6446c011bbde3fc1a70326fac59d043caf16b404..3868040363b94c89264eacf9ce93c361faf55b40 100644 (file)
--- a/src/device/c6474/c6474.c
+++ b/src/device/c6474/c6474.c
#include "emif31api.h"
#include "pscapi.h"
#include "gpio.h"
+#include "nandhwapi.h"
#include <string.h>
extern cregister unsigned int DNUM;
maddr[5] = (macA >> 0) & 0xff;
}
+/**
+ * @brief Return the NAND interface call table. Only GPIO is supported on c6474
+ */
+
+#ifndef EXCLUDE_NAND
+nandCtbl_t nandCtbl = {
+
+ nandHwDriverInit,
+ nandHwDriverReadBytes,
+ nandHwDriverReadPage,
+ nandHwDriverClose
+
+};
+
+nandCtbl_t *deviceGetNandCtbl (int32 interface)
+{
+ return (&nandCtbl);
+}
+#endif
+
index ab47afb4607fde77f7a0e0034fd113e8bd69a12d..dff52234f7d6730bdda1816c2175329c21e846db 100644 (file)
endif
ECODIR= $(IBL_ROOT)/util/i2cConfig
+
ifeq ($(TARGET),c661x)
TFILES= ../../device/c64x/make/$(TARGET)util.$(IEXT).oc
endif
$(DEVICES): gen_cdefdep $(MODULES) $(CFG_MODULES) $(OBJS) i2cWrite.cmd
- $(LD) -o i2cWrite_$(IEXT).out -m i2cWrite_$(IEXT).map i2cWrite.$(IEXT).oc ../../hw/c64x/make/i2c.$(IEXT).oc ../../device/c64x/make/$(TARGET)util.$(IEXT).oc $(PLL_OBJS) $(TFILES) i2cWrite.cmd $(RTLIBS)
+ $(LD) -o i2cWrite_$(IEXT).out -m i2cWrite_$(IEXT).map i2cWrite.$(IEXT).oc ../../hw/c64x/make/i2c.$(IEXT).oc $(PLL_OBJS) $(TFILES) i2cWrite.cmd $(RTLIBS)
$(MODULES):