soc/mediatek/mt8192: add pmif driver

MT8192 uses power management interface (PMIF) to access pmics by spmi
and spi, so we add pmif driver to control pmics.

BUG=b:155253454
BRANCH=none
TEST=boot asurada correctly

Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
Change-Id: I32fc28f72d9522133baa06f9d67c383f814d862c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45398
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Hsin-Hsiung Wang
2020-05-29 19:46:14 +08:00
committed by Hung-Te Lin
parent ec6cff2f20
commit 22f8370def
13 changed files with 1440 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
#include <bootblock_common.h>
#include <soc/mmu_operations.h>
#include <soc/pll.h>
#include <soc/pmif.h>
#include <soc/wdt.h>
void bootblock_soc_init(void)
@@ -10,4 +11,5 @@ void bootblock_soc_init(void)
mtk_mmu_init();
mtk_wdt_init();
mt_pll_init();
mtk_pmif_init();
}