Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1111039pxx; Fri, 30 Oct 2020 02:15:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqYIs6DqpsfqiHkIoLybAXU8TcEIp1fHLzdG8XIA7RZyqkeMnPP/xmcahYYQ2xMk2HxvpG X-Received: by 2002:a17:906:1614:: with SMTP id m20mr1443105ejd.258.1604049348233; Fri, 30 Oct 2020 02:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604049348; cv=none; d=google.com; s=arc-20160816; b=HRg+9Y00DPd+2WZJVm8ZSBfSiHJhhzLk2v7h5Gaw9flhNWmu8lLrwbQqc0w2OT/ZUI l7esWJ0eYBJkGMfChlDV1mnfm5mVMQNScFtfthIrzHuNQ0seZnN4Z8ZHgmtMQGFit/x9 Hh/bG6mO4sWI8fE1xFbCVcK6bLxC9gFhiPkinFWgp4fl7K6UYcBTx/S7d53EvLP7yVxh c0qEbgI4wB8BcbBTxLY2QwtEGDWG7hVOzjNPJ2EkLR+Yq2RLsq9JsjM9kLaDVQus6TVy GWRAFnMQvx2xrKjRCtcM5r9tkUrgoWW36gyrwZrWKeo0GWFNDt21Sj+eO0KrncCSBtti CR0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wS05c32CeOcsELtrfSXV0XioPOrUrgRETIwe251DuTo=; b=jHEwG4lkJD7uU5HdzA4Wf3ZBcNDAjlM8JV1g7vr3kQifN+HpgSJmh+hji9wLJJxCiq lX2wA1A2hqCYtwaOY1EXIIF9T2ORCtQZECD3iRNPMLM0fJWm/Gi1TZbn+eiqFZ9isb1K jFU92WfLeT18eRSQPIwJrZO4PmlBMBt3vPgoqutVLa3DSBWrseNnfPG7kEt0ND2Te3YX QaGkUN/WFPVwb4FMnn34lEO6IEBXfFcIfaVClIgjYlbuSD9OXFktsldyX4vwW2nrB8l2 mYdEiS/qS79FGb12vfCSTofBUdtB5h0/tFy9kJbf1z+DNIotu/21rwun6ZNK8eT7/bt5 2CMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TtWVmSOF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id qc4si3480335ejb.200.2020.10.30.02.15.25; Fri, 30 Oct 2020 02:15:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TtWVmSOF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726187AbgJ3JN4 (ORCPT + 99 others); Fri, 30 Oct 2020 05:13:56 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41562 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725823AbgJ3JNz (ORCPT ); Fri, 30 Oct 2020 05:13:55 -0400 X-UUID: 99d6ef79b9f542179138382e5e196829-20201030 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=wS05c32CeOcsELtrfSXV0XioPOrUrgRETIwe251DuTo=; b=TtWVmSOFFMQM+WmiJDPkjBMQXVp5IezBZBkWMi36OYKE/qYHRHsfGaHiPzFSaVGAsc+Kz6MH4ehHJx3/7SIwNdQRAdzfl8lyqm1qwKRcCZyv78PxszVBW+QOqqfotmD5IRE2X4vGlR1Sw/DEiu8GSTzRX60BHroNRWt/RtIla9c=; X-UUID: 99d6ef79b9f542179138382e5e196829-20201030 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1261586912; Fri, 30 Oct 2020 17:13:48 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 30 Oct 2020 17:13:46 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 30 Oct 2020 17:13:45 +0800 From: Yong Wu To: Matthias Brugger , Krzysztof Kozlowski , Rob Herring CC: Joerg Roedel , Robin Murphy , Will Deacon , Tomasz Figa , , , , , , , , , Nicolas Boichat , , Subject: [PATCH v4 3/3] memory: mtk-smi: Add mt8192 support Date: Fri, 30 Oct 2020 17:12:54 +0800 Message-ID: <20201030091254.26382-4-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201030091254.26382-1-yong.wu@mediatek.com> References: <20201030091254.26382-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIG10ODE5MiBzbWkgc3VwcG9ydC4NCg0KU2lnbmVkLW9mZi1ieTogWW9uZyBXdSA8eW9uZy53 dUBtZWRpYXRlay5jb20+DQotLS0NCiBkcml2ZXJzL21lbW9yeS9tdGstc21pLmMgfCAxOSArKysr KysrKysrK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