Zephyr API Documentation
4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
syna_sr100_reset.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Synaptics, Inc.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
11
12
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_SYNA_SR100_RESET_H_
13
#define ZEPHYR_INCLUDE_DT_BINDINGS_SYNA_SR100_RESET_H_
14
15
#include <
zephyr/sys/util_macro.h
>
16
19
#define IMGPROC_RST 0x20
21
#define NPU_RST 0x30
23
#define DMA0_RST 0x40
25
#define DMA1_RST 0x48
27
#define AXI_RST 0x50
29
#define APB_PERIF_RST 0x8C
31
#define PERIF_RST 0x80
32
35
#define TOP_STICKY_RST 0x58
37
#define PER_STICKY_RST 0x88
38
41
#define STI_REG 24
43
#define STI_MASK 21
45
#define STI_BIT 16
47
#define RST_REG 8
49
#define RST_MASK 5
51
#define RST_BIT 0
52
55
#define SYNA_IMGPRC_RST \
56
((TOP_STICKY_RST << STI_REG) | (1 << STI_BIT) | (IMGPROC_RST << RST_REG) | (0 << RST_BIT))
57
58
#define SYNA_NPU_RST \
59
((TOP_STICKY_RST << STI_REG) | (0 << STI_BIT) | (NPU_RST << RST_REG) | (0 << RST_BIT))
60
61
#define SYNA_DMA0_RST \
62
((TOP_STICKY_RST << STI_REG) | (2 << STI_BIT) | (DMA0_RST << RST_REG) | (0 << RST_BIT))
63
64
#define SYNA_DMA1_RST \
65
((TOP_STICKY_RST << STI_REG) | (5 << STI_BIT) | (DMA1_RST << RST_REG) | (0 << RST_BIT))
66
67
#define SYNA_AXI_RST ((AXI_RST << RST_REG) | (0 << RST_BIT))
69
#define SYNA_OTP_RST ((TOP_STICKY_RST << STI_REG) | (3 << STI_BIT))
71
#define SYNA_CALIB_RST ((TOP_STICKY_RST << STI_REG) | (6 << STI_BIT))
73
#define SYNA_USB_RST \
74
((PER_STICKY_RST << STI_REG) | (0 << STI_BIT) | (7 << STI_MASK) | (PERIF_RST << RST_REG) | \
75
(4 << RST_BIT))
76
77
#define SYNA_UART0_RST ((APB_PERIF_RST << RST_REG) | (0 << RST_BIT))
79
#define SYNA_UART1_RST ((APB_PERIF_RST << RST_REG) | (1 << RST_BIT))
81
#define SYNA_I2C0M_RST ((APB_PERIF_RST << RST_REG) | (2 << RST_BIT))
83
#define SYNA_I2C1M_RST ((APB_PERIF_RST << RST_REG) | (3 << RST_BIT))
85
#define SYNA_I2CS_RST ((APB_PERIF_RST << RST_REG) | (4 << RST_BIT))
87
#define SYNA_I3C0_RST ((APB_PERIF_RST << RST_REG) | (5 << RST_BIT))
89
#define SYNA_I3C1_RST ((APB_PERIF_RST << RST_REG) | (6 << RST_BIT))
91
#define SYNA_SPIM_RST ((APB_PERIF_RST << RST_REG) | (7 << RST_BIT))
93
#define SYNA_SPIS_RST ((APB_PERIF_RST << RST_REG) | (8 << RST_BIT))
95
#define SYNA_GPIO_RST ((APB_PERIF_RST << RST_REG) | (9 << RST_BIT))
97
#define SYNA_SWIRE_RST ((APB_PERIF_RST << RST_REG) | (19 << RST_BIT))
99
#define SYNA_SD0_RST ((PERIF_RST << RST_REG) | (2 << RST_BIT))
101
#define SYNA_SD1_RST ((PERIF_RST << RST_REG) | (3 << RST_BIT))
103
#define SYNA_XSPI_RST ((PERIF_RST << RST_REG) | (5 << RST_BIT))
104
105
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_SYNA_SR100_RESET_H_ */
util_macro.h
Macro utilities.
zephyr
dt-bindings
reset
syna_sr100_reset.h
Generated on
for Zephyr API Documentation by
1.16.1