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