hc5761a: enable SD

This commit is contained in:
LGA1150 2019-07-24 15:02:37 +08:00 committed by AmadeusGhost
parent 488a847e6e
commit 0ee12f93a2
2 changed files with 24 additions and 5 deletions

View File

@ -45,10 +45,24 @@
};
};
&state_default {
gpio {
ralink,group = "i2c", "refclk", "wdt", "p2led_an", "p3led_an", "wled_an";
ralink,function = "gpio";
&pinctrl {
sdxc_router_pins: sdxc_router_mode {
gpio {
ralink,group = "i2s", "sdmode", "uart1", "gpio";
ralink,function = "gpio";
};
esdmode {
ralink,group = "esdmode";
ralink,function = "sdxc";
};
};
state_default: pinctrl0 {
gpio {
ralink,group = "i2c", "refclk", "wdt", "p2led_an", "p3led_an", "wled_an";
ralink,function = "gpio";
};
};
};
@ -63,3 +77,8 @@
ieee80211-freq-limit = <5000000 6000000>;
};
};
&sdhci {
status = "okay";
pinctrl-0 = <&sdxc_router_pins>;
};

View File

@ -107,7 +107,7 @@ define Device/hiwifi_hc5761a
IMAGE_SIZE := 15808k
DEVICE_VENDOR := HiWiFi
DEVICE_MODEL := HC5761A
DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci
DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620
endef
TARGET_DEVICES += hiwifi_hc5761a