mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 08:31:52 +00:00
GPIO: Rename and move board_set_gpio_hibernate_state
This function is no longer GPIO specific and fits better as part of the system API, so this moves it there and renames it board_hibernate_late. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: I39d3ecedadaaa22142cc82c79f5d25c891f3f38c Reviewed-on: https://chromium-review.googlesource.com/330124 Commit-Ready: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
@@ -225,7 +225,4 @@ void gpio_set_flags_by_mask(uint32_t port, uint32_t mask, uint32_t flags);
|
||||
*/
|
||||
void gpio_set_alternate_function(uint32_t port, uint32_t mask, int func);
|
||||
|
||||
/* Optional board-level function to set hibernate GPIO states. */
|
||||
void board_set_gpio_hibernate_state(void) __attribute__((weak));
|
||||
|
||||
#endif /* __CROS_EC_GPIO_H */
|
||||
|
||||
@@ -268,11 +268,13 @@ int system_set_vbnvcontext(const uint8_t *block);
|
||||
void system_hibernate(uint32_t seconds, uint32_t microseconds);
|
||||
|
||||
/**
|
||||
* Optional board-level callback function called prior to initiating chip-level
|
||||
* hibernate sequence. This function may or may not return, depending if the
|
||||
* board implements an alternate hibernate method.
|
||||
* Optional board-level callback functions called before and after initiating
|
||||
* chip-level hibernate sequence. These function may or may not return,
|
||||
* depending if the board implements an alternate hibernate method. The _late
|
||||
* version is called after interrupts are disabled.
|
||||
*/
|
||||
void board_hibernate(void) __attribute__((weak));
|
||||
void board_hibernate_late(void) __attribute__((weak));
|
||||
|
||||
/* Minimum duration to get proper hibernation */
|
||||
#define SYSTEM_HIB_MINIMUM_DURATION 0, 150000
|
||||
|
||||
Reference in New Issue
Block a user