Received: by 2002:a17:906:6951:b0:a28:f940:7a27 with SMTP id c17csp1359171ejs; Wed, 10 Jan 2024 15:44:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsQFUHOsc508faZ1UX6x8wHhAmm/BIz6S/aA32pJeCGqk6M0J9sBEvw78R+ltGMDGGnZSz X-Received: by 2002:a05:620a:288d:b0:783:1aeb:fb60 with SMTP id j13-20020a05620a288d00b007831aebfb60mr453226qkp.20.1704930245003; Wed, 10 Jan 2024 15:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704930244; cv=none; d=google.com; s=arc-20160816; b=jKcCdcfk2rbDlrhUK+uWwK5uaiWHUuty4GkjBqXKZRDfY+cB0Wzz9Bu8OBY5HScj3H f8W54ppPELalt+XJ3zLoHh1tinG938gSI+ZsufwWlBznTIdJjoPcUhZKXnAhI5eVSxCM x7E/w/NXh1MEXLMTrNrImN1WHQAngpoud6vSMmXTukbhFqX4Il9LAcFFFOI+4uZLDjhP ouYqPRKkCbl81xtO+4QM1RNrmNEYaoYGnAvgOOp73uwRcR1GC7tPppvoysDjII2ijIhT 3qvfyaaEP5tohoSxIIaANRngQDjVZq35yXpqoMFEhOjqMvpQAzK+R+lW8XqE0coiOXyA ZaZg== 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:cc:to:from:subject:message-id :references:mime-version:in-reply-to:date:dkim-signature; bh=AXBqU4mNthcXJuu2Vz0y7+PRtT106hxra4GrEYCdiAU=; fh=+aVB0apLn7P4p3cMF9Qg7nFZ6+AnRx2Fcri+oFjNFtM=; b=E7miFKmFAcxzznbo87EfC01bbw05Y+Cd2d8Ql4x3Pj6eTsllhIRuNgTQ0EXJh/Uy0t Ql9vmr9rQAviETi7kRUpxfcDq/9AvNKpAic0FB4sbh2gRnR9ZUPeXdCfvuePw+oD2NAE U+HzH/TDJwg2KTWStb6bDk67SCdXzE+1TK/WP9EsBtnDzmUSLa2prWjorSDb+Pz5nCml pyI6E5a7Y6I/gPgQCOw5vwsadMBbD8mOJXacT2q7AucsEvWUJ8SgKmocjejOZ/2q7D2s E2hWkFpoFWB7TdnvO71GNHN4aO8X4aUaF0FAPheWvIPayN6MEUnzW12sd/u93+9SfMpM BYOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ZwTjL3AR; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d13-20020a05620a158d00b007832430b684si4856394qkk.513.2024.01.10.15.44.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Jan 2024 15:44:04 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=@google.com header.s=20230601 header.b=ZwTjL3AR; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNiDi-0007QX-R0; Wed, 10 Jan 2024 18:42:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3dSufZQwKCnwsfgnmjxyjkfslttlqj.htrvjrz-ij0jqstslsz.twl@flex--nabihestefan.bounces.google.com>) id 1rNiDh-0007OV-JI for qemu-devel@nongnu.org; Wed, 10 Jan 2024 18:42:49 -0500 Received: from mail-yw1-x1149.google.com ([2607:f8b0:4864:20::1149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3dSufZQwKCnwsfgnmjxyjkfslttlqj.htrvjrz-ij0jqstslsz.twl@flex--nabihestefan.bounces.google.com>) id 1rNiDf-0006ZK-EN for qemu-devel@nongnu.org; Wed, 10 Jan 2024 18:42:49 -0500 Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-5f8ec09e595so63100057b3.3 for ; Wed, 10 Jan 2024 15:42:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704930165; x=1705534965; darn=nongnu.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=AXBqU4mNthcXJuu2Vz0y7+PRtT106hxra4GrEYCdiAU=; b=ZwTjL3ARLVX8F/pdHhzhwoOAkhjypLmpC+bjdLAAyOqAnZ4bghDM89MuOxIYcJWTuo 3A/MXHtrxeJCroK/4/3KpeLf4PcGagIbuBUyBIa248SoHcrR8aH2VIwm/qHLygl59X46 OwWJ4f+V9CTJhzXpxXqr/hCCyc8kxYl9+d2jhk0KyTCvBr775wdA0Od5r6sb8CBYiVh4 msbmI4CftGhMP+7JA3fBClKv+7V9ovHRHJhqzIrCcKogf9I3R2iYEjmOVpNHiLPnTF30 zjDS0coANFBKyPr4WC6P/z1aE/ISXzFVLMcKWKoPj1uqu60txxA3dlV8/MPMGai5MoSD cRqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704930165; x=1705534965; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AXBqU4mNthcXJuu2Vz0y7+PRtT106hxra4GrEYCdiAU=; b=hWCRwF/RA13SMD7x9/WN4kTybd6Yh7/wcvehEpk3SLZcPK84emsGNlV+zztc0s7Lfi TSQnQrnwFC8CNOe1bfjIRBnpbibjScUjezLwDrL7motahV6fdg79oWxP4cMhpasUDmjW 3Sz92QhkWwdh3F42QJu6uYyw0aDSFD5KFq+A7hS80Ze8n6eBC+/08Vxke/w5rVz06Qgv Dlw2JOa0qVINdR01u2LH4JJxAuGMTmsnCa+r2nOytxfQw8Je+viHknEMyn97XzTvm1LG 2rvRll5czaOaB2PCcrbSfewRppEQSgFbtN0H+QoEs75A/q0FygPbfh3FK87rEPppzdFm n/lQ== X-Gm-Message-State: AOJu0YzaKJVgHw9fIWGgFBlUto99+jI5jxuQLb4UTxlbvgRmu6UIoO4B JpYwho0+qyyQaDTJzy4RWkCoW1z2UpANBUxL8lc4uxda+g== X-Received: from nabihestefan.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:2737]) (user=nabihestefan job=sendgmr) by 2002:a81:6c83:0:b0:5d8:eec5:f57c with SMTP id h125-20020a816c83000000b005d8eec5f57cmr264459ywc.4.1704930165590; Wed, 10 Jan 2024 15:42:45 -0800 (PST) Date: Wed, 10 Jan 2024 23:42:24 +0000 In-Reply-To: <20240110234232.4116804-1-nabihestefan@google.com> Mime-Version: 1.0 References: <20240110234232.4116804-1-nabihestefan@google.com> X-Mailer: git-send-email 2.43.0.275.g3460e3d667-goog Message-ID: <20240110234232.4116804-3-nabihestefan@google.com> Subject: [PATCH v12 02/10] hw/arm: Add PCI mailbox module to Nuvoton SoC From: Nabih Estefan To: peter.maydell@linaro.org Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, kfting@nuvoton.com, wuhaotsh@google.com, jasowang@redhat.com, avi.fishman@nuvoton.com, nabihestefan@google.com, kwliu@nuvoton.com, tomer.maimon@nuvoton.com, Hila.Miranda-Kuzi@nuvoton.com Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::1149; envelope-from=3dSufZQwKCnwsfgnmjxyjkfslttlqj.htrvjrz-ij0jqstslsz.twl@flex--nabihestefan.bounces.google.com; helo=mail-yw1-x1149.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5 autolearn=unavailable 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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: tLBD7qNKjcOQ From: Hao Wu This patch wires the PCI mailbox module to Nuvoton SoC. Change-Id: I14c42c628258804030f0583889882842bde0d972 Signed-off-by: Hao Wu Signed-off-by: Nabih Estefan Reviewed-by: Tyrone Ting --- docs/system/arm/nuvoton.rst | 2 ++ hw/arm/npcm7xx.c | 2 ++ include/hw/arm/npcm7xx.h | 1 + 3 files changed, 5 insertions(+) diff --git a/docs/system/arm/nuvoton.rst b/docs/system/arm/nuvoton.rst index 0424cae4b0..e611099545 100644 --- a/docs/system/arm/nuvoton.rst +++ b/docs/system/arm/nuvoton.rst @@ -50,6 +50,8 @@ Supported devices * Ethernet controller (EMC) * Tachometer * Peripheral SPI controller (PSPI) + * BIOS POST code FIFO + * PCI Mailbox Missing devices --------------- diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c index 1c3634ff45..c9e87162cb 100644 --- a/hw/arm/npcm7xx.c +++ b/hw/arm/npcm7xx.c @@ -462,6 +462,8 @@ static void npcm7xx_init(Object *obj) object_initialize_child(obj, "pspi[*]", &s->pspi[i], TYPE_NPCM_PSPI); } + object_initialize_child(obj, "pci-mbox", &s->pci_mbox, + TYPE_NPCM7XX_PCI_MBOX); object_initialize_child(obj, "mmc", &s->mmc, TYPE_NPCM7XX_SDHCI); } diff --git a/include/hw/arm/npcm7xx.h b/include/hw/arm/npcm7xx.h index 273090ac60..cec3792a2e 100644 --- a/include/hw/arm/npcm7xx.h +++ b/include/hw/arm/npcm7xx.h @@ -105,6 +105,7 @@ struct NPCM7xxState { OHCISysBusState ohci; NPCM7xxFIUState fiu[2]; NPCM7xxEMCState emc[2]; + NPCM7xxPCIMBoxState pci_mbox; NPCM7xxSDHCIState mmc; NPCMPSPIState pspi[2]; }; -- 2.43.0.275.g3460e3d667-goog