mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-09-16 20:32:19 +02:00
Linux_SDK_V1.3.3
Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
This commit is contained in:
committed by
Han Gao/Revy/Rabenda
parent
2bd2eac4a7
commit
e17ac7bab2
@@ -651,6 +651,9 @@ static int wlan_platdata_parse_dt(struct device *dev,
|
||||
data->mregulator.power_ctrl_by_pmu = false;
|
||||
LOG("%s: wifi power controled by gpio.\n", __func__);
|
||||
gpio = of_get_named_gpio_flags(node, "WIFI,poweren_gpio", 0, &flags);
|
||||
if (gpio == -EPROBE_DEFER) {
|
||||
return gpio;
|
||||
}
|
||||
if (gpio_is_valid(gpio)){
|
||||
data->power_n.io = gpio;
|
||||
data->power_n.enable = (flags == GPIO_ACTIVE_HIGH)? 1:0;
|
||||
|
||||
Reference in New Issue
Block a user