diff options
author | Paul Walmsley <paul@pwsan.com> | 2011-02-28 13:58:14 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-02-28 14:04:35 -0500 |
commit | 550c8092c55c22db8f843bad070fd1731292a75e (patch) | |
tree | 99b8fa6d81398f3a3af7c143c327b93b96fa440d /arch/arm/plat-omap/include | |
parent | bac1a0f0bbf0b11b23fe714826f29fc9aeb35855 (diff) |
OMAP2+: hwmod: rename some init functions
Rename omap_hwmod_init() to omap_hwmod_register(). Rename
omap_hwmod_late_init() to omap_hwmod_setup_all(). Also change all of
the callers to reflect the new names. While here, update some
copyrights.
Suggested by Tony Lindgren <tony@atomide.com>.
N.B. The comment in mach-omap2/serial.c may no longer be correct, given
recent changes in init order.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoît Cousson <b-cousson@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index fedd82971c9e..afdf1971c51c 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * omap_hwmod macros, structures | 2 | * omap_hwmod macros, structures |
3 | * | 3 | * |
4 | * Copyright (C) 2009-2010 Nokia Corporation | 4 | * Copyright (C) 2009-2011 Nokia Corporation |
5 | * Paul Walmsley | 5 | * Paul Walmsley |
6 | * | 6 | * |
7 | * Created in collaboration with (alphabetical order): Benoît Cousson, | 7 | * Created in collaboration with (alphabetical order): Benoît Cousson, |
@@ -370,8 +370,10 @@ struct omap_hwmod_omap4_prcm { | |||
370 | * of standby, rather than relying on module smart-standby | 370 | * of standby, rather than relying on module smart-standby |
371 | * HWMOD_INIT_NO_RESET: don't reset this module at boot - important for | 371 | * HWMOD_INIT_NO_RESET: don't reset this module at boot - important for |
372 | * SDRAM controller, etc. XXX probably belongs outside the main hwmod file | 372 | * SDRAM controller, etc. XXX probably belongs outside the main hwmod file |
373 | * XXX Should be HWMOD_SETUP_NO_RESET | ||
373 | * HWMOD_INIT_NO_IDLE: don't idle this module at boot - important for SDRAM | 374 | * HWMOD_INIT_NO_IDLE: don't idle this module at boot - important for SDRAM |
374 | * controller, etc. XXX probably belongs outside the main hwmod file | 375 | * controller, etc. XXX probably belongs outside the main hwmod file |
376 | * XXX Should be HWMOD_SETUP_NO_IDLE | ||
375 | * HWMOD_NO_AUTOIDLE: disable module autoidle (OCP_SYSCONFIG.AUTOIDLE) | 377 | * HWMOD_NO_AUTOIDLE: disable module autoidle (OCP_SYSCONFIG.AUTOIDLE) |
376 | * when module is enabled, rather than the default, which is to | 378 | * when module is enabled, rather than the default, which is to |
377 | * enable autoidle | 379 | * enable autoidle |
@@ -535,7 +537,7 @@ struct omap_hwmod { | |||
535 | const struct omap_chip_id omap_chip; | 537 | const struct omap_chip_id omap_chip; |
536 | }; | 538 | }; |
537 | 539 | ||
538 | int omap_hwmod_init(struct omap_hwmod **ohs); | 540 | int omap_hwmod_register(struct omap_hwmod **ohs); |
539 | struct omap_hwmod *omap_hwmod_lookup(const char *name); | 541 | struct omap_hwmod *omap_hwmod_lookup(const char *name); |
540 | int omap_hwmod_for_each(int (*fn)(struct omap_hwmod *oh, void *data), | 542 | int omap_hwmod_for_each(int (*fn)(struct omap_hwmod *oh, void *data), |
541 | void *data); | 543 | void *data); |