#define CONFIG_QCA_GPIO_MASK_OUT_INIT_H CONFIG_QCA_GPIO_MASK_LED_ACT_L
#define CONFIG_QCA_GPIO_MASK_OUT_INIT_L CONFIG_QCA_GPIO_MASK_LED_ACT_H
+#elif defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB)
+
+ #define CONFIG_QCA_GPIO_MASK_LED_ACT_H GPIO0 | GPIO1 | GPIO13
+ #define CONFIG_QCA_GPIO_MASK_LED_ACT_L GPIO17 | GPIO27
+ #define CONFIG_QCA_GPIO_MASK_OUT GPIO26 | GPIO28 |\
+ CONFIG_QCA_GPIO_MASK_LED_ACT_L |\
+ CONFIG_QCA_GPIO_MASK_LED_ACT_H
+ #define CONFIG_QCA_GPIO_MASK_IN GPIO11 | GPIO12
+ #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H GPIO26 | GPIO28 |\
+ CONFIG_QCA_GPIO_MASK_LED_ACT_L
+ #define CONFIG_QCA_GPIO_MASK_OUT_INIT_L CONFIG_QCA_GPIO_MASK_LED_ACT_H
+
#elif defined(CONFIG_FOR_BLACK_SWIFT_BOARD)
#define CONFIG_QCA_GPIO_MASK_LED_ACT_L GPIO27
"rootfstype=squashfs init=/sbin/init "\
"mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),16000k(firmware),64k(art)"
+#elif defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB)
+
+ #define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 "\
+ "rootfstype=squashfs init=/sbin/init "\
+ "mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),6144k(rootfs),1600k(uImage),64k(NVRAM),64k(ART)"
+
#elif defined(CONFIG_FOR_BLACK_SWIFT_BOARD)
#define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 "\
* Load address and boot command
* =============================
*/
-#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2)
+#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) ||\
+ defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB)
#define CFG_LOAD_ADDR 0x9F050000
#elif defined(CONFIG_FOR_BLACK_SWIFT_BOARD)
#define CFG_LOAD_ADDR 0x9F030000
#define CFG_LOAD_ADDR 0x9F020000
#endif
-#define CONFIG_BOOTCOMMAND "bootm " MK_STR(CFG_LOAD_ADDR)
+#if defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB)
+ #define CONFIG_BOOTCOMMAND "bootm 0x9F050000 || bootm 0x9FE50000 || bootm 0x9F650000"
+#else
+ #define CONFIG_BOOTCOMMAND "bootm " MK_STR(CFG_LOAD_ADDR)
+#endif
/*
* =========================
* Environment configuration
* =========================
*/
-#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2)
+#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) ||\
+ defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB)
#define CFG_ENV_ADDR 0x9F040000
#define CFG_ENV_SIZE 0x8000
#define CFG_ENV_SECT_SIZE 0x10000
* MAC address/es, model and WPS pin offsets in FLASH
* ==================================================
*/
-#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) ||\
- defined(CONFIG_FOR_DRAGINO_V2) ||\
+#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) ||\
+ defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB) ||\
+ defined(CONFIG_FOR_DRAGINO_V2) ||\
defined(CONFIG_FOR_MESH_POTATO_V2)
#define OFFSET_MAC_DATA_BLOCK 0xFF0000
#define OFFSET_MAC_DATA_BLOCK_LENGTH 0x010000
#define OFFSET_MAC_ADDRESS 0x00FC00
#endif
-#if !defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) &&\
- !defined(CONFIG_FOR_BLACK_SWIFT_BOARD) &&\
- !defined(CONFIG_FOR_DLINK_DIR505_A1) &&\
- !defined(CONFIG_FOR_DRAGINO_V2) &&\
- !defined(CONFIG_FOR_GL_INET) &&\
- !defined(CONFIG_FOR_GS_OOLITE_V1_DEV) &&\
+#if !defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) &&\
+ !defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB) &&\
+ !defined(CONFIG_FOR_BLACK_SWIFT_BOARD) &&\
+ !defined(CONFIG_FOR_DLINK_DIR505_A1) &&\
+ !defined(CONFIG_FOR_DRAGINO_V2) &&\
+ !defined(CONFIG_FOR_GL_INET) &&\
+ !defined(CONFIG_FOR_GS_OOLITE_V1_DEV) &&\
!defined(CONFIG_FOR_MESH_POTATO_V2)
#define OFFSET_ROUTER_MODEL 0xFD00
#endif
/* Firmware size limit */
#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2)
#define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (384 * 1024)
+#elif defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB)
+ #define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (448 * 1024)
#elif defined(CONFIG_FOR_BLACK_SWIFT_BOARD)
#define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (256 * 1024)
#elif defined(CONFIG_FOR_DLINK_DIR505_A1)
*/
#define CONFIG_QCA_PLL QCA_PLL_PRESET_400_400_200
-#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2)
+#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) ||\
+ defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB)
#define CONFIG_QCA_PLL_IN_FLASH_BLOCK_OFFSET 0x40000
#define CONFIG_QCA_PLL_IN_FLASH_BLOCK_SIZE 0x10000
* For upgrade scripts in environment
* ==================================
*/
-#if !defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) &&\
- !defined(CONFIG_FOR_BLACK_SWIFT_BOARD) &&\
- !defined(CONFIG_FOR_DLINK_DIR505_A1) &&\
- !defined(CONFIG_FOR_DRAGINO_V2) &&\
+#if !defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) &&\
+ !defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB) &&\
+ !defined(CONFIG_FOR_BLACK_SWIFT_BOARD) &&\
+ !defined(CONFIG_FOR_DLINK_DIR505_A1) &&\
+ !defined(CONFIG_FOR_DRAGINO_V2) &&\
!defined(CONFIG_FOR_MESH_POTATO_V2)
#define CONFIG_UPG_SCRIPTS_UBOOT_SIZE_BCKP_HEX 0x20000
#endif