summaryrefstree
path: root/kernel/drivers/vision/vpu/platform/vpu-tv.c
blob: 73a20314a8b451fdfebb1322af63055e94a66c27 (plain)
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
32
33
34
35
36
37
38
39
40
41
/*
 * Samsung Exynos SoC series VPU driver
 *
 * Copyright (c) 2015 Samsung Electronics Co., Ltd
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include "vpu-config.h"
#include "vpu-exynos.h"
#include "vpu-tv.h"

int vpu_tv_probe(struct vpu_tvset *tvset,
	struct device *dev,
	struct vpu_exynos *exynos,
	struct vpu_memory *memory)
{
	int ret = 0;

	tvset->dev = dev;
	tvset->exynos = exynos;
	tvset->memory = memory;
	tvset->tv_cnt = 0;

	ret = vpu_tv_register_depth3(tvset);
	if (ret) {
		vpu_err("vpu_tv_register_depth3 is fail(%d)\n", ret);
		goto p_err;
	}

	ret = vpu_tv_register_flamorb(tvset);
	if (ret) {
		vpu_err("vpu_tv_register_depth3 is fail(%d)\n", ret);
		goto p_err;
	}

p_err:
	return ret;
}