summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-10-27 03:16:51 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:52 -0400
commit4739499f07b29282ee1031d08adaa76c238da2a6 (patch)
tree10caa152eea6250e46cad6172553069b4bb3dcb9 /drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h
parentb5bb4f53dbdde8473e1160d4522c5d9da55f115f (diff)
gpu: nvgpu: Sync gk20a and gm20b headers
Synchronize gk20a and gm20b headers. All registers which were added to gk20a are now added to gm20b, and some registers that are unused are removed. Bug 1567274 Change-Id: Ia3b7958c148e495cbff420ee56bb448db0f58680 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/590313 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h
index 826e9bd1..3b0aa05b 100644
--- a/drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -110,6 +110,10 @@ static inline u32 trim_sys_gpcpll_coeff_mdiv_f(u32 v)
110{ 110{
111 return (v & 0xff) << 0; 111 return (v & 0xff) << 0;
112} 112}
113static inline u32 trim_sys_gpcpll_coeff_mdiv_m(void)
114{
115 return 0xff << 0;
116}
113static inline u32 trim_sys_gpcpll_coeff_mdiv_v(u32 r) 117static inline u32 trim_sys_gpcpll_coeff_mdiv_v(u32 r)
114{ 118{
115 return (r >> 0) & 0xff; 119 return (r >> 0) & 0xff;
@@ -130,6 +134,10 @@ static inline u32 trim_sys_gpcpll_coeff_pldiv_f(u32 v)
130{ 134{
131 return (v & 0x3f) << 16; 135 return (v & 0x3f) << 16;
132} 136}
137static inline u32 trim_sys_gpcpll_coeff_pldiv_m(void)
138{
139 return 0x3f << 16;
140}
133static inline u32 trim_sys_gpcpll_coeff_pldiv_v(u32 r) 141static inline u32 trim_sys_gpcpll_coeff_pldiv_v(u32 r)
134{ 142{
135 return (r >> 16) & 0x3f; 143 return (r >> 16) & 0x3f;