#include <io.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include "sys-clk.h"
#include "sys-gpio.h"
#include "sys-spi.h"
#include "log.h"
Go to the source code of this file.
◆ spi_nand_detect()
Detect and initialize SPI NAND flash.
- Parameters
-
- Returns
- 0 on success, -1 on failure.
◆ spi_nand_read()
Read data from SPI NAND flash.
- Parameters
-
| spi | Pointer to the sunxi_spi_t structure. |
| buf | Pointer to the buffer to store the read data. |
| addr | Starting address to read from. |
| rxlen | Number of bytes to read. |
- Returns
- Number of bytes read on success, -1 on failure.