All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aaron Williams <awilliams@marvell.com>
To: openbmc@lists.ozlabs.org
Subject: Flashing host SPI NOR
Date: Thu, 24 Jan 2019 02:09:26 -0800	[thread overview]
Message-ID: <13232291.bT86dyEiza@flash> (raw)

Hi all,

I've run into a problem when it comes to flashing our host SPI NOR. If I boot 
our host then the SPI NOR is put in a different mode and I am unable to write 
to it from OpenBMC. The only way I can update our host SPI NOR is if I first 
power down the host then reboot OpenBMC. Is there some way I can force OpenBMC 
to re-initialize the SPI NOR before writing to it? I can read from the SPI nor 
just fine from the BMC after the host has accessed it, I just can't erase or 
write to it without everything getting corrupted. The device is a Macronix 
MX25L25645GMI-08G. Note that on the host side we are using QREAD and 4PP mode 
and 4 bit mode whereas for OpenBMC we only have 1 bit mode wired up. 

Ideally I'd love to be able to make use of the GPIO arbitration we have 
between the host and the BMC. We have two GPIO pins, one where the host 
requests access to the SPI NOR and the other where the BMC grants access.

-Aaron

             reply	other threads:[~2019-01-24 10:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-24 10:09 Aaron Williams [this message]
2019-01-24 10:16 ` Flashing host SPI NOR Cédric Le Goater

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=13232291.bT86dyEiza@flash \
    --to=awilliams@marvell.com \
    --cc=openbmc@lists.ozlabs.org \
    /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.