1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #ifndef _input_switch_2400_defs_h
8 #define _input_switch_2400_defs_h
9 
10 #define _HIVE_INPUT_SWITCH_GET_LUT_REG_ID(ch_id, fmt_type) (((ch_id) * 2) + ((fmt_type) >= 16))
11 #define _HIVE_INPUT_SWITCH_GET_LUT_REG_LSB(fmt_type)        (((fmt_type) % 16) * 2)
12 
13 #define HIVE_INPUT_SWITCH_SELECT_NO_OUTPUT   0
14 #define HIVE_INPUT_SWITCH_SELECT_IF_PRIM     1
15 #define HIVE_INPUT_SWITCH_SELECT_IF_SEC      2
16 #define HIVE_INPUT_SWITCH_SELECT_STR_TO_MEM  3
17 #define HIVE_INPUT_SWITCH_VSELECT_NO_OUTPUT  0
18 #define HIVE_INPUT_SWITCH_VSELECT_IF_PRIM    1
19 #define HIVE_INPUT_SWITCH_VSELECT_IF_SEC     2
20 #define HIVE_INPUT_SWITCH_VSELECT_STR_TO_MEM 4
21 
22 #endif /* _input_switch_2400_defs_h */
23