]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/pa-lld.git/commitdiff
remove SIMULATOR_SUPPORT build dependency
authorEric Ruei <e-ruei1@ti.com>
Wed, 13 Nov 2013 16:29:32 +0000 (11:29 -0500)
committerEric Ruei <e-ruei1@ti.com>
Wed, 13 Nov 2013 16:29:32 +0000 (11:29 -0500)
example/multicoreExample/src/c66x/bios/cpsw_mgmt.c

index 00f04f242271fb611100b671a413071035ff7be6..51d9a83076ab348f06d636b5269b39a8fbd7ecad 100644 (file)
@@ -524,17 +524,18 @@ int Switch_update_addr (Uint32 portNum, UInt8 macAddress[6], Uint16 add)
  */\r
 Int32 Init_SGMII_SERDES(Void)\r
 {\r
-#ifndef  SIMULATOR_SUPPORT\r
-#if defined(DEVICE_K2K) || defined(DEVICE_K2H)\r
-    sgmiiDefSerdesSetup(PA_EMAC_EXAMPLE_REF_CLK_KHZ);\r
-#endif\r
-#endif\r
+    if (!cpswSimTest)\r
+    {\r
+    #if defined(DEVICE_K2K) || defined(DEVICE_K2H)\r
+        sgmiiDefSerdesSetup(PA_EMAC_EXAMPLE_REF_CLK_KHZ);\r
+    #endif\r
+    }\r
     /*\r
      * The following SERDES configuration is required for chip simulator only.\r
      * The platform-dependent SERDES configuration should be done by the corresponding \r
      * CCS GEL scripts or platformLib\r
      */\r
-    if (cpswSimTest)\r
+    else\r
     {\r
 #if !defined(DEVICE_K2K) && !defined(DEVICE_K2H)\r
         /* Unlock the chip configuration registers to allow SGMII SERDES registers to\r