@./mkconfig -a ap143 mips mips ap143 ar7240 ar7240
+zbt-we1526_config : unconfig ap143_common_config
+ @echo -e '\e[32m> Configuring for Zbtlink ZBT-WE1526 at:' `date` '\e[0m'
+ @echo "#define SOC_TYPE QCA_QCA953X_SOC" >> include/config.h
+ @echo "#define CONFIG_FOR_ZBTLINK_ZBT_WE1526 1" >> include/config.h
+ @echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
+ @echo "#define CFG_ATH_GMAC_NMACS 2" >> include/config.h
+ @echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 16" >> include/config.h
+ @echo "#define CONFIG_GPIO_RESET_BTN 17" >> include/config.h
+ @echo "#define CONFIG_GPIO_RESET_BTN_ACTIVE_LOW 1" >> include/config.h
+ @echo "#define CONFIG_BOARD_CUSTOM_STRING \"Zbtlink ZBT-WE1526\"" >> include/config.h
+
+ @./mkconfig -a ap143 mips mips ap143 ar7240 ar7240
+
#########################################################################
#########################################################################
#########################################################################
/* Initial states */
#define CONFIG_QCA_GPIO_MASK_OUTPUTS_INIT_HI CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_LO
+#elif defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
+ /* LEDs */
+ #define CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_LO (GPIO4 | GPIO11 | GPIO12 | GPIO13 |\
+ GPIO14 | GPIO15 | GPIO16)
+
+ /* Outputs, inputs */
+ #define CONFIG_QCA_GPIO_MASK_OUTPUTS CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_LO
+ #define CONFIG_QCA_GPIO_MASK_INPUTS GPIO17
+
+ /* Initial states */
+ #define CONFIG_QCA_GPIO_MASK_OUTPUTS_INIT_HI CONFIG_QCA_GPIO_MASK_LEDS_ACTIVE_LO
+
#endif
/*
#define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1024k(kernel),2816k(rootfs),64k(config),64k(art)"
#elif defined(CONFIG_FOR_WALLYS_DR531)
#define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k"
+#elif defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
+ #define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=spi0.0:256k(u-boot),64k(u-boot-env),14528k(rootfs),1472k(kernel),64k(ART),16000k(firmware)"
#endif
/*
#define CFG_LOAD_ADDR 0x9F050000
#define UPDATE_SCRIPT_FW_ADDR "0x9F050000"
#define CONFIG_BOOTCOMMAND "bootm 0x9F050000"
+#elif defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
+ #define CFG_LOAD_ADDR 0x9FE80000
+ #define UPDATE_SCRIPT_FW_ADDR "0x9F050000"
+ #define CONFIG_BOOTCOMMAND "bootm 0x9FE80000"
#endif
#define CONFIG_IPADDR 192.168.1.1
defined(CONFIG_FOR_TPLINK_WR802N) ||\
defined(CONFIG_FOR_TPLINK_WR841N_V9)
#define CONFIG_QCA_PLL QCA_PLL_PRESET_550_400_200
-#elif defined(CONFIG_FOR_WALLYS_DR531)
+#elif defined(CONFIG_FOR_WALLYS_DR531) ||\
+ defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
#define CONFIG_QCA_PLL QCA_PLL_PRESET_650_400_200
#endif
#define CFG_ENV_ADDR 0x9F030000
#define CFG_ENV_SIZE 0xF800
#define CFG_ENV_SECT_SIZE 0x10000
+#elif defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
+ #define CFG_ENV_ADDR 0x9F040000
+ #define CFG_ENV_SIZE 0xFC00
+ #define CFG_ENV_SECT_SIZE 0x10000
#endif
/*
defined(CONFIG_FOR_TPLINK_WR802N) ||\
defined(CONFIG_FOR_TPLINK_WR841N_V9)
#define WEBFAILSAFE_UPLOAD_KERNEL_ADDRESS WEBFAILSAFE_UPLOAD_UBOOT_ADDRESS + 0x20000
-#elif defined(CONFIG_FOR_WALLYS_DR531)
+#elif defined(CONFIG_FOR_WALLYS_DR531) ||\
+ defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
#define WEBFAILSAFE_UPLOAD_KERNEL_ADDRESS WEBFAILSAFE_UPLOAD_UBOOT_ADDRESS + 0x50000
#endif
#elif defined(CONFIG_FOR_WALLYS_DR531)
#define UPDATE_SCRIPT_UBOOT_SIZE_IN_BYTES "0x30000"
#define UPDATE_SCRIPT_UBOOT_BACKUP_SIZE_IN_BYTES UPDATE_SCRIPT_UBOOT_SIZE_IN_BYTES
+#elif defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
+ #define UPDATE_SCRIPT_UBOOT_SIZE_IN_BYTES "0x40000"
+ #define UPDATE_SCRIPT_UBOOT_BACKUP_SIZE_IN_BYTES UPDATE_SCRIPT_UBOOT_SIZE_IN_BYTES
#endif
// ART partition size
defined(CONFIG_FOR_TPLINK_WR802N) ||\
defined(CONFIG_FOR_TPLINK_WR841N_V9)
#define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (192 * 1024)
-#elif defined(CONFIG_FOR_WALLYS_DR531)
+#elif defined(CONFIG_FOR_WALLYS_DR531) ||\
+ defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
// Wallys DR531: 192k(U-Boot),64k(U-Boot env),64k(partition-table),64k(ART)
+ // Zbtlink ZBT-WE1526: 256k(U-Boot),64k(U-Boot env),64k(ART)
#define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (384 * 1024)
#endif
#if defined(CONFIG_FOR_TPLINK_WR820N_CN) ||\
defined(CONFIG_FOR_TPLINK_WR802N) ||\
defined(CONFIG_FOR_TPLINK_WR841N_V9) ||\
- defined(CONFIG_FOR_WALLYS_DR531)
+ defined(CONFIG_FOR_WALLYS_DR531) ||\
+ defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
#define BOARDCAL 0x9fff0000
#endif
#define CFG_MII0_RMII 1
#define OFFSET_MAC_DATA_BLOCK 0x030000
#define OFFSET_MAC_DATA_BLOCK_LENGTH 0x010000
#define OFFSET_MAC_ADDRESS 0x00F810
+#elif defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
+ #define OFFSET_MAC_DATA_BLOCK 0xFF0000
+ #define OFFSET_MAC_DATA_BLOCK_LENGTH 0x010000
+ #define OFFSET_MAC_ADDRESS 0x000000
#endif
/*
#elif defined(CONFIG_FOR_WALLYS_DR531)
#define CONFIG_QCA_PLL_IN_FLASH_BLOCK_OFFSET 0x00030000
#define CONFIG_QCA_PLL_IN_FLASH_BLOCK_SIZE 0x00010000
+#elif defined(CONFIG_FOR_ZBTLINK_ZBT_WE1526)
+ #define CONFIG_QCA_PLL_IN_FLASH_BLOCK_OFFSET 0x00040000
+ #define CONFIG_QCA_PLL_IN_FLASH_BLOCK_SIZE 0x00010000
#endif
#if defined(CONFIG_QCA_PLL_IN_FLASH_BLOCK_OFFSET)