WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / platform / s5p-mfc / s5p_mfc_cmd.c
blob0e88c28f4ad37bfb5eff6e0e03a1d0ac44e44b00
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * linux/drivers/media/platform/s5p-mfc/s5p_mfc_cmd.c
5 * Copyright (C) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
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"
15 static struct s5p_mfc_hw_cmds *s5p_mfc_cmds;
17 void s5p_mfc_init_hw_cmds(struct s5p_mfc_dev *dev)
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();
24 dev->mfc_cmds = s5p_mfc_cmds;