From 9ca4c6b596fe50c652907193bb167ee29c208b4b Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Fri, 8 Jul 2016 14:31:51 -0700 Subject: gpu: nvgpu: Add is_fmodel flag Added is_fmodel flag in gk20a platform data and this flag is set to true for simulated gpu platforms. Bug 1735760 Change-Id: Ib04579d2e2990ee051039bfb741d6e50523d44ac Signed-off-by: Seema Khowala Reviewed-on: http://git-master/r/1177868 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu Tested-by: Seshendra Gadagottu Reviewed-by: Tejal Kudav Reviewed-by: Ayoosh Bansal Reviewed-by: Adeel Raza --- drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 5bde3439..396d8db2 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h @@ -38,6 +38,9 @@ struct gk20a_platform { /* Populated by the gk20a driver before probing the platform. */ struct gk20a *g; + /* Should be populated at probe. */ + bool is_fmodel; + /* Should be populated at probe. */ bool can_railgate; -- cgit v1.2.2