omap_hwmod_common_data.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * omap_hwmod common data structures
  3. *
  4. * Copyright (C) 2010 Texas Instruments, Inc.
  5. * Thara Gopinath <thara@ti.com>
  6. * Benoît Cousson
  7. *
  8. * Copyright (C) 2010 Nokia Corporation
  9. * Paul Walmsley
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. *
  15. * This data/structures are to be used while defining OMAP on-chip module
  16. * data and their integration with other OMAP modules and Linux.
  17. */
  18. #include "omap_hwmod.h"
  19. #include "omap_hwmod_common_data.h"
  20. /**
  21. * struct omap_hwmod_sysc_type1 - TYPE1 sysconfig scheme.
  22. *
  23. * To be used by hwmod structure to specify the sysconfig offsets
  24. * if the device ip is compliant with the original PRCM protocol
  25. * defined for OMAP2420.
  26. */
  27. struct omap_hwmod_sysc_fields omap_hwmod_sysc_type1 = {
  28. .midle_shift = SYSC_TYPE1_MIDLEMODE_SHIFT,
  29. .clkact_shift = SYSC_TYPE1_CLOCKACTIVITY_SHIFT,
  30. .sidle_shift = SYSC_TYPE1_SIDLEMODE_SHIFT,
  31. .enwkup_shift = SYSC_TYPE1_ENAWAKEUP_SHIFT,
  32. .srst_shift = SYSC_TYPE1_SOFTRESET_SHIFT,
  33. .autoidle_shift = SYSC_TYPE1_AUTOIDLE_SHIFT,
  34. };
  35. /**
  36. * struct omap_hwmod_sysc_type2 - TYPE2 sysconfig scheme.
  37. *
  38. * To be used by hwmod structure to specify the sysconfig offsets if the
  39. * device ip is compliant with the new PRCM protocol defined for new
  40. * OMAP4 IPs.
  41. */
  42. struct omap_hwmod_sysc_fields omap_hwmod_sysc_type2 = {
  43. .midle_shift = SYSC_TYPE2_MIDLEMODE_SHIFT,
  44. .sidle_shift = SYSC_TYPE2_SIDLEMODE_SHIFT,
  45. .srst_shift = SYSC_TYPE2_SOFTRESET_SHIFT,
  46. .dmadisable_shift = SYSC_TYPE2_DMADISABLE_SHIFT,
  47. };
  48. /**
  49. * struct omap_hwmod_sysc_type3 - TYPE3 sysconfig scheme.
  50. * Used by some IPs on AM33xx
  51. */
  52. struct omap_hwmod_sysc_fields omap_hwmod_sysc_type3 = {
  53. .midle_shift = SYSC_TYPE3_MIDLEMODE_SHIFT,
  54. .sidle_shift = SYSC_TYPE3_SIDLEMODE_SHIFT,
  55. };
  56. struct omap_dss_dispc_dev_attr omap2_3_dss_dispc_dev_attr = {
  57. .manager_count = 2,
  58. .has_framedonetv_irq = 0
  59. };