Different IP addresses for Dragino 2
authorPiotr Dymacz <pepe2k@gmail.com>
Thu, 20 Mar 2014 16:45:55 +0000 (17:45 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Thu, 20 Mar 2014 16:45:55 +0000 (17:45 +0100)
u-boot/include/configs/ap121.h

index 5c434d680ad2449e4d265db79a0a267d264ac455..52282fd28b1a28cdca00f8c6966dc5f9e4b98a72 100755 (executable)
        #define CONFIG_BOOTCOMMAND "bootm 0x9F020000"
 #endif
 
-#define CONFIG_IPADDR          192.168.1.1
-#define CONFIG_SERVERIP                192.168.1.2
+/*
+ * Dragino 2 uses different IP addresses
+ */
+#if defined(CONFIG_FOR_DRAGINO_V2)
+       #define CONFIG_IPADDR           192.168.255.1
+       #define CONFIG_SERVERIP         192.168.255.2
+#else
+       #define CONFIG_IPADDR           192.168.1.1
+       #define CONFIG_SERVERIP         192.168.1.2
+#endif
 
 /*
  * Dragino 2 uses different prompt