| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef _LINUX_ADAU7118_H |
| 3 | #define _LINUX_ADAU7118_H |
| 4 | |
| 5 | struct regmap; |
| 6 | struct device; |
| 7 | |
| 8 | /* register map */ |
| 9 | #define ADAU7118_REG_VENDOR_ID 0x00 |
| 10 | #define ADAU7118_REG_DEVICE_ID1 0x01 |
| 11 | #define ADAU7118_REG_DEVICE_ID2 0x02 |
| 12 | #define ADAU7118_REG_REVISION_ID 0x03 |
| 13 | #define ADAU7118_REG_ENABLES 0x04 |
| 14 | #define ADAU7118_REG_DEC_RATIO_CLK_MAP 0x05 |
| 15 | #define ADAU7118_REG_HPF_CONTROL 0x06 |
| 16 | #define ADAU7118_REG_SPT_CTRL1 0x07 |
| 17 | #define ADAU7118_REG_SPT_CTRL2 0x08 |
| 18 | #define ADAU7118_REG_SPT_CX(num) (0x09 + (num)) |
| 19 | #define ADAU7118_REG_DRIVE_STRENGTH 0x11 |
| 20 | #define ADAU7118_REG_RESET 0x12 |
| 21 | |
| 22 | int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode); |
| 23 | |
| 24 | #endif |
| 25 | |