1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2011 by Amaury Pouly
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef POWERMGMT_IMX233_H
22 #define POWERMGMT_IMX233_H
25 #include "powermgmt.h"
27 void powermgmt_init_target(void);
28 void charging_algorithm_step(void);
29 void charging_algorithm_close(void);
31 struct imx233_powermgmt_info_t
33 enum charge_state_type state
;
34 int charging_timeout
; /* time in tick before timeout, -1 if n/a */
35 int topoff_timeout
; /* ditto */
36 int incr_4p2_ilimit_timeout
; /* ditto */
39 struct imx233_powermgmt_info_t
imx233_powermgmt_get_info(void);
41 #endif /* POWERMGMT_IMX233_H */