arm-trusted-firmware/include/drivers/nxp/flexspi/xspi_error_codes.h
Kuldeep Singh b525a8f0d2 nxp: add flexspi driver support
Flexspi driver now introduces read/write/erase APIs for complete flash
size, FAST-READ are by default used and IP bus is used for erase, read
and write using flexspi APIs.

Framework layer is currently embedded in driver itself using flash_info
defines.

Test cases are also added to confirm flash functionality currently under
DEBUG flag.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
Change-Id: I755c0f763f6297a35cad6885f84640de50f51bb0
2021-03-24 09:49:31 +05:30

28 lines
510 B
C

/*
* Copyright 2020 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
/* error codes */
#ifndef XSPI_ERROR_CODES_H
#define XSPI_ERROR_CODES_H
#include <errno.h>
typedef enum {
XSPI_SUCCESS = 0,
XSPI_READ_FAIL = ELAST + 1,
XSPI_ERASE_FAIL,
XSPI_IP_READ_FAIL,
XSPI_AHB_READ_FAIL,
XSPI_IP_WRITE_FAIL,
XSPI_AHB_WRITE_FAIL,
XSPI_BLOCK_TIMEOUT,
XSPI_UNALIGN_ADDR,
XSPI_UNALIGN_SIZE,
} XSPI_STATUS_CODES;
#undef ELAST
#define ELAST XSPI_STATUS_CODES.XSPI_UNALIGN_SIZE
#endif