Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / c6x / include / asm / dscr.h
blobf6b095c3d3f501f14c956047c7a74131c899b793
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
9 enum dscr_devstate_t {
10 DSCR_DEVSTATE_ENABLED,
11 DSCR_DEVSTATE_DISABLED,
15 * Set the device state of the device with the given ID.
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.
21 extern void dscr_set_devstate(int devid, enum dscr_devstate_t state);
24 * Assert or de-assert an RMII reset.
26 extern void dscr_rmii_reset(int id, int assert);
28 extern void dscr_probe(void);
30 #endif /* _ASM_C6X_DSCR_H */