mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
remove duplicate code
This commit is contained in:
@@ -31,7 +31,6 @@ int nand_init_4740(int bus_width, int row_cycle, int page_size, int page_per_blo
|
||||
int,int,int,int);
|
||||
int nand_fini_4740(void);
|
||||
u32 nand_program_4740(void *context, int spage, int pages, int option);
|
||||
//int nand_program_oob_4740(void *context, int spage, int pages, void (*notify)(int));
|
||||
u32 nand_erase_4740(int blk_num, int sblk, int force);
|
||||
u32 nand_read_4740(void *buf, u32 startpage, u32 pagenum,int option);
|
||||
u32 nand_read_oob_4740(void *buf, u32 startpage, u32 pagenum);
|
||||
@@ -42,21 +41,15 @@ void nand_disable_4740(u32 csn);
|
||||
|
||||
/* Jz4760 nandflash interface */
|
||||
unsigned int nand_query_4760(u8 *);
|
||||
//int nand_init_4760(int bus_width, int row_cycle, int page_size, int page_per_block,
|
||||
// int,int,int,int);
|
||||
|
||||
int nand_init_4760(int bus_width, int row_cycle, int page_size, int page_per_block,
|
||||
int bch_bit, int ecc_pos, int bad_pos, int bad_page, int force);
|
||||
|
||||
int nand_fini_4760(void);
|
||||
u32 nand_program_4760(void *context, int spage, int pages, int option);
|
||||
//int nand_program_oob_4740(void *context, int spage, int pages, void (*notify)(int));
|
||||
u32 nand_erase_4760(int blk_num, int sblk, int force);
|
||||
u32 nand_read_4760(void *buf, u32 startpage, u32 pagenum,int option);
|
||||
u32 nand_read_oob_4760(void *buf, u32 startpage, u32 pagenum);
|
||||
u32 nand_read_raw_4760(void *buf, u32 startpage, u32 pagenum,int);
|
||||
u32 nand_mark_bad_4760(int bad);
|
||||
|
||||
void nand_enable_4760(u32 csn);
|
||||
void nand_disable_4760(u32 csn);
|
||||
|
||||
|
||||
@@ -32,19 +32,4 @@ enum UDC_STATE
|
||||
BULK_OUT
|
||||
};
|
||||
|
||||
enum USB_JZ4740_REQUEST /* add for USB_BOOT */
|
||||
{
|
||||
VR_GET_CUP_INFO = 0,
|
||||
VR_SET_DATA_ADDERSS,
|
||||
VR_SET_DATA_LENGTH,
|
||||
VR_FLUSH_CACHES,
|
||||
VR_PROGRAM_START1,
|
||||
VR_PROGRAM_START2,
|
||||
VR_NOR_OPS,
|
||||
VR_NAND_OPS,
|
||||
VR_SDRAM_OPS,
|
||||
VR_CONFIGRATION,
|
||||
VR_RESET
|
||||
};
|
||||
|
||||
#endif /* __USB_BOOT_H__ */
|
||||
|
||||
Reference in New Issue
Block a user