diff options
author | Tony Lindgren <tony@atomide.com> | 2018-02-22 23:03:48 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-02-26 23:16:11 +0100 |
commit | a885f0fe209f262efa2c1cac9278a5774e5f7a80 (patch) | |
tree | 58e72236564523bc944d3c3f57332544f193f593 /include | |
parent | bus: ti-sysc: Add support for platform data callbacks (diff) | |
download | linux-a885f0fe209f262efa2c1cac9278a5774e5f7a80.tar.xz linux-a885f0fe209f262efa2c1cac9278a5774e5f7a80.zip |
bus: ti-sysc: Handle some devices in omap_device compatible way
Now that ti-sysc can manage child devices, we must also be backwards
compatible with the current omap_device code. With omap_device, we
assume that the child device manages the interconnect target module
directly.
The drivers needing special handling are the ones that still set
pm_runtime_irq_safe(). In the long run we want to update those drivers
as otherwise they will cause problems with genpd as a permanent PM
runtime usage count is set on the parent device.
We can handle omap_device these devices by improving the ti-sysc quirk
handling to detect the devices needing special handling based on
register map and revision register if usable. We also need to implement
dev_pm_domain for these child devices just like omap_device does.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/ti-sysc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/ti-sysc.h b/include/linux/platform_data/ti-sysc.h index 4176cb90e195..80ce28d40832 100644 --- a/include/linux/platform_data/ti-sysc.h +++ b/include/linux/platform_data/ti-sysc.h @@ -45,6 +45,7 @@ struct sysc_regbits { s8 emufree_shift; }; +#define SYSC_QUIRK_LEGACY_IDLE BIT(8) #define SYSC_QUIRK_RESET_STATUS BIT(7) #define SYSC_QUIRK_NO_IDLE_ON_INIT BIT(6) #define SYSC_QUIRK_NO_RESET_ON_INIT BIT(5) |