diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-12-21 17:25:10 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-12-21 21:55:11 -0500 |
commit | 4805734bcc5a6b28b527a13a5c1603a2912c9f48 (patch) | |
tree | e2f43f70814ef3bac279bedc511526149864c7fc /arch/arm/mach-omap2/board-igep0020.c | |
parent | b9e7683bbca638967a56e5d7fd4035a947109621 (diff) |
OMAP2+: io: split omap2_init_common_hw()
Split omap2_init_common_hw() into two functions. The first,
omap2_init_common_infrastructure(), initializes the hwmod code and
data, the OMAP PM code, and the clock code and data. The second,
omap2_init_common_devices(), handles any other early device
initialization that, for whatever reason, has not been or cannot be
moved to initcalls or early platform devices.
This patch is required for the hwmod postsetup patch, which allows
board files to change the state that hwmods should be placed into at
the conclusion of the hwmod _setup() function. For example, for a
board whose creators wish to ensure watchdog coverage across the
entire kernel boot process, code to change the watchdog's postsetup
state will be added in the board-*.c file between the
omap2_init_common_infrastructure() and omap2_init_common_devices() function
calls.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-igep0020.c')
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index c5bd537553c2..0afa3011db0f 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -520,7 +520,9 @@ static struct platform_device *igep2_devices[] __initdata = { | |||
520 | 520 | ||
521 | static void __init igep2_init_irq(void) | 521 | static void __init igep2_init_irq(void) |
522 | { | 522 | { |
523 | omap2_init_common_hw(m65kxxxxam_sdrc_params, m65kxxxxam_sdrc_params); | 523 | omap2_init_common_infrastructure(); |
524 | omap2_init_common_devices(m65kxxxxam_sdrc_params, | ||
525 | m65kxxxxam_sdrc_params); | ||
524 | omap_init_irq(); | 526 | omap_init_irq(); |
525 | } | 527 | } |
526 | 528 | ||