mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
This patch moves the NVIDIA GPU driver to a new location. Bug 1482562 Change-Id: I24293810b9d0f1504fd9be00135e21dad656ccb6 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/383722 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
38 lines
1011 B
C
38 lines
1011 B
C
/*
|
|
* GK20A memory interface
|
|
*
|
|
* Copyright (c) 2014, 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 <linux/types.h>
|
|
|
|
#include "gk20a.h"
|
|
#include "kind_gk20a.h"
|
|
#include "hw_mc_gk20a.h"
|
|
|
|
static void fb_gk20a_reset(struct gk20a *g)
|
|
{
|
|
gk20a_dbg_info("reset gk20a fb");
|
|
|
|
gk20a_reset(g, mc_enable_pfb_enabled_f()
|
|
| mc_enable_l2_enabled_f()
|
|
| mc_enable_xbar_enabled_f()
|
|
| mc_enable_hub_enabled_f());
|
|
}
|
|
|
|
void gk20a_init_fb(struct gpu_ops *gops)
|
|
{
|
|
gops->fb.reset = fb_gk20a_reset;
|
|
gk20a_init_uncompressed_kind_map();
|
|
gk20a_init_kind_attr();
|
|
}
|