CONFIG_STAT0
sc->memtype = (regr(sc, CONFIG_STAT0) >> 3) & 0x07;
sc->memtype = regr(sc, CONFIG_STAT0) & 0x07;