19 Commits

Author SHA1 Message Date
Danny Milosavljevic
783cbd59fc
meminfo: Replace sys/io.h by direct register accesses.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
2020-10-08 23:01:31 +02:00
Bernhard Nortmann
beed002864 meminfo: Add missing version output, fix initializer syntax
(Changing to a proper struct initializer avoids a possible
compiler warning.)

Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
2016-10-28 12:28:34 +02:00
Luc Verhaegen
2d3bd246d3 meminfo: add sun6i register printing
Since we lack enough information to get parameters.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Chen-Yu Tsai <wens@csie.org>
2014-09-06 11:27:03 +02:00
Luc Verhaegen
2746a1b491 meminfo: increment clock n value for sun6i/8i
Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Chen-Yu Tsai <wens@csie.org>
2014-09-06 11:26:59 +02:00
Luc Verhaegen
33105c26a0 meminfo: move soc version checking to main
Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Chen-Yu Tsai <wens@csie.org>
2014-09-06 11:26:55 +02:00
Luc Verhaegen
a82dcb811d meminfo: move sun4i code to its own function.
Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Chen-Yu Tsai <wens@csie.org>
2014-09-06 11:26:51 +02:00
Luc Verhaegen
490040ff9b meminfo: make existing code sun4i specific
Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Chen-Yu Tsai <wens@csie.org>
2014-09-06 11:26:45 +02:00
Luc Verhaegen
4f740a2ec7 meminfo: make dram clock code more generic
Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Chen-Yu Tsai <wens@csie.org>
2014-09-06 11:26:38 +02:00
Luc Verhaegen
ce6ba28a0c meminfo: add a33 and a80 ids
Signed-off-by: Luc Verhaegen <libv@skynet.be>
Acked-by: Chen-Yu Tsai <wens@csie.org>
2014-09-06 11:26:15 +02:00
Luc Verhaegen
1d8e2061da meminfo: (re-)introduce fex and usage printing
Triggered by command line arguments.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-09-02 18:59:07 +02:00
Luc Verhaegen
0471a131ab meminfo: fill in tpr4 on sun7i
Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-09-02 18:59:07 +02:00
Luc Verhaegen
cac31a406e meminfo: read in soc version
And bail if it fails to match anything we support.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-09-02 18:59:02 +02:00
Luc Verhaegen
801c821f49 meminfo: various cleanups
No functional changes.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-08-20 01:48:32 +02:00
Luc Verhaegen
6db88cd1ed meminfo: rewrite dram parameter reading
Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-08-20 01:47:52 +02:00
Luc Verhaegen
a67b777d2c meminfo: rewrite pll5 retrieval
Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-08-20 01:47:52 +02:00
Luc Verhaegen
e5b5a1eb39 meminfo: fix up printing
Now we write out a dram file for u-boot directly.

Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-08-20 01:47:41 +02:00
Luc Verhaegen
f52cd86989 meminfo: rewrite /dev/mem handling
Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-08-18 08:16:32 +02:00
Luc Verhaegen
9ebe16b245 meminfo: fix up density calculation
Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-08-16 04:07:20 +02:00
Luc Verhaegen
d4e34bcb5a meminfo: rename and add to build
* rename a10-meminfo to meminfo
* add static build to Makefile
* fix operand warning
* built binary verified on proper linux and android

Signed-off-by: Luc Verhaegen <libv@skynet.be>
2014-08-14 22:55:13 +02:00