All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Venture <venture@google.com>
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 <venture@google.com>
Subject: [PATCH 1/4] hw/arm: Add kudo i2c eeproms.
Date: Sun,  2 Jan 2022 13:58:41 -0800	[thread overview]
Message-ID: <20220102215844.2888833-2-venture@google.com> (raw)
In-Reply-To: <20220102215844.2888833-1-venture@google.com>

From: Chris Rauer <crauer@google.com>

Signed-off-by: Chris Rauer <crauer@google.com>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Patrick Venture <venture@google.com>
---
 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);
 }
 
-- 
2.34.1.448.ga2b2bfdf31-goog



  reply	other threads:[~2022-01-02 22:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-02 21:58 [PATCH 0/4] hw/arm: Add more devices to kudo-bmc Patrick Venture
2022-01-02 21:58 ` Patrick Venture [this message]
2022-01-02 22:08   ` [PATCH 1/4] hw/arm: Add kudo i2c eeproms Philippe Mathieu-Daudé
2022-01-02 21:58 ` [PATCH 2/4] hw/arm: attach MMC to kudo-bmc Patrick Venture
2022-01-02 21:58 ` [PATCH 3/4] hw/arm: add i2c muxes " Patrick Venture
2022-01-03 19:58   ` Philippe Mathieu-Daudé
2022-01-02 21:58 ` [PATCH 4/4] hw/arm: kudo add lm75s on bus 13 Patrick Venture
2022-01-02 22:09   ` Philippe Mathieu-Daudé
2022-01-07 17:05 ` [PATCH 0/4] hw/arm: Add more devices to kudo-bmc Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220102215844.2888833-2-venture@google.com \
    --to=venture@google.com \
    --cc=crauer@google.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=titusr@google.com \
    --cc=wuhaotsh@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.