1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * linux/drivers/media/platform/s5p-mfc/s5p_mfc_cmd.c
5 * Copyright (C) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
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();
22 s5p_mfc_cmds
= s5p_mfc_init_hw_cmds_v5();
24 dev
->mfc_cmds
= s5p_mfc_cmds
;