omap_hwmod_common_data.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 <plat/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. };
  47. /*
  48. * omap_hwmod class data
  49. */
  50. struct omap_hwmod_class l3_hwmod_class = {
  51. .name = "l3"
  52. };
  53. struct omap_hwmod_class l4_hwmod_class = {
  54. .name = "l4"
  55. };
  56. struct omap_hwmod_class mpu_hwmod_class = {
  57. .name = "mpu"
  58. };
  59. struct omap_hwmod_class iva_hwmod_class = {
  60. .name = "iva"
  61. };