blob: 561ba8332042e032815904ac6fd3c8eff8f82f28 [file] [log] [blame]
Mark Salter9de98fb2011-10-04 11:20:28 -04001/*
2 * Copyright (C) 2011 Texas Instruments Incorporated
3 * Author: Mark Salter <msalter@redhat.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 */
10#ifndef _ASM_C6X_DSCR_H
11#define _ASM_C6X_DSCR_H
12
13enum dscr_devstate_t {
14 DSCR_DEVSTATE_ENABLED,
15 DSCR_DEVSTATE_DISABLED,
16};
17
18/*
19 * Set the device state of the device with the given ID.
20 *
21 * Individual drivers should use this to enable or disable the
22 * hardware device. The devid used to identify the device being
23 * controlled should be a property in the device's tree node.
24 */
25extern void dscr_set_devstate(int devid, enum dscr_devstate_t state);
26
27/*
28 * Assert or de-assert an RMII reset.
29 */
30extern void dscr_rmii_reset(int id, int assert);
31
32extern void dscr_probe(void);
33
34#endif /* _ASM_C6X_DSCR_H */