dscr.h 909 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  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. enum dscr_devstate_t {
  13. DSCR_DEVSTATE_ENABLED,
  14. DSCR_DEVSTATE_DISABLED,
  15. };
  16. /*
  17. * Set the device state of the device with the given ID.
  18. *
  19. * Individual drivers should use this to enable or disable the
  20. * hardware device. The devid used to identify the device being
  21. * controlled should be a property in the device's tree node.
  22. */
  23. extern void dscr_set_devstate(int devid, enum dscr_devstate_t state);
  24. /*
  25. * Assert or de-assert an RMII reset.
  26. */
  27. extern void dscr_rmii_reset(int id, int assert);
  28. extern void dscr_probe(void);
  29. #endif /* _ASM_C6X_DSCR_H */