mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-28 00:00:22 +02:00
Merge "msm: pil-mss: Add support for error services ready interrupt"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
2acdf7724f
@@ -17,6 +17,7 @@ Required properties:
|
||||
- vdd_mx-supply: Reference to the regulator that supplies the memory rail.
|
||||
- qcom,firmware-name: Base name of the firmware image. Ex. "mdsp"
|
||||
- qcom,gpio-err-fatal: GPIO used by the modem to indicate error fatal to the apps.
|
||||
- qcom,gpio-err-ready: GPIO used by the modem to indicate error ready to the apps.
|
||||
- qcom,gpio-proxy-unvote: GPIO used by the modem to trigger proxy unvoting in
|
||||
the apps.
|
||||
- qcom,gpio-force-stop: GPIO used by the apps to force the modem to shutdown.
|
||||
@@ -49,6 +50,7 @@ Example:
|
||||
|
||||
/* GPIO inputs from mss */
|
||||
qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
|
||||
qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
|
||||
qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
|
||||
|
||||
/* GPIO output to mss */
|
||||
|
||||
@@ -796,6 +796,7 @@
|
||||
|
||||
/* GPIO inputs from mss */
|
||||
qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
|
||||
qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
|
||||
qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
|
||||
|
||||
/* GPIO output to mss */
|
||||
|
||||
@@ -648,6 +648,7 @@
|
||||
|
||||
/* GPIO inputs from mss */
|
||||
qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
|
||||
qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
|
||||
qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
|
||||
|
||||
/* GPIO output to mss */
|
||||
|
||||
@@ -1109,6 +1109,7 @@
|
||||
|
||||
/* GPIO inputs from mss */
|
||||
qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
|
||||
qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
|
||||
qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
|
||||
|
||||
/* GPIO output to mss */
|
||||
|
||||
@@ -757,6 +757,7 @@
|
||||
|
||||
/* GPIO inputs from mss */
|
||||
qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
|
||||
qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
|
||||
qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
|
||||
|
||||
/* GPIO output to mss */
|
||||
|
||||
@@ -650,6 +650,17 @@ static int __devinit pil_subsys_init(struct mba_data *drv,
|
||||
drv->subsys_desc.start = mss_start;
|
||||
drv->subsys_desc.stop = mss_stop;
|
||||
|
||||
ret = of_get_named_gpio(pdev->dev.of_node,
|
||||
"qcom,gpio-err-ready", 0);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
ret = gpio_to_irq(ret);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
drv->subsys_desc.err_ready_irq = ret;
|
||||
|
||||
drv->subsys = subsys_register(&drv->subsys_desc);
|
||||
if (IS_ERR(drv->subsys)) {
|
||||
ret = PTR_ERR(drv->subsys);
|
||||
|
||||
Reference in New Issue
Block a user