summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
Diffstat (limited to 'board')
-rw-r--r--board/eve/board.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/board/eve/board.c b/board/eve/board.c
index b9577f8e4a..ac99a79efd 100644
--- a/board/eve/board.c
+++ b/board/eve/board.c
@@ -356,6 +356,16 @@ const struct button_config buttons[CONFIG_BUTTON_COUNT] = {
static void board_pmic_init(void)
{
+ /* Clear power source events */
+ i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x04, 0xff);
+
+ /* Disable power button shutdown timer */
+ i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x14, 0x00);
+
+ /* Disable VCCIO in ALL_SYS_PWRGD for early boards */
+ if (board_get_version() <= BOARD_VERSION_DVTB)
+ i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x18, 0x80);
+
if (system_jumped_to_this_image())
return;
@@ -382,16 +392,6 @@ static void board_pmic_init(void)
/* VRMODECTRL - disable low-power mode for all rails */
i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x3b, 0x1f);
-
- /* Clear power source events */
- i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x04, 0xff);
-
- /* Disable power button shutdown timer */
- i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x14, 0x00);
-
- /* Disable VCCIO in ALL_SYS_PWRGD for early boards */
- if (board_get_version() <= BOARD_VERSION_DVTB)
- i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x18, 0x80);
}
DECLARE_HOOK(HOOK_INIT, board_pmic_init, HOOK_PRIO_DEFAULT);