Commit b7ff96cc authored by Sibi Sankar's avatar Sibi Sankar Committed by Bjorn Andersson

remoteproc: qcom: pas: Add auto_boot flag

Add auto_boot flag and set it to false for modem. This allows for
the delayed boot up of modem after the dependencies are met in
userspace.
Signed-off-by: default avatarSibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/0101016e80790f6a-98fb016c-9639-4124-b6ee-fe7639af734f-000000@us-west-2.amazonses.comSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 15f4ae1e
...@@ -33,6 +33,7 @@ struct adsp_data { ...@@ -33,6 +33,7 @@ struct adsp_data {
const char *firmware_name; const char *firmware_name;
int pas_id; int pas_id;
bool has_aggre2_clk; bool has_aggre2_clk;
bool auto_boot;
char **active_pd_names; char **active_pd_names;
char **proxy_pd_names; char **proxy_pd_names;
...@@ -388,6 +389,8 @@ static int adsp_probe(struct platform_device *pdev) ...@@ -388,6 +389,8 @@ static int adsp_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
} }
rproc->auto_boot = desc->auto_boot;
adsp = (struct qcom_adsp *)rproc->priv; adsp = (struct qcom_adsp *)rproc->priv;
adsp->dev = &pdev->dev; adsp->dev = &pdev->dev;
adsp->rproc = rproc; adsp->rproc = rproc;
...@@ -471,6 +474,7 @@ static const struct adsp_data adsp_resource_init = { ...@@ -471,6 +474,7 @@ static const struct adsp_data adsp_resource_init = {
.firmware_name = "adsp.mdt", .firmware_name = "adsp.mdt",
.pas_id = 1, .pas_id = 1,
.has_aggre2_clk = false, .has_aggre2_clk = false,
.auto_boot = true,
.ssr_name = "lpass", .ssr_name = "lpass",
.sysmon_name = "adsp", .sysmon_name = "adsp",
.ssctl_id = 0x14, .ssctl_id = 0x14,
...@@ -481,6 +485,7 @@ static const struct adsp_data sm8150_adsp_resource = { ...@@ -481,6 +485,7 @@ static const struct adsp_data sm8150_adsp_resource = {
.firmware_name = "adsp.mdt", .firmware_name = "adsp.mdt",
.pas_id = 1, .pas_id = 1,
.has_aggre2_clk = false, .has_aggre2_clk = false,
.auto_boot = true,
.active_pd_names = (char*[]){ .active_pd_names = (char*[]){
"load_state", "load_state",
NULL NULL
...@@ -499,6 +504,7 @@ static const struct adsp_data cdsp_resource_init = { ...@@ -499,6 +504,7 @@ static const struct adsp_data cdsp_resource_init = {
.firmware_name = "cdsp.mdt", .firmware_name = "cdsp.mdt",
.pas_id = 18, .pas_id = 18,
.has_aggre2_clk = false, .has_aggre2_clk = false,
.auto_boot = true,
.ssr_name = "cdsp", .ssr_name = "cdsp",
.sysmon_name = "cdsp", .sysmon_name = "cdsp",
.ssctl_id = 0x17, .ssctl_id = 0x17,
...@@ -509,6 +515,7 @@ static const struct adsp_data sm8150_cdsp_resource = { ...@@ -509,6 +515,7 @@ static const struct adsp_data sm8150_cdsp_resource = {
.firmware_name = "cdsp.mdt", .firmware_name = "cdsp.mdt",
.pas_id = 18, .pas_id = 18,
.has_aggre2_clk = false, .has_aggre2_clk = false,
.auto_boot = true,
.active_pd_names = (char*[]){ .active_pd_names = (char*[]){
"load_state", "load_state",
NULL NULL
...@@ -527,6 +534,7 @@ static const struct adsp_data mpss_resource_init = { ...@@ -527,6 +534,7 @@ static const struct adsp_data mpss_resource_init = {
.firmware_name = "modem.mdt", .firmware_name = "modem.mdt",
.pas_id = 4, .pas_id = 4,
.has_aggre2_clk = false, .has_aggre2_clk = false,
.auto_boot = false,
.active_pd_names = (char*[]){ .active_pd_names = (char*[]){
"load_state", "load_state",
NULL NULL
...@@ -546,6 +554,7 @@ static const struct adsp_data slpi_resource_init = { ...@@ -546,6 +554,7 @@ static const struct adsp_data slpi_resource_init = {
.firmware_name = "slpi.mdt", .firmware_name = "slpi.mdt",
.pas_id = 12, .pas_id = 12,
.has_aggre2_clk = true, .has_aggre2_clk = true,
.auto_boot = true,
.ssr_name = "dsps", .ssr_name = "dsps",
.sysmon_name = "slpi", .sysmon_name = "slpi",
.ssctl_id = 0x16, .ssctl_id = 0x16,
...@@ -556,6 +565,7 @@ static const struct adsp_data sm8150_slpi_resource = { ...@@ -556,6 +565,7 @@ static const struct adsp_data sm8150_slpi_resource = {
.firmware_name = "slpi.mdt", .firmware_name = "slpi.mdt",
.pas_id = 12, .pas_id = 12,
.has_aggre2_clk = false, .has_aggre2_clk = false,
.auto_boot = true,
.active_pd_names = (char*[]){ .active_pd_names = (char*[]){
"load_state", "load_state",
NULL NULL
...@@ -574,6 +584,7 @@ static const struct adsp_data wcss_resource_init = { ...@@ -574,6 +584,7 @@ static const struct adsp_data wcss_resource_init = {
.crash_reason_smem = 421, .crash_reason_smem = 421,
.firmware_name = "wcnss.mdt", .firmware_name = "wcnss.mdt",
.pas_id = 6, .pas_id = 6,
.auto_boot = true,
.ssr_name = "mpss", .ssr_name = "mpss",
.sysmon_name = "wcnss", .sysmon_name = "wcnss",
.ssctl_id = 0x12, .ssctl_id = 0x12,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment