choongryeol.lee | 9b3c4f5 | 2012-07-11 16:35:09 -0700 | [diff] [blame] | 1 | /* |
| 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.lee | 9b3c4f5 | 2012-07-11 16:35:09 -0700 | [diff] [blame] | 20 | #define HDCP_EN |
choongryeol.lee | a424eb4 | 2012-08-02 10:26:16 -0700 | [diff] [blame] | 21 | |
| 22 | #if 0 |
| 23 | #define SSC_1 |
| 24 | #define EYE_TEST |
| 25 | #define EDID_DEBUG_PRINT |
| 26 | #endif |
choongryeol.lee | 9b3c4f5 | 2012-07-11 16:35:09 -0700 | [diff] [blame] | 27 | |
| 28 | #define AUX_ERR 1 |
| 29 | #define AUX_OK 0 |
| 30 | |
| 31 | extern unchar sp_tx_hw_lt_done; |
jh.koo | 69640a1 | 2012-09-04 19:48:40 +0900 | [diff] [blame] | 32 | extern bool sp_tx_hw_lt_enable; |
choongryeol.lee | 9b3c4f5 | 2012-07-11 16:35:09 -0700 | [diff] [blame] | 33 | extern unchar sp_tx_link_config_done ; |
| 34 | extern enum SP_TX_System_State sp_tx_system_state; |
| 35 | extern unchar sp_tx_rx_anx7730; |
| 36 | extern unchar sp_tx_pd_mode; |
| 37 | extern unchar sp_tx_rx_mydp; |
| 38 | |
choongryeol.lee | a424eb4 | 2012-08-02 10:26:16 -0700 | [diff] [blame] | 39 | extern unchar bedid_break; |
choongryeol.lee | 9b3c4f5 | 2012-07-11 16:35:09 -0700 | [diff] [blame] | 40 | |
choongryeol.lee | a424eb4 | 2012-08-02 10:26:16 -0700 | [diff] [blame] | 41 | int sp_read_reg(uint8_t slave_addr, uint8_t offset, uint8_t *buf); |
| 42 | int sp_write_reg(uint8_t slave_addr, uint8_t offset, uint8_t value); |
choongryeol.lee | 9b3c4f5 | 2012-07-11 16:35:09 -0700 | [diff] [blame] | 43 | void sp_tx_hardware_poweron(void); |
| 44 | void sp_tx_hardware_powerdown(void); |
| 45 | int slimport_read_edid_block(int block, uint8_t *edid_buf); |
jh.koo | e0f075f | 2012-09-04 20:13:19 +0900 | [diff] [blame] | 46 | |
| 47 | #ifdef CONFIG_SLIMPORT_ANX7808 |
| 48 | bool slimport_is_connected(void); |
jh.koo | b9873fd | 2012-09-20 21:44:34 +0900 | [diff] [blame] | 49 | unchar sp_get_link_bw(void); |
| 50 | void sp_set_link_bw(unchar link_bw); |
jh.koo | e0f075f | 2012-09-04 20:13:19 +0900 | [diff] [blame] | 51 | #else |
| 52 | static inline bool slimport_is_connected(void) |
| 53 | { |
| 54 | return false; |
| 55 | } |
jh.koo | b9873fd | 2012-09-20 21:44:34 +0900 | [diff] [blame] | 56 | static inline unchar sp_get_link_bw(void) |
| 57 | { |
| 58 | return 0; |
| 59 | } |
| 60 | static inline void sp_set_link_bw(unchar link_bw) |
| 61 | { |
| 62 | return; |
| 63 | } |
jh.koo | e0f075f | 2012-09-04 20:13:19 +0900 | [diff] [blame] | 64 | #endif |
choongryeol.lee | 9b3c4f5 | 2012-07-11 16:35:09 -0700 | [diff] [blame] | 65 | #endif |