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@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(); }