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