Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp946530ybl; Fri, 24 Jan 2020 12:27:53 -0800 (PST) X-Google-Smtp-Source: APXvYqyZZzV4NxoBnCNww2ZLoZQT/wRyJlsiT74IIseUHVhz5XANA2j5rFgmZMnWV68sXqVOxSTq X-Received: by 2002:aca:1005:: with SMTP id 5mr467302oiq.16.1579897673516; Fri, 24 Jan 2020 12:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579897673; cv=none; d=google.com; s=arc-20160816; b=K3Wa4BXAOW6PnrdRr9XuXayhmqhAQvw6HY7ml6JPyJJEPJp7onsqblLm2adEJZm8NZ d5LBPH3BR5QQKGxs3jqJajrobY8au6wysQz1paFzreTPdS425Vr84bwKScMneY5JkuXz IV/ClRAIgOgV/cIbT1gX2sz/j6QLAI726oytr6ixVZPoQN1YbF++fh4prifDQLKZIgTl 1t9SR8X+DcL89ve7AGaGfGaOtL1LML3CuJQgjAyDGOzFLEj6p73ToYWCxNSWiF1rjHS/ xvfTd3M6g4GqXUhfYC41gM1OuwJrasg/b/ShKw0M2J2QrOMuGBj6MgztYcKVy7ev/QwH jYRw== 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 :message-id:date:subject:to:from; bh=t0Ww02GXv+3NVCFALTp+kT1RadFfNvJgNrEOKO7PCbk=; b=Vq9Lvh47jiDamvmim0dJ1Ws1F7OX8bx3Fgof+ZFMKhW/+qHPG9/rK0l1mzwWc6bDtY mFn14j3G5LRM3Ywi1JHUlgV+D+/AxNY6yNirTOUWKhDQk1GQtwnMnzgFEhCxjjjrVnhO j8cE7+hh8MxcmHNosVQSbXx5iK7JuSRaeUeKeLWoKLoaDLr4FsmPpOjBvBtTplfu/i/b UUMZWf2eBUAmhlzOlfeEV3iEX+wCoFEBgZq5ifGb90E9W+4CqAPFeCTe04EasFtolNSn nSLI8u4EiagNexRForkMlORDwEi6qtxRf9ojl459HVNcWxxG8u/wJX9SA2Cuab39o9rS 1JuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si264396oii.54.2020.01.24.12.27.41; Fri, 24 Jan 2020 12:27:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389189AbgAXNQU (ORCPT + 99 others); Fri, 24 Jan 2020 08:16:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:51772 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387445AbgAXNQT (ORCPT ); Fri, 24 Jan 2020 08:16:19 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0F1E6AF3F; Fri, 24 Jan 2020 13:16:18 +0000 (UTC) From: Thomas Bogendoerfer To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: PCI: Add detection of IOC3 on IO7, IO8, IO9 and Fuel Date: Fri, 24 Jan 2020 14:16:08 +0100 Message-Id: <20200124131609.4569-1-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.24.1 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 Add detection for IOC3 chips in IP35 machines. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/sn/ioc3.h | 4 ++++ arch/mips/pci/pci-xtalk-bridge.c | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/mips/include/asm/sn/ioc3.h b/arch/mips/include/asm/sn/ioc3.h index 3865d3225780..2c09c17cadcd 100644 --- a/arch/mips/include/asm/sn/ioc3.h +++ b/arch/mips/include/asm/sn/ioc3.h @@ -598,5 +598,9 @@ struct ioc3_etxd { #define IOC3_SUBSYS_IP30_SYSBOARD 0xc304 #define IOC3_SUBSYS_MENET 0xc305 #define IOC3_SUBSYS_MENET4 0xc306 +#define IOC3_SUBSYS_IO7 0xc307 +#define IOC3_SUBSYS_IO8 0xc308 +#define IOC3_SUBSYS_IO9 0xc309 +#define IOC3_SUBSYS_IP34_SYSBOARD 0xc30A #endif /* MIPS_SN_IOC3_H */ diff --git a/arch/mips/pci/pci-xtalk-bridge.c b/arch/mips/pci/pci-xtalk-bridge.c index ef5ca7c13ca5..3b2552fb7735 100644 --- a/arch/mips/pci/pci-xtalk-bridge.c +++ b/arch/mips/pci/pci-xtalk-bridge.c @@ -499,6 +499,26 @@ static void bridge_setup_menet(struct bridge_controller *bc) bc->ioc3_sid[3] = IOC3_SID(IOC3_SUBSYS_MENET4); } +static void bridge_setup_io7(struct bridge_controller *bc) +{ + bc->ioc3_sid[4] = IOC3_SID(IOC3_SUBSYS_IO7); +} + +static void bridge_setup_io8(struct bridge_controller *bc) +{ + bc->ioc3_sid[4] = IOC3_SID(IOC3_SUBSYS_IO8); +} + +static void bridge_setup_io9(struct bridge_controller *bc) +{ + bc->ioc3_sid[1] = IOC3_SID(IOC3_SUBSYS_IO9); +} + +static void bridge_setup_ip34_fuel_sysboard(struct bridge_controller *bc) +{ + bc->ioc3_sid[4] = IOC3_SID(IOC3_SUBSYS_IP34_SYSBOARD); +} + #define BRIDGE_BOARD_SETUP(_partno, _setup) \ { .match = _partno, .setup = _setup } @@ -516,6 +536,10 @@ static const struct { BRIDGE_BOARD_SETUP("030-0887-", bridge_setup_ip30_sysboard), BRIDGE_BOARD_SETUP("030-1467-", bridge_setup_ip30_sysboard), BRIDGE_BOARD_SETUP("030-0873-", bridge_setup_menet), + BRIDGE_BOARD_SETUP("030-1557-", bridge_setup_io7), + BRIDGE_BOARD_SETUP("030-1673-", bridge_setup_io8), + BRIDGE_BOARD_SETUP("030-1771-", bridge_setup_io9), + BRIDGE_BOARD_SETUP("030-1707-", bridge_setup_ip34_fuel_sysboard), }; static void bridge_setup_board(struct bridge_controller *bc, char *partnum) -- 2.24.1