blob: f55fd2cd7deb773551bd08230fc99aaf10b8ce1b [file] [log] [blame]
choongryeol.lee9b3c4f52012-07-11 16:35:09 -07001/*
2 * Copyright(c) 2012, LG Electronics Inc. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#ifndef __SLIMPORT_H
16#define __SLIMPORT_H
17
18
19#define SSC_EN
choongryeol.lee9b3c4f52012-07-11 16:35:09 -070020#define HDCP_EN
choongryeol.leea424eb42012-08-02 10:26:16 -070021
22#if 0
23#define SSC_1
24#define EYE_TEST
25#define EDID_DEBUG_PRINT
26#endif
choongryeol.lee9b3c4f52012-07-11 16:35:09 -070027
28#define AUX_ERR 1
29#define AUX_OK 0
30
31extern unchar sp_tx_hw_lt_done;
jh.koo69640a12012-09-04 19:48:40 +090032extern bool sp_tx_hw_lt_enable;
choongryeol.lee9b3c4f52012-07-11 16:35:09 -070033extern unchar sp_tx_link_config_done ;
34extern enum SP_TX_System_State sp_tx_system_state;
35extern unchar sp_tx_rx_anx7730;
36extern unchar sp_tx_pd_mode;
37extern unchar sp_tx_rx_mydp;
38
choongryeol.leea424eb42012-08-02 10:26:16 -070039extern unchar bedid_break;
choongryeol.lee9b3c4f52012-07-11 16:35:09 -070040
choongryeol.leea424eb42012-08-02 10:26:16 -070041int sp_read_reg(uint8_t slave_addr, uint8_t offset, uint8_t *buf);
42int sp_write_reg(uint8_t slave_addr, uint8_t offset, uint8_t value);
choongryeol.lee9b3c4f52012-07-11 16:35:09 -070043void sp_tx_hardware_poweron(void);
44void sp_tx_hardware_powerdown(void);
45int slimport_read_edid_block(int block, uint8_t *edid_buf);
jh.kooe0f075f2012-09-04 20:13:19 +090046
47#ifdef CONFIG_SLIMPORT_ANX7808
48bool slimport_is_connected(void);
jh.koob9873fd2012-09-20 21:44:34 +090049unchar sp_get_link_bw(void);
50void sp_set_link_bw(unchar link_bw);
jh.kooe0f075f2012-09-04 20:13:19 +090051#else
52static inline bool slimport_is_connected(void)
53{
54 return false;
55}
jh.koob9873fd2012-09-20 21:44:34 +090056static inline unchar sp_get_link_bw(void)
57{
58 return 0;
59}
60static inline void sp_set_link_bw(unchar link_bw)
61{
62 return;
63}
jh.kooe0f075f2012-09-04 20:13:19 +090064#endif
choongryeol.lee9b3c4f52012-07-11 16:35:09 -070065#endif