obj-$(CONFIG_TEGRA_GRHOST) += vi/
obj-$(CONFIG_TEGRA_GRHOST) += t124/
obj-$(CONFIG_TEGRA_GRHOST) += flcn/
-obj-$(CONFIG_TEGRA_GRHOST) += nvenc/
obj-$(CONFIG_TEGRA_GRHOST) += t210/
obj-$(CONFIG_TEGRA_GRHOST_SYNC) += nvhost_sync.o
return 0;
}
+int nvhost_nvenc_t210_finalize_poweron(struct platform_device *pdev)
+{
+ nvhost_dbg_fn("");
+
+ nvhost_module_reset(pdev, false);
+
+ host1x_writel(pdev, 0x117c, 0x18004);
+ host1x_writel(pdev, 0x2200, 0x800040);
+ host1x_writel(pdev, 0x2204, 0x10000000);
+ host1x_writel(pdev, 0x2208, 0x0);
+
+ return nvhost_flcn_boot(pdev);
+}
static struct of_device_id tegra_flcn_of_match[] = {
{ .compatible = "nvidia,tegra124-vic",
.data = (struct nvhost_device_data *)&t124_vic_info },
#include <linux/types.h>
#include <linux/dma-attrs.h>
#include <linux/firmware.h>
-
+#include <linux/platform_device.h>
struct ucode_bin_header_v1_flcn {
u32 bin_magic; /* 0x10de */
int nvhost_flcn_init(struct platform_device *);
void nvhost_flcn_deinit(struct platform_device *);
int nvhost_flcn_finalize_poweron(struct platform_device *);
-
+int nvhost_nvenc_t210_finalize_poweron(struct platform_device *dev);
/* hack, get these from elsewhere */
+++ /dev/null
-GCOV_PROFILE := y
-ccflags-y += -Idrivers/video/tegra/host
-
-nvhost-nvenc-objs = \
- nvenc.o
-
-obj-$(CONFIG_TEGRA_GRHOST) += nvhost-nvenc.o
+++ /dev/null
-/*
- * Tegra NVENC Module Support
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include <linux/types.h>
-#include <linux/nvhost.h>
-#include "nvenc.h"
-#include "flcn/flcn.h"
-
-int nvhost_nvenc_t210_finalize_poweron(struct platform_device *dev)
-{
- host1x_writel(dev, 0x117c, 0x18004);
- host1x_writel(dev, 0x2200, 0x800040);
- host1x_writel(dev, 0x2204, 0x10000000);
- host1x_writel(dev, 0x2208, 0x0);
-
- return nvhost_flcn_boot(dev);
-}
+++ /dev/null
-/*
- * Tegra NVENC Module Support
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __NVHOST_NVENC_H__
-#define __NVHOST_NVENC_H__
-
-#include <linux/platform_device.h>
-
-int nvhost_nvenc_t210_finalize_poweron(struct platform_device *dev);
-
-#endif
#include "flcn/flcn.h"
#include "nvdec/nvdec.h"
#include "nvjpg/nvjpg.h"
-#include "nvenc/nvenc.h"
#include "tsec/tsec.h"
#include "vi/vi.h"
#include "isp/isp.h"