summaryrefslogtreecommitdiff
path: root/src/soc/marvell/mvmap2315/pmic.c
diff options
context:
space:
mode:
authorHakim Giydan <hgiydan@marvell.com>2016-09-08 10:59:15 -0700
committerMartin Roth <martinroth@google.com>2016-09-13 16:59:08 +0200
commitf727c7ce38cc58eaf24c55d440e885a1b24a26a1 (patch)
treef03978e1169d8683d45bec9254ede78eff2cda39 /src/soc/marvell/mvmap2315/pmic.c
parent34c835db307666385374670123477434c99473ec (diff)
soc/marvell/mvmap2315: Add MCU driver
Testing: booted successfully. Change-Id: I003f6929b00476d46be931773cd35418fe6622a6 Signed-off-by: Hakim Giydan <hgiydan@marvell.com> Reviewed-on: https://review.coreboot.org/15529 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/marvell/mvmap2315/pmic.c')
-rw-r--r--src/soc/marvell/mvmap2315/pmic.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/soc/marvell/mvmap2315/pmic.c b/src/soc/marvell/mvmap2315/pmic.c
index f263804795..89ea5ebb60 100644
--- a/src/soc/marvell/mvmap2315/pmic.c
+++ b/src/soc/marvell/mvmap2315/pmic.c
@@ -22,6 +22,7 @@
#include <console/console.h>
#include <soc/apmu.h>
#include <soc/clock.h>
+#include <soc/mcu.h>
#include <soc/pmic.h>
static void syspwr_init(void)
@@ -121,5 +122,11 @@ void mcu_start(void)
u32 get_boot_path(void)
{
- return FULL_BOOT;
+ struct mcu_pwr_status_msg *msg;
+
+ mcu_irq();
+
+ msg = receive_mcu_msg();
+
+ return msg->status;
}