Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2117598pxa; Mon, 17 Aug 2020 00:51:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq5CncaJ9h10S7c0McwszFVVT37UwehSmc3C661NifIkV2W/C1hIy1Qc4uBevFY+wArpAa X-Received: by 2002:a50:e087:: with SMTP id f7mr14301282edl.174.1597650699683; Mon, 17 Aug 2020 00:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597650699; cv=none; d=google.com; s=arc-20160816; b=eXxdD7QNUvZnc9bTW3T2S5prUg6iMOiVlJrZAVoiBavKXaKEQeLW3+SKDspcTB+9vS f+iWaJVAj9rx3rZAqt9nHVlOoTC34ZnVgx9CoeCtZNhnPtPnQPqF4dsmFg1cJtgTe/Fw GmVkFeCh+8n1D6K9PPLpe4C1JQ/2pVcWXUtkcfbZ2aDSEYwZwqN2yn+aUUFkFDJ9OB3u Ch+vmIMBHowujV5aR/wa7n7LsvcsTlKmeRAHOp/ImRUahaEQp2Sh16p0F9IYyxUBSZc7 JfcfRz8nNeASgAnFrm7KAwU7VIFT4dY5r+5ABHgWFTQ9zWaIZjeYnxC2IZv9cd5IW2S9 dtaA== 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=EXgwPdTkmKLrMlh2sPbbuJjTg+8YhrrK64VCro5NaQE=; b=fPcoeedBON/6SX3ei89dz+usaX/X8I13fDOdnu/CV/MLN4ptZGCjcnU5mCobO9HHPv +ho50+6qLid+KIu5Ftk5XPYjfoOYsaLpkqtu5pnZyCyRSf02+CNRbCOvjSuhVQQFXYaX XvOVpJdEVx0tFZxJ7JAHV4loCzC8ZNUKAG/yY+W+dZkPd3FI4A52EBKUZMiLQqvlUC6t g6yO5gg5erK/prB6zMRzL0ISJikR9STUajeKujK+Ml03TWbdX6vqyTm5IAMKuss+Sn6H i9NEo2UjphCSd53bkgmjqlyzeljW6hyAXurRNX9VLm+UDvwtKmt2GTE9svZqDOYjOCHC X2wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qy0J2xtw; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc13si10890063edb.14.2020.08.17.00.51.17; Mon, 17 Aug 2020 00:51:39 -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=@kernel.org header.s=default header.b=Qy0J2xtw; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbgHQHue (ORCPT + 99 others); Mon, 17 Aug 2020 03:50:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:45512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbgHQHuX (ORCPT ); Mon, 17 Aug 2020 03:50:23 -0400 Received: from mail.kernel.org (ip5f5ad5a3.dynamic.kabel-deutschland.de [95.90.213.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 325BE22B45; Mon, 17 Aug 2020 07:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597650620; bh=HOfDmj8UoHuRegR0krfn2T5Wtujk1Lcw6hMZ/GcOEPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qy0J2xtwUnQFW5bq9l/SJPpRL+5JU+CWUnGl2nZKC8HBBbPrfo8UXyza96eHNVgIS 9TbhMB3Pkc2d26NONKp3nTuuco5tjGLxdnrbDns++1mpLiWdfzLyZ1/Mm/Fm19qyRP XEqeSOQATa6Hf/0tHlmZkqt7OEd265WJLitVg+5Y= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1k7ZuM-00BfcL-B1; Mon, 17 Aug 2020 09:50:18 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , John Stultz , Manivannan Sadhasivam , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH 11/16] iommu: add Hisilicon Kirin970 iommu at the building system Date: Mon, 17 Aug 2020 09:50:10 +0200 Message-Id: <5a6910720a629bdc39d013d8b45bd97a72c9ceb0.1597650455.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the iommu driver is ready, add it to the building system. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/Kconfig | 9 +++++++++ drivers/staging/hikey9xx/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/staging/hikey9xx/Kconfig b/drivers/staging/hikey9xx/Kconfig index 76267b9be562..6487278a4144 100644 --- a/drivers/staging/hikey9xx/Kconfig +++ b/drivers/staging/hikey9xx/Kconfig @@ -33,3 +33,12 @@ config REGULATOR_HI6421V600 This driver provides support for the voltage regulators on HiSilicon Hi6421v600 PMU / Codec IC. This is used on Kirin 3670 boards, like HiKey 970. + +# to be placed at drivers/iommu +config HISI_IOMMU_LPAE + bool "Hisilicon IOMMU LPAE Support" + select IOMMU_API + select IODOMAIN_API + help + This driver provides support for the IOMMU found on Kirin 970. + This is used on Kirin 3670 boards, like HiKey 970. diff --git a/drivers/staging/hikey9xx/Makefile b/drivers/staging/hikey9xx/Makefile index 9371dcc3d35b..c6e4998c02dd 100644 --- a/drivers/staging/hikey9xx/Makefile +++ b/drivers/staging/hikey9xx/Makefile @@ -3,3 +3,4 @@ obj-$(CONFIG_SPMI_HISI3670) += hisi-spmi-controller.o obj-$(CONFIG_MFD_HI6421_SPMI) += hi6421-spmi-pmic.o obj-$(CONFIG_REGULATOR_HI6421V600) += hi6421v600-regulator.o +obj-$(CONFIG_HISI_IOMMU_LPAE) += hisi_smmu_lpae.o -- 2.26.2