omap_hwmod_common_data.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * omap_hwmod common data structures
  3. *
  4. * Copyright (C) 2010 Texas Instruments, Inc.
  5. * Thara Gopinath <thara@ti.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This data/structures are to be used while defining OMAP on-chip module
  12. * data and their integration with other OMAP modules and Linux.
  13. */
  14. #include <plat/omap_hwmod.h>
  15. /**
  16. * struct omap_hwmod_sysc_type1 - TYPE1 sysconfig scheme.
  17. *
  18. * To be used by hwmod structure to specify the sysconfig offsets
  19. * if the device ip is compliant with the original PRCM protocol
  20. * defined for OMAP2420.
  21. */
  22. struct omap_hwmod_sysc_fields omap_hwmod_sysc_type1 = {
  23. .midle_shift = SYSC_TYPE1_MIDLEMODE_SHIFT,
  24. .clkact_shift = SYSC_TYPE1_CLOCKACTIVITY_SHIFT,
  25. .sidle_shift = SYSC_TYPE1_SIDLEMODE_SHIFT,
  26. .enwkup_shift = SYSC_TYPE1_ENAWAKEUP_SHIFT,
  27. .srst_shift = SYSC_TYPE1_SOFTRESET_SHIFT,
  28. .autoidle_shift = SYSC_TYPE1_AUTOIDLE_SHIFT,
  29. };
  30. /**
  31. * struct omap_hwmod_sysc_type2 - TYPE2 sysconfig scheme.
  32. *
  33. * To be used by hwmod structure to specify the sysconfig offsets if the
  34. * device ip is compliant with the new PRCM protocol defined for new
  35. * OMAP4 IPs.
  36. */
  37. struct omap_hwmod_sysc_fields omap_hwmod_sysc_type2 = {
  38. .midle_shift = SYSC_TYPE2_MIDLEMODE_SHIFT,
  39. .sidle_shift = SYSC_TYPE2_SIDLEMODE_SHIFT,
  40. .srst_shift = SYSC_TYPE2_SOFTRESET_SHIFT,
  41. };