You need to sign in or sign up before continuing.
提交 788ff4b6 编写于 作者: N Nicolas Chauvet 提交者: Thierry Reding

drm/tegra: Set MODULE_FIRMWARE for the VIC

The defines are set anyway to prevent an empty string. The test for the
SoC is the same as for Nouveau for the Tegra GPU firmware (see
drivers/gpu/drm/nouveau/nouveau_platform.c)

v2:
 - Place the defines above each chip's vic_config struct
 - MODULE_FIRMWARE() at the end of the file

Fixes: 0ae797a8 ("drm/tegra: Add VIC support")
Signed-off-by: NNicolas Chauvet <kwizart@gmail.com>
Reviewed-by: NMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 2d0f9865
...@@ -258,12 +258,16 @@ static const struct tegra_drm_client_ops vic_ops = { ...@@ -258,12 +258,16 @@ static const struct tegra_drm_client_ops vic_ops = {
.submit = tegra_drm_submit, .submit = tegra_drm_submit,
}; };
#define NVIDIA_TEGRA_124_VIC_FIRMWARE "nvidia/tegra124/vic03_ucode.bin"
static const struct vic_config vic_t124_config = { static const struct vic_config vic_t124_config = {
.firmware = "nvidia/tegra124/vic03_ucode.bin", .firmware = NVIDIA_TEGRA_124_VIC_FIRMWARE,
}; };
#define NVIDIA_TEGRA_210_VIC_FIRMWARE "nvidia/tegra210/vic04_ucode.bin"
static const struct vic_config vic_t210_config = { static const struct vic_config vic_t210_config = {
.firmware = "nvidia/tegra210/vic04_ucode.bin", .firmware = NVIDIA_TEGRA_210_VIC_FIRMWARE,
}; };
static const struct of_device_id vic_match[] = { static const struct of_device_id vic_match[] = {
...@@ -394,3 +398,10 @@ struct platform_driver tegra_vic_driver = { ...@@ -394,3 +398,10 @@ struct platform_driver tegra_vic_driver = {
.probe = vic_probe, .probe = vic_probe,
.remove = vic_remove, .remove = vic_remove,
}; };
#if IS_ENABLED(CONFIG_ARCH_TEGRA_124_SOC)
MODULE_FIRMWARE(NVIDIA_TEGRA_124_VIC_FIRMWARE);
#endif
#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
MODULE_FIRMWARE(NVIDIA_TEGRA_210_VIC_FIRMWARE);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册