Skip to content

Commit

Permalink
boards: add support for XIAOMI Mi-4 (hanwckf#671)
Browse files Browse the repository at this point in the history
* boards: add support for XIAOMI Mi-4

* boards: add support for XIAOMI Mi-4

* Update kernel-3.4.x.config

* Alignment of the settings of other templates 

Following configurations were set to "y":
CONFIG_FIRMWARE_INCLUDE_MINIEAP=y
CONFIG_FIRMWARE_INCLUDE_NJIT_CLIENT=y
  • Loading branch information
minax007 authored Jun 14, 2021
1 parent 55a1bd6 commit 8c2a70e
Show file tree
Hide file tree
Showing 6 changed files with 2,463 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Contributors of this project are not responsible for what happens next.
>- MI-MINI (USB)
>- MI-3 (USB)
>- MI-3C
>- MI-4
>- MI-R3G (USB)
>- MI-R4A
>- MI-R3P (USB)
Expand Down
27 changes: 27 additions & 0 deletions trunk/configs/boards/MI-4/board.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* Xiaomi Mi-4 */

#define BOARD_PID "MI-4"
#define BOARD_NAME "MI-4"
#define BOARD_DESC "Xiaomi Mi 4 Wireless Router"
#define BOARD_VENDOR_NAME "Beijing Xiaomi Technology Co., Ltd."
#define BOARD_VENDOR_URL "https://www.mi.com/"
#define BOARD_MODEL_URL "https://www.mi.com/miwifi4"
#define BOARD_BOOT_TIME 20
#define BOARD_FLASH_TIME 120
#define BOARD_GPIO_BTN_RESET 18
#undef BOARD_GPIO_BTN_WPS
#undef BOARD_GPIO_LED_ALL
#undef BOARD_GPIO_LED_WIFI
#define BOARD_GPIO_LED_POWER 8 /* 6: red, 10: yellow, 8: blue */
#define BOARD_GPIO_LED_LAN 10
#undef BOARD_GPIO_LED_WAN
#undef BOARD_GPIO_LED_ROUTER
#define BOARD_HAS_5G_11AC 1
#define BOARD_NUM_ANT_5G_TX 2
#define BOARD_NUM_ANT_5G_RX 2
#define BOARD_NUM_ANT_2G_TX 2
#define BOARD_NUM_ANT_2G_RX 2
#define BOARD_NUM_ETH_LEDS 1
#define BOARD_NUM_ETH_EPHY 3
#define BOARD_HAS_EPHY_L1000 1
#define BOARD_HAS_EPHY_W1000 1
8 changes: 8 additions & 0 deletions trunk/configs/boards/MI-4/board.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
##################################################################
# Board PID # Board Name # PRODUCT # Note
##################################################################
# MI-4 # Xiaomi Mi 4 # MT7621 #
##################################################################

CFLAGS += -DBOARD_MI-4
BOARD_NUM_USB_PORTS=0
Loading

0 comments on commit 8c2a70e

Please sign in to comment.