From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 6 Dec 2019 14:02:25 -0500 Subject: [PATCH 1/1] arch: arm: Program GIC LPI configuration table In-Reply-To: <20191205051402.12284-1-vladimir.olovyannikov@broadcom.com> References: <20191205051402.12284-1-vladimir.olovyannikov@broadcom.com> Message-ID: <20191206190225.GS9549@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Dec 04, 2019 at 09:14:02PM -0800, Vladimir Olovyannikov wrote: > From: Bharat Kumar Reddy Gooty > > Programs the following: > 1. Redistributor PROCBASER configuration table (which > is common for all redistributors) > 2. Redistributor pending table (PENDBASER), for all the > available redistributors. > > Signed-off-by: Bharat Kumar Reddy Gooty > Signed-off-by: Vladimir Olovyannikov > --- > arch/arm/Kconfig | 11 +++ > arch/arm/include/asm/gic-v3.h | 134 ++++++++++++++++++++++++++++++++++ > arch/arm/lib/Makefile | 3 + > arch/arm/lib/gic-v3-its.c | 100 +++++++++++++++++++++++++ > 4 files changed, 248 insertions(+) > create mode 100644 arch/arm/include/asm/gic-v3.h > create mode 100644 arch/arm/lib/gic-v3-its.c > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index f96841c777..cf46aa867d 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -61,6 +61,17 @@ config LNX_KRNL_IMG_TEXT_OFFSET_BASE > endif > endif > > +config GIC_V3_ITS > + bool "ARM GICV3 ITS" > + default n Note that n is the default, we can drop this. > diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile > index 9de9a9acee..942ed1c73a 100644 > --- a/arch/arm/lib/Makefile > +++ b/arch/arm/lib/Makefile > @@ -52,6 +52,9 @@ obj-$(CONFIG_FSL_LAYERSCAPE) += ccn504.o > ifneq ($(CONFIG_GICV2)$(CONFIG_GICV3),) > obj-y += gic_64.o > endif > +ifdef CONFIG_GIC_V3_ITS > +obj-y += gic-v3-its.o > +endif > obj-y += interrupts_64.o > else > obj-y += interrupts.o This part of the Makefile can be tricky to read. We should be able to use the normal formation of 'obj-$(CONFIG_GIC_V3_ITS)' in this spot in the file as we don't have other difficult to express concisely in make constraints around. Other than that, please make sure the code is checkpatch clean, I don't have any commentary on the implementation itself but I gather it's tested on your end. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: