[U-Boot] [PATCH v7 5/7] mips: ath79: add spi driver

Marek Vasut marex at denx.de
Tue Feb 2 17:07:04 CET 2016


On Tuesday, February 02, 2016 at 04:38:34 PM, Wills Wang wrote:
> On Wednesday, January 27, 2016 09:33 AM, Marek Vasut wrote:
> > On Saturday, January 16, 2016 at 07:13:51 PM, Wills Wang wrote:
> >> Reviewed-by: Thomas Chou <thomas at wytron.com.tw>
> >> 
> >> Signed-off-by: Wills Wang <wills.wang at live.com>
> >> ---
> >> 
> >> Changes in v7:
> >> - Define spi_cs_activate/spi_cs_deactivate
> >> - Rename MHZ to ATH79_SPI_MHZ
> >> - Use clrsetbits_32
> > 
> > The driver gets stuck if I do:
> > 
> > => sf probe
> > => sf read 0x81000000 0 0x20000
> > 
> > If I transfer only 0x10000 , it doesn't get stuck.
> > 
> > Best regards,
> > Marek Vasut
> 
> ap121 # sf probe
> SF: Detected W25Q64CV with page size 256 Bytes, erase size 4 KiB, total
> 8 MiB, mapped at 9f000000
> ap121 # sf read 0x81000000 0 0x20000
> device 0 offset 0x0, size 0x20000
> SF: 131072 bytes @ 0x0 Read: OK
> ap121 # sf read 0x81000000 0 0x10000
> device 0 offset 0x0, size 0x10000
> SF: 65536 bytes @ 0x0 Read: OK
> ap121 # sf read 0x81000000 0 0x1000
> device 0 offset 0x0, size 0x1000
> SF: 4096 bytes @ 0x0 Read: OK
> ap121 # sf read 0x81000000 0 0x100
> device 0 offset 0x0, size 0x100
> SF: 256 bytes @ 0x0 Read: OK

It's nice that it works on your custom hardware.

Best regards,
Marek Vasut


More information about the U-Boot mailing list