Lines Matching refs:FLASH_BASE
56 static volatile unsigned char *FLASH_BASE; variable
69 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x90; in get_flash_id()
71 c1 = *(volatile unsigned char *) FLASH_BASE; in get_flash_id()
78 c2 = *(volatile unsigned char *) (FLASH_BASE + 2); in get_flash_id()
80 c2 = *(volatile unsigned char *) (FLASH_BASE + 1); in get_flash_id()
87 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0xFF; in get_flash_id()
136 ret = simple_read_from_buffer(buf, size, ppos, (void *)FLASH_BASE, gbFlashSize); in flash_read()
306 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in erase_block()
312 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in erase_block()
318 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + 0x8000 + (nBlock << 16))); in erase_block()
370 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in erase_block()
379 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + (nBlock << 16))); in erase_block()
406 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); in write_block()
431 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in write_block()
456 *(volatile unsigned char *) (FLASH_BASE + 0x10000) = 0x70; in write_block()
469 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in write_block()
479 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in write_block()
490 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0xFF; in write_block()
501 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in write_block()
509 pWritePtr - FLASH_BASE); in write_block()
519 pWritePtr - FLASH_BASE); in write_block()
531 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); in write_block()
540 pWritePtr - FLASH_BASE, c1, c); in write_block()
590 FLASH_BASE = ioremap(DC21285_FLASH, KFLASH_SIZE4); in nwflash_init()
591 if (!FLASH_BASE) in nwflash_init()
597 iounmap((void *)FLASH_BASE); in nwflash_init()
607 iounmap((void *)FLASH_BASE); in nwflash_init()
617 iounmap((void *)FLASH_BASE); in nwflash_exit()