]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ARM: OMAP2+: Allocate struct omap_hwmod based on dts data
authorTony Lindgren <tony@atomide.com>
Thu, 21 Mar 2019 18:00:21 +0000 (11:00 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 26 Mar 2019 18:26:26 +0000 (11:26 -0700)
commitb57250fa5eb35cd805e7eee7f7b5a4b3b3cb4227
tree5f1a952acd8c59506063c94e8bb891b21ea9f71a
parent6d63b12d182ec9924a8236f7cd1db5966c3bcd20
ARM: OMAP2+: Allocate struct omap_hwmod based on dts data

With ti-sysc interconnect target module, we can allocate struct omap_hwmod
data based on the devicetree data. This allows dropping the static SoC
specific data eventually so we will only boot with data we actually need.

To allocate struct omap_hwmod dynamically, we need to add a mutex for
modifying the list, and remove __init for few functions.

Note that we are not initialized oh->_clk or the optional clocks and their
related quirks. That can be directly handled by the interconnect target
module driver.

Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_hwmod.c