summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206/fifo_gm206.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-03-23 11:43:53 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-05-23 17:15:25 -0400
commitfb64e1f1b9c2162f521dfe3956655accb911d6a7 (patch)
tree15236c00323c8d24102f5a1221f1b313d62bfac2 /drivers/gpu/nvgpu/gm206/fifo_gm206.c
parentc25e1da93e09a421b8c2b91df720d4bc603db378 (diff)
gpu: nvgpu: Add support for gm204 and gm206
Add support for chips gm204 and gm206. Adds also support for reading VBIOS and booting devinit and pre-os images on PMU. Change-Id: I4824b44245611e5379ace62793cc37158048f432 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1120467 GVS: Gerrit_Virtual_Submit Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/fifo_gm206.c')
-rw-r--r--drivers/gpu/nvgpu/gm206/fifo_gm206.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/fifo_gm206.c b/drivers/gpu/nvgpu/gm206/fifo_gm206.c
new file mode 100644
index 00000000..c78f256c
--- /dev/null
+++ b/drivers/gpu/nvgpu/gm206/fifo_gm206.c
@@ -0,0 +1,31 @@
1/*
2 * Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
3 *
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,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13
14#include <linux/delay.h>
15#include <linux/types.h>
16
17#include "gk20a/gk20a.h"
18#include "gm20b/fifo_gm20b.h"
19#include "fifo_gm206.h"
20#include "hw_ccsr_gm206.h"
21
22static u32 gm206_fifo_get_num_fifos(struct gk20a *g)
23{
24 return ccsr_channel__size_1_v();
25}
26
27void gm206_init_fifo(struct gpu_ops *gops)
28{
29 gm20b_init_fifo(gops);
30 gops->fifo.get_num_fifos = gm206_fifo_get_num_fifos;
31}