OSDN Git Service

ARM: OMAP2+: Initialize SoC PM later
authorTony Lindgren <tony@atomide.com>
Mon, 16 Apr 2018 17:23:46 +0000 (10:23 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Apr 2018 19:04:51 +0000 (12:04 -0700)
commit02b83dcb3db7974cc25834b67ffac7eb90ce56ac
tree0769846454f047728c1ee301342ebec607865a43
parent71941002ad140cba0ee922a2bc9f5dcf9ac70b54
ARM: OMAP2+: Initialize SoC PM later

There's no need to probe devices until at module_init time and we
currently have at least PM trying to use I2C for PMICs early on.

As only a part of the SoC init_early is SoC specific, we only need to call
the SoC specific PM init function. And we can modify omap2_common_pm_late_init()
so it becomes a late_initcall().

Note that this changes am335x to call omap2_clk_enable_autoidle_all() that
seems to be missing currently.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/common.h
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/pm33xx-core.c