GNU Linux-libre 4.14.290-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / css_2401_csi2p_system / hrt / gpio_block_defs.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #ifndef _gpio_block_defs_h_
16 #define _gpio_block_defs_h_
17
18 #define _HRT_GPIO_BLOCK_REG_ALIGN 4
19
20 /* R/W registers */
21 #define _gpio_block_reg_do_e                             0
22 #define _gpio_block_reg_do_select                      1
23 #define _gpio_block_reg_do_0                             2
24 #define _gpio_block_reg_do_1                             3
25 #define _gpio_block_reg_do_pwm_cnt_0         4
26 #define _gpio_block_reg_do_pwm_cnt_1         5
27 #define _gpio_block_reg_do_pwm_cnt_2         6
28 #define _gpio_block_reg_do_pwm_cnt_3         7
29 #define _gpio_block_reg_do_pwm_main_cnt    8
30 #define _gpio_block_reg_do_pwm_enable      9
31 #define _gpio_block_reg_di_debounce_sel   10
32 #define _gpio_block_reg_di_debounce_cnt_0       11
33 #define _gpio_block_reg_di_debounce_cnt_1       12
34 #define _gpio_block_reg_di_debounce_cnt_2       13
35 #define _gpio_block_reg_di_debounce_cnt_3       14
36 #define _gpio_block_reg_di_active_level   15
37
38
39 /* read-only registers */
40 #define _gpio_block_reg_di                                16
41
42 #endif /* _gpio_block_defs_h_ */