firmware/tegra: add support for reserved memory as mail store
PATCH RESEND 3/3 firmware/tegra: add support for reserved memory as mail store
Signed-off-by Peter De Schrijver <[email protected]>
--- drivers/firmware/tegra/bpmp-private.h | 3 +- drivers/firmware/tegra/bpmp-tegra186.c | 57 ++++++++++++++++++++++++-- drivers/firmware/tegra/bpmp.c | 10 +++-- 3 files changed, 62 insertions(+), 8 deletions(-)
drivers/firmware/tegra/bpmp-private.h +2 -1
@@ -24,7 +24,8 @@ struct tegra_bpmp_ops { };#if IS_ENABLED (CONFIG_ARCH_TEGRA_186_SOC ) || \ -IS_ENABLED (CONFIG_ARCH_TEGRA_194_SOC ) +IS_ENABLED (CONFIG_ARCH_TEGRA_194_SOC ) || \ +IS_ENABLED (CONFIG_ARCH_TEGRA_234_SOC )extern const struct tegra_bpmp_ops tegra186_bpmp_ops;#endif #if IS_ENABLED (CONFIG_ARCH_TEGRA_210_SOC )
drivers/firmware/tegra/bpmp-tegra186.c +54 -3
72 lines not on this page · raw message
drivers/firmware/tegra/bpmp.c +6 -4
@@ -739,6 +739,8 @@ static int tegra_bpmp_probe(struct platform_device *pdev)if (!bpmp->threaded_channels)return -ENOMEM ; +platform_set_drvdata (pdev, bpmp); + err = bpmp->soc->ops->init (bpmp);if (err <0 )return err;
@@ -762,8 +764,6 @@ static int tegra_bpmp_probe(struct platform_device *pdev)dev_info (&pdev->dev,"firmware: %.*s\n" , (int )sizeof (tag), tag); -platform_set_drvdata (pdev, bpmp); - err =of_platform_default_populate (pdev->dev.of_node,NULL , &pdev->dev);if (err <0 ) goto free_mrq;
@@ -814,7 +814,8 @@ static int __maybe_unused tegra_bpmp_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(tegra_bpmp_pm_ops, NULL, tegra_bpmp_resume); #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \ - IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) + IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) static const struct tegra_bpmp_soc tegra186_soc = { .channels = { .cpu_tx = {
@@ -861,7 +862,8 @@ static const struct tegra_bpmp_soc tegra210_soc = {static const struct of_device_id tegra_bpmp_match[] = { #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \ - IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) + IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) { .compatible ="nvidia,tegra186-bpmp" , .data = &tegra186_soc }, #endif #if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
Signature · 1 line
2.17.1