1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * linux/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_cmd.c
4  *
5  * Copyright (C) 2012 Samsung Electronics Co., Ltd.
6  *		http://www.samsung.com/
7  */
8 
9 #include "s5p_mfc_cmd.h"
10 #include "s5p_mfc_common.h"
11 #include "s5p_mfc_debug.h"
12 #include "s5p_mfc_cmd_v5.h"
13 #include "s5p_mfc_cmd_v6.h"
14 
15 static struct s5p_mfc_hw_cmds *s5p_mfc_cmds;
16 
17 void s5p_mfc_init_hw_cmds(struct s5p_mfc_dev *dev)
18 {
19 	if (IS_MFCV6_PLUS(dev))
20 		s5p_mfc_cmds = s5p_mfc_init_hw_cmds_v6();
21 	else
22 		s5p_mfc_cmds = s5p_mfc_init_hw_cmds_v5();
23 
24 	dev->mfc_cmds = s5p_mfc_cmds;
25 }
26