Merge "ipq5332: update clock for ethernet"

This commit is contained in:
Linux Build Service Account 2022-11-28 14:00:15 -08:00 committed by Gerrit - the friendly Code Review server
commit 89dac730c3

View file

@ -342,6 +342,16 @@ void frequency_init(void)
{
unsigned int reg_val;
/* PCNOC_BFDCD frequency for Uniphy AHB 100M */
reg_val = readl(GCC_PCNOC_BFDCD_CFG_RCGR);
reg_val &= ~0x7ff;
writel(reg_val | PCCNOC_BFDCD_SRC_SEL | PCCNOC_BFDCD_DIV_SEL,
GCC_PCNOC_BFDCD_CFG_RCGR);
reg_val = readl(GCC_PCNOC_BFDCD_CMD_RCGR);
writel(reg_val | CMD_UPDATE, GCC_PCNOC_BFDCD_CMD_RCGR);
mdelay(1);
writel(reg_val | ROOT_EN, GCC_PCNOC_BFDCD_CMD_RCGR);
/* GCC NSS frequency 100M */
reg_val = readl(NSS_CC_CFG_CFG_RCGR);
reg_val &= ~0x7ff;