#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_AP121F)
+
+ #define CONFIG_QCA_GPIO_MASK_LED_ACT_H GPIO0
+ #define CONFIG_QCA_GPIO_MASK_LED_ACT_L GPIO17
+ #define CONFIG_QCA_GPIO_MASK_OUT GPIO26 | GPIO27 |\
+ CONFIG_QCA_GPIO_MASK_LED_ACT_L |\
+ CONFIG_QCA_GPIO_MASK_LED_ACT_H
+ #define CONFIG_QCA_GPIO_MASK_IN GPIO12 | GPIO21
+ #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H GPIO26 |\
+ CONFIG_QCA_GPIO_MASK_LED_ACT_L
+ #define CONFIG_QCA_GPIO_MASK_OUT_INIT_L GPIO27 |\
+ 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
"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_AP121F)
+
+ #define CONFIG_BOOTARGS "board=AP121F console=ttyATH0,115200 "\
+ "rootfstype=squashfs,jffs2 noinitrd "\
+ "mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env),64k(art)ro,-(firmware)"
+
#elif defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB)
#define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 "\
* =============================
*/
#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) ||\
+ defined(CONFIG_FOR_ALFA_NETWORK_AP121F) ||\
defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB) ||\
defined(CONFIG_FOR_CREATCOMM_D3321) ||\
defined(CONFIG_FOR_GL_AR150)
#define CFG_ENV_ADDR 0x9F040000
#define CFG_ENV_SIZE 0x8000
#define CFG_ENV_SECT_SIZE 0x10000
+#elif defined(CONFIG_FOR_ALFA_NETWORK_AP121F)
+ #define CFG_ENV_ADDR 0x9F030000
+ #define CFG_ENV_SIZE 0x10000
#elif defined(CONFIG_FOR_BLACK_SWIFT_BOARD)
#define CFG_ENV_ADDR 0x9F020000
#define CFG_ENV_SIZE 0x8000
#define OFFSET_MAC_DATA_BLOCK_LENGTH 0x010000
#define OFFSET_MAC_ADDRESS 0x000000
#define OFFSET_MAC_ADDRESS2 0x000006
+#elif defined(CONFIG_FOR_ALFA_NETWORK_AP121F)
+ #define OFFSET_MAC_DATA_BLOCK 0x40000
+ #define OFFSET_MAC_DATA_BLOCK_LENGTH 0x10000
+ #define OFFSET_MAC_ADDRESS 0x00000
#elif defined(CONFIG_FOR_BLACK_SWIFT_BOARD) ||\
defined(CONFIG_FOR_GL_AR150)
#define OFFSET_MAC_DATA_BLOCK 0xFF0000
#endif
#if !defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) &&\
+ !defined(CONFIG_FOR_ALFA_NETWORK_AP121F) &&\
!defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB) &&\
!defined(CONFIG_FOR_BLACK_SWIFT_BOARD) &&\
!defined(CONFIG_FOR_CREATCOMM_D3321) &&\
*/
#define WEBFAILSAFE_UPLOAD_KERNEL_ADDRESS CFG_LOAD_ADDR
-#if defined(CONFIG_FOR_DLINK_DIR505_A1)
+#if defined(CONFIG_FOR_ALFA_NETWORK_AP121F)
+ #define WEBFAILSAFE_UPLOAD_ART_ADDRESS (CFG_FLASH_BASE + 0x40000)
+#elif defined(CONFIG_FOR_DLINK_DIR505_A1)
#define WEBFAILSAFE_UPLOAD_ART_ADDRESS (CFG_FLASH_BASE + 0x10000)
#endif
#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) ||\
defined(CONFIG_FOR_GL_AR150)
#define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (384 * 1024)
+#elif defined(CONFIG_FOR_ALFA_NETWORK_AP121F) ||\
+ defined(CONFIG_FOR_DRAGINO_V2) ||\
+ defined(CONFIG_FOR_MESH_POTATO_V2)
+ #define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (320 * 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 (1856 * 1024)
#elif defined(CONFIG_FOR_DLINK_DIR505_A1)
#define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (512 * 1024)
-#elif defined(CONFIG_FOR_DRAGINO_V2) ||\
- defined(CONFIG_FOR_MESH_POTATO_V2)
- #define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (320 * 1024)
#elif defined(CONFIG_FOR_GS_OOLITE_V1_DEV)
#define WEBFAILSAFE_UPLOAD_LIMITED_AREA_IN_BYTES (192 * 1024)
#else
#define CONFIG_QCA_PLL QCA_PLL_PRESET_400_400_200
#if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) ||\
+ defined(CONFIG_FOR_ALFA_NETWORK_AP121F) ||\
defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB) ||\
defined(CONFIG_FOR_CREATCOMM_D3321) ||\
defined(CONFIG_FOR_GL_AR150)
* ==================================
*/
#if !defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) &&\
+ !defined(CONFIG_FOR_ALFA_NETWORK_AP121F) &&\
!defined(CONFIG_FOR_ALFA_NETWORK_HORNET_UB) &&\
!defined(CONFIG_FOR_BLACK_SWIFT_BOARD) &&\
!defined(CONFIG_FOR_CREATCOMM_D3321) &&\