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

#include <zephyr/devicetree.h>
#include "driver/charger/sm5803.h"

#define SM5803_CHG_COMPAT siliconmitus_sm5803

#define CHG_CONFIG_SM5803(id)                                \
	{                                                    \
		.i2c_port = I2C_PORT(DT_PHANDLE(id, port)),  \
		.i2c_addr_flags = SM5803_ADDR_CHARGER_FLAGS, \
		.drv = &sm5803_drv,                          \
	},