113 lines
3.3 KiB
C
Executable File
113 lines
3.3 KiB
C
Executable File
|
||
#define PHY_ONLY_TOG_AND_SDR 1
|
||
|
||
#define PHY_WAIT_RB_BEFORE 1
|
||
#define PHY_WAIT_RB_INTERRRUPT 1
|
||
#define PHY_WAIT_DMA_INTERRRUPT 0
|
||
|
||
/*****************************************************************************
|
||
1.һ<><D2BB>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ͬһ<CDAC><D2BB>flash
|
||
2.<2E><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD>͵<EFBFBD>flash
|
||
|
||
<EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>
|
||
1.֧<><D6A7> two-plane
|
||
2.֧<><D6A7> vertical_interleave
|
||
3.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD>32k<32><6B><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>two-plane
|
||
4.vertical_interleave ͨ<><CDA8><EFBFBD><EFBFBD>rb<72><62><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC>chip<69><70><EFBFBD>
|
||
|
||
˫ͨ<EFBFBD><EFBFBD>
|
||
1.֧<><D6A7> two-plane
|
||
2.֧<><D6A7>dual_channel
|
||
3.֧<><D6A7>vertical_interleave
|
||
4.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD>32k<32><6B><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>two-plane
|
||
5.dual_channel ͨ<><CDA8><EFBFBD><EFBFBD>chip0<70><30>chip0<70><30><EFBFBD>
|
||
6.vertical_interleave ͨ<><CDA8><EFBFBD><EFBFBD>rb<72><62><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC>chip<69><70><EFBFBD>
|
||
*****************************************************************************/
|
||
#define PHY_SUPPORT_TWO_PLANE 1
|
||
#define PHY_SUPPORT_VERTICAL_INTERLEAVE 1
|
||
#define PHY_SUPPORT_DUAL_CHANNEL 1
|
||
|
||
/*****************************************************************************
|
||
*Name :
|
||
*Description :
|
||
*Parameter :
|
||
*Return :
|
||
*Note :
|
||
*****************************************************************************/
|
||
int nand_cfg_interface(void)
|
||
{
|
||
return PHY_ONLY_TOG_AND_SDR ? 1 : 0;
|
||
}
|
||
|
||
/*****************************************************************************
|
||
*Name :
|
||
*Description :
|
||
*Parameter :
|
||
*Return :
|
||
*Note :
|
||
*****************************************************************************/
|
||
int nand_wait_rb_before(void)
|
||
{
|
||
return PHY_WAIT_RB_BEFORE ? 1 : 0;
|
||
}
|
||
|
||
/*****************************************************************************
|
||
*Name :
|
||
*Description :
|
||
*Parameter :
|
||
*Return :
|
||
*Note :
|
||
*****************************************************************************/
|
||
int nand_wait_rb_mode(void)
|
||
{
|
||
return PHY_WAIT_RB_INTERRRUPT ? 1 : 0;
|
||
}
|
||
|
||
/*****************************************************************************
|
||
*Name :
|
||
*Description :
|
||
*Parameter :
|
||
*Return :
|
||
*Note :
|
||
*****************************************************************************/
|
||
int nand_wait_dma_mode(void)
|
||
{
|
||
return PHY_WAIT_DMA_INTERRRUPT ? 1 : 0;
|
||
}
|
||
|
||
/*****************************************************************************
|
||
*Name :
|
||
*Description :
|
||
*Parameter :
|
||
*Return :
|
||
*Note :
|
||
*****************************************************************************/
|
||
int nand_support_two_plane(void)
|
||
{
|
||
return PHY_SUPPORT_TWO_PLANE ? 1 : 0;
|
||
}
|
||
|
||
/*****************************************************************************
|
||
*Name :
|
||
*Description :
|
||
*Parameter :
|
||
*Return :
|
||
*Note :
|
||
*****************************************************************************/
|
||
int nand_support_vertical_interleave(void)
|
||
{
|
||
return PHY_SUPPORT_VERTICAL_INTERLEAVE ? 1 : 0;
|
||
}
|
||
|
||
/*****************************************************************************
|
||
*Name :
|
||
*Description :
|
||
*Parameter :
|
||
*Return :
|
||
*Note :
|
||
*****************************************************************************/
|
||
int nand_support_dual_channel(void)
|
||
{
|
||
return PHY_SUPPORT_DUAL_CHANNEL ? 1 : 0;
|
||
}
|