linux/include/linux/mfd/pcf50633/mbc.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * mbc.h  -- Driver for NXP PCF50633 Main Battery Charger
 *
 * (C) 2006-2008 by Openmoko, Inc.
 * All rights reserved.
 */

#ifndef __LINUX_MFD_PCF50633_MBC_H
#define __LINUX_MFD_PCF50633_MBC_H

#include <linux/mfd/pcf50633/core.h>
#include <linux/platform_device.h>

#define PCF50633_REG_MBCC1
#define PCF50633_REG_MBCC2
#define PCF50633_REG_MBCC3
#define PCF50633_REG_MBCC4
#define PCF50633_REG_MBCC5
#define PCF50633_REG_MBCC6
#define PCF50633_REG_MBCC7
#define PCF50633_REG_MBCC8
#define PCF50633_REG_MBCS1
#define PCF50633_REG_MBCS2
#define PCF50633_REG_MBCS3

enum pcf50633_reg_mbcc1 {};
#define PCF50633_MBCC1_WDTIME_MASK

enum pcf50633_reg_mbcc2 {};

enum pcf50633_reg_mbcc7 {};
#define PCF50633_MBCC7_USB_MASK

enum pcf50633_reg_mbcc8 {};

enum pcf50633_reg_mbcs1 {};

enum pcf50633_reg_mbcs2_mbcmod {};
#define PCF50633_MBCS2_MBC_MASK
enum pcf50633_reg_mbcs2_chgstat {};
#define PCF50633_MBCS2_RESSTAT_AUTO

enum pcf50633_reg_mbcs3 {};

#define PCF50633_MBCC2_VBATCOND_MASK
#define PCF50633_MBCC2_VMAX_MASK

/* Charger status */
#define PCF50633_MBC_USB_ONLINE
#define PCF50633_MBC_USB_ACTIVE
#define PCF50633_MBC_ADAPTER_ONLINE
#define PCF50633_MBC_ADAPTER_ACTIVE

int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma);

int pcf50633_mbc_get_status(struct pcf50633 *);
int pcf50633_mbc_get_usb_online_status(struct pcf50633 *);

#endif