diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/ti-sysc.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/linux/platform_data/ti-sysc.h b/include/linux/platform_data/ti-sysc.h index 280466099b76..b76ace0135b3 100644 --- a/include/linux/platform_data/ti-sysc.h +++ b/include/linux/platform_data/ti-sysc.h | |||
| @@ -1,6 +1,21 @@ | |||
| 1 | #ifndef __TI_SYSC_DATA_H__ | 1 | #ifndef __TI_SYSC_DATA_H__ |
| 2 | #define __TI_SYSC_DATA_H__ | 2 | #define __TI_SYSC_DATA_H__ |
| 3 | 3 | ||
| 4 | enum ti_sysc_module_type { | ||
| 5 | TI_SYSC_OMAP2, | ||
| 6 | TI_SYSC_OMAP2_TIMER, | ||
| 7 | TI_SYSC_OMAP3_SHAM, | ||
| 8 | TI_SYSC_OMAP3_AES, | ||
| 9 | TI_SYSC_OMAP4, | ||
| 10 | TI_SYSC_OMAP4_TIMER, | ||
| 11 | TI_SYSC_OMAP4_SIMPLE, | ||
| 12 | TI_SYSC_OMAP34XX_SR, | ||
| 13 | TI_SYSC_OMAP36XX_SR, | ||
| 14 | TI_SYSC_OMAP4_SR, | ||
| 15 | TI_SYSC_OMAP4_MCASP, | ||
| 16 | TI_SYSC_OMAP4_USB_HOST_FS, | ||
| 17 | }; | ||
| 18 | |||
| 4 | /** | 19 | /** |
| 5 | * struct sysc_regbits - TI OCP_SYSCONFIG register field offsets | 20 | * struct sysc_regbits - TI OCP_SYSCONFIG register field offsets |
| 6 | * @midle_shift: Offset of the midle bit | 21 | * @midle_shift: Offset of the midle bit |
| @@ -26,4 +41,29 @@ struct sysc_regbits { | |||
| 26 | s8 emufree_shift; | 41 | s8 emufree_shift; |
| 27 | }; | 42 | }; |
| 28 | 43 | ||
| 44 | #define SYSC_QUIRK_UNCACHED BIT(1) | ||
| 45 | #define SYSC_QUIRK_USE_CLOCKACT BIT(0) | ||
| 46 | |||
| 47 | /** | ||
| 48 | * struct sysc_capabilities - capabilities for an interconnect target module | ||
| 49 | * | ||
| 50 | * @sysc_mask: bitmask of supported SYSCONFIG register bits | ||
| 51 | * @regbits: bitmask of SYSCONFIG register bits | ||
| 52 | * @mod_quirks: bitmask of module specific quirks | ||
| 53 | */ | ||
| 54 | struct sysc_capabilities { | ||
| 55 | const enum ti_sysc_module_type type; | ||
| 56 | const u32 sysc_mask; | ||
| 57 | const struct sysc_regbits *regbits; | ||
| 58 | const u32 mod_quirks; | ||
| 59 | }; | ||
| 60 | |||
| 61 | /** | ||
| 62 | * struct sysc_config - configuration for an interconnect target module | ||
| 63 | * @quirks: bitmask of enabled quirks | ||
| 64 | */ | ||
| 65 | struct sysc_config { | ||
| 66 | u32 quirks; | ||
| 67 | }; | ||
| 68 | |||
| 29 | #endif /* __TI_SYSC_DATA_H__ */ | 69 | #endif /* __TI_SYSC_DATA_H__ */ |
