1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Samsung Exynos4x12 FIMC-IS (Imaging Subsystem) driver
5 * FIMC-IS command set definitions
7 * Copyright (C) 2013 Samsung Electronics Co., Ltd.
9 * Authors: Younghwan Joo <yhwan.joo@samsung.com>
10 * Sylwester Nawrocki <s.nawrocki@samsung.com>
13 #ifndef FIMC_IS_CMD_H_
14 #define FIMC_IS_CMD_H_
16 #define FIMC_IS_COMMAND_VER 110 /* FIMC-IS command set version 1.10 */
18 /* Enumeration of commands between the FIMC-IS and the host processor. */
21 #define HIC_PREVIEW_STILL 0x0001
22 #define HIC_PREVIEW_VIDEO 0x0002
23 #define HIC_CAPTURE_STILL 0x0003
24 #define HIC_CAPTURE_VIDEO 0x0004
25 #define HIC_STREAM_ON 0x0005
26 #define HIC_STREAM_OFF 0x0006
27 #define HIC_SET_PARAMETER 0x0007
28 #define HIC_GET_PARAMETER 0x0008
29 #define HIC_SET_TUNE 0x0009
30 #define HIC_GET_STATUS 0x000b
32 #define HIC_OPEN_SENSOR 0x000c
33 #define HIC_CLOSE_SENSOR 0x000d
34 #define HIC_SIMMIAN_INIT 0x000e
35 #define HIC_SIMMIAN_WRITE 0x000f
36 #define HIC_SIMMIAN_READ 0x0010
37 #define HIC_POWER_DOWN 0x0011
38 #define HIC_GET_SET_FILE_ADDR 0x0012
39 #define HIC_LOAD_SET_FILE 0x0013
40 #define HIC_MSG_CONFIG 0x0014
41 #define HIC_MSG_TEST 0x0015
43 #define IHC_GET_SENSOR_NUM 0x1000
44 #define IHC_SET_SHOT_MARK 0x1001
45 /* parameter1: frame number */
46 /* parameter2: confidence level (smile 0~100) */
47 /* parameter3: confidence level (blink 0~100) */
48 #define IHC_SET_FACE_MARK 0x1002
49 /* parameter1: coordinate count */
50 /* parameter2: coordinate buffer address */
51 #define IHC_FRAME_DONE 0x1003
52 /* parameter1: frame start number */
53 /* parameter2: frame count */
54 #define IHC_AA_DONE 0x1004
55 #define IHC_NOT_READY 0x1005
57 #define IH_REPLY_DONE 0x2000
58 #define IH_REPLY_NOT_DONE 0x2001
60 enum fimc_is_scenario
{
68 enum fimc_is_sub_scenario
{
76 struct is_common_regs
{
104 struct is_mcuctl_reg
{
131 struct is_common_regs common
;
134 #endif /* FIMC_IS_CMD_H_ */