Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp277253ybh; Wed, 11 Mar 2020 00:42:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvZdMXIo1lDHzyyPXUVmcMWtNVIel9Tr967rhUQ2+ajdVrqs/ijWH0eIEAvJlJKHNMRA+ix X-Received: by 2002:a4a:7ac8:: with SMTP id a191mr14383ooc.30.1583912552655; Wed, 11 Mar 2020 00:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583912552; cv=none; d=google.com; s=arc-20160816; b=cHU5KFPpXzQGvvq0X/eftZJa+oU36YumLEYk5CwnSrbIWscLUgroYJvA/sF/nKIhrS hqO9MhV5AW3H/MmXYAbx1Xz9nWgGBefnE6ks44ITOOqHQ33tcFdRcW4LZxLxiLPwyTGM pgjRh9Jd9N2OlM/UgjlVyqWrEx81TS+FmDi+kV69NQHK182tzHlxs/5+iMF0NrsY+pP9 J9XeS09FcwZQJZ+QeCOXDMueLORfLsU4FeUXjoKQUtd5rJXNMeZzuNFzZx4ytyYICDQD Q4xnw65SrJSSXDg2intzSYpXPSQDbhMyYouCRj6qJWdKiEj1N77Ac4Aq/bpZW1V3nlef sYIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=npWCMlNAf6vwIc/DWpZvRQRY1F0x8+HE51QC285Pl4k=; b=wIHWHR4h86XArOvppZTxmE5nYJW529Jh7as8TX+9Us0SOrhHilKdIbLoQj6c9hkVx+ e8IQNAyAfe2t8KqgCSa4/exXcgWUlv5L72gqerFYrVf5T4m4i0KBZ0Qc91CzY8+m50CT qkiFjznGUBfQojPZPhKFzzhXyeZJXh14TbaoasK/X0ps8pI8XMjVCRTTuF57wUZhDDU/ CMsjOjlFhrmz37S0+KslOtCFuR2sZcW9zWsLIralx73iQhEuxnnibBI82u4r4JH2NqQw tdeU2uEWm2MbPBfCUrYsqRzS3P+Yl99N22sTl2vbDDjfppvbBxQ0JcnzGEz7E/VDk5Vo jigg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OdoZRqYe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j192si739063oih.233.2020.03.11.00.42.21; Wed, 11 Mar 2020 00:42:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OdoZRqYe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728512AbgCKHlU (ORCPT + 99 others); Wed, 11 Mar 2020 03:41:20 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:35193 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726198AbgCKHlT (ORCPT ); Wed, 11 Mar 2020 03:41:19 -0400 X-UUID: fa473359c47149918de90198436f3f65-20200311 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=npWCMlNAf6vwIc/DWpZvRQRY1F0x8+HE51QC285Pl4k=; b=OdoZRqYeIIfHqfGz8YoRqyNfcB0Giusls61DhZdFk3ee1JOnQzAV5sqTnfW1E9aJzseZkM4eIyzEkUxdEtSm/EUJAVrFEFNho7K6M0FKfOPOlmDzgX7Q7IBeoN95E8zAk22lwIz4HwK1VG9Uq/0x4e8YPO1UNgV9ONMeius64io=; X-UUID: fa473359c47149918de90198436f3f65-20200311 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2117756342; Wed, 11 Mar 2020 15:41:06 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 11 Mar 2020 15:41:25 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 11 Mar 2020 15:42:06 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v3 4/4] drm/mediatek: config mipitx impedance with calibration data Date: Wed, 11 Mar 2020 15:40:32 +0800 Message-ID: <20200311074032.119481-5-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200311074032.119481-1-jitao.shi@mediatek.com> References: <20200311074032.119481-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: F58B740D8966EE329A7B198D2569BE8D1EF0981AF9706E2EFCADD53E09D0F5262000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UmVhZCBjYWxpYnJhdGlvbiBkYXRhIGZyb20gbnZtZW0sIGFuZCBjb25maWcgbWlwaXR4IGltcGVk YW5jZSB3aXRoDQpjYWxpYnJhdGlvbiBkYXRhIHRvIG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