1 /* 2 * linux-5.4/drivers/media/platform/sunxi-vin/vin-mipi/dphy/dphy.h 3 * 4 * Copyright (c) 2007-2017 Allwinnertech Co., Ltd. 5 * 6 * This software is licensed under the terms of the GNU General Public 7 * License version 2, as published by the Free Software Foundation, and 8 * may be copied, distributed, and modified under those terms. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 */ 16 17 18 #ifndef __DPHY_H__ 19 #define __DPHY_H__ 20 21 enum dphy_lane { 22 LANE_D0, 23 LANE_D1, 24 LANE_D2, 25 LANE_D3, 26 LANE_CLK, 27 }; 28 29 enum dphy_int { 30 SOT_D0, 31 SOT_D1, 32 SOT_D2, 33 SOT_D3, 34 SOT_ERR_D0, 35 SOT_ERR_D1, 36 SOT_ERR_D2, 37 SOT_ERR_D3, 38 SOT_SYNC_ERR_D0, 39 SOT_SYNC_ERR_D1, 40 SOT_SYNC_ERR_D2, 41 SOT_SYNC_ERR_D3, 42 RX_ALG_ERR_D0, 43 RX_ALG_ERR_D1, 44 RX_ALG_ERR_D2, 45 RX_ALG_ERR_D3, 46 CD_LP0_ERR_CLK, 47 CD_LP1_ERR_CLK, 48 CD_LP0_ERR_D0, 49 CD_LP1_ERR_D0, 50 CD_LP0_ERR_D1, 51 CD_LP1_ERR_D1, 52 CD_LP0_ERR_D2, 53 CD_LP1_ERR_D2, 54 CD_LP0_ERR_D3, 55 CD_LP1_ERR_D3, 56 ULPS_D0, 57 ULPS_D1, 58 ULPS_D2, 59 ULPS_D3, 60 ULPS_WP_D0, 61 ULPS_WP_D1, 62 ULPS_WP_D2, 63 ULPS_WP_D3, 64 ULPS_CLK, 65 ULPS_WP_CLK, 66 LPDT_D0, 67 RX_TRND_D0, 68 TX_TRND_ERR_D0, 69 UNDEF1_D0, 70 UNDEF2_D0, 71 UNDEF3_D0, 72 UNDEF4_D0, 73 UNDEF5_D0, 74 RST_D0, 75 RST_D1, 76 RST_D2, 77 RST_D3, 78 ESC_CMD_ERR_D0, 79 ESC_CMD_ERR_D1, 80 ESC_CMD_ERR_D2, 81 ESC_CMD_ERR_D3, 82 FALSE_CTL_D0, 83 FALSE_CTL_D1, 84 FALSE_CTL_D2, 85 FALSE_CTL_D3, 86 }; 87 88 enum dphy_lane_state { 89 LP00, 90 LP01, 91 LP10, 92 LP11, 93 TRND, 94 HS, 95 LPDT, 96 ESCP, 97 ULPS, 98 RSET, 99 UDF1, 100 UDF2, 101 UDF3, 102 UDF4, 103 UDF5, 104 }; 105 106 #endif 107