### TODO 1. [x] Reconcile read_regmap.py with the one in ../../../build-tools/.