We've had minimal OCP softreset support in ti-sysc interconnect target module driver only used for MCAN driver so far. But it turns out that MCAN has the sysstatus register resetdone bit inverted compared to most other modules. Let's make OCP softreset work for other typical cases with reset status in sysstatus or sysconfig register so we can use the new functions for sysc_enable_module() and sysc_disable_module() without "ti,hwmods" property in the following patches.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -47,6 +47,7 @@ struct sysc_regbits { · 46 unmodified lines | |||
| 47 | s8 emufree_shift; | 47 | s8 emufree_shift; |
| 48 | }; | 48 | }; |
| 49 | 49 | ||
| 50 | #define SYSS_QUIRK_RESETDONE_INVERTED BIT(14) | ||
| 50 | #define SYSC_QUIRK_SWSUP_MSTANDBY BIT(13) | 51 | #define SYSC_QUIRK_SWSUP_MSTANDBY BIT(13) |
| 51 | #define SYSC_QUIRK_SWSUP_SIDLE_ACT BIT(12) | 52 | #define SYSC_QUIRK_SWSUP_SIDLE_ACT BIT(12) |
| 52 | #define SYSC_QUIRK_SWSUP_SIDLE BIT(11) | 53 | #define SYSC_QUIRK_SWSUP_SIDLE BIT(11) |