📄 flash_drv_dummy.h
字号:
/*******************************************************************************
* 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) 2004
*
*******************************************************************************/
/*******************************************************************************
*
* Filename:
* ---------
* flash_drv_DUMMY.h
*
* Project:
* --------
* FlashTool Download Agent
*
* Description:
* ------------
* This Module defines the dummy family flash driver.
*
* Author:
* -------
* Amos Hsu
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* $Revision: 1.3 $
* $Modtime: Oct 19 2005 11:05:08 $
* $Log: //mtkvs01/vmdata/flash_tool/archives/DA/INC/flash_drv_DUMMY.h-arc $
*
* Rev 1.3 Oct 19 2005 14:45:02 mtk00539
* 1. [BROM_DLL&DA][New] New H/W devices detection architecture including NOR, NAND, SRAM and DRAM detection.
* 2. [BROM_DLL&DA][New] DA partial download technic, that overcomes DA size exceeds MT6205B internal SRAM (32KB).
* 3. [BROM_DLL&DA][New] Format verification option, each byte should be 0xFF after erasure.
* 4. [BROM_DLL&DA][New] DA validation to ensure invalid binary could not be loaded.
* 5. [BROM_DLL&DA][New] Support NFB download.
* 6. [BROM_DLL&DA][New] Support NAND flash format with 3 method, NORMAL, FORCEDLY ERASE and MARK AS BAD BLOCK.
* 7. [BROM_DLL&DA][New] Support NAND flash read back with 4 methods, PAGE+ECC, PAGE ONLY, SPARE ONLY and PAGE+SPARE.
* Resolution for 140: [BROM_DLL v2.7.1008][New] Support NFB download and many new features.
*
* Rev 1.2 Nov 05 2004 10:37:32 mtk00539
* 1. [DA][BUG FIX] Fix format progress report error, percentage variable should not just use uint8.
* 2. [DA][BUG FIX] Fix command error for AMD protection routines.
* 3. [DA][Enhance] Fix UART_Printf compile warning in UART.C
* Resolution for 96: [BROM_DLL v2.4.1007][New] Implement S/W compatible mechanism for MT6218B_FN and MT6218B_GN.
*
* Rev 1.1 Aug 03 2004 10:42:44 mtk00539
* 1. [DA][BUG FIX] Invoke Board_Schematic()(old name is HW_Init()) before FUTL_CheckDevice(). Because FUTL_CheckDevice() must know the absolute address for each bank.
* 2. [DA][New] Add 12 new flash devices support
* [SAMSUNG]K5A3280YT,
* [TOSHIBA]TH50VPF6782AASB,
* [TOSHIBA]TH50VPF6783AASB,
* [TOSHIBA]TV00578002AABD,
* [TOSHIBA]TV00578003AABD,
* [Fujitsu]MB84VP24581HK,
* [INTEL]INTEL_28F640W30_B,
* [SPANSION]AM49PDL127BH,
* [SPANSION]AM49PDL129BH,
* [RENESAS]M6MGD13BW66CDG,
* [Winbond]W19B322TM,
* [Winbond]W19B323TM,
* 3. [DA][New] Readback check after WORD program is done, so that DA won't have to keep the chksum.
* 4. [DA][New] Auto-detect baseband chip type.
* 5. [DA][New] Auto-detect external SRAM size.
* 6. [DA][New] Merge MT6205B, MT6218B and MT6219 to an all-in-one DA.
* 7. [DA][New] Merge flash stress test module.
* 8. [DA][New] Modify makefile to build ARM or THUMB code.
* 9. [DA][New] Construct a customization kit for customers to add new flash or SOC checking algorithm by themselves.
* 10. [DA][Enhance] Split out AM29PDL128G function to improve the performance of general AMD callback functions.
* 11. [DA][Enhance] Enhance RX_BUFF_FULL behavior to prevent always retry two times.
* Resolution for 83: [BROM_DLL v2.4.1002] Merge all the DAs into all-in-one DA and fix many bugs and enhancement.
*
* Rev 1.0 Jul 19 2004 01:45:48 mtk00539
* Initial revision.
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
#ifndef _FLASH_DRV_DUMMY_H_
#define _FLASH_DRV_DUMMY_H_
#include "SW_TYPES.H"
#include "flash_dev_tbl.h"
#ifdef __cplusplus
extern "C" {
#endif
extern const NOR_Die_Layout_S DUMMY_MAP;
extern const NOR_CMD_Callback_S DUMMY_CMD;
#define UNKNOWN_DEVICE_ENTRY { NOR_UNKNOWN, { { { &DUMMY_MAP }, { &DUMMY_MAP } }, 0, 0, 0, 0, 0 }, &DUMMY_CMD }
__inline bool DUMMY_CheckDevID(const uint16 dev, volatile uint16 *die1_addr, volatile uint16 *die2_addr) { return FALSE; }
__inline bool DUMMY_CheckDevIdle(const uint32 blockaddr) { return TRUE; }
__inline void DUMMY_Erase(const uint32 blockaddr) { }
__inline STATUS_E DUMMY_Erase_CheckDone(const uint32 blockaddr) { return S_DONE; }
__inline void DUMMY_Program_PreProcess(const uint16 dev) { }
__inline void DUMMY_Program_PostProcess(const uint16 dev) { }
__inline void DUMMY_Program_Enter(const uint32 blockaddr) { }
__inline void DUMMY_Program_Exit(const uint32 blockaddr) { }
__inline void DUMMY_Program(const uint32 blockaddr, const uint32 prog_addr, const uint16 data) { }
__inline STATUS_E DUMMY_Program_CheckDone(const uint32 prog_addr) { return S_DONE; }
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -