Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4355043pxk; Wed, 30 Sep 2020 00:15:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7Y02IhwckFeGfyFyzKOdd99Nz1eGhh+OrX8TrUmULv1jDWzDffhgctmvHV4ZXEjlcNP8d X-Received: by 2002:a17:906:7013:: with SMTP id n19mr1422902ejj.388.1601450146019; Wed, 30 Sep 2020 00:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601450146; cv=none; d=google.com; s=arc-20160816; b=HXrstGA1iRMR1s1EZvAQiLo+Q9SXXaJ5J57GF6bbWqTbLxWv2625xXNDmAKAC6tBqN lTdbM49oY8PR3HI8FVS9POnvfT7lI6OI8ZkwVnR7lfTIOUoYfB9prYMIhx0M1kz9GoLD +st1CAWDZCkNpDN0yPez5XUsb67/KByk0plj2laWpEtOyFwNj66ZYPSGtzGHDBoJ5a+6 3CxCyDLFsZeCrfQdHV3eUq2muFTbPahpTHqiRrM/jkKe+kgIbjsgeRkTCjvguN+V+XAu iB+kJ5+EIxZAEuFI5lrwAdMJcRKINoz3dhdFyECg7cRtm+YTGita6Xsq3s8auvXY6D+2 4wEA== 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=bDFMxyBvv5aUYhv7Kw0G7oECaVz+/jg2a4bXq4Hhva0=; b=h4pBuDNuAjiHz0F+ju50rIJkxHfYjxjbBpDBBPJFjz3OXy6LtUrxxEaGArM89GxUF3 J4vILY/NNSD6P4VkLHvlVfW5zBj5FRXs+qSldhAsN7HzbakDW4XbCvNDddBRSt6ow/fd AqAy+mtqZsrXlmn9QOJT9sai7LRt6noJ3hBxnWCd2kZBms8kojnzfqUcyD7QyAiNnbP6 BbT46qtveRVgNcki3/9VDwq/yJe3TvJbdVE+nvesm6Lg3qJFwgzcQjqnd5VfIAjxxTlb C1TFURf4Xq6EDVSoyclcaynPVMu6MoZJ8ljI4hbpWh8PLTK56hPUrldyjmpDujLqCCiL D6rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="nSbx4/6/"; 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 p12si447564edy.315.2020.09.30.00.15.23; Wed, 30 Sep 2020 00:15:46 -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="nSbx4/6/"; 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 S1728506AbgI3HLp (ORCPT + 99 others); Wed, 30 Sep 2020 03:11:45 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:52314 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbgI3HLo (ORCPT ); Wed, 30 Sep 2020 03:11:44 -0400 X-UUID: d4d92b623dc74bc687e77784826e043f-20200930 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=bDFMxyBvv5aUYhv7Kw0G7oECaVz+/jg2a4bXq4Hhva0=; b=nSbx4/6/tzER1qGPVQ22c4CRVdUWdjEZQHHJLLhOPQsL6fD8KhCi/1RnCRLH1IuEzUBzIstkMFwO0HESIs9xykDuvViT0qMTk5O0aCHpraBlV6GPtmW+uX8THzR3E5DWHHXAQy0j7XLFhVXY/DFYw0kycYLSsgRmh6i8H1pGLEA=; X-UUID: d4d92b623dc74bc687e77784826e043f-20200930 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.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 459524672; Wed, 30 Sep 2020 15:11:40 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Sep 2020 15:11:38 +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; Wed, 30 Sep 2020 15:11:38 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy , Krzysztof Kozlowski , Will Deacon CC: Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Greg Kroah-Hartman , Subject: [PATCH v3 24/24] memory: mtk-smi: Add mt8192 support Date: Wed, 30 Sep 2020 15:06:47 +0800 Message-ID: <20200930070647.10188-25-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200930070647.10188-1-yong.wu@mediatek.com> References: <20200930070647.10188-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+DQotLS0NCiBkcml2ZXJzL21lbW9yeS9tdGstc21pLmMgfCAxOSArKys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