m66592.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * M66592 driver platform data
  3. *
  4. * Copyright (C) 2009 Renesas Solutions Corp.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. *
  19. */
  20. #ifndef __LINUX_USB_M66592_H
  21. #define __LINUX_USB_M66592_H
  22. #define M66592_PLATDATA_XTAL_12MHZ 0x01
  23. #define M66592_PLATDATA_XTAL_24MHZ 0x02
  24. #define M66592_PLATDATA_XTAL_48MHZ 0x03
  25. struct m66592_platdata {
  26. /* one = on chip controller, zero = external controller */
  27. unsigned on_chip:1;
  28. /* one = big endian, zero = little endian */
  29. unsigned endian:1;
  30. /* (external controller only) M66592_PLATDATA_XTAL_nnMHZ */
  31. unsigned xtal:2;
  32. /* (external controller only) one = 3.3V, zero = 1.5V */
  33. unsigned vif:1;
  34. /* (external controller only) set one = WR0_N shorted to WR1_N */
  35. unsigned wr0_shorted_to_wr1:1;
  36. };
  37. #endif /* __LINUX_USB_M66592_H */