usb_isp116x.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Board initialization code should put one of these into dev->platform_data
  3. * and place the isp116x onto platform_bus.
  4. */
  5. struct isp116x_platform_data {
  6. /* Enable internal resistors on downstream ports */
  7. unsigned sel15Kres:1;
  8. /* Chip's internal clock won't be stopped in suspended state.
  9. Setting/unsetting this bit takes effect only if
  10. 'remote_wakeup_enable' below is not set. */
  11. unsigned clknotstop:1;
  12. /* On-chip overcurrent protection */
  13. unsigned oc_enable:1;
  14. /* INT output polarity */
  15. unsigned int_act_high:1;
  16. /* INT edge or level triggered */
  17. unsigned int_edge_triggered:1;
  18. /* WAKEUP pin connected - NOT SUPPORTED */
  19. /* unsigned remote_wakeup_connected:1; */
  20. /* Wakeup by devices on usb bus enabled */
  21. unsigned remote_wakeup_enable:1;
  22. /* Switch or not to switch (keep always powered) */
  23. unsigned no_power_switching:1;
  24. /* Ganged port power switching (0) or individual port
  25. power switching (1) */
  26. unsigned power_switching_mode:1;
  27. /* Given port_power, msec/2 after power on till power good */
  28. u8 potpg;
  29. /* Hardware reset set/clear. If implemented, this function must:
  30. if set == 0, deassert chip's HW reset pin
  31. otherwise, assert chip's HW reset pin */
  32. void (*reset) (struct device * dev, int set);
  33. /* Hardware clock start/stop. If implemented, this function must:
  34. if start == 0, stop the external clock
  35. otherwise, start the external clock
  36. */
  37. void (*clock) (struct device * dev, int start);
  38. /* Inter-io delay (ns). The chip is picky about access timings; it
  39. expects at least:
  40. 150ns delay between consecutive accesses to DATA_REG,
  41. 300ns delay between access to ADDR_REG and DATA_REG
  42. OE, WE MUST NOT be changed during these intervals
  43. */
  44. void (*delay) (struct device * dev, int delay);
  45. };