+/* register offsets */
+#define CFGCHIP_REG(n) (n * 4)
+#define CFGCHIP0_REG CFGCHIP_REG(0)
+#define CFGCHIP1_REG CFGCHIP_REG(1)
+#define CFGCHIP2_REG CFGCHIP_REG(2)
+#define CFGCHIP3_REG CFGCHIP_REG(3)
+#define CFGCHIP4_REG CFGCHIP_REG(4)
Why not just use CFGCHIP_REG(n) directly?
I considered that, but I went this way because A) the TRM uses, for example,
"CFGCHIP2", so I wanted to keep "CFGCHIP" and "2" together
and B) this tells
you how many CFGCHIP registers there are, i.e. there is no CFGCHIP5_REG.