blob: 3fbb9dada8e8ebb580212bbfd99c666709e5d74a [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Platform data for the NXP PCA9468 battery charger driver.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef _PCA9468_CHARGER_H_
#define _PCA9468_CHARGER_H_
struct pca9468_platform_data {
int irq_gpio; /* GPIO pin that's connected to INT# */
unsigned int iin_cfg; /* Input Current Limit - uA unit */
unsigned int ichg_cfg; /* Charging Current - uA unit */
unsigned int v_float; /* V_Float Voltage - uV unit */
unsigned int iin_topoff; /* Input Topoff current -uV unit */
/* Switching frequency: 0 - 833kHz, ... , 3 - 980kHz */
unsigned int fsw_cfg;
/* NTC voltage threshold : 0~2.4V - uV unit */
unsigned int ntc_th;
/*
* Default charging mode:
* 0 - No direct charging
* 1 - 2:1 charging mode
* 2 - 4:1 charging mode
*/
unsigned int chg_mode;
};
#endif