brintos

brintos / linux-shallow public Read only

0
0
Text · 1.5 KiB · 5e35822 Raw
53 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 *  Driver for the Auvitek USB bridge4 *5 *  Copyright (c) 2008 Steven Toth <stoth@linuxtv.org>6 */7 8/* We'll start to rename these registers once we have a better9 * understanding of their meaning.10 */11#define REG_000 0x00012#define REG_001 0x00113#define REG_002 0x00214#define REG_003 0x00315 16#define AU0828_SENSORCTRL_100 0x10017#define AU0828_SENSORCTRL_VBI_103 0x10318 19/* I2C registers */20#define AU0828_I2C_TRIGGER_200		0x20021#define AU0828_I2C_STATUS_201		0x20122#define AU0828_I2C_CLK_DIVIDER_202	0x20223#define AU0828_I2C_DEST_ADDR_203	0x20324#define AU0828_I2C_WRITE_FIFO_205	0x20525#define AU0828_I2C_READ_FIFO_209	0x20926#define AU0828_I2C_MULTIBYTE_MODE_2FF	0x2ff27 28/* Audio registers */29#define AU0828_AUDIOCTRL_50C 0x50C30 31#define REG_600 0x60032 33/*********************************************************************/34/* Here are constants for values associated with the above registers */35 36/* I2C Trigger (Reg 0x200) */37#define AU0828_I2C_TRIGGER_WRITE	0x0138#define AU0828_I2C_TRIGGER_READ		0x2039#define AU0828_I2C_TRIGGER_HOLD		0x4040 41/* I2C Status (Reg 0x201) */42#define AU0828_I2C_STATUS_READ_DONE	0x0143#define AU0828_I2C_STATUS_NO_READ_ACK	0x0244#define AU0828_I2C_STATUS_WRITE_DONE	0x0445#define AU0828_I2C_STATUS_NO_WRITE_ACK	0x0846#define AU0828_I2C_STATUS_BUSY		0x1047 48/* I2C Clock Divider (Reg 0x202) */49#define AU0828_I2C_CLK_250KHZ 0x0750#define AU0828_I2C_CLK_100KHZ 0x1451#define AU0828_I2C_CLK_30KHZ  0x4052#define AU0828_I2C_CLK_20KHZ  0x6053