[coreboot-gerrit] Change in coreboot[master]: amd/pi/hudson: Add VBNV cmos reset option

Marc Jones (Code Review) gerrit at coreboot.org
Fri Apr 21 07:33:33 CEST 2017


Marc Jones has uploaded a new change for review. ( https://review.coreboot.org/19399 )

Change subject: amd/pi/hudson: Add VBNV cmos reset option
......................................................................

amd/pi/hudson: Add VBNV cmos reset option

If the mainboard supports VBNV, call init_vbnv_cmos() instead of
the normal init_cmos(). The VBNV version does some VBNV pre
and post setup around the normal init_cmos().

Change-Id: I34b02409019b945cd68c830e006e99338643f29c
Signed-off-by: Marc Jones <marcj303 at gmail.com>
---
M src/southbridge/amd/pi/hudson/lpc.c
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/19399/1

diff --git a/src/southbridge/amd/pi/hudson/lpc.c b/src/southbridge/amd/pi/hudson/lpc.c
index d73979c..93ac295 100644
--- a/src/southbridge/amd/pi/hudson/lpc.c
+++ b/src/southbridge/amd/pi/hudson/lpc.c
@@ -29,6 +29,7 @@
 #include <pc80/i8254.h>
 #include <pc80/i8259.h>
 #include "hudson.h"
+#include <vboot/vbnv.h>
 
 static void lpc_init(device_t dev)
 {
@@ -76,7 +77,10 @@
 	 * update CMOS unless it is invalid.
 	 * 1 tells cmos_init to always initialize the CMOS.
 	 */
-	cmos_init(0);
+	if (IS_ENABLED(CONFIG_VBOOT_VBNV_CMOS))
+		init_vbnv_cmos(0);
+	else
+		cmos_init(0);
 
 	/* Initialize i8259 pic */
 	setup_i8259 ();

-- 
To view, visit https://review.coreboot.org/19399
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I34b02409019b945cd68c830e006e99338643f29c
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Marc Jones <marc at marcjonesconsulting.com>



More information about the coreboot-gerrit mailing list