Files
BPI-CM9-Linux/aml-comp/kernel/aml-6.12/common_drivers/drivers/i2c/busses/main.h
T
2026-08-24 10:03:24 +08:00

52 lines
842 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef _I2C_MAIN_H__
#define _I2C_MAIN_H__
#if IS_ENABLED(CONFIG_AMLOGIC_I2C_MESON)
int i2c_meson_init(void);
void i2c_meson_exit(void);
#else
static inline int i2c_meson_init(void)
{
return 0;
}
static inline void i2c_meson_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_I2C_MESON_T6W)
int i2c_meson_t6w_init(void);
void i2c_meson_t6w_exit(void);
#else
static inline int i2c_meson_t6w_init(void)
{
return 0;
}
static inline void i2c_meson_t6w_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_I2C_MESON_V2)
int i2c_meson_v2_init(void);
void i2c_meson_v2_exit(void);
#else
static inline int i2c_meson_v2_init(void)
{
return 0;
}
static inline void i2c_meson_v2_exit(void)
{
}
#endif
#endif /* _I2C_MAIN_H__ */