[ifxmips] make mtd handel 128k sectors properly, based on patch by Ithamar R. Adema