Searched refs:mtd_device (Results 1 – 2 of 2) sorted by relevance
78 static struct rt_mtd_nor_device mtd_device; variable100 mtd_device.block_size = BLOCK_SIZE; /* 64kByte */ in swm_norflash_init()101 mtd_device.ops = &swm_mtd_ops; in swm_norflash_init()109 mtd_device.block_start = 0; in swm_norflash_init()110 mtd_device.block_end = BLOCK_COUNTER; in swm_norflash_init()113 rt_mtd_nor_register_device("nor", &mtd_device); in swm_norflash_init()
23 struct rt_mtd_nor_device mtd_device; member127 mtd.mtd_device.block_start = 0; in rt_onchip_flash_init()128 mtd.mtd_device.block_end = (mtd.pflashTotalSize - mtd.destAdrss) / mtd.pflashSectorSize; in rt_onchip_flash_init()129 mtd.mtd_device.block_size = mtd.pflashSectorSize; in rt_onchip_flash_init()132 mtd.mtd_device.ops = &mcx_mtd_chipflashops; in rt_onchip_flash_init()133 rt_mtd_nor_register_device("mflash", &(mtd.mtd_device)); in rt_onchip_flash_init()
Completed in 6 milliseconds