From a9785995d5f22aaeb659285f8aeb64d8b56982e0 Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Wed, 19 Mar 2014 09:38:25 +0200 Subject: gpu: nvgpu: Add NVIDIA GPU Driver This patch moves the NVIDIA GPU driver to a new location. Bug 1482562 Change-Id: I24293810b9d0f1504fd9be00135e21dad656ccb6 Signed-off-by: Arto Merilainen Reviewed-on: http://git-master/r/383722 Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/fb_gk20a.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 drivers/gpu/nvgpu/gk20a/fb_gk20a.c (limited to 'drivers/gpu/nvgpu/gk20a/fb_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/fb_gk20a.c b/drivers/gpu/nvgpu/gk20a/fb_gk20a.c new file mode 100644 index 00000000..52f2db4d --- /dev/null +++ b/drivers/gpu/nvgpu/gk20a/fb_gk20a.c @@ -0,0 +1,37 @@ +/* + * 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 + +#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(); +} -- cgit v1.2.2