charge: allow boards to customize max battery poll time
Some designs need to keep their battery from going to sleep.
Allow boards to specify their max delay for polling the
battery.
BRANCH=octopus
TEST=Verify access battery once per 10 seconds by ec console.
#define CHARGE_POLL_PERIOD_CHARGE (MSEC * 250)
#define CHARGE_POLL_PERIOD_SHORT (MSEC * 100)
#define CHARGE_MIN_SLEEP_USEC (MSEC * 50)
+/* If a board hasn't provided a max sleep, use 1 minute as default */
+#ifndef CHARGE_MAX_SLEEP_USEC
#define CHARGE_MAX_SLEEP_USEC MINUTE
+#endif
/* Power states */
enum charge_state {
