spi: cadence_qspi: optimize & fix indirect rd-writes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v1 Latest posting 2/20 of 7 patches 0 repliesNew
- v1 posting 1/20 of 7 patches 0 repliesSuperseded
Patches in v1 posting 2/2 No applies recorded yet
None of the 7 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH RESEND 0/7] spi: cadence_qspi: optimize & fix indirect rd-writes
Quoted 41 lines · Vikas MANOCHA
Hi Graham,
Quoted 32 lines
-----Original Message-----
From: Graham Moore [mailto:grmoore at opensource.altera.com]
Sent: Tuesday, June 23, 2015 7:37 AM
To: Vikas MANOCHA
Cc: Stefan Roese; u-boot at lists.denx.de; dinguyen at opensource.altera.com; jteki at openedev.com
Subject: Re: [PATCH RESEND 0/7] spi:cadence_qspi: optimize & fix indirect rd-writesOn 06/22/2015 06:31 PM, Vikas MANOCHA wrote:
...Quoted 11 lines
Quoted 9 lines
Quoted 6 lines
The point is if after applying above mentioned patch (...: fix indirect read/write start address), Read/write are working fine, then
trigger_basevalue of 0xFFA00_0000 should also work fine. Can you please modify thetrigger_basevalue from0x0to 0xFFA0_0000 inSocfpga.dtsi& check.
If it works, it would mean both (socfpga & stv0991) are behaving same.No. With this change, the "sf read" command crashes / hangs on the SoCFPGA board.
Ok, I don't know why socfpga is not working with
trigger_baseto be0xFFA0_0000.
Quoted 1 line
Normally it should work, Graham also thinks the same, Let's wait for his
discussion with the Altera designers.
Quoted 1 line
Wait a minute, on SoCFPGA, the flashbase is
0xffa00000, and the trigger base is0x00000000. The point of having a different address was that they needed to be different on SoCFPGA, right?Quoted 6 lines
As for why they're different, the Altera Cyclone5 SoCFPGA has a complex multilevel interconnect where the QSPI is three levels down, and is the only slave of an AHB master. At that level of the interconnect, the base address has long been stripped off, it was used to select down to the final master. The QSPI is the only thing on that AHB bus, so its address is zero. Or at least that's how I understand it.
Quoted 5 lines
If we check the code for reading/writing to the FIFO/SRAM of the controller, complete base address is being used.
Which means CPU is using address 0xFFA0_0000, so does not seems like base address is stripped off. It is only for the trigger address which needs programming to0x0?Regardless, it is something specific to socfpga architecture & should not be part of cadence qspi driver.
I'm sorry, I don't understand your comment. What is 'it' that should not be part of the cadence qspi driver?
-Graham
Quoted 5 lines
Rgds,
VikasQuoted 2 lines
-Graham