diff options
Diffstat (limited to 'arch/arm/plat-omap/include/plat')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index 7eaa8edf3b14..d1f1265fc4a6 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h | |||
@@ -415,14 +415,24 @@ struct omap_hwmod_omap4_prcm { | |||
415 | * @name: name of the hwmod_class | 415 | * @name: name of the hwmod_class |
416 | * @sysc: device SYSCONFIG/SYSSTATUS register data | 416 | * @sysc: device SYSCONFIG/SYSSTATUS register data |
417 | * @rev: revision of the IP class | 417 | * @rev: revision of the IP class |
418 | * @pre_shutdown: ptr to fn to be executed immediately prior to device shutdown | ||
418 | * | 419 | * |
419 | * Represent the class of a OMAP hardware "modules" (e.g. timer, | 420 | * Represent the class of a OMAP hardware "modules" (e.g. timer, |
420 | * smartreflex, gpio, uart...) | 421 | * smartreflex, gpio, uart...) |
422 | * | ||
423 | * @pre_shutdown is a function that will be run immediately before | ||
424 | * hwmod clocks are disabled, etc. It is intended for use for hwmods | ||
425 | * like the MPU watchdog, which cannot be disabled with the standard | ||
426 | * omap_hwmod_shutdown(). The function should return 0 upon success, | ||
427 | * or some negative error upon failure. Returning an error will cause | ||
428 | * omap_hwmod_shutdown() to abort the device shutdown and return an | ||
429 | * error. | ||
421 | */ | 430 | */ |
422 | struct omap_hwmod_class { | 431 | struct omap_hwmod_class { |
423 | const char *name; | 432 | const char *name; |
424 | struct omap_hwmod_class_sysconfig *sysc; | 433 | struct omap_hwmod_class_sysconfig *sysc; |
425 | u32 rev; | 434 | u32 rev; |
435 | int (*pre_shutdown)(struct omap_hwmod *oh); | ||
426 | }; | 436 | }; |
427 | 437 | ||
428 | /** | 438 | /** |