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()
335 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in erase_block()
341 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in erase_block()
347 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + 0x8000 + (nBlock << 16))); in erase_block()
399 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in erase_block()
408 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + (nBlock << 16))); in erase_block()
435 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); in write_block()
460 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in write_block()
485 *(volatile unsigned char *) (FLASH_BASE + 0x10000) = 0x70; in write_block()
498 c1 = *(volatile unsigned char *) (FLASH_BASE + 0x8000); in write_block()
508 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in write_block()
519 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0xFF; in write_block()
530 *(volatile unsigned char *) (FLASH_BASE + 0x8000) = 0x50; in write_block()
538 pWritePtr - FLASH_BASE); in write_block()
548 pWritePtr - FLASH_BASE); in write_block()
560 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); in write_block()
569 pWritePtr - FLASH_BASE, c1, c); in write_block()
619 FLASH_BASE = ioremap(DC21285_FLASH, KFLASH_SIZE4); in nwflash_init()
620 if (!FLASH_BASE) in nwflash_init()
626 iounmap((void *)FLASH_BASE); in nwflash_init()
636 iounmap((void *)FLASH_BASE); in nwflash_init()
646 iounmap((void *)FLASH_BASE); in nwflash_exit()