Merge tag 'arc-5.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
[linux-2.6-microblaze.git] / arch / c6x / include / asm / dscr.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *  Copyright (C) 2011 Texas Instruments Incorporated
4  *  Author: Mark Salter <msalter@redhat.com>
5  */
6 #ifndef _ASM_C6X_DSCR_H
7 #define _ASM_C6X_DSCR_H
8
9 enum dscr_devstate_t {
10         DSCR_DEVSTATE_ENABLED,
11         DSCR_DEVSTATE_DISABLED,
12 };
13
14 /*
15  * Set the device state of the device with the given ID.
16  *
17  * Individual drivers should use this to enable or disable the
18  * hardware device. The devid used to identify the device being
19  * controlled should be a property in the device's tree node.
20  */
21 extern void dscr_set_devstate(int devid, enum dscr_devstate_t state);
22
23 /*
24  * Assert or de-assert an RMII reset.
25  */
26 extern void dscr_rmii_reset(int id, int assert);
27
28 extern void dscr_probe(void);
29
30 #endif /* _ASM_C6X_DSCR_H */