factor out common config for k8x8xx's dram_enable() and vt8237r_cfg()
authorFlorian Zumbiehl <florz@florz.de>
Tue, 1 Nov 2011 19:18:30 +0000 (20:18 +0100)
committerPatrick Georgi <patrick@georgi-clan.de>
Mon, 7 Nov 2011 18:17:24 +0000 (19:17 +0100)
commit1e1e8593bc9218c62dc187ce965020045ab385ea
tree5be431b360fabb20aa5adaa8a2b4f59c6112bd37
parent7b1d295f62be4c4d59ea8d1ac18e8ef0bedbca6e
factor out common config for k8x8xx's dram_enable() and vt8237r_cfg()

Instead of writing to config registers in k8x8xx's dram_enable()
and reading those back in vt8237r_cfg(), factor out generation of
the values and reuse that in both places.

Change-Id: I87a37398efe84b33e6678df74cd40b5abfe4f879
Signed-off-by: Florian Zumbiehl <florz@florz.de>
Reviewed-on: http://review.coreboot.org/378
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/southbridge/via/k8t890/ctrl.c
src/southbridge/via/k8t890/dram.c
src/southbridge/via/k8t890/k8x8xx.h