All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Jan Siegmund <jan.siegmund0@hm.edu>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>
Cc: Anatolij Gustschin <agust@denx.de>,
	"linux-fpga@vger.kernel.org" <linux-fpga@vger.kernel.org>
Subject: Re: Socfpga: configure FPGA to SDRAM interface without reprogramming the FPGA
Date: Mon, 18 Dec 2017 22:05:28 +0100	[thread overview]
Message-ID: <cff49ca7-ce8b-d7f9-e2a8-b2149bfea756@denx.de> (raw)
In-Reply-To: <db4aae59-d3fa-4904-c4ac-e96668667f3f@hm.edu>

On 12/18/2017 09:44 PM, Jan Siegmund wrote:
> Hi all,

Hi,

> Here is another question on the FPGA to SDRAM interface of the Cyclone V SoC.
> Is is possible to configure the the interface in U-Boot or SPL,

What is "the interface" ?

If you mean DRAM, then yes, the CV/AV do _not_ configure the FPGA in SPL
at all. They just configure the IOMUX/clock rings, but that's all.

> without reprogramming the FPGA? Maybe through the usage of the generated
> header files from the Quartus synthesis?
> The SDRAM controller's registers only differ in eight entries in Linux when the
> FPGA is programmed or not.
> 
> +----------+-------------+------------+----------------+
> | address  |    name     | programmed | not programmed |
> +----------+-------------+------------+----------------+
> | FFC25064 |             | 00044003   | 00044FFF       |
> | FFC25068 |             | 2C000000   | 2C03FFFF       |
> | FFC2506c |             | 00B00000   | 00B3FFFF       |
> | FFC25070 |             | 00760000   | 0076FFFF       |
> | FFC25074 |             | 00980000   | 0098FFFF       |
> | FFC25078 |             | 0005A003   | 0005AFFF       |
> | FFC2507c | portcfg     | 00000000   | 0000003F       |
> | FFC25080 | fpgaportrst | 000001FF   | 00000000       |
> +----------+-------------+------------+----------------+
> 
> The registers 0xFFC25064-0xFFC25078 don't show up on the HPS' memory map
> [1], so are they even intended to be configured?
> 
> Thanks
> 
> 
> 
> [1]
> https://www.altera.com/hps/cyclone-v/hps.html#topic/sfo1411577380716.html#sfo1411577380716
> 


-- 
Best regards,
Marek Vasut

WARNING: multiple messages have this Message-ID (diff)
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Socfpga: configure FPGA to SDRAM interface without reprogramming the FPGA
Date: Mon, 18 Dec 2017 22:05:28 +0100	[thread overview]
Message-ID: <cff49ca7-ce8b-d7f9-e2a8-b2149bfea756@denx.de> (raw)
In-Reply-To: <db4aae59-d3fa-4904-c4ac-e96668667f3f@hm.edu>

On 12/18/2017 09:44 PM, Jan Siegmund wrote:
> Hi all,

Hi,

> Here is another question on the FPGA to SDRAM interface of the Cyclone V SoC.
> Is is possible to configure the the interface in U-Boot or SPL,

What is "the interface" ?

If you mean DRAM, then yes, the CV/AV do _not_ configure the FPGA in SPL
at all. They just configure the IOMUX/clock rings, but that's all.

> without reprogramming the FPGA? Maybe through the usage of the generated
> header files from the Quartus synthesis?
> The SDRAM controller's registers only differ in eight entries in Linux when the
> FPGA is programmed or not.
> 
> +----------+-------------+------------+----------------+
> | address  |    name     | programmed | not programmed |
> +----------+-------------+------------+----------------+
> | FFC25064 |             | 00044003   | 00044FFF       |
> | FFC25068 |             | 2C000000   | 2C03FFFF       |
> | FFC2506c |             | 00B00000   | 00B3FFFF       |
> | FFC25070 |             | 00760000   | 0076FFFF       |
> | FFC25074 |             | 00980000   | 0098FFFF       |
> | FFC25078 |             | 0005A003   | 0005AFFF       |
> | FFC2507c | portcfg     | 00000000   | 0000003F       |
> | FFC25080 | fpgaportrst | 000001FF   | 00000000       |
> +----------+-------------+------------+----------------+
> 
> The registers 0xFFC25064-0xFFC25078 don't show up on the HPS' memory map
> [1], so are they even intended to be configured?
> 
> Thanks
> 
> 
> 
> [1]
> https://www.altera.com/hps/cyclone-v/hps.html#topic/sfo1411577380716.html#sfo1411577380716
> 


-- 
Best regards,
Marek Vasut

  reply	other threads:[~2017-12-18 21:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18 20:44 Socfpga: configure FPGA to SDRAM interface without reprogramming the FPGA Jan Siegmund
2017-12-18 20:44 ` [U-Boot] " Jan Siegmund
2017-12-18 21:05 ` Marek Vasut [this message]
2017-12-18 21:05   ` Marek Vasut
2017-12-19 23:29   ` Jan Siegmund
2017-12-19 23:29     ` [U-Boot] " Jan Siegmund
2017-12-20  9:35     ` Marek Vasut
2017-12-20  9:35       ` [U-Boot] " Marek Vasut
2017-12-20 11:51       ` Jan Siegmund
2017-12-20 11:51         ` [U-Boot] " Jan Siegmund
2017-12-20 15:06         ` Marek Vasut
2017-12-20 15:06           ` [U-Boot] " Marek Vasut

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=cff49ca7-ce8b-d7f9-e2a8-b2149bfea756@denx.de \
    --to=marex@denx.de \
    --cc=agust@denx.de \
    --cc=jan.siegmund0@hm.edu \
    --cc=linux-fpga@vger.kernel.org \
    --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 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.