aboutsummaryrefslogtreecommitdiff
path: root/include/linux/slimport.h
blob: bd033a16aad7419e06f784e798465a2d7e25a149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * Copyright(c) 2012, LG Electronics Inc. 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 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 unchar sp_tx_hw_lt_done;
extern bool   sp_tx_hw_lt_enable;
extern unchar 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;

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(void);
void sp_tx_hardware_powerdown(void);
int slimport_read_edid_block(int block, uint8_t *edid_buf);

#ifdef CONFIG_SLIMPORT_ANX7808
bool slimport_is_connected(void);
unchar sp_get_link_bw(void);
void sp_set_link_bw(unchar link_bw);
#else
static inline bool slimport_is_connected(void)
{
	return false;
}
static inline unchar sp_get_link_bw(void)
{
	return 0;
}
static inline void sp_set_link_bw(unchar link_bw)
{
}
#endif
#endif