Merge f238c7389c
on remote branch
Change-Id: I9b0c1892c23660cd897c0351ebe671e67161d3fb
This commit is contained in:
@@ -69,16 +69,19 @@ int nfc_parse_dt(struct device *dev, struct platform_configs *nfc_configs,
|
||||
pr_warn("NxpDrv: %s: dwl_req gpio invalid %d\n", __func__,
|
||||
nfc_gpio->dwl_req);
|
||||
}
|
||||
|
||||
/* Read clock request gpio configuration if MGPIO configurations are not preasent */
|
||||
if (of_property_read_string(np, DTS_CLKSRC_GPIO_STR, &nfc_configs->clk_src_name)) {
|
||||
nfc_configs->clk_pin_voting = false;
|
||||
} else
|
||||
nfc_configs->clk_pin_voting = true;
|
||||
|
||||
/* Read clkreq GPIO pin number from DTSI */
|
||||
nfc_gpio->clkreq = of_get_named_gpio(np, DTS_CLKREQ_GPIO_STR, 0);
|
||||
if (!gpio_is_valid(nfc_gpio->clkreq)) {
|
||||
dev_err(dev, "NxpDrv: clkreq gpio invalid %d\n", nfc_gpio->clkreq);
|
||||
return -EINVAL;
|
||||
}
|
||||
} else
|
||||
nfc_configs->clk_pin_voting = true;
|
||||
|
||||
#ifdef NFC_SECURE_PERIPHERAL_ENABLED
|
||||
/* Read DTS_SZONE_STR to check secure zone support */
|
||||
@@ -494,7 +497,6 @@ int nfc_post_init(struct nfc_dev *nfc_dev)
|
||||
__func__, nfc_gpio->dwl_req);
|
||||
}
|
||||
|
||||
if (!(nfc_configs.clk_pin_voting)) {
|
||||
/* Read clkreq GPIO number from device tree*/
|
||||
ret = of_property_read_u32_index(nfc_dev->i2c_dev.client->dev.of_node,
|
||||
DTS_CLKREQ_GPIO_STR, 1, &clkreq_gpio);
|
||||
@@ -510,7 +512,6 @@ int nfc_post_init(struct nfc_dev *nfc_dev)
|
||||
__func__, clkreq_gpio, ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
ret = nfcc_hw_check(nfc_dev);
|
||||
if (ret || nfc_dev->nfc_state == NFC_STATE_UNKNOWN) {
|
||||
|
Reference in New Issue
Block a user