From 268721975c6c72418e2282126e7f594f62e6e118 Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Fri, 23 Jun 2017 17:10:13 +0530 Subject: gpu: nvgpu: PMU reset reorg - nvgpu_pmu_reset() as pmu reset for all chips & removed gk20a_pmu_reset() & gp106_pmu_reset() along with dependent code. - Created ops to do PMU engine reset & to know the engine reset status - Removed pmu.reset ops & replaced with nvgpu_flcn_reset(pmu->flcn) - Moved sec2 reset to sec2_gp106 from pmu_gp106 & cleaned PMU code part of sec2. JIRA NVGPU-99 Change-Id: I7575e4ca2b34922d73d171f6a41bfcdc2f40dc96 Signed-off-by: Mahantesh Kumbar Reviewed-on: https://git-master/r/1507881 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gm206/bios_gm206.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gm206') diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index c32959a3..567b01ce 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c @@ -105,7 +105,7 @@ static int gm206_bios_devinit(struct gk20a *g) struct nvgpu_timeout timeout; gk20a_dbg_fn(""); - g->ops.pmu.reset(g); + nvgpu_flcn_reset(g->pmu.flcn); nvgpu_timeout_init(g, &timeout, PMU_BOOT_TIMEOUT_MAX / @@ -187,7 +187,7 @@ static int gm206_bios_preos(struct gk20a *g) struct nvgpu_timeout timeout; gk20a_dbg_fn(""); - g->ops.pmu.reset(g); + nvgpu_flcn_reset(g->pmu.flcn); nvgpu_timeout_init(g, &timeout, PMU_BOOT_TIMEOUT_MAX / -- cgit v1.2.2