mtd driver : Port from Epicmtd