gpu: nvgpu: Remove extra defs of BOOT_GPC2CLK

BOOT_GPC2CLK was defined in clk.c and clk.h, but not used there. Move
the definition to the only user of BOOT_GPC2CLK, which is pci.c.

JIRA NVGPU-961

Change-Id: Idff290fb447390b44ee09eab853e434e124e84bb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1986069
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2018-12-13 13:02:03 -08:00
committed by mobile promotions
parent 8ddc70f4f7
commit 02dd414a53
3 changed files with 4 additions and 6 deletions

View File

@@ -33,7 +33,6 @@
#include "clk.h" #include "clk.h"
#include <nvgpu/timers.h> #include <nvgpu/timers.h>
#define BOOT_GPC2CLK_MHZ 2581U
#define BOOT_MCLK_MHZ 3003U #define BOOT_MCLK_MHZ 3003U
struct clkrpc_pmucmdhandler_params { struct clkrpc_pmucmdhandler_params {

View File

@@ -1,7 +1,7 @@
/* /*
* general clock structures & definitions * general clock structures & definitions
* *
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"), * copy of this software and associated documentation files (the "Software"),
@@ -125,8 +125,6 @@ struct vbios_clocks_table_1x_hal_clock_entry {
#define PERF_CLK_PCIEGENCLK 12U #define PERF_CLK_PCIEGENCLK 12U
#define PERF_CLK_NUM 13U #define PERF_CLK_NUM 13U
#define BOOT_GPC2CLK_MHZ 2581U
int clk_init_pmupstate(struct gk20a *g); int clk_init_pmupstate(struct gk20a *g);
void clk_free_pmupstate(struct gk20a *g); void clk_free_pmupstate(struct gk20a *g);
int clk_pmu_vin_load(struct gk20a *g); int clk_pmu_vin_load(struct gk20a *g);

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,
@@ -45,6 +45,7 @@
#include "driver_common.h" #include "driver_common.h"
#define BOOT_GPC2CLK_MHZ 2581U
#define PCI_INTERFACE_NAME "card-%s%%s" #define PCI_INTERFACE_NAME "card-%s%%s"
static int nvgpu_pci_tegra_probe(struct device *dev) static int nvgpu_pci_tegra_probe(struct device *dev)