summaryrefslogtreecommitdiff
path: root/include/pmu_tpschrome.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-07-19 16:26:36 -0700
committerChromeBot <chrome-bot@google.com>2013-07-23 11:14:16 -0700
commit64e38af781a42a346f59ef27c352f4818bfa1516 (patch)
treed4cadba6ebf88e5f41ab82008af9227a0187ba8c /include/pmu_tpschrome.h
parent4288e45815d8677147d582a46eb625a185f49162 (diff)
downloadchrome-ec-64e38af781a42a346f59ef27c352f4818bfa1516.tar.gz
Clean up and document PMU config options
No functional changes, just documenting and renaming. All boards which use the PMU must provide pmu_board_init(). This was already true - except that Daisy's pmu_board_init() was implemented as part of pmu_init() instead of its code living in board.c; I've moved the code there now. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all platforms Change-Id: I85ad06dc3b6287ad917fe13acf83182f24a8f23d Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/62906 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'include/pmu_tpschrome.h')
-rw-r--r--include/pmu_tpschrome.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/pmu_tpschrome.h b/include/pmu_tpschrome.h
index fc25fd345c..7c610a01b6 100644
--- a/include/pmu_tpschrome.h
+++ b/include/pmu_tpschrome.h
@@ -286,15 +286,14 @@ enum charging_state charge_get_state(void);
*/
int charge_keep_power_off(void);
-#ifdef CONFIG_PMU_BOARD_INIT
/**
* Initialize PMU registers using board settings.
*
- * Boards may supply this function if needed. This will be called from
- * pmu_init().
+ * Boards must supply this function. This will be called from pmu_init().
+ *
+ * @return EC_SUCCESS, or non-zero if error.
*/
int pmu_board_init(void);
-#endif
#endif /* __CROS_EC_TPSCHROME_H */