K2G flashwriters: add SOC_K2G ifdefs in places where depreciated DEVICE_K2G appears
[keystone-rtos/mcsdk-tools.git] / writer / nand / src / nandwriter.c
index 458796be306167549b6ef0ef762d399d86d35d6a..ff863b1db817a0c81934514ca5bec846a5ce0ac8 100755 (executable)
@@ -614,7 +614,7 @@ void main ()
      p_device = platform_device_open(PLATFORM_DEVID_MT29F4G08ABADA, nandWriterInfo.flags);\r
 #elif defined(DEVICE_K2L)\r
      p_device = platform_device_open(PLATFORM_DEVID_MT29F16G08ADBCAH4C, nandWriterInfo.flags);\r
-#elif defined(DEVICE_K2G)\r
+#elif (defined(DEVICE_K2G) || defined(SOC_K2G))\r
      p_device = platform_device_open(PLATFORM_DEVID_MT29F2G16ABAFA, nandWriterInfo.flags);\r
 #else\r
     p_device = platform_device_open(PLATFORM_DEVID_NAND512R3A2D, 0);\r