18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * TI Syscon Reset definitions
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_RESET_TI_SYSCON_H__
98c2ecf20Sopenharmony_ci#define __DT_BINDINGS_RESET_TI_SYSCON_H__
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/*
128c2ecf20Sopenharmony_ci * The reset does not support the feature and corresponding
138c2ecf20Sopenharmony_ci * values are not valid
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci#define ASSERT_NONE	(1 << 0)
168c2ecf20Sopenharmony_ci#define DEASSERT_NONE	(1 << 1)
178c2ecf20Sopenharmony_ci#define STATUS_NONE	(1 << 2)
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/* When set this function is activated by setting(vs clearing) this bit */
208c2ecf20Sopenharmony_ci#define ASSERT_SET	(1 << 3)
218c2ecf20Sopenharmony_ci#define DEASSERT_SET	(1 << 4)
228c2ecf20Sopenharmony_ci#define STATUS_SET	(1 << 5)
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci/* The following are the inverse of the above and are added for consistency */
258c2ecf20Sopenharmony_ci#define ASSERT_CLEAR	(0 << 3)
268c2ecf20Sopenharmony_ci#define DEASSERT_CLEAR	(0 << 4)
278c2ecf20Sopenharmony_ci#define STATUS_CLEAR	(0 << 5)
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif
30