summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorhenryc.chen <henryc.chen@mediatek.com>2015-07-31 17:10:52 +0800
committerPatrick Georgi <pgeorgi@google.com>2015-12-04 21:52:48 +0100
commit31ae314f0fa3c06d8dcc9d830b8844acd2299ed4 (patch)
treeeadec00553cf452c66502e1320af9db797fd3846 /src/mainboard
parenta91402fc1ee341fca6bec6df76960f68e8b0f8ce (diff)
mediatek/mt8173: Add mt6391 PMIC driver
BUG=none TEST=emerge-oak coreboot BRANCH=none Change-Id: I2b9e1fc16183a29ba308313d347f2f0e948e96a7 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: ee56cab3b5c04838af80690c21d3aa160d71501a Original-Change-Id: I2eaa0a406c29b7c9012e3c9860967fc3f27a48a5 Original-Signed-off-by: henryc.chen <henryc.chen@mediatek.com> Original-Reviewed-on: https://chromium-review.googlesource.com/292669 Original-Commit-Ready: Yidi Lin <yidi.lin@mediatek.com> Original-Tested-by: Yidi Lin <yidi.lin@mediatek.com> Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/12608 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/oak/bootblock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/oak/bootblock.c b/src/mainboard/google/oak/bootblock.c
index e82ad6ea90..54301e401a 100644
--- a/src/mainboard/google/oak/bootblock.c
+++ b/src/mainboard/google/oak/bootblock.c
@@ -18,9 +18,11 @@
*/
#include <arch/io.h>
+#include <boardid.h>
#include <bootblock_common.h>
#include <delay.h>
#include <soc/gpio.h>
+#include <soc/mt6391.h>
#include <soc/pericfg.h>
#include <soc/pinmux.h>
@@ -49,4 +51,7 @@ void bootblock_mainboard_init(void)
i2c_set_gpio_pinmux();
setup_chromeos_gpios();
+
+ if (board_id() < 4)
+ mt6391_enable_reset_when_ap_resets();
}