Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1115969ybt; Fri, 10 Jul 2020 23:56:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoxZkx7l/35fwIATB1JBCrCl15uEYvsNOP6z4nXTaS4eEod0/YJ8x6HJxhMHYuzOn/pbid X-Received: by 2002:aa7:d1c8:: with SMTP id g8mr81951383edp.337.1594450588449; Fri, 10 Jul 2020 23:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594450588; cv=none; d=google.com; s=arc-20160816; b=WArkb/X9810AwQ8yKEpfcJ+hj7Gzh9h3WQiuGhui15Ll4IxmOgN5lr5XZUbQNz1AWH Xtg0M8xWwrPldHh4zD4YOj/E7N0it8EUhxrNItlybYHFZvG9M67UWhYe/COwfvHVbKhA YXNsod0uRCYyPD9a1n3JmOFqURdGawNSnOrc0WbjcNXeqZwkaGyvJZeXdIeuvkvlqj2V sWpyeeYlyGZw8nLR4oeGaJMkRKXVWDvmVNqh6PdBgM/r3OJ7rxqPbIM1mXZV2who6CTK cXyADXRC8RUgMSTSYOlEk8CRnno4ku7PbpILZqN7SDPwAaW0D7ST5YqFw8gbakWVo046 7MmA== 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=yf085KSU3PMUn6TkSNQXo1sLly+cdKGR+5jbWgYX2B0=; b=gCVXZjO87ikot39M4pB4dalIIRxUoo2jbe8j8Zthb1VRwdR4ssQekQM4elRnk3FMin OkQqcooYr2kHoDIs1E5j3mpEfN1qbaMk7me7fPKONey3T1HyaJymAGRruUEQ85329U3U XQhc/pvoXTi9ZacdO89pvVyscqplTZkm04dB2IusgGaJDhpD41RE1VQz3lt6wlzoMkRM LE9oBABXf26hx9TkgBcOw27F+LXhIR842or1bxJS7nZziezbq8Hxb8AlMiNs9TdZ0D3S hVIqFnnvDyDh6TChgDYmpnmo2zn9dpL9F4BiyaGWKBv7n0ORWbSCl0w/QgSPwh43zeuG EgSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hZ+5XT6L; 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 p14si5659118edq.301.2020.07.10.23.56.06; Fri, 10 Jul 2020 23:56:28 -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=hZ+5XT6L; 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 S1728408AbgGKGwp (ORCPT + 99 others); Sat, 11 Jul 2020 02:52:45 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:35558 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728152AbgGKGwn (ORCPT ); Sat, 11 Jul 2020 02:52:43 -0400 X-UUID: 8bf2ef7cbbad4d0ba7fc277f275626e5-20200711 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=yf085KSU3PMUn6TkSNQXo1sLly+cdKGR+5jbWgYX2B0=; b=hZ+5XT6LTicyUwJekF9VLxKtDj9tElV7YuQ7GR/3FnDbMD+JVcFzl3ZxGKAeUcmubHnIMNHDfceU2ZkFrsOCrDVMt7gyDZYDd92Q6OLVpPmlfnag1tTNiBdq9+CIYG/b9AM+3KjPEekGgm+EvEzQxZO6HigiadFmlt5U6tJlQBo=; X-UUID: 8bf2ef7cbbad4d0ba7fc277f275626e5-20200711 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1085459974; Sat, 11 Jul 2020 14:52:41 +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; Sat, 11 Jul 2020 14:52:37 +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; Sat, 11 Jul 2020 14:52:36 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy CC: Will Deacon , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH 20/21] iommu/mediatek: Add mt8192 support Date: Sat, 11 Jul 2020 14:48:45 +0800 Message-ID: <20200711064846.16007-21-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200711064846.16007-1-yong.wu@mediatek.com> References: <20200711064846.16007-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 QWRkIG10ODE5MiBpb21tdSBzdXBwb3J0Lg0KDQpTaWduZWQtb2ZmLWJ5OiBZb25nIFd1IDx5b25n Lnd1QG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMvaW9tbXUvbXRrX2lvbW11LmMgfCAyMCAr KysrKysrKysrKysrKysrKysrKw0KIG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