aboutsummaryrefslogtreecommitdiff
path: root/arch/c6x/include/asm/dscr.h
blob: 561ba8332042e032815904ac6fd3c8eff8f82f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 *  Copyright (C) 2011 Texas Instruments Incorporated
 *  Author: Mark Salter <msalter@redhat.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 *
 */
#ifndef _ASM_C6X_DSCR_H
#define _ASM_C6X_DSCR_H

enum dscr_devstate_t {
	DSCR_DEVSTATE_ENABLED,
	DSCR_DEVSTATE_DISABLED,
};

/*
 * Set the device state of the device with the given ID.
 *
 * Individual drivers should use this to enable or disable the
 * hardware device. The devid used to identify the device being
 * controlled should be a property in the device's tree node.
 */
extern void dscr_set_devstate(int devid, enum dscr_devstate_t state);

/*
 * Assert or de-assert an RMII reset.
 */
extern void dscr_rmii_reset(int id, int assert);

extern void dscr_probe(void);

#endif /* _ASM_C6X_DSCR_H */