soc/mediatek/mt8195: Add clk_buf driver
Both mt8192 and mt8195 use mt6359p clk_buf. But mt8195 clk_buf uses legacy co-clock mode without srclken_rc. Signed-off-by: Yuchen Huang <yuchen.huang@mediatek.corp-partner.google.com> Change-Id: Ie9ee91449a7a14e77231493f807b321b2dbaa6a6 Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/53896 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
committed by
Hung-Te Lin
parent
24c6355741
commit
6a6e58cb41
@@ -1,6 +1,7 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
|
#include <soc/clkbuf.h>
|
||||||
#include <soc/mt6315.h>
|
#include <soc/mt6315.h>
|
||||||
#include <soc/mt6359p.h>
|
#include <soc/mt6359p.h>
|
||||||
#include <soc/pmif.h>
|
#include <soc/pmif.h>
|
||||||
@@ -10,4 +11,5 @@ void platform_romstage_main(void)
|
|||||||
mtk_pmif_init();
|
mtk_pmif_init();
|
||||||
mt6359p_init();
|
mt6359p_init();
|
||||||
mt6315_init();
|
mt6315_init();
|
||||||
|
clk_buf_init();
|
||||||
}
|
}
|
||||||
|
@@ -5,8 +5,9 @@
|
|||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
#include <soc/clkbuf.h>
|
#include <soc/clkbuf.h>
|
||||||
#include <soc/pmif.h>
|
#include <soc/pmif.h>
|
||||||
|
#if CONFIG(SRCLKEN_RC_SUPPORT)
|
||||||
#include <soc/srclken_rc.h>
|
#include <soc/srclken_rc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BUFTAG "[CLKBUF]"
|
#define BUFTAG "[CLKBUF]"
|
||||||
#define buf_info(fmt, arg ...) printk(BIOS_INFO, BUFTAG "%s,%d: " fmt, \
|
#define buf_info(fmt, arg ...) printk(BIOS_INFO, BUFTAG "%s,%d: " fmt, \
|
@@ -1,7 +1,7 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#ifndef SOC_MEDIATEK_MT8192_CLKBUF_H
|
#ifndef SOC_MEDIATEK_COMMON_CLKBUF_H
|
||||||
#define SOC_MEDIATEK_MT8192_CLKBUF_H
|
#define SOC_MEDIATEK_COMMON_CLKBUF_H
|
||||||
|
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
|
|
||||||
@@ -66,4 +66,4 @@ DEFINE_BITFIELD(PMIC_RG_XO_VOTE, 10, 0)
|
|||||||
|
|
||||||
int clk_buf_init(void);
|
int clk_buf_init(void);
|
||||||
|
|
||||||
#endif /* SOC_MEDIATEK_MT8192_CLKBUF_H */
|
#endif /* SOC_MEDIATEK_COMMON_CLKBUF_H */
|
@@ -23,7 +23,7 @@ verstage-y += ../common/uart.c
|
|||||||
|
|
||||||
romstage-y += ../common/auxadc.c
|
romstage-y += ../common/auxadc.c
|
||||||
romstage-y += ../common/cbmem.c
|
romstage-y += ../common/cbmem.c
|
||||||
romstage-y += clkbuf.c srclken_rc.c
|
romstage-y += ../common/clkbuf.c srclken_rc.c
|
||||||
romstage-y += ../common/dram_init.c
|
romstage-y += ../common/dram_init.c
|
||||||
romstage-y += ../common/dramc_param.c
|
romstage-y += ../common/dramc_param.c
|
||||||
romstage-y += ../common/flash_controller.c
|
romstage-y += ../common/flash_controller.c
|
||||||
|
@@ -20,6 +20,7 @@ verstage-y += ../common/uart.c
|
|||||||
verstage-y += ../common/wdt.c
|
verstage-y += ../common/wdt.c
|
||||||
|
|
||||||
romstage-y += ../common/cbmem.c
|
romstage-y += ../common/cbmem.c
|
||||||
|
romstage-y += ../common/clkbuf.c
|
||||||
romstage-y += emi.c
|
romstage-y += emi.c
|
||||||
romstage-y += ../common/flash_controller.c
|
romstage-y += ../common/flash_controller.c
|
||||||
romstage-y += ../common/gpio.c gpio.c
|
romstage-y += ../common/gpio.c gpio.c
|
||||||
|
Reference in New Issue
Block a user