TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
mfd_max6639.c File Reference
Include dependency graph for mfd_max6639.c:

Data Structures

struct  max6639_config

Macros

#define DT_DRV_COMPAT   maxim_max6639
#define MAX6639_INIT(inst)

Functions

 LOG_MODULE_REGISTER (max6639_mfd, CONFIG_MFD_LOG_LEVEL)
static int max6639_init (const struct device *dev)
 DT_INST_FOREACH_STATUS_OKAY (MAX6639_INIT)

Macro Definition Documentation

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   maxim_max6639

◆ MAX6639_INIT

#define MAX6639_INIT ( inst)
Value:
static const struct max6639_config max6639_##inst##_config = { \
.i2c = I2C_DT_SPEC_INST_GET(inst), \
}; \
\
DEVICE_DT_INST_DEFINE(inst, max6639_init, NULL, NULL, &max6639_##inst##_config, \
POST_KERNEL, CONFIG_MFD_MAX6639_INIT_PRIORITY, NULL);
#define NULL
Definition avs.c:45
#define I2C_DT_SPEC_INST_GET(inst)
static int max6639_init(const struct device *dev)
Definition mfd_max6639.c:23
Definition mfd_max6639.c:19

Function Documentation

◆ DT_INST_FOREACH_STATUS_OKAY()

DT_INST_FOREACH_STATUS_OKAY ( MAX6639_INIT )

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( max6639_mfd ,
CONFIG_MFD_LOG_LEVEL  )

◆ max6639_init()

int max6639_init ( const struct device * dev)
static