Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1884307pxk; Sat, 5 Sep 2020 01:16:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCjtfkX0YwnUO/8oAX+gVaKVOUMKhV4fFh+drFHK0NnQYoxRIImdRX5fhoiPCUCGM2p8Rw X-Received: by 2002:a17:906:69c9:: with SMTP id g9mr11937822ejs.313.1599293811569; Sat, 05 Sep 2020 01:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599293811; cv=none; d=google.com; s=arc-20160816; b=Wim7emwDDOYJ8KhIg0RZcVmVrzZmOyzxaeid9gR6JP6Uuogl+z15FbPHb2fyBfH8xH viAv3OOobMr8D+ol9+APhO57bTZePdaqLmaAV7XnGwh4B3DNPVrMgyb+R/GMvj8Vt8fm i7sKHKNUHuwkurwCxPwDD9tODtO1EYS1ojT8xn5xU0SDQmdIAaLzUSgfP5QA4GPzjKOl weecbhyb5+ffVmHJI1PDyTHbu7npivg9iwrK6k8BvNolzVkUYKaBJJXIZp52bKXyTMDP 8b6gJOQ3goKGBdpEHZ75bhsJixZ//Dt3P9e9rVu6YsNf+oh1iQwlZ5CgNu3qSJmc/rcl N/Ug== 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=bDFMxyBvv5aUYhv7Kw0G7oECaVz+/jg2a4bXq4Hhva0=; b=FsEoBQ8oisBuWO0wHdGTW+xaZSDMew7e5qbGWqDB/k75ENEG1Kst1109W3IuffY/1Z q/w0+G1fza2ExtlFOV69vMk7y/2qZoKBi3N930FIugZZr+3GXI1L6u+ulaGgCZO8LXl8 fvtWU8LyyO+EOtsEWNHo2/A7IL/BKepIUjnkpgPdO8eKPucoLH9YKs5jK0pmaCAR9InF CCFXF3Nq5iQs9j2y9eXT25x5dSZqV7EcSzzDB2tTdPKFC6iVB/ZplGeUaWugWTEeGo7d xTGHw1WkwLXoZ+qoYuuVg0JP5U43og0GThU0XZH+0D9cMreLhqaRqYiV4UzJX08oSlYg YTOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=a+wIi4Nc; 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 j20si5863991edt.233.2020.09.05.01.16.28; Sat, 05 Sep 2020 01:16:51 -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=a+wIi4Nc; 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 S1728376AbgIEIPI (ORCPT + 99 others); Sat, 5 Sep 2020 04:15:08 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:64526 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728313AbgIEIPD (ORCPT ); Sat, 5 Sep 2020 04:15:03 -0400 X-UUID: c21189dd011046be8692aee744fdc952-20200905 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=a+wIi4Nc3EGRTPeJVYaoYckJEJiq0OXkHavdbGezQsjFB6Y7sMXt5Rj0RFn/XwkSySJfiBbO/aaIFTzmE+cRzteanZqz+wdinwr+pL09s+/QHy+a2i7UbbMgFhVRoDFcTU01eLxZWLqi0UEi9exHfdg8r+O0N0L6b6/rLSxUYrQ=; X-UUID: c21189dd011046be8692aee744fdc952-20200905 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 826668872; Sat, 05 Sep 2020 16:14:56 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 5 Sep 2020 16:14:48 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 5 Sep 2020 16:14:48 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy CC: Will Deacon , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , Subject: [PATCH v2 23/23] memory: mtk-smi: Add mt8192 support Date: Sat, 5 Sep 2020 16:09:20 +0800 Message-ID: <20200905080920.13396-24-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200905080920.13396-1-yong.wu@mediatek.com> References: <20200905080920.13396-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 73EDEEB69FD905FCD3F8B384323A8BA6F12431163B00FB918134C6D1A1253C4C2000: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 QWRkIG10ODE5MiBzbWkgc3VwcG9ydC4NCg0KU2lnbmVkLW9mZi1ieTogWW9uZyBXdSA8eW9uZy53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