public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Chin Liang See <clsee@altera.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spi/cadence: Adding Cadence SPI driver support for SOCFPGA
Date: Thu, 19 Dec 2013 08:46:34 -0600	[thread overview]
Message-ID: <1387464394.4890.4.camel@clsee-VirtualBox.altera.com> (raw)
In-Reply-To: <20131219135049.GN8064@book.gsilab.sittig.org>

Hi Gerhard,

On Thu, 2013-12-19 at 14:50 +0100, Gerhard Sittig wrote:
> On Wed, Dec 18, 2013 at 14:05 -0600, Chin Liang See wrote:
> > 
> > To add the Cadence SPI driver support for Altera SOCFPGA. It
> > required information such as clocks and timing from platform's
> > configuration header file within include/configs folder
> > 
> > Signed-off-by: Chin Liang See <clsee@altera.com>
> > Cc: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
> > ---
> >  drivers/spi/Makefile           |    1 +
> >  drivers/spi/cadence_qspi.c     |  337 ++++++++++++++++
> >  drivers/spi/cadence_qspi.h     |   56 +++
> >  drivers/spi/cadence_qspi_apb.c |  873 ++++++++++++++++++++++++++++++++++++++++
> >  4 files changed, 1267 insertions(+)
> >  create mode 100644 drivers/spi/cadence_qspi.c
> >  create mode 100644 drivers/spi/cadence_qspi.h
> >  create mode 100644 drivers/spi/cadence_qspi_apb.c
> 
> Can you please add the information which header file is required?
> And do I get it right that this header file does not come with
> the source but is provided "externally" to the U-Boot project?
> 

Oh actually its part of the header file within include/configs. For our
case, it would be include/configs/socfpga_cyclone5.h. Its not external
or generated file.

But it would need macro in order to get some customization to the
driver. Wonder would it be good we need to document the required macros?
Or just the standard way where people normally just grep macro used in
others platform header file (which I normally did).

Thanks and have a nice day!

Chin Liang

> Does this mean that compilation breaks if one enables the Cadence
> QSPI controller in the config and does not provide the header
> file which is not documented as a dependency?  It would be nice
> to have a more visible warning about this, or better
> documentation of the requirements.  If the content of the file or
> required settings are not documented, users should at least be
> able to learn which external tool can generate/provide the file
> and how to make it available to the U-Boot project source.
> 
> It's probably best to provide a specific example file for an eval
> board.  So interested persons can see the file name, its
> location, its content, and can either use it or adjust it to
> their needs depending on whether they use the eval board or some
> similar design of their own.
> 
> 
> virtually yours
> Gerhard Sittig

  reply	other threads:[~2013-12-19 14:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-18 20:05 [U-Boot] [PATCH] spi/cadence: Adding Cadence SPI driver support for SOCFPGA Chin Liang See
2013-12-19 13:50 ` Gerhard Sittig
2013-12-19 14:46   ` Chin Liang See [this message]
2013-12-19 20:03     ` Gerhard Sittig
2013-12-19 20:42       ` Chin Liang See
2013-12-19 16:09 ` Jagan Teki
2013-12-19 16:52   ` Chin Liang See

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=1387464394.4890.4.camel@clsee-VirtualBox.altera.com \
    --to=clsee@altera.com \
    --cc=u-boot@lists.denx.de \
    /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