From 6f80a44c984793dd324dcdce03b244b9a0d4679c Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Wed, 16 Apr 2014 09:53:04 +0300 Subject: gpu: nvgpu: Fall-back to generic platform Currently the generic platform is used only if the device tree defines that we have a generic platform available, however, the generic platform is fully compatible with the gk20a we have in tegra. This patch modifies the definitions so that we use generic platform also for tegra - even if if tegra configuration option is not enabled. Bug 1434573 Change-Id: Ib35ce0ab935d27764e960bf4d74a5016ae047a1f Signed-off-by: Arto Merilainen Reviewed-on: http://git-master/r/396867 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gk20a.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index a78e1e5d..029bfca2 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -930,6 +930,11 @@ static struct of_device_id tegra_gk20a_of_match[] = { .data = &gk20a_tegra_platform }, { .compatible = "nvidia,tegra210-gm20b", .data = &gm20b_tegra_platform }, +#else + { .compatible = "nvidia,tegra124-gk20a", + .data = &gk20a_generic_platform }, + { .compatible = "nvidia,tegra210-gm20b", + .data = &gk20a_generic_platform }, #endif { .compatible = "nvidia,generic-gk20a", .data = &gk20a_generic_platform }, -- cgit v1.2.2