]> git.baikalelectronics.ru Git - kernel.git/commit
bus: ti-sysc: Make omap_hwmod_sysc_fields into sysc_regbits platform data
authorTony Lindgren <tony@atomide.com>
Fri, 15 Dec 2017 17:41:05 +0000 (09:41 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 21 Dec 2017 15:28:54 +0000 (07:28 -0800)
commit136e34f7a855cfe8ccbaa3a5f9f195a5d6646437
treefa107287f9d83dfa994e90658c18dee1b9f46fe3
parentf2dcf626574ee5c8e79de6afdfa932ca0d2c846c
bus: ti-sysc: Make omap_hwmod_sysc_fields into sysc_regbits platform data

We want to be able to configure hwmod sysc data from ti-sysc driver using
platform data callbacks. So let's make struct omap_hwmod_sysc_fields into
struct sysc_data and have it available for both ti-sysc driver and hwmod
code.

Note that we can make it use s8 instead of u8 as the hwmod code uses the
feature flags to check for this field. However, for ti-sysc we can use
-ENODEV to indicate a feature is not supported in the hardware and can
simplify the code that way.

And let's add also emufree_shift as the dts files will be describing the
hardware for the SYSCONFIG register capbilities mask.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h
arch/arm/mach-omap2/omap_hwmod_common_data.c
include/linux/platform_data/ti-sysc.h [new file with mode: 0644]