Commit | Line | Data |
---|---|---|
358f0e63 TG |
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 | ||
15 | #include <plat/omap_hwmod.h> | |
16 | ||
17 | /** | |
18 | * struct omap_hwmod_sysc_type1 - TYPE1 sysconfig scheme. | |
19 | * | |
20 | * To be used by hwmod structure to specify the sysconfig offsets | |
21 | * if the device ip is compliant with the original PRCM protocol | |
22 | * defined for OMAP2420. | |
23 | */ | |
24 | struct omap_hwmod_sysc_fields omap_hwmod_sysc_type1 = { | |
25 | .midle_shift = SYSC_TYPE1_MIDLEMODE_SHIFT, | |
26 | .clkact_shift = SYSC_TYPE1_CLOCKACTIVITY_SHIFT, | |
27 | .sidle_shift = SYSC_TYPE1_SIDLEMODE_SHIFT, | |
28 | .enwkup_shift = SYSC_TYPE1_ENAWAKEUP_SHIFT, | |
29 | .srst_shift = SYSC_TYPE1_SOFTRESET_SHIFT, | |
30 | .autoidle_shift = SYSC_TYPE1_AUTOIDLE_SHIFT, | |
31 | }; | |
32 | ||
33 | /** | |
34 | * struct omap_hwmod_sysc_type2 - TYPE2 sysconfig scheme. | |
35 | * | |
36 | * To be used by hwmod structure to specify the sysconfig offsets if the | |
37 | * device ip is compliant with the new PRCM protocol defined for new | |
38 | * OMAP4 IPs. | |
39 | */ | |
40 | struct omap_hwmod_sysc_fields omap_hwmod_sysc_type2 = { | |
41 | .midle_shift = SYSC_TYPE2_MIDLEMODE_SHIFT, | |
42 | .sidle_shift = SYSC_TYPE2_SIDLEMODE_SHIFT, | |
43 | .srst_shift = SYSC_TYPE2_SOFTRESET_SHIFT, | |
44 | }; |