Lines Matching refs:FLASH_BASE
57 static volatile unsigned char *FLASH_BASE; variable
70 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x90; in get_flash_id()
72 c1 = *(volatile unsigned char *) FLASH_BASE; in get_flash_id()
79 c2 = *(volatile unsigned char *) (FLASH_BASE + 2); in get_flash_id()
81 c2 = *(volatile unsigned char *) (FLASH_BASE + 1); in get_flash_id()
88 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0xFF; in get_flash_id()
137 ret = simple_read_from_buffer(buf, size, ppos, (void *)FLASH_BASE, gbFlashSize); in flash_read()
307 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in erase_block()
313 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in erase_block()
319 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + 0x8000 + (nBlock << 16))); in erase_block()
371 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in erase_block()
380 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + (nBlock << 16))); in erase_block()
407 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); in write_block()
432 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in write_block()
457 *(volatile unsigned char *) (FLASH_BASE + 0x10000) = 0x70; in write_block()
470 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in write_block()
480 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in write_block()
491 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0xFF; in write_block()
502 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in write_block()
510 pWritePtr - FLASH_BASE); in write_block()
520 pWritePtr - FLASH_BASE); in write_block()
532 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); in write_block()
541 pWritePtr - FLASH_BASE, c1, c); in write_block()
591 FLASH_BASE = ioremap(DC21285_FLASH, KFLASH_SIZE4); in nwflash_init()
592 if (!FLASH_BASE) in nwflash_init()
598 iounmap((void *)FLASH_BASE); in nwflash_init()
608 iounmap((void *)FLASH_BASE); in nwflash_init()
618 iounmap((void *)FLASH_BASE); in nwflash_exit()