1. slimport basic function 2. set gpio 50 as 27M clock (function_2, refer to document 80-N7752-2 p.435) 3. request USB_ID pin (gpio 77) to let detect pin work 4. the version history: V0.1 The gerenal slimport ANX7808 driver for customer evalutaion and application. 2013-01-08 V0.2 1. Add pull down ID_OUT pin once the slimport accessary is plugged, and left it to default status once the accessay is unplugged. 2. If the incoming video is YUV, convert it to RGB colorspace, since our RGB dangle only support RGB. 2013-01-29 V0.3 1. Correct the error in eye diagram test. 2. Correct the phy auto test. Change-Id: I0d35945b5682ca736ec00b3d5166001f2ab5dfc3 Change-Id: Ibdf3ba27e119f0ae361b28b1f33f7522d5fdf758 Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67937 Reviewed-by: Yetta Wu <Yetta_Wu@asus.com> Tested-by: Yetta Wu <Yetta_Wu@asus.com> Reviewed-by: Warlock Tai <warlock_tai@asus.com>
73 lines
1.8 KiB
C
73 lines
1.8 KiB
C
/*
|
|
* Copyright(c) 2012, Analogix Semiconductor. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
#ifndef _SLIMPORT_H
|
|
#define _SLIMPORT_H
|
|
|
|
#define DEBUG
|
|
|
|
#ifdef DEBUG
|
|
#define SP_DEV_DBG(args... ) pr_info(args)
|
|
#else
|
|
#define SP_DEV_DBG(args... ) (void)0
|
|
#endif
|
|
|
|
#define SP_DEV_NOTICE(args... ) pr_notice(args)
|
|
#define SP_DEV_ERR(args... ) pr_err(args)
|
|
|
|
#define SSC_EN
|
|
#define HDCP_EN
|
|
|
|
#if 0
|
|
#define SSC_1
|
|
#define EYE_TEST
|
|
#define EDID_DEBUG_PRINT
|
|
#endif
|
|
|
|
#define AUX_ERR 1
|
|
#define AUX_OK 0
|
|
|
|
extern bool sp_tx_hw_lt_done;
|
|
extern bool sp_tx_hw_lt_enable;
|
|
extern bool sp_tx_link_config_done ;
|
|
extern enum SP_TX_System_State sp_tx_system_state;
|
|
extern enum RX_CBL_TYPE sp_tx_rx_type;
|
|
extern enum RX_CBL_TYPE sp_tx_rx_type_backup;
|
|
extern unchar sp_tx_pd_mode;
|
|
|
|
extern unchar bedid_break;
|
|
extern struct i2c_client *anx7808_client;
|
|
|
|
int sp_read_reg(uint8_t slave_addr, uint8_t offset, uint8_t *buf);
|
|
int sp_write_reg(uint8_t slave_addr, uint8_t offset, uint8_t value);
|
|
void sp_tx_hardware_poweron(struct i2c_client *client);
|
|
void sp_tx_hardware_powerdown(struct i2c_client *client);
|
|
int slimport_read_edid_block(int block, uint8_t *edid_buf);
|
|
|
|
#ifdef CONFIG_SLIMPORT_ANX7808
|
|
bool slimport_is_connected(void);
|
|
unchar slimport_get_link_bw(void);
|
|
#else
|
|
static inline bool slimport_is_connected(void)
|
|
{
|
|
return false;
|
|
}
|
|
static inline unchar sp_get_link_bw(void)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|