From c123d5056d3af043e2376fa0c5429db7deb3b31b Mon Sep 17 00:00:00 2001 From: David Nieto Date: Wed, 12 Oct 2016 14:54:37 -0700 Subject: gpu: nvgpu: gpu: read effective frequence from counter (1) modified counters debug code to export to the driver (2) modified arbiter to read from those functions (3) modified counter for higher accuracy on MHz range JIRA DNVGPU-164 Change-Id: I2bbf7c9be4dc59718d1d91c53028a39020b5aea5 Signed-off-by: David Nieto Reviewed-on: http://git-master/r/1239467 GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Fleury Reviewed-by: Terje Bergstrom Reviewed-on: http://git-master/r/1268008 --- drivers/gpu/nvgpu/gp106/clk_gp106.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gp106/clk_gp106.h') diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.h b/drivers/gpu/nvgpu/gp106/clk_gp106.h index a50819aa..7df4b974 100644 --- a/drivers/gpu/nvgpu/gp106/clk_gp106.h +++ b/drivers/gpu/nvgpu/gp106/clk_gp106.h @@ -26,9 +26,9 @@ #define CLK_DEFAULT_CNTRL_SETTLE_RETRIES 10 #define CLK_DEFAULT_CNTRL_SETTLE_USECS 5 -#define XTAL_CNTR_CLKS 2700 /* 100usec at 27KHz XTAL */ -#define XTAL_CNTR_DELAY 110 /* leave 10 extra usec */ -#define XTAL_SCALE_TO_KHZ 10 +#define XTAL_CNTR_CLKS 27000 /* 1000usec at 27KHz XTAL */ +#define XTAL_CNTR_DELAY 1000 /* we need acuracy up to the ms */ +#define XTAL_SCALE_TO_KHZ 1 @@ -47,6 +47,7 @@ struct namemap_cfg { /* Todo */ } pll; }; + u32 scale; char name[24]; }; -- cgit v1.2.2