ramips: improve support for Xiaomi Miwifi Nano
authorChuanhong Guo <gch981213@gmail.com>
Tue, 3 Sep 2019 15:58:07 +0000 (23:58 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Wed, 4 Sep 2019 11:26:01 +0000 (19:26 +0800)
commit7a21c85f7013d75bc1d30a62534a99d5f697f085
treee3fb739dd8467f6961fea1cbbf36e903d4f0cd2d
parent7290963d0992b9aa412e0066dcf721857fbd40f7
ramips: improve support for Xiaomi Miwifi Nano

This patch does the following things:
1. mark u-boot-env writable
2. add bootcount support
   Currently, u-boot has a flag_boot_success env variable to reset.
   Also reset it in our firmware to follow the behavior in vendor's
   firmware.
3. disable usb support
   This router doesn't have usb port at all.
4. increase spi clock to 40MHz
5. fix pinmux groups

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ramips/base-files/etc/init.d/bootcount
target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
target/linux/ramips/image/mt76x8.mk