From b5dfcae09728d38d8049e348a2b7654087b3a734 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 20 Jul 2012 10:21:29 +0200 Subject: cs5536: add smbus support in ramstage With this patch it is possible to use the smbus in ramstage. The biggest part of the patch is a simple code split into a general part (smbus.h) and the concrete users (early_smbus.c and cs5536.c). After the switch from romstage to ramstage the smb base address has changed, but that is no problem as the new base address is stored in bar0 of the ISA bridge. It could also be read via msr, but via PCI it is simpler. I used the following patch as reference on how to readout the new base address: http://lists.laptop.org/pipermail/commits-kernel/2006-November/000178.html Change-Id: I9f86a1e474368c62f9ed3a95edfb3e63117aa156 Signed-off-by: Christian Gmeiner Reviewed-on: http://review.coreboot.org/1243 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Patrick Georgi --- src/southbridge/amd/cs5536/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/southbridge/amd/cs5536/Makefile.inc') diff --git a/src/southbridge/amd/cs5536/Makefile.inc b/src/southbridge/amd/cs5536/Makefile.inc index 75c6e5c930..3d2613b4ce 100644 --- a/src/southbridge/amd/cs5536/Makefile.inc +++ b/src/southbridge/amd/cs5536/Makefile.inc @@ -20,3 +20,5 @@ driver-y += cs5536.c driver-y += ide.c driver-y += pirq.c +driver-y += smbus.c +romstage-y += smbus.c \ No newline at end of file -- cgit v1.2.3