]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/commitdiff
Targets other then nysh now building
authorMike Line <m-line1@ti.com>
Wed, 22 Dec 2010 22:31:40 +0000 (17:31 -0500)
committerMike Line <m-line1@ti.com>
Wed, 22 Dec 2010 22:31:40 +0000 (17:31 -0500)
src/device/c6455/c6455.c
src/device/c6457/c6457.c
src/device/c6472/c6472.c
src/device/c6474/c6474.c
src/util/i2cWrite/makestg2

index 588b8b2b6ded466c7bf9ba979f20721c59aa518e..1d6d9a17d281082dbe1328718c388ebf3ee7ca14 100644 (file)
@@ -52,6 +52,7 @@
 #include "device.h"
 #include "pllapi.h"
 #include "emif31api.h"
+#include "nandhwapi.h"
 
 
 /**
@@ -209,3 +210,24 @@ void deviceLoadDefaultEthAddress (uint8 *maddr)
     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)
@@ -54,6 +54,7 @@
 #include "emif31api.h"
 #include "pscapi.h"
 #include "gpio.h"
+#include "nandhwapi.h"
 #include <string.h>
 
 extern cregister unsigned int DNUM;
@@ -177,6 +178,26 @@ void deviceLoadDefaultEthAddress (uint8 *maddr)
 }
 
 
+/**
+ *  @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)
@@ -54,6 +54,7 @@
 #include "emif31api.h"
 #include "pscapi.h"
 #include "gpio.h"
+#include "nandhwapi.h"
 #include <string.h>
 
 extern cregister unsigned int DNUM;
@@ -178,5 +179,26 @@ void deviceLoadDefaultEthAddress (uint8 *maddr)
 
 
 
+/**
+ *  @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)
@@ -54,6 +54,7 @@
 #include "emif31api.h"
 #include "pscapi.h"
 #include "gpio.h"
+#include "nandhwapi.h"
 #include <string.h>
 
 extern cregister unsigned int DNUM;
@@ -176,6 +177,26 @@ void deviceLoadDefaultEthAddress (uint8 *maddr)
     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)
@@ -31,6 +31,7 @@ else
 endif
 
 ECODIR= $(IBL_ROOT)/util/i2cConfig
+
 ifeq ($(TARGET),c661x)
  TFILES= ../../device/c64x/make/$(TARGET)util.$(IEXT).oc
 endif
@@ -69,7 +70,7 @@ export TARGET
 
 
 $(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):