From patchwork Tue Jun 12 08:26:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 928191 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KhRNx/lz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 414jdx531Nz9s0w for ; Tue, 12 Jun 2018 18:26:29 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 420ECC21E75; Tue, 12 Jun 2018 08:25:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 8C1E6C21EA6; Tue, 12 Jun 2018 08:22:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E9CFBC21DFD; Tue, 12 Jun 2018 08:22:08 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by lists.denx.de (Postfix) with ESMTPS id 59E17C21E60 for ; Tue, 12 Jun 2018 08:22:00 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id q1-v6so11689888pff.13 for ; Tue, 12 Jun 2018 01:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=XWOG/yBKtodGMk8LMqgDfvi/il3/ANoSXh23ZW/nBYs=; b=KhRNx/lzqwKNbRyY7SLyMNVWvMD13j2S/o3vcWdBTbrRNM+W9MzxPmqXOqP6uQg8/g u+MPXOXpP6nl6EJ071s81uJwB/xpu5NiO3YaO+0Gha/QcQE6QGF2sV71tDT/EWXMvhnF 6dci7L1KJoCgwk7nfCpCZJdNYLN87VCKLerLwLT9swvwWFztE4Icaqqdm3ehP2qtvvlr 017OvP8mbq7hSxqER2bvNO8fxjsjwTfVrxDVDHMn3dF+54mv5ng0LJZO8m2cf4nMWS+s lBxtVkzFQ5Mh6vd8hngKWuEQHunRWZ9artkU2rdOmCLmzjPxNxWSz2ql/KkJ1TCN0Xkg svEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=XWOG/yBKtodGMk8LMqgDfvi/il3/ANoSXh23ZW/nBYs=; b=mwp6TTxUkwH413+bG5Rg/Iv+3YzfM4qka0+staYv3uF2hiV8sgHE2gN4apOTvaSBBk Bupx7Fi5iIjdF9wIWeQGJC1uW73cmsovG8Hkq5/O20IYarJWZHWw1p+FOEAkzgH0DvUW glVEVE8i2K4t5hkrq9mRuORROuulqZsntktTBRG6x99kkpSt3bnxiTxCjau2bRZ5Kmh3 byIL16aFXiqlbXpxMsCYURiDDr7+cveAyfXyBcbmX9nT92smW31QtEjYkNi3QqEwKDK4 EJf/eJr+p3rUW5AkD0xPoYnQ+F+zdqWS7+TxFOT4xemVZCzrFraSMDnSWReCucFhYjNS IbVg== X-Gm-Message-State: APt69E1U5VqsxNSUm9UASlQMZGeNMi1zrAY4VYIMyXisZDfG8uuk7bKl uEB4BFVTqwEIJv9hDLJMrXI= X-Google-Smtp-Source: ADUXVKLHhClRlciXFo7x6RMbwaS+V/GZJc42N4seMzQj/rpdZgw2fJfkIC62z2eKlTa8YZeKjX5yOA== X-Received: by 2002:a63:7847:: with SMTP id t68-v6mr2283265pgc.329.1528791719050; Tue, 12 Jun 2018 01:21:59 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com. [147.11.156.139]) by smtp.gmail.com with ESMTPSA id j23-v6sm878475pfh.45.2018.06.12.01.21.57 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jun 2018 01:21:57 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Tue, 12 Jun 2018 01:26:47 -0700 Message-Id: <1528792007-7167-4-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1528792007-7167-1-git-send-email-bmeng.cn@gmail.com> References: <1528792007-7167-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v2 3/3] x86: cougarcanyon2: Add missing chipset interrupt information X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add Panther Point chipset interrupt pin/PIRQ information, and enable the generation of PIRQ routing table and MP table. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - add the PIRQ register mapping via "intel,pirq-regmap" property arch/x86/dts/cougarcanyon2.dts | 46 +++++++++++++++++++++++++++++++++++++++++ configs/cougarcanyon2_defconfig | 2 ++ 2 files changed, 48 insertions(+) diff --git a/arch/x86/dts/cougarcanyon2.dts b/arch/x86/dts/cougarcanyon2.dts index 946ba06..c1cda73 100644 --- a/arch/x86/dts/cougarcanyon2.dts +++ b/arch/x86/dts/cougarcanyon2.dts @@ -5,6 +5,8 @@ /dts-v1/; +#include + /include/ "skeleton.dtsi" /include/ "serial.dtsi" /include/ "keyboard.dtsi" @@ -99,6 +101,50 @@ #address-cells = <1>; #size-cells = <1>; + irq-router { + compatible = "intel,irq-router"; + intel,pirq-config = "pci"; + intel,actl-8bit; + intel,actl-addr = <0x44>; + intel,pirq-link = <0x60 8>; + intel,pirq-regmap = < + PIRQA 0 + PIRQB 1 + PIRQC 2 + PIRQD 3 + PIRQE 8 + PIRQF 9 + PIRQG 10 + PIRQH 11 + >; + intel,pirq-mask = <0xcee0>; + intel,pirq-routing = < + /* Panther Point PCI devices */ + PCI_BDF(0, 2, 0) INTA PIRQA + PCI_BDF(0, 20, 0) INTA PIRQA + PCI_BDF(0, 22, 0) INTA PIRQA + PCI_BDF(0, 22, 1) INTB PIRQB + PCI_BDF(0, 22, 2) INTC PIRQC + PCI_BDF(0, 22, 3) INTD PIRQD + PCI_BDF(0, 25, 0) INTA PIRQA + PCI_BDF(0, 26, 0) INTA PIRQA + PCI_BDF(0, 27, 0) INTB PIRQA + PCI_BDF(0, 28, 0) INTA PIRQA + PCI_BDF(0, 28, 1) INTB PIRQB + PCI_BDF(0, 28, 2) INTC PIRQC + PCI_BDF(0, 28, 3) INTD PIRQD + PCI_BDF(0, 28, 4) INTA PIRQA + PCI_BDF(0, 28, 5) INTB PIRQB + PCI_BDF(0, 28, 6) INTC PIRQC + PCI_BDF(0, 28, 7) INTD PIRQD + PCI_BDF(0, 29, 0) INTA PIRQA + PCI_BDF(0, 31, 2) INTB PIRQB + PCI_BDF(0, 31, 3) INTC PIRQC + PCI_BDF(0, 31, 5) INTB PIRQB + PCI_BDF(0, 31, 6) INTC PIRQC + >; + }; + spi0: spi { #address-cells = <1>; #size-cells = <0>; diff --git a/configs/cougarcanyon2_defconfig b/configs/cougarcanyon2_defconfig index 98d9aa0..eeee252 100644 --- a/configs/cougarcanyon2_defconfig +++ b/configs/cougarcanyon2_defconfig @@ -6,6 +6,8 @@ CONFIG_TARGET_COUGARCANYON2=y # CONFIG_HAVE_INTEL_ME is not set # CONFIG_ENABLE_MRC_CACHE is not set CONFIG_SMP=y +CONFIG_GENERATE_PIRQ_TABLE=y +CONFIG_GENERATE_MP_TABLE=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="root=/dev/sdb3 init=/sbin/init rootwait ro" CONFIG_SYS_CONSOLE_INFO_QUIET=y