diff options
author | Sunny He <suhe@nvidia.com> | 2017-06-29 17:24:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-02 17:43:27 -0400 |
commit | 11e29991acd25baef5b786605e136b5e71737b8e (patch) | |
tree | 1fd738a07e172ef7cdc2882359424be246964ce3 /drivers/gpu/nvgpu/gp106/clk_arb_gp106.h | |
parent | a15e110a9b790f55a5c6e257cfbf7f7235f5a334 (diff) |
gpu: nvgpu: Reorg clk HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the clk
and clk_arb sub-module of the gpu_ops struct.
Perform HAL function assignments in hal_gxxxx.c through the
population of a chip-specific copy of gpu_ops.
Jira NVGPU-74
Change-Id: I553353df836b187b8eac61e16b63080b570c96b8
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1511076
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/clk_arb_gp106.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/clk_arb_gp106.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp106/clk_arb_gp106.h b/drivers/gpu/nvgpu/gp106/clk_arb_gp106.h index a9877199..5b5ca4a9 100644 --- a/drivers/gpu/nvgpu/gp106/clk_arb_gp106.h +++ b/drivers/gpu/nvgpu/gp106/clk_arb_gp106.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2017, 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, |
@@ -16,6 +16,10 @@ | |||
16 | #ifndef CLK_ARB_GP106_H | 16 | #ifndef CLK_ARB_GP106_H |
17 | #define CLK_ARB_GP106_H | 17 | #define CLK_ARB_GP106_H |
18 | 18 | ||
19 | void gp106_init_clk_arb_ops(struct gpu_ops *gops); | 19 | u32 gp106_get_arbiter_clk_domains(struct gk20a *g); |
20 | int gp106_get_arbiter_clk_range(struct gk20a *g, u32 api_domain, | ||
21 | u16 *min_mhz, u16 *max_mhz); | ||
22 | int gp106_get_arbiter_clk_default(struct gk20a *g, u32 api_domain, | ||
23 | u16 *default_mhz); | ||
20 | 24 | ||
21 | #endif /* CLK_ARB_GP106_H */ | 25 | #endif /* CLK_ARB_GP106_H */ |