LM_CHIPID_MASK
chipid = sc->lm_readreg(sc, LM_CHIPID) & LM_CHIPID_MASK;
switch (chipid & LM_CHIPID_MASK) {