summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/charger/chg_rt9490.h
blob: 44d81eac48065e09b19bfe15dd150d83c4b87851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright 2022 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "driver/charger/rt9490.h"

#include <zephyr/devicetree.h>

#define RT9490_CHG_COMPAT richtek_rt9490
#define RT9490_EMUL_COMPAT zephyr_rt9490_emul

#define CHG_CONFIG_RT9490(id)                      \
	{                                          \
		.i2c_port = I2C_PORT_BY_DEV(id),   \
		.i2c_addr_flags = DT_REG_ADDR(id), \
		.drv = &rt9490_drv,                \
	},