tc358767.c (99fc8e963a4c0203dba26a77cf737db6081bca14) | tc358767.c (f3b8adbe1911f66fd3cab1aaa74f0f66b7ceda25) |
---|---|
1/* 2 * tc358767 eDP bridge driver 3 * 4 * Copyright (C) 2016 CogentEmbedded Inc 5 * Author: Andrey Gusakov <andrey.gusakov@cogentembedded.com> 6 * 7 * Copyright (C) 2016 Pengutronix, Philipp Zabel <p.zabel@pengutronix.de> 8 * --- 83 unchanged lines hidden (view full) --- 92/* Main Channel */ 93#define DP0_SECSAMPLE 0x0640 94#define DP0_VIDSYNCDELAY 0x0644 95#define DP0_TOTALVAL 0x0648 96#define DP0_STARTVAL 0x064c 97#define DP0_ACTIVEVAL 0x0650 98#define DP0_SYNCVAL 0x0654 99#define DP0_MISC 0x0658 | 1/* 2 * tc358767 eDP bridge driver 3 * 4 * Copyright (C) 2016 CogentEmbedded Inc 5 * Author: Andrey Gusakov <andrey.gusakov@cogentembedded.com> 6 * 7 * Copyright (C) 2016 Pengutronix, Philipp Zabel <p.zabel@pengutronix.de> 8 * --- 83 unchanged lines hidden (view full) --- 92/* Main Channel */ 93#define DP0_SECSAMPLE 0x0640 94#define DP0_VIDSYNCDELAY 0x0644 95#define DP0_TOTALVAL 0x0648 96#define DP0_STARTVAL 0x064c 97#define DP0_ACTIVEVAL 0x0650 98#define DP0_SYNCVAL 0x0654 99#define DP0_MISC 0x0658 |
100#define TU_SIZE_RECOMMENDED (0x3f << 16) /* LSCLK cycles per TU */ | 100#define TU_SIZE_RECOMMENDED (63) /* LSCLK cycles per TU */ |
101#define BPC_6 (0 << 5) 102#define BPC_8 (1 << 5) 103 104/* AUX channel */ 105#define DP0_AUXCFG0 0x0660 106#define DP0_AUXCFG1 0x0664 107#define AUX_RX_FILTER_EN BIT(16) 108 --- 602 unchanged lines hidden (view full) --- 711 712 /* 713 * Recommended maximum number of symbols transferred in a transfer unit: 714 * DIV_ROUND_UP((input active video bandwidth in bytes) * tu_size, 715 * (output active video bandwidth in bytes)) 716 * Must be less than tu_size. 717 */ 718 max_tu_symbol = TU_SIZE_RECOMMENDED - 1; | 101#define BPC_6 (0 << 5) 102#define BPC_8 (1 << 5) 103 104/* AUX channel */ 105#define DP0_AUXCFG0 0x0660 106#define DP0_AUXCFG1 0x0664 107#define AUX_RX_FILTER_EN BIT(16) 108 --- 602 unchanged lines hidden (view full) --- 711 712 /* 713 * Recommended maximum number of symbols transferred in a transfer unit: 714 * DIV_ROUND_UP((input active video bandwidth in bytes) * tu_size, 715 * (output active video bandwidth in bytes)) 716 * Must be less than tu_size. 717 */ 718 max_tu_symbol = TU_SIZE_RECOMMENDED - 1; |
719 tc_write(DP0_MISC, (max_tu_symbol << 23) | TU_SIZE_RECOMMENDED | BPC_8); | 719 tc_write(DP0_MISC, (max_tu_symbol << 23) | (TU_SIZE_RECOMMENDED << 16) | 720 BPC_8); |
720 721 return 0; 722err: 723 return ret; 724} 725 726static int tc_link_training(struct tc_data *tc, int pattern) 727{ --- 654 unchanged lines hidden --- | 721 722 return 0; 723err: 724 return ret; 725} 726 727static int tc_link_training(struct tc_data *tc, int pattern) 728{ --- 654 unchanged lines hidden --- |