Thara Gopinath | 358f0e6 | 2010-02-24 12:05:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | * omap_hwmod common data structures |
| 3 | * |
| 4 | * Copyright (C) 2010 Texas Instruments, Inc. |
| 5 | * Thara Gopinath <thara@ti.com> |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 6 | * BenoƮt Cousson |
| 7 | * |
| 8 | * Copyright (C) 2010 Nokia Corporation |
| 9 | * Paul Walmsley |
Thara Gopinath | 358f0e6 | 2010-02-24 12:05:58 -0700 | [diff] [blame] | 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 | |
Tony Lindgren | 2a296c8 | 2012-10-02 17:41:35 -0700 | [diff] [blame] | 19 | #include "omap_hwmod.h" |
Thara Gopinath | 358f0e6 | 2010-02-24 12:05:58 -0700 | [diff] [blame] | 20 | |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 21 | #include "omap_hwmod_common_data.h" |
| 22 | |
Thara Gopinath | 358f0e6 | 2010-02-24 12:05:58 -0700 | [diff] [blame] | 23 | /** |
| 24 | * struct omap_hwmod_sysc_type1 - TYPE1 sysconfig scheme. |
| 25 | * |
| 26 | * To be used by hwmod structure to specify the sysconfig offsets |
| 27 | * if the device ip is compliant with the original PRCM protocol |
| 28 | * defined for OMAP2420. |
| 29 | */ |
| 30 | struct omap_hwmod_sysc_fields omap_hwmod_sysc_type1 = { |
| 31 | .midle_shift = SYSC_TYPE1_MIDLEMODE_SHIFT, |
| 32 | .clkact_shift = SYSC_TYPE1_CLOCKACTIVITY_SHIFT, |
| 33 | .sidle_shift = SYSC_TYPE1_SIDLEMODE_SHIFT, |
| 34 | .enwkup_shift = SYSC_TYPE1_ENAWAKEUP_SHIFT, |
| 35 | .srst_shift = SYSC_TYPE1_SOFTRESET_SHIFT, |
| 36 | .autoidle_shift = SYSC_TYPE1_AUTOIDLE_SHIFT, |
| 37 | }; |
| 38 | |
| 39 | /** |
| 40 | * struct omap_hwmod_sysc_type2 - TYPE2 sysconfig scheme. |
| 41 | * |
| 42 | * To be used by hwmod structure to specify the sysconfig offsets if the |
| 43 | * device ip is compliant with the new PRCM protocol defined for new |
| 44 | * OMAP4 IPs. |
| 45 | */ |
| 46 | struct omap_hwmod_sysc_fields omap_hwmod_sysc_type2 = { |
| 47 | .midle_shift = SYSC_TYPE2_MIDLEMODE_SHIFT, |
| 48 | .sidle_shift = SYSC_TYPE2_SIDLEMODE_SHIFT, |
| 49 | .srst_shift = SYSC_TYPE2_SOFTRESET_SHIFT, |
Kishon Vijay Abraham I | 6668546 | 2012-07-04 05:09:21 -0600 | [diff] [blame] | 50 | .dmadisable_shift = SYSC_TYPE2_DMADISABLE_SHIFT, |
Thara Gopinath | 358f0e6 | 2010-02-24 12:05:58 -0700 | [diff] [blame] | 51 | }; |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 52 | |
Vaibhav Hiremath | 248b3b3 | 2012-07-04 03:40:59 -0600 | [diff] [blame] | 53 | /** |
| 54 | * struct omap_hwmod_sysc_type3 - TYPE3 sysconfig scheme. |
| 55 | * Used by some IPs on AM33xx |
| 56 | */ |
| 57 | struct omap_hwmod_sysc_fields omap_hwmod_sysc_type3 = { |
| 58 | .midle_shift = SYSC_TYPE3_MIDLEMODE_SHIFT, |
| 59 | .sidle_shift = SYSC_TYPE3_SIDLEMODE_SHIFT, |
| 60 | }; |
| 61 | |
Archit Taneja | b923d40 | 2011-10-06 18:04:08 -0600 | [diff] [blame] | 62 | struct omap_dss_dispc_dev_attr omap2_3_dss_dispc_dev_attr = { |
| 63 | .manager_count = 2, |
| 64 | .has_framedonetv_irq = 0 |
| 65 | }; |