Path: blob/master/drivers/media/video/au0828/au0828-reg.h
17980 views
/*1* Driver for the Auvitek USB bridge2*3* Copyright (c) 2008 Steven Toth <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13*14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19*/2021/* We'll start to rename these registers once we have a better22* understanding of their meaning.23*/24#define REG_000 0x00025#define REG_001 0x00126#define REG_002 0x00227#define REG_003 0x0032829#define AU0828_SENSORCTRL_100 0x10030#define AU0828_SENSORCTRL_VBI_103 0x1033132/* I2C registers */33#define AU0828_I2C_TRIGGER_200 0x20034#define AU0828_I2C_STATUS_201 0x20135#define AU0828_I2C_CLK_DIVIDER_202 0x20236#define AU0828_I2C_DEST_ADDR_203 0x20337#define AU0828_I2C_WRITE_FIFO_205 0x20538#define AU0828_I2C_READ_FIFO_209 0x20939#define AU0828_I2C_MULTIBYTE_MODE_2FF 0x2ff4041/* Audio registers */42#define AU0828_AUDIOCTRL_50C 0x50C4344#define REG_600 0x6004546/*********************************************************************/47/* Here are constants for values associated with the above registers */4849/* I2C Trigger (Reg 0x200) */50#define AU0828_I2C_TRIGGER_WRITE 0x0151#define AU0828_I2C_TRIGGER_READ 0x2052#define AU0828_I2C_TRIGGER_HOLD 0x405354/* I2C Status (Reg 0x201) */55#define AU0828_I2C_STATUS_READ_DONE 0x0156#define AU0828_I2C_STATUS_NO_READ_ACK 0x0257#define AU0828_I2C_STATUS_WRITE_DONE 0x0458#define AU0828_I2C_STATUS_NO_WRITE_ACK 0x0859#define AU0828_I2C_STATUS_BUSY 0x106061/* I2C Clock Divider (Reg 0x202) */62#define AU0828_I2C_CLK_250KHZ 0x0763#define AU0828_I2C_CLK_100KHZ 0x1464#define AU0828_I2C_CLK_30KHZ 0x40656667