
#define FASTAT		0x007fc410
#define DFLRE0		0x007fc440
#define DFLRE1		0x007fc442
#define DFLWE0		0x007fc450
#define DFLWE1		0x007fc452
#define FCURAME		0x007fc454
#define FSTATR0		0x007fffb0
#define FSTATR1		0x007fffb1
#define FENTRYR		0x007fffb2
#define FPROTR		0x007fffb4
#define PCKAR		0x007fffe8
#define FWEPROR		0x0008c296

#define FASTAT_CMDLK	(1 << 4)

#define DFLRE0_KEY	0x2d00
#define DFLRE1_KEY	0xd200

#define DFLWE0_KEY	0x1e
#define DFLWE1_KEY	0xe1

#define FCURAME_KEY	0xc400
#define FCURAME_FCRME	0x01

#define FSTATR0_ILGLERR	(1 << 6)

#define FPROTR_KEY	0x5500
#define FPROTR_FPROTCN	0x0001

#define FENTRYR_KEY	0xaa00
#define FENTRYR_FENTRYD	0x80

#define FCU_CLK1	0xe9
#define FCU_CLK2	0x03
#define FCU_CLK345	0x0f0f
#define FCU_CLK6	0xd0

#define FCU_PROG	0xe8
#define FCU_PROG_DONE	0xd0

#define FCU_STATCLR	0x50

#define FCURAM_TOP	0x007f8000
#define FCUFIRM_TOP	0xfeffe000
#define FCUFIRM_SIZE	0x2000

/* call for forced to JSR */
int (*rx_flash_wait_frdy)(void);
int (*rx_flash_pe_mode)(unsigned long, unsigned char);
void (*rx_flash_normal_mode)(unsigned long);
int (*rx_flash_write_c)(uchar *, ulong, ulong, unsigned char);
int (*rx_flash_protect_c)(unsigned long, int, unsigned char);
int (*rx_flash_erase_page_c)(unsigned int, unsigned char);
