xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/reset/ti-syscon.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-or-later */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * TI Syscon Reset definitions
4*c66ec88fSEmmanuel Vadot  *
5*c66ec88fSEmmanuel Vadot  * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
6*c66ec88fSEmmanuel Vadot  */
7*c66ec88fSEmmanuel Vadot 
8*c66ec88fSEmmanuel Vadot #ifndef __DT_BINDINGS_RESET_TI_SYSCON_H__
9*c66ec88fSEmmanuel Vadot #define __DT_BINDINGS_RESET_TI_SYSCON_H__
10*c66ec88fSEmmanuel Vadot 
11*c66ec88fSEmmanuel Vadot /*
12*c66ec88fSEmmanuel Vadot  * The reset does not support the feature and corresponding
13*c66ec88fSEmmanuel Vadot  * values are not valid
14*c66ec88fSEmmanuel Vadot  */
15*c66ec88fSEmmanuel Vadot #define ASSERT_NONE	(1 << 0)
16*c66ec88fSEmmanuel Vadot #define DEASSERT_NONE	(1 << 1)
17*c66ec88fSEmmanuel Vadot #define STATUS_NONE	(1 << 2)
18*c66ec88fSEmmanuel Vadot 
19*c66ec88fSEmmanuel Vadot /* When set this function is activated by setting(vs clearing) this bit */
20*c66ec88fSEmmanuel Vadot #define ASSERT_SET	(1 << 3)
21*c66ec88fSEmmanuel Vadot #define DEASSERT_SET	(1 << 4)
22*c66ec88fSEmmanuel Vadot #define STATUS_SET	(1 << 5)
23*c66ec88fSEmmanuel Vadot 
24*c66ec88fSEmmanuel Vadot /* The following are the inverse of the above and are added for consistency */
25*c66ec88fSEmmanuel Vadot #define ASSERT_CLEAR	(0 << 3)
26*c66ec88fSEmmanuel Vadot #define DEASSERT_CLEAR	(0 << 4)
27*c66ec88fSEmmanuel Vadot #define STATUS_CLEAR	(0 << 5)
28*c66ec88fSEmmanuel Vadot 
29*c66ec88fSEmmanuel Vadot #endif
30