]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blobdiff - src/device/device.h
Single Binary Support: Initial Commit
[keystone-rtos/ibl.git] / src / device / device.h
index 32d0d78464a4559914514a4ea992b12b4be7d52e..5d698fc5119c2be093768113f37f86f1cb35010b 100644 (file)
@@ -110,6 +110,12 @@ int32 devicePowerPeriph (int32 modNum);
 void deviceDdrConfig (void);
 
 
+/* Function to get the endian setting of a device */
+unsigned int get_device_endian();
+
+/* Function to get the switch setting of a device */
+unsigned int get_device_switch_setting();
+
 /**
  * @brief
  *    Perform device level configuration for nand boot
@@ -159,13 +165,15 @@ bool deviceIsLittleEndian(void);
 void chipDelay32 (uint32 nCycles);
 
 
+
+
 /**
  *  @brief
  *      Return the NAND interface function table
  *
  *  @details
  *      Some devices support multiple NAND interface at once (EMIF25 and SPI).
- *      This function returns to the lower level driver the pointer to the
+ *      This function returns a pointer to the lower level function
  *      table to use. The table is selected in the ibl configuration.
  */
 typedef struct nandCtbl_s  {
@@ -182,9 +190,23 @@ nandCtbl_t *deviceGetNandCtbl (int32 interface);
 
 /**
  *  @brief
- *      Return the boot device for the second part of the loader
+ *      Return the NOR interface function table
+ *
+ *  @details
+ *      NOR is supported through both SPI and EMIF. This function returns a pointer
+ *      to the lower level function table to use during boot.
  */
-Int32 deviceReadBootDevice(void);
+typedef struct norCtbl_s  {
+
+    Int32 (*nct_driverInit)         (int32 cs);
+    Int32 (*nct_driverReadBytes)    (Uint8 *data, Uint32 nbytes, Uint32 address);
+    Int32 (*nct_driverClose)        (void);
+    
+} norCtbl_t;
+
+norCtbl_t *deviceGetNorCtbl (int32 interface);
+    
+
 
 /**
  *  @brief