From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31CA8C433F5 for ; Sun, 1 May 2022 15:46:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B6BFD83D07; Sun, 1 May 2022 17:46:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="befWp+7R"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 847DB810E6; Sun, 1 May 2022 17:46:18 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C368683D07 for ; Sun, 1 May 2022 17:46:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 50FBB60F15; Sun, 1 May 2022 15:46:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F3B6C385AA; Sun, 1 May 2022 15:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651419973; bh=eOffJOsJR4CmkEn/i/KB7S+rAvSdHv69qzY33lNS5Lc=; h=From:To:Cc:Subject:Date:From; b=befWp+7RKtCXQ1oXjzLMIp5nCtyb+JAUOWYbWppevVdLhzUiDP4rEmb9th0efRvWi BVmPPtARtGBzmtaY0csoi7nVa3b+wdsAhsbDgbAlBzlNH0re7E3hIr3Wnh/1y/SSzH LPEMB5LkbuUmJXmdmRed7WgOrbznkRuYeasc2IEFmyQFLO6TLDo/l1t5iGy3XnepQi KG1QDc3SfN0rFSxyllSfstg/ThkjXfaot/r4G8+vAbOMPAidQJXn4S1d5KXOvc7ctR hjO847NV+EQuY/keGaRVVWWkAmsyn1dCUtX2VR1+cLSXWUNScWT0vAVYdJLqcQAjDj LNNbv9n8n70UA== Received: by pali.im (Postfix) id A7284942; Sun, 1 May 2022 17:46:10 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Wolfgang Denk Cc: u-boot@lists.denx.de Subject: [PATCH] powerpc: fsl_law: Add definition for first PCIe target interface Date: Sun, 1 May 2022 17:45:58 +0200 Message-Id: <20220501154558.19060-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Header file asm/fsl_law.h already provides correct definition for second and third PCIe controller (LAW_TRGT_IF_PCIE_2 and LAW_TRGT_IF_PCIE_3). But is missing definition for the first PCIe controller (LAW_TRGT_IF_PCIE_1). Note that existing definition for LAW_TRGT_IF_PCIE_2 and LAW_TRGT_IF_PCIE_3 are slightly complicated, but are really correct for P2020 platform. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/fsl_law.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/asm/fsl_law.h b/arch/powerpc/include/asm/fsl_law.h index 39fbc04e4744..9e2f2d5370d9 100644 --- a/arch/powerpc/include/asm/fsl_law.h +++ b/arch/powerpc/include/asm/fsl_law.h @@ -78,6 +78,7 @@ enum law_trgt_if { enum law_trgt_if { LAW_TRGT_IF_PCI = 0x00, LAW_TRGT_IF_PCI_2 = 0x01, + LAW_TRGT_IF_PCIE_1 = 0x02, #if defined(CONFIG_ARCH_BSC9131) || defined(CONFIG_ARCH_BSC9132) LAW_TRGT_IF_OCN_DSP = 0x03, #else -- 2.20.1