1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright 2020 Samsung Electronics Co., Ltd. 4 * Copyright 2020 Google LLC. 5 * Copyright 2024 Linaro Ltd. 6 */ 7 #ifndef __EXYNOS_ACPM_PMIC_H__ 8 #define __EXYNOS_ACPM_PMIC_H__ 9 10 #include <linux/types.h> 11 12 struct acpm_handle; 13 14 int acpm_pmic_read_reg(const struct acpm_handle *handle, 15 unsigned int acpm_chan_id, u8 type, u8 reg, u8 chan, 16 u8 *buf); 17 int acpm_pmic_bulk_read(const struct acpm_handle *handle, 18 unsigned int acpm_chan_id, u8 type, u8 reg, u8 chan, 19 u8 count, u8 *buf); 20 int acpm_pmic_write_reg(const struct acpm_handle *handle, 21 unsigned int acpm_chan_id, u8 type, u8 reg, u8 chan, 22 u8 value); 23 int acpm_pmic_bulk_write(const struct acpm_handle *handle, 24 unsigned int acpm_chan_id, u8 type, u8 reg, u8 chan, 25 u8 count, const u8 *buf); 26 int acpm_pmic_update_reg(const struct acpm_handle *handle, 27 unsigned int acpm_chan_id, u8 type, u8 reg, u8 chan, 28 u8 value, u8 mask); 29 #endif /* __EXYNOS_ACPM_PMIC_H__ */ 30