summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2017-04-20 16:55:24 -0600
committerMarc Jones <marc@marcjonesconsulting.com>2017-04-27 17:09:08 +0200
commit956a58e4fe7d0649ba4d5ab6128a8510d4146199 (patch)
treefa289d450687683c7ddc7337aa5c65c3e0e43034 /src
parenta2b7bd859a313db85632dd0d6d6e467c4a4f995d (diff)
downloadcoreboot-956a58e4fe7d0649ba4d5ab6128a8510d4146199.tar.xz
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@gmail.com> Reviewed-on: https://review.coreboot.org/19399 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/southbridge/amd/pi/hudson/lpc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/southbridge/amd/pi/hudson/lpc.c b/src/southbridge/amd/pi/hudson/lpc.c
index 60a1b88bae..c18a5590fa 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 @@ static void lpc_init(device_t dev)
* 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 ();