| /****************************************************************************** |
| * |
| * (C)Copyright 2014 Marvell Hefei Branch. All Rights Reserved. |
| * |
| * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF MARVELL. |
| * The copyright notice above does not evidence any actual or intended |
| * publication of such source code. |
| * This Module contains Proprietary Information of Marvell and should be |
| * treated as Confidential. |
| * The information in this file is provided for the exclusive use of the |
| * licensees of Marvell. |
| * Such users have the right to use, modify, and incorporate this code into |
| * products for purposes authorized by the license agreement provided they |
| * include this notice and the associated copyright notice with any such |
| * product. |
| * The information in this file is provided "AS IS" without warranty. |
| * |
| ******************************************************************************/ |
| |
| #ifndef __SPINOR_EXTENED_H__ |
| #define __SPINOR_EXTENED_H__ |
| |
| #include "Typedef.h" |
| #include "predefines.h" |
| #include "spi.h" |
| #include "Errors.h" |
| #include "PlatformConfig.h" |
| #include "xllp_dmac.h" |
| #include "SPINOR.h" |
| |
| |
| // commands |
| #define SPINOR_ENABLE_4BYTE_MODE 0xB7 |
| #define SPINOR_DISABLE_4BYTE_MODE 0xE9 |
| #define SPINOR_READ_STATUS_CMD0 0x35 |
| #define SPINOR_READ_STATUS_CMD1 0x70 |
| #define SPINOR_READ_4Bytes_CMD0 0x03 |
| #define SPINOR_READ_4Bytes_CMD1 0x13 |
| #define SPINOR_PROGRAM_4Bytes_CMD0 0x02 |
| #define SPINOR_PROGRAM_4Bytes_CMD1 0x12 |
| #define SPINOR_SECTOR_ERASE_4Bytes_CMD0 0xD8 |
| #define SPINOR_SECTOR_ERASE_4Bytes_CMD1 0xDC |
| |
| |
| // functions |
| UINT_T SPINOR_Extend_Read(UINT_T FlashOffset, UINT_T Buffer, UINT_T Size); |
| UINT_T SPINOR_Extend_Write(UINT_T Address, UINT_T Buffer, UINT_T Size); |
| UINT_T SPINOR_Extend_Erase(UINT_T Address, UINT_T Size); |
| |
| #endif |
| |