?? nand_drv_toshiba.c
字號(hào):
/*******************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
*******************************************************************************/
/*******************************************************************************
*
* Filename:
* ---------
* nand_drv_TOSHIBA.c
*
* Project:
* --------
* FlashTool Download Agent
*
* Description:
* ------------
* TOSHIBA compatible NAND flash driver
*
* Author:
* -------
* Amos Hsu
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* $Revision: 1.0 $
* $Modtime: Mar 22 2005 10:37:52 $
* $Log: //mtkvs01/vmdata/new_flash_tool/archives/DA/SRC/nand_drv_TOSHIBA.c-arc $
*
* Rev 1.0 Oct 19 2005 14:41:08 mtk00539
* Initial revision.
* Resolution for 140: [BROM_DLL v2.7.1008][New] Support NFB download and many new features.
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
#include "nand_drv_TOSHIBA.h"
#include "nand_drv_COMMON.h"
#include "nand_util_func.h"
#include "NFI.h"
//------------------------------------------------------------------------------
// TOSHIBA Command Set
//------------------------------------------------------------------------------
const NAND_CommandSet_S g_NAND_TOSHIBA_512_CMD_SET={
{ 1, 0x90 } // read id
,{ 1, 0x70 } // read status
,{ 1, 0xFF } // reset device
,{ 1, 0x00 } // read
,{ 1, 0x50 } // read spare area
,{ 0, 0 } // read confirm
,{ 1, 0x00 } // program 1st half page
,{ 1, 0x80 } // program
,{ 1, 0x10 } // program confirm
,{ 1, 0x60 } // erase
,{ 1, 0xD0 } // erase confirm
,{ 0, 0 } // copyback read
,{ 0, 0 } // copyback read confirm
,{ 0, 0 } // copyback program
,{ 0, 0 } // copyback program confirm
};
const NAND_CommandSet_S g_NAND_TOSHIBA_2048_CMD_SET={
{ 1, 0x90 } // read id
,{ 1, 0x70 } // read status
,{ 1, 0xFF } // reset device
,{ 1, 0x00 } // read
,{ 0, 0 } // read spare area
,{ 1, 0x30 } // read confirm
,{ 0, 0 } // program 1st half page
,{ 1, 0x80 } // program
,{ 1, 0x10 } // program confirm
,{ 1, 0x60 } // erase
,{ 1, 0xD0 } // erase confirm
,{ 0, 0 } // copyback read
,{ 0, 0 } // copyback read confirm
,{ 0, 0 } // copyback program
,{ 0, 0 } // copyback program confirm
};
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -