summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_trim_gk20a.h
diff options
context:
space:
mode:
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;