spi/qspi.h: Fix data type of buflen

Summary:
- This patch change the data type of buflen in qspi_meminfo_s
- from uint16_t to uint32_t to allow data size greater than 64KB.

Impact:
- QSPI & some flash like s25fl1 etc

Testing:
- Tested with rm69330 oled controller on custom board

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2020-11-20 16:09:07 +08:00 committed by Xiang Xiao
parent ce228e5de5
commit 0a2873a37f

View File

@ -268,8 +268,8 @@ struct qspi_meminfo_s
uint8_t flags; /* See QSPMEM_* definitions */
uint8_t addrlen; /* Address length in bytes */
uint8_t dummies; /* Number of dummy read cycles (READ only) */
uint16_t buflen; /* Data buffer length in bytes */
uint16_t cmd; /* Memory access command */
uint32_t buflen; /* Data buffer length in bytes */
uint32_t addr; /* Memory Address */
uint32_t key; /* Scrambler key */
FAR void *buffer; /* Data buffer */