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 _gpio_block_defs_h_
17 #define _gpio_block_defs_h_
18 
19 #define _HRT_GPIO_BLOCK_REG_ALIGN 4
20 
21 /* R/W registers */
22 #define _gpio_block_reg_do_e				 0
23 #define _gpio_block_reg_do_select		       1
24 #define _gpio_block_reg_do_0				 2
25 #define _gpio_block_reg_do_1				 3
26 #define _gpio_block_reg_do_pwm_cnt_0	     4
27 #define _gpio_block_reg_do_pwm_cnt_1	     5
28 #define _gpio_block_reg_do_pwm_cnt_2	     6
29 #define _gpio_block_reg_do_pwm_cnt_3	     7
30 #define _gpio_block_reg_do_pwm_main_cnt    8
31 #define _gpio_block_reg_do_pwm_enable      9
32 #define _gpio_block_reg_di_debounce_sel	  10
33 #define _gpio_block_reg_di_debounce_cnt_0	11
34 #define _gpio_block_reg_di_debounce_cnt_1	12
35 #define _gpio_block_reg_di_debounce_cnt_2	13
36 #define _gpio_block_reg_di_debounce_cnt_3	14
37 #define _gpio_block_reg_di_active_level	  15
38 
39 /* read-only registers */
40 #define _gpio_block_reg_di				  16
41 
42 #endif /* _gpio_block_defs_h_ */
43