blob: 5c832a2a9dfe59eb3ba8ea07b316df8e5c3f3640 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/
#include <soc/tegra/fuse.h>
#include <nvgpu/fuse.h>
int nvgpu_tegra_fuse_read(unsigned long offset, u32 *value)
{
return tegra_fuse_readl(offset, value);
}
void nvgpu_tegra_fuse_write(u32 value, unsigned long offset)
{
tegra_fuse_control_write(value, offset);
}
int nvgpu_tegra_get_gpu_speedo_id(void)
{
return tegra_sku_info.gpu_speedo_id;
}
|