25 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _LINUX_ADAU7118_H3#define _LINUX_ADAU7118_H4 5struct regmap;6struct device;7 8/* register map */9#define ADAU7118_REG_VENDOR_ID 0x0010#define ADAU7118_REG_DEVICE_ID1 0x0111#define ADAU7118_REG_DEVICE_ID2 0x0212#define ADAU7118_REG_REVISION_ID 0x0313#define ADAU7118_REG_ENABLES 0x0414#define ADAU7118_REG_DEC_RATIO_CLK_MAP 0x0515#define ADAU7118_REG_HPF_CONTROL 0x0616#define ADAU7118_REG_SPT_CTRL1 0x0717#define ADAU7118_REG_SPT_CTRL2 0x0818#define ADAU7118_REG_SPT_CX(num) (0x09 + (num))19#define ADAU7118_REG_DRIVE_STRENGTH 0x1120#define ADAU7118_REG_RESET 0x1221 22int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode);23 24#endif25