brintos

brintos / linux-shallow public Read only

0
0
Text · 1.7 KiB · 64f3ccc Raw
71 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * wm8804.h  --  WM8804 S/PDIF transceiver driver4 *5 * Copyright 2010 Wolfson Microelectronics plc6 *7 * Author: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>8 */9 10#ifndef _WM8804_H11#define _WM8804_H12 13#include <linux/regmap.h>14 15/*16 * Register values.17 */18#define WM8804_RST_DEVID1			0x0019#define WM8804_DEVID2				0x0120#define WM8804_DEVREV				0x0221#define WM8804_PLL1				0x0322#define WM8804_PLL2				0x0423#define WM8804_PLL3				0x0524#define WM8804_PLL4				0x0625#define WM8804_PLL5				0x0726#define WM8804_PLL6				0x0827#define WM8804_SPDMODE				0x0928#define WM8804_INTMASK				0x0A29#define WM8804_INTSTAT				0x0B30#define WM8804_SPDSTAT				0x0C31#define WM8804_RXCHAN1				0x0D32#define WM8804_RXCHAN2				0x0E33#define WM8804_RXCHAN3				0x0F34#define WM8804_RXCHAN4				0x1035#define WM8804_RXCHAN5				0x1136#define WM8804_SPDTX1				0x1237#define WM8804_SPDTX2				0x1338#define WM8804_SPDTX3				0x1439#define WM8804_SPDTX4				0x1540#define WM8804_SPDTX5				0x1641#define WM8804_GPO0				0x1742#define WM8804_GPO1				0x1843#define WM8804_GPO2				0x1A44#define WM8804_AIFTX				0x1B45#define WM8804_AIFRX				0x1C46#define WM8804_SPDRX1				0x1D47#define WM8804_PWRDN				0x1E48 49#define WM8804_REGISTER_COUNT			3050#define WM8804_MAX_REGISTER			0x1E51 52#define WM8804_TX_CLKSRC_MCLK			153#define WM8804_TX_CLKSRC_PLL			254 55#define WM8804_CLKOUT_SRC_CLK1			356#define WM8804_CLKOUT_SRC_OSCCLK		457 58#define WM8804_CLKOUT_DIV			159#define WM8804_MCLK_DIV				260 61#define WM8804_MCLKDIV_256FS			062#define WM8804_MCLKDIV_128FS			163 64extern const struct regmap_config wm8804_regmap_config;65extern const struct dev_pm_ops wm8804_pm;66 67int wm8804_probe(struct device *dev, struct regmap *regmap);68void wm8804_remove(struct device *dev);69 70#endif  /* _WM8804_H */71