From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 2 Feb 2016 17:07:04 +0100 Subject: [U-Boot] [PATCH v7 5/7] mips: ath79: add spi driver In-Reply-To: References: <1452968033-4460-1-git-send-email-wills.wang@live.com> <201601270233.20710.marex@denx.de> Message-ID: <201602021707.04782.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > >> > >> Signed-off-by: Wills Wang > >> --- > >> > >> 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