blob: f6b095c3d3f501f14c956047c7a74131c899b793 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (C) 2011 Texas Instruments Incorporated
4 * Author: Mark Salter <msalter@redhat.com>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00005 */
6#ifndef _ASM_C6X_DSCR_H
7#define _ASM_C6X_DSCR_H
8
9enum 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 */
21extern void dscr_set_devstate(int devid, enum dscr_devstate_t state);
22
23/*
24 * Assert or de-assert an RMII reset.
25 */
26extern void dscr_rmii_reset(int id, int assert);
27
28extern void dscr_probe(void);
29
30#endif /* _ASM_C6X_DSCR_H */