From patchwork Sun Jan 2 21:58:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Patrick Leis X-Patchwork-Id: 1574637 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=Cm7jy0AC; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JRt8K50kWz9s3q for ; Mon, 3 Jan 2022 08:59:44 +1100 (AEDT) Received: from localhost ([::1]:41694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n48tA-0005ed-K1 for incoming@patchwork.ozlabs.org; Sun, 02 Jan 2022 16:59:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3JSDSYQcKCsI3mv12zmowwotm.kwuymu2-lm3mtvwvov2.wzo@flex--venture.bounces.google.com>) id 1n48sa-0005eI-Ie for qemu-devel@nongnu.org; Sun, 02 Jan 2022 16:59:04 -0500 Received: from [2607:f8b0:4864:20::749] (port=46044 helo=mail-qk1-x749.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3JSDSYQcKCsI3mv12zmowwotm.kwuymu2-lm3mtvwvov2.wzo@flex--venture.bounces.google.com>) id 1n48sY-0003mN-Ta for qemu-devel@nongnu.org; Sun, 02 Jan 2022 16:59:04 -0500 Received: by mail-qk1-x749.google.com with SMTP id t8-20020a05620a0b0800b004764cabb1daso15977126qkg.12 for ; Sun, 02 Jan 2022 13:59:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=3f5SYfqPTo+WeLjupIzQAU64X+H8Nyvi5ICDdAzt+0M=; b=Cm7jy0ACn9gyMHVqD9szVbFfqXenyrkoYLFOrihKi6fDUGb0d+THGmLfKiq9+zj8i+ ECoq2wnNgGyc2GrgDrxSJaQAZRtu13F8DGv6KOqk/e0xMztvAc2NDhYoBx7IktuAMJAB lKwTBqiYLRRFW0EjGL20lnaGqQ+Tp6qSWO3k6+eQoGhUgRx8yVVbIy9qjzqOcZgZF9YL TjKYZiiKFtsPIpcFLf5r+gsn5pzxYlWeAW0XcmSUI3+Mq4owV6EMVqAogu5VlmNRnh06 +wi0lTdWN6vDKbPJI5WPfVCWCLRcNrb3uEbceXzRQyyPfYW8Dls/I8unZVJodDXnpsNt w2zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=3f5SYfqPTo+WeLjupIzQAU64X+H8Nyvi5ICDdAzt+0M=; b=7GVbLR2+Jv8buJ3bNzPzzqJ3yWVUHYefrQXQdILtw3nejxwLdXiGi95RrmnRFNKk8N KESssGb+bWaYv84KhttxqzWsLt8axqjJghVAjTSv42ktcW6cUjFjPjIIT1gDMBv3Jwi2 iA3zXre3EW3FBxlDzfpiK5M9eAJqOA11xyCI0EenD4j4eH1Tf2P5fF/47AjmzUxn1iyp ypaayzw1JYjFDw7mNhGrhjlAy4pha2f0V/nu2jSuSEQwFouZ22Q/UXBd4YZeABk8h+H+ 3PtxkVFvDA0AIaMY042iZ3bxbEBkLKiUH0UZNtp6ehrHL64dP4W3B4CaaxvRtNduzZQc sWKQ== X-Gm-Message-State: AOAM530XqUqfe9sW++JwpjBozIjyF+zOB8O1HyT3k5eMDSEl1oAqdGcQ It9XLIQajAhjfyCxAmxVRVYExT+Vwx51 X-Google-Smtp-Source: ABdhPJzpcIlpA7EZz3SRUdWuOxF8LCIeFtkVxVucEDjg9qMP3n9SnMlmrIK94UvnFw10jfO8ykma1+AJ/ZjA X-Received: from venture.svl.corp.google.com ([2620:15c:2a3:200:9adc:6d14:2e33:8585]) (user=venture job=sendgmr) by 2002:ac8:5acf:: with SMTP id d15mr38097777qtd.5.1641160741440; Sun, 02 Jan 2022 13:59:01 -0800 (PST) Date: Sun, 2 Jan 2022 13:58:41 -0800 In-Reply-To: <20220102215844.2888833-1-venture@google.com> Message-Id: <20220102215844.2888833-2-venture@google.com> Mime-Version: 1.0 References: <20220102215844.2888833-1-venture@google.com> X-Mailer: git-send-email 2.34.1.448.ga2b2bfdf31-goog Subject: [PATCH 1/4] hw/arm: Add kudo i2c eeproms. From: Patrick Venture To: peter.maydell@linaro.org Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, crauer@google.com, wuhaotsh@google.com, titusr@google.com, Patrick Venture X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::749 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::749; envelope-from=3JSDSYQcKCsI3mv12zmowwotm.kwuymu2-lm3mtvwvov2.wzo@flex--venture.bounces.google.com; helo=mail-qk1-x749.google.com X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Chris Rauer Signed-off-by: Chris Rauer Reviewed-by: Hao Wu Reviewed-by: Patrick Venture Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/npcm7xx_boards.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/arm/npcm7xx_boards.c b/hw/arm/npcm7xx_boards.c index 0866d2f4f0..37de9fef43 100644 --- a/hw/arm/npcm7xx_boards.c +++ b/hw/arm/npcm7xx_boards.c @@ -328,6 +328,13 @@ static void quanta_gbs_i2c_init(NPCM7xxState *soc) */ } +static void kudo_bmc_i2c_init(NPCM7xxState *soc) +{ + at24c_eeprom_init(soc, 4, 0x50, 8192); /* mbfru */ + at24c_eeprom_init(soc, 14, 0x55, 8192); /* bmcfru */ + /* TODO: Add remaining i2c devices. */ +} + static void npcm750_evb_init(MachineState *machine) { NPCM7xxState *soc; @@ -391,6 +398,7 @@ static void kudo_bmc_init(MachineState *machine) npcm7xx_connect_flash(&soc->fiu[1], 0, "mx66u51235f", drive_get(IF_MTD, 3, 0)); + kudo_bmc_i2c_init(soc); npcm7xx_load_kernel(machine, soc); }