From 19b3bd28b3e277d8892f663e7c61a813dbc54feb Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Fri, 16 Oct 2015 12:31:35 -0700 Subject: gpu: nvgpu: use platform data for ptimer source rate Instead of depending on clock frame-work, use platform data for ptimer source rate. Removed ptimerscaling10x platform data, and use ptimer source frequency to calculate ptimerscaling factor. Reviewed-on: http://git-master/r/819030 (cherry picked from commit dd291334d54dab80cab7eb1656dffc48a59610b4) Change-Id: I7638ce9875a6e440bbfc2ba2da0d0b094b2700ff Signed-off-by: Seshendra Gadagottu Reviewed-on: http://git-master/r/827300 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 0c3c6ff3..c1444985 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h @@ -97,9 +97,6 @@ struct gk20a_platform { /* Default big page size 64K or 128K */ u32 default_big_page_size; - /* scaling factor for ptimer */ - u32 ptimerscaling10x; - /* Initialize the platform interface of the gk20a driver. * * The platform implementation of this function must @@ -191,6 +188,8 @@ struct gk20a_platform { u64 virt_handle; struct task_struct *intr_handler; #endif + /* source frequency for ptimer in hz */ + u32 ptimer_src_freq; bool has_cde; }; -- cgit v1.2.2