From patchwork Fri Jan 7 17:21:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 530476 Delivered-To: patch@linaro.org Received: by 2002:ad5:544f:0:0:0:0:0 with SMTP id a15csp563802imp; Fri, 7 Jan 2022 09:27:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBygr+ul1Pux69zo6dCMvR2PSPP1SzFg6ID5VGfF85+q0ID1eiqVKrz3zIRk2bu+/ZZ9tA X-Received: by 2002:a25:8550:: with SMTP id f16mr22272068ybn.319.1641576468722; Fri, 07 Jan 2022 09:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641576468; cv=none; d=google.com; s=arc-20160816; b=N+0dBPdodzznbOmiQ0Am9tSJxgZ3IYFYO33M0e953Y+0AkU3sPSdTWDSTC1HW+iJ/G UUAF7AcLnCrDINDmiPfHq3BLuXGk9yKDrLqlA1+URNj2jvsauorNoYuCyVHpgmBsLL8S 9CHbKl7M3ueS3pQH3G3uvEePm1DfMlshFmdMz+veoSkcdvhkKyhjMQfHs+N0m8D6jply GocV4GGXF+3yf2xK4oYL9OmRS5k+FgHSWeeDBVVKCF6ZA0kUIQ9cNxB/hB73WdzIygkg k6NUMhQ+3cTUEnqevZ9aw9fGkAXxoZdapB30pR4MGGm0SP6Z4aly42cHn67+wmYtA18m xySA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=DrLtR+BUheQSY3OxzKhmjxErO+2Tcnsj0fXYlPgSiDU=; b=uE3uq4ZTdiVRTYwMpy3DnVkXYDW5+TyH++a6pTZj8hxoxbpqzYHO7NLHgz21y9YUUu ILeI65SgEWiYybRfamqC3DdgBR9ywskie2s3ao0+xFjIjJC9urY/jpNx7FmwXTm/bcmt E0OABcQMhEU/uR8j2OqgJJoehemJWV1PoPAH3nrPjUymV9P/E99lPltGwoWHUsfdHoFW W1OBle2e+nVpEzjmxPOQP/558IcEsU3bFfOMzWXSjBNvIIm9yjei5kyYMb77EXly1DP2 RXIRUMOX0tpjwzP6p6dZZIasXzPjRaqFHKcVnmQUUvPyZEHP1wnPyVkx5Wsh8j1OUOOw eTOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yN2kdQXy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l13si5359540ybt.780.2022.01.07.09.27.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jan 2022 09:27:48 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yN2kdQXy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5t1n-0002mX-Um for patch@linaro.org; Fri, 07 Jan 2022 12:27:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5swB-0005G7-8T for qemu-devel@nongnu.org; Fri, 07 Jan 2022 12:21:59 -0500 Received: from [2a00:1450:4864:20::434] (port=44964 helo=mail-wr1-x434.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5sw9-0007v8-NP for qemu-devel@nongnu.org; Fri, 07 Jan 2022 12:21:58 -0500 Received: by mail-wr1-x434.google.com with SMTP id k18so12290810wrg.11 for ; Fri, 07 Jan 2022 09:21:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=DrLtR+BUheQSY3OxzKhmjxErO+2Tcnsj0fXYlPgSiDU=; b=yN2kdQXyuG0WIZD4cwUtfPTpvxpQOtVC78CrjkUW3nFoIvB642QTzV8tRVS/1K0HNT hYYtMPXOxdaFW71vc4grbHy+TGeOFTNNUEec4b1vW82WlsflU4SS6ygwKS1O4gLFW7ja NvNlngij6SGdsXkaJzvqdCteNP84V8apYd1eYQrfZhuLxvq98cSKORQrO0Ejc2aaMO9j f02h9BrlbxukfN7L7rYeU89Rr/BGpOOX9TmbgGbn93ZWL6M63LI/iIySjn1fOeiHNtQx 6frsEwNeXN25spIi2tClJLsbiAjXPb5YqigVHzIGTjq8dG1bQAHai3fHV0KYNeSP2gJV wQ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DrLtR+BUheQSY3OxzKhmjxErO+2Tcnsj0fXYlPgSiDU=; b=vAd//jFMdY+F05a3GMwSmWI6IJbwncBzw6tl3s2DMsJlnwlU1VNogAUc8RUxxOvcnK BSKJLxjNMPCKKtHDQVTfRxYmuKoq8NmLBIykaFmEuE57fa+P7nr++Dm/QYTBYPgS+BGr LqlKyEZ+S/RNHzIK+v4xE/E0W9aNgJzfHsT0GagyxLKJs/svuU0SCrGRVdljaHr2i77a TDc/scXrVwoAhunJZJdftyDvllehTcXCK+KA0DFOvMzSpoTh7KDoSGv8zt2YFVgump9F eK9WP72Wj2WwE4l72wEsPb9/9Ut+fJoLzmHh0gPUVBO6ciRPyMhJSiwgQTUAu8qacwgS 5kDw== X-Gm-Message-State: AOAM532ddN2N8L8t2URiL1CE1eCWiXtF3EgOuJta/1bfHWIaJKVXmy+n 8ykyNNhi1+OzgLSKek/ZQK+NHnr0idAGIw== X-Received: by 2002:a5d:64ad:: with SMTP id m13mr56225026wrp.714.1641576114642; Fri, 07 Jan 2022 09:21:54 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id i6sm6060219wrf.79.2022.01.07.09.21.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 09:21:54 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 18/19] hw/arm: add i2c muxes to kudo-bmc Date: Fri, 7 Jan 2022 17:21:41 +0000 Message-Id: <20220107172142.2651911-19-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220107172142.2651911-1-peter.maydell@linaro.org> References: <20220107172142.2651911-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::434 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Patrick Venture Signed-off-by: Patrick Venture Reviewed-by: Hao Wu Reviewed-by: Philippe Mathieu-Daudé Message-id: 20220102215844.2888833-4-venture@google.com Signed-off-by: Peter Maydell --- hw/arm/npcm7xx_boards.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/arm/npcm7xx_boards.c b/hw/arm/npcm7xx_boards.c index 257bf638fd5..4cd58972c56 100644 --- a/hw/arm/npcm7xx_boards.c +++ b/hw/arm/npcm7xx_boards.c @@ -330,8 +330,17 @@ static void quanta_gbs_i2c_init(NPCM7xxState *soc) static void kudo_bmc_i2c_init(NPCM7xxState *soc) { + i2c_slave_create_simple(npcm7xx_i2c_get_bus(soc, 1), TYPE_PCA9548, 0x75); + i2c_slave_create_simple(npcm7xx_i2c_get_bus(soc, 1), TYPE_PCA9548, 0x77); + + i2c_slave_create_simple(npcm7xx_i2c_get_bus(soc, 4), TYPE_PCA9548, 0x77); + at24c_eeprom_init(soc, 4, 0x50, 8192); /* mbfru */ + + i2c_slave_create_simple(npcm7xx_i2c_get_bus(soc, 13), TYPE_PCA9548, 0x77); + at24c_eeprom_init(soc, 14, 0x55, 8192); /* bmcfru */ + /* TODO: Add remaining i2c devices. */ }