X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=onenand_ipl%2Fonenand_ipl.h;h=412572a08dcc59372d5da411e3d532852e8d10e7;hb=206af3527c05e520e28d38a48a1d15433e34675d;hp=9188b96625dca9bad0112d40a8c5579637da8514;hpb=27f33e9f45ef7f9685cbdc65066a1828e85dde4f;p=oweals%2Fu-boot.git diff --git a/onenand_ipl/onenand_ipl.h b/onenand_ipl/onenand_ipl.h index 9188b96625..412572a08d 100644 --- a/onenand_ipl/onenand_ipl.h +++ b/onenand_ipl/onenand_ipl.h @@ -23,21 +23,13 @@ #include -#define ONENAND_BLOCK_SIZE 2048 +#define onenand_readw(a) readw(THIS_ONENAND(a)) +#define onenand_writew(v, a) writew(v, THIS_ONENAND(a)) -#ifndef CFG_PRINTF -#define printf(format, args...) -#endif - -#define onenand_readw(a) readw(a) -#define onenand_writew(v, a) writew(v, a) - -#define THIS_ONENAND(a) (CFG_ONENAND_BASE + (a)) +#define THIS_ONENAND(a) (CONFIG_SYS_ONENAND_BASE + (a)) #define READ_INTERRUPT() \ onenand_readw(THIS_ONENAND(ONENAND_REG_INTERRUPT)) -#define ONENAND_PAGE_SIZE 2048 - -extern int onenand_read_block0(unsigned char *buf); +extern int onenand_read_block(unsigned char *buf); #endif