Corrected merge for 6657 ibl
[keystone-rtos/ibl.git] / src / main / iblmain.c
index 61fe96dc5c49faf2fb97cca1de6b52c33b5ccabb..bd1ac4fdab5ecdf665e63d8c333887e58b48d2b9 100755 (executable)
@@ -193,8 +193,11 @@ void iblPmemCfg (int32 interface, int32 port, bool enableNand)
                         iblStatus.iblFail = ibl_FAIL_CODE_NO_EMIF_CFG;
                         return;
                     }
-
+#ifdef C665x
+                                       ret = devicePowerPeriph (TARGET_PWR_EMIF_C6657);
+#else
                     ret = devicePowerPeriph (TARGET_PWR_EMIF);
+#endif
                     if (ret != 0)
                         break;