📄 philips_dtv_ref2.h
字号:
/*
* Copyright (c) 1995,1996,1997 by TriMedia Technologies.
*
* +------------------------------------------------------------------+
* | This software is furnished under a license and may only be used |
* | and copied in accordance with the terms and conditions of such |
* | a license and with the inclusion of this copyright notice. This |
* | software or any other copies of this software may not be provided|
* | or otherwise made available to any other person. The ownership |
* | and title of this software is not transferred. |
* | |
* | The information in this software is subject to change without |
* | any prior notice and should not be construed as a commitment by |
* | TriMedia Technologies. |
* | |
* | this code and information is provided "as is" without any |
* | warranty of any kind, either expressed or implied, including but |
* | not limited to the implied warranties of merchantability and/or |
* | fitness for any particular purpose. |
* +------------------------------------------------------------------+
*
* Module name : philips_dtv_ref2.h 1.5
*
* Last update : 18:53:24 - 00/11/09
*
* Description :
*
* Board Support Package for Trimedia peripherals.
* This particular file supports the Philips DTV Board.
* The purpose of this file is to define philips_dtv_ref2_config.
* This board config structure will be included in a table
* in boardcfg.c
*
* Revision :
*
*
*
*/
#include <tm1/tmBoard.h>
#ifndef _PHILIPS_DTV_REF2_H_
#define _PHILIPS_DTV_REF2_H_
#define IIC_EXPANDER_ADDRESS (0x70)
#define INPUT_IIC_EXPANDER_ADDRESS (0x72)
#define L3_IIC_EXPANDER_ADDRESS (0x74)
#define VIDMUX_IIC_EXPANDER_ADDRESS (0x76) /* requires mod */
#define DTV_REF2_FLASH_BASE_ADDRESS 0xFF400000
#define DTV_REF2_FLASH_SIZE 0x00200000 /* 8 MB */
#define DTV_REF2_FLASH_SECTOR_SIZE 0x00010000 /* 64 kB */
#define DTV_REF2_FLASH_SECTOR_NR (DTV_REF2_FLASH_SIZE / DTV_REF2_FLASH_SECTOR_SIZE)
/* L3 IIC expander:
address: 0x74
bit 0 Dout L3 mode
bit 1 Dout L3 clock
bit 2 Dout L3 data
bit 3 Dout L3 strobe
bit 4 Din L3 mode
bit 5 Din L3 clock
bit 6 Din L3 data
bit 7 Din L3 strobe
*/
#define REF2_OUTPUT_L3_MODE (0x01)
#define REF2_OUTPUT_L3_CLOCK (0x02)
#define REF2_OUTPUT_L3_DATA (0x04)
#define REF2_OUTPUT_L3_STROBE (0x08)
#define REF2_INPUT_L3_MODE (0x10)
#define REF2_INPUT_L3_CLOCK (0x20)
#define REF2_INPUT_L3_DATA (0x40)
#define REF2_INPUT_L3_STROBE (0x80)
/* Input IIC expander
address 0x72
bit 0 unused
bit 1 unused
bit 2 copyprotection
bit 3 powerdown
bit 4 lock/unlock
bit 5 48.0 kHz
bit 6 44.1 kHz
bit 7 32.0 kHz
*/
#define REF2_TDA1315_IN_IIC_POWERDOWN 0x08
#define REF2_TDA1315_IN_IIC_FREQUENCY_MASK 0xE0
#define REF2_TDA1315_IN_IIC_44100_HZ 0xA0
#define REF2_TDA1315_IN_IIC_48000_HZ 0xC0
#define REF2_TDA1315_IN_IIC_32000_HZ 0x60
/* IIC expander - contains audio mode for multi channel audio out
address 0x70
bit 0 SRESET
bit 1 Afe reset
bit 2 audio mode 1 channel mode 1
bit 3 audio mode 2 channel mode 2
bit 4 input mode for color key
bit 5 audio mode 3 16/32 bits
bit 6 audio mode 4 not used
bit 7 audio mode 5 reset audio FPGA
*/
#define REF2_OUTPUT_IIC_AUDIOMODE_1 0x04
#define REF2_OUTPUT_IIC_AUDIOMODE_2 0x08
#define REF2_OUTPUT_IIC_AUDIOMODE_3 0x20
#define REF2_OUTPUT_IIC_AUDIOMODE_4 0x40
#define REF2_OUTPUT_IIC_AUDIOMODE_5 0x80
#define REF2_OUTPUT_IIC_AUDIOMODE_MASK (REF2_OUTPUT_IIC_AUDIOMODE_1 | \
REF2_OUTPUT_IIC_AUDIOMODE_2 | \
REF2_OUTPUT_IIC_AUDIOMODE_3 | \
REF2_OUTPUT_IIC_AUDIOMODE_4 | \
REF2_OUTPUT_IIC_AUDIOMODE_5)
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__cplusplus)
}
#endif
#endif /* _PHILIPS_DTV_REF2_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -