driver tmcm: add referencing

seems to basically work
Needs more tweaking probably.