资源简介
sil9022 sil9034 HDMI 输出芯片驱动原代码,IIC通讯。
代码片段和文件信息
//------------------------------------------------------------------------------
// File Name: siHdmiTx_902x_TPI.c
// File Description: this file is used to call initalization of 902x including HDMI TX TPI
// processing EDID HDCP and CEC.
//
// Create Date: 07/22/2010
//
// Modification history:
// - 07/22/2010 Add file desription and comment
//
//
// Copyright ?2002-2010 Silicon Image Inc. All rights reserved.
//
// No part of this work may be reproduced modified distributed transmitted
// transcribed or translated into any language or computer format in any form
// or by any means without written permission of: Silicon Image Inc.
// 1060 East Arques Avenue Sunnyvale California 94085
//------------------------------------------------------------------------------
/*
*
* Copyright (c) 2006 Hisilicon Co. Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*
*
* History:
* 10-April-2006 create this file
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
//#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include “sil9024.h“
#define HI_GPIO_I2C
#ifdef HI_GPIO_I2C
#include “gpio_i2c.h“
#else
#include “i2c.h“
#endif
#define DEV_NAME “sil9024“
#define DEBUG_LEVEL 1
#define DPRINTK(levelfmtargs...) do{ if(level < DEBUG_LEVEL)\
printk(KERN_INFO “%s [%s %d]: “ fmt “\n“DEV_NAME__FUNCTION____LINE__##args);\
}while(0)
static unsigned int open_cnt = 0;
static unsigned int norm = 9;
//#include “siHdmiTx_902x_TPI.h“
static struct timer_list sil902x_timer;
#define TIMER_DELAY (HZ/10)
SIHDMITX_CONFIG siHdmiTx;
GLOBAL_SYSTEM g_sys;
GLOBAL_HDCP g_hdcp;
GLOBAL_EDID g_edid;
byte tpivmode[3]; // saved TPI Reg0x08/Reg0x0
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 266 2010-08-11 16:32 sil9034\Makefile
文件 157 2010-08-11 16:32 sil9034\README.txt
文件 141 2010-08-11 16:32 sil9034\sil9034.h
文件 9111 2010-08-11 16:32 sil9034\sil9034_def.h
文件 5522 2010-08-11 16:32 sil9034\sil_9034.c
文件 426 2012-08-31 13:02 sil9022\gpio_i2c.h
文件 363 2012-08-31 13:02 sil9022\Makefile
文件 265 2012-08-31 13:02 sil9022\readme.txt
文件 121645 2012-08-31 13:02 sil9022\sil9024.c
文件 74327 2012-08-31 13:02 sil9022\sil9024.h
目录 0 2017-10-18 15:32 sil9034
目录 0 2017-10-18 15:32 sil9022
----------- --------- ---------- ----- ----
212223 12
评论
共有 条评论