1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 
16 #ifndef __IA_CSS_FIXEDBDS_PARAM_H
17 #define __IA_CSS_FIXEDBDS_PARAM_H
18 
19 #include "type_support.h"
20 
21 /* ISP2401 */
22 #define BDS_UNIT 8
23 #define FRAC_LOG 3
24 #define FRAC_ACC BIT(FRAC_LOG)
25 #if FRAC_ACC != BDS_UNIT
26 #error "FRAC_ACC and BDS_UNIT need to be merged into one define"
27 #endif
28 
29 struct sh_css_isp_bds_params {
30 	int baf_strength;
31 };
32 
33 #endif /* __IA_CSS_FIXEDBDS_PARAM_H */
34