From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Mark Brown <broonie@kernel.org>
Cc: linux-spi@vger.kernel.org
Subject: spi-oc-tiny.c and microwatt chip select
Date: Sat, 06 Jun 2020 18:50:37 +1000 [thread overview]
Message-ID: <f8586b1dde855e5d1d682444949a4cf6e4671482.camel@kernel.crashing.org> (raw)
Hi !
I've cooked up a little SPI controller VHDL for the Microwatt project
(https://github.com/antonblanchard/microwatt, though the SPI isnt
merged yet), to control the flash connected to the FPGA (it contains
the bitfile and the SW payload, such as Linux).
Now I could write yet-another bitbang driver for Linux for it, or I
could make my controller look like an existing one :) It's very simple,
but I should be able to make it look like spi-oc-tiny.c quite easily.
Now as for chip-selects... I could also add some concept of GPIOs,
write a simple MMIO GPIO controller etc... or I could for now make my
life easier and send a patch adding an extra register to control chip
select to spi-oc-tiny.c keyd off a device-tree property (or the
compatible property) :-)
Any objection to the "easy/fast" way :-) ?
Cheers,
Ben.
next reply other threads:[~2020-06-06 8:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-06 8:50 Benjamin Herrenschmidt [this message]
2020-06-06 11:37 ` spi-oc-tiny.c and microwatt chip select Mark Brown
2020-06-06 13:02 ` Benjamin Herrenschmidt
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=f8586b1dde855e5d1d682444949a4cf6e4671482.camel@kernel.crashing.org \
--to=benh@kernel.crashing.org \
--cc=broonie@kernel.org \
--cc=linux-spi@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).