meminfo: rewrite /dev/mem handling

Signed-off-by: Luc Verhaegen <libv@skynet.be>
meminfo: fix up printing

Now we write out a dram file for u-boot directly.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
meminfo: rewrite pll5 retrieval

Signed-off-by: Luc Verhaegen <libv@skynet.be>
meminfo: rewrite dram parameter reading

Signed-off-by: Luc Verhaegen <libv@skynet.be>
meminfo: various cleanups

No functional changes.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
meminfo: read in soc version

And bail if it fails to match anything we support.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
meminfo: fill in tpr4 on sun7i

Signed-off-by: Luc Verhaegen <libv@skynet.be>
meminfo: (re-)introduce fex and usage printing

Triggered by command line arguments.

Signed-off-by: Luc Verhaegen <libv@skynet.be>