[coreboot-gerrit] Change in coreboot[master]: mb/pcengines/apu2/mainboard.c: enable power on after fail

Michał Żygowski (Code Review) gerrit at coreboot.org
Fri Jul 27 13:35:44 CEST 2018


Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/27663


Change subject: mb/pcengines/apu2/mainboard.c: enable power on after fail
......................................................................

mb/pcengines/apu2/mainboard.c: enable power on after fail

Due to vendor's requirements, board should power on after power failure.

Change-Id: I7b35db16e2090484e58d1307dc29049a1325c65f
Signed-off-by: Michał Żygowski <michal.zygowski at 3mdeb.com>
---
M src/mainboard/pcengines/apu2/mainboard.c
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/27663/1

diff --git a/src/mainboard/pcengines/apu2/mainboard.c b/src/mainboard/pcengines/apu2/mainboard.c
index 8f2d622..25daf3c 100644
--- a/src/mainboard/pcengines/apu2/mainboard.c
+++ b/src/mainboard/pcengines/apu2/mainboard.c
@@ -31,6 +31,7 @@
 
 #define SPD_SIZE  128
 #define PM_RTC_CONTROL	    0x56
+#define PM_RTC_SHADOW	    0x5B
 #define PM_S_STATE_CONTROL  0xBA
 
 
@@ -174,6 +175,11 @@
 	//
 	pm_write16 ( PM_S_STATE_CONTROL, pm_read16( PM_S_STATE_CONTROL ) | (1 << 14));
 
+	//
+	// Enable power on after power fail
+	//
+	pm_write8 ( PM_RTC_SHADOW, pm_read8( PM_RTC_SHADOW ) | (1 << 0));
+
 	/* Initialize the PIRQ data structures for consumption */
 	pirq_setup();
 }

-- 
To view, visit https://review.coreboot.org/27663
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7b35db16e2090484e58d1307dc29049a1325c65f
Gerrit-Change-Number: 27663
Gerrit-PatchSet: 1
Gerrit-Owner: Michał Żygowski <michal.zygowski at 3mdeb.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180727/cf8962d4/attachment.html>


More information about the coreboot-gerrit mailing list