Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
23 lines
546 B
C
23 lines
546 B
C
/*
|
|
* ds1307.h - platform_data for the ds1307 (and variants) rtc driver
|
|
* (C) Copyright 2012 by Wolfram Sang, Pengutronix e.K.
|
|
* same license as the driver
|
|
*/
|
|
|
|
#ifndef _LINUX_DS1307_H
|
|
#define _LINUX_DS1307_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define DS1307_TRICKLE_CHARGER_250_OHM 0x01
|
|
#define DS1307_TRICKLE_CHARGER_2K_OHM 0x02
|
|
#define DS1307_TRICKLE_CHARGER_4K_OHM 0x03
|
|
#define DS1307_TRICKLE_CHARGER_NO_DIODE 0x04
|
|
#define DS1307_TRICKLE_CHARGER_DIODE 0x08
|
|
|
|
struct ds1307_platform_data {
|
|
u8 trickle_charger_setup;
|
|
};
|
|
|
|
#endif /* _LINUX_DS1307_H */
|