Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp267636pxb; Mon, 2 Nov 2020 21:45:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzxxvjGZPHSJZPCjLWWxlDfFeUFX/YcXleqgSdJkV3Gw+0XIIYsbHav6YYTqs6ghZR2bnm X-Received: by 2002:aa7:cac2:: with SMTP id l2mr20370473edt.141.1604382314570; Mon, 02 Nov 2020 21:45:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604382314; cv=none; d=google.com; s=arc-20160816; b=bj1d/6a23WHRk5RRgsyCSLSqzM/Ukd3GN+HX9jUhGwOL8axZrtuG9wIjzKqo1rXtuP cQHFvWAMzgoKEfk0qLIqMazhkh9VJNDhIAW85jQLd8HZgkQcYlw2v7hRSaWAK+vgMsJw 6f3XhxikJ2kFPSi4h2QGgB2Dt2eEKvWyNOsCn2SwlNQhrbsYglZAMn1vciRWUaiZa/Fe PB67Szu7Lv67I8DF4qL4XfVFAZrYx470d2k4PjBzq8elrn2J5IJADfCSRqouY4MHUw1p rZY74NZHc33Hoi3PVcauouxLpmt7NwAmv60rVNqmSubxRD7oggj8JuUspADWV1fAOlyg D7sA== 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=INJ/4TbKC2Og0/SiimmvB12nPpZ0j9nIkuO3wPdZfq4VHx2kScIKE9PrDW3375z3Vv nmhe9JKiv9B6pmewkIfqZqs/rLm+PzDKXWnJovDD9qkdw2rOHSXGwEnMq2v8YNehiSlo iZWYoQT/PEEtAQ0u4h28fJCOWGHBhCa5H7frYC6UJndWIXa+olvesKi6SjFmVfCYyT3+ sI44DRj/ykJGf41m6dt9G7pDNTndT6dR1IMpweSkMjeXQr0TF9495RDfeqZG4Bfn+DMD bKIUvN2sLoqZvGsKzpStAaOWfvgphtPrdf5Q0V8bocxF263qWPYEWFTpsghFoosr2fEn utWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rmMbOVLa; 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 cf25si13268957ejb.733.2020.11.02.21.44.52; Mon, 02 Nov 2020 21:45:14 -0800 (PST) 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=rmMbOVLa; 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 S1726881AbgKCFnE (ORCPT + 99 others); Tue, 3 Nov 2020 00:43:04 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:37199 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725953AbgKCFnE (ORCPT ); Tue, 3 Nov 2020 00:43:04 -0500 X-UUID: 656aaa72762845bcbc31116f021d2590-20201103 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=rmMbOVLa+MDRiwszTD8X3lhWGlP9OwCj9ytnRdmAFyHRJ1AYdcZKZnC2YRHQWFeuEjsra/aYkBuEovaBWQtYkDiIkitj41jgRUX0ME/+NXtRqYUzZ9Cu/wEzANeCTPKeuLdZsdlceM5ErCpyRSmeQOrLQD+84ofAIQUrlXyYFMw=; X-UUID: 656aaa72762845bcbc31116f021d2590-20201103 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] 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 123809120; Tue, 03 Nov 2020 13:42:58 +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; Tue, 3 Nov 2020 13:42:56 +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; Tue, 3 Nov 2020 13:42:55 +0800 From: Yong Wu To: Matthias Brugger , Krzysztof Kozlowski , Rob Herring CC: Joerg Roedel , Robin Murphy , Will Deacon , Tomasz Figa , , , , , , , , , Nicolas Boichat , , Subject: [PATCH v5 3/3] memory: mtk-smi: Add mt8192 support Date: Tue, 3 Nov 2020 13:42:00 +0800 Message-ID: <20201103054200.21386-4-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201103054200.21386-1-yong.wu@mediatek.com> References: <20201103054200.21386-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 KysrKysrKysrKysrKysrDQogMSBmaWxlIGNoYW5nZWQsI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