risc-v/mpfs: update clock configuration parameters

Update PLL configuration parameters to match the values provided
by the vendor.

Also remove extra call to mpfs_pll_config() as it's already called
at mpfs_clockconfig().

Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
This commit is contained in:
Eero Nurkkala 2022-06-15 14:56:18 +03:00 committed by Xiang Xiao
parent 4d4566e9ed
commit 5683e020e8
2 changed files with 5 additions and 7 deletions

View File

@ -570,8 +570,6 @@ static void mpfs_sgmii_setup(void)
putreg32(0x7f, MPFS_CFG_DDR_SGMII_PHY_DYN_CNTL);
}
}
mpfs_pll_config();
}
/****************************************************************************

View File

@ -38,11 +38,11 @@
#define LIBERO_SETTING_MSS_FMETER_DATAR 0x00000000
#define LIBERO_SETTING_MSS_PLL_REF_FB 0x00000500
#define LIBERO_SETTING_MSS_PLL_CTRL 0x01000037
#define LIBERO_SETTING_MSS_PLL_DIV_0_1 0x01000200
#define LIBERO_SETTING_MSS_PLL_DIV_2_3 0x0f000600
#define LIBERO_SETTING_MSS_PLL_DIV_0_1 0x01000100
#define LIBERO_SETTING_MSS_PLL_DIV_2_3 0x4b000300
#define LIBERO_SETTING_MSS_SSCG_REG_0 0x00000000
#define LIBERO_SETTING_MSS_SSCG_REG_1 0x00000000
#define LIBERO_SETTING_MSS_SSCG_REG_2 0x000000c0
#define LIBERO_SETTING_MSS_SSCG_REG_2 0x00000060
#define LIBERO_SETTING_MSS_SSCG_REG_3 0x00000001
#define LIBERO_SETTING_MSS_PLL_FRACN 0x00000000
#define LIBERO_SETTING_MSS_PLL_CTRL2 0x00001020
@ -579,7 +579,7 @@
#define LIBERO_SETTING_REFCLK_LPDDR4_1333_OFFSET_2 3
#define LIBERO_SETTING_REFCLK_LPDDR4_1333_OFFSET_3 0
#define LIBERO_SETTING_TIP_CFG_PARAMS 0x07cfe02f
#define LIBERO_SETTING_TIP_CFG_PARAMS 0x07cfe02a
#define LIBERO_SETTING_DDR_32_CACHE 0x80000000
#define LIBERO_SETTING_DDR_32_CACHE_SIZE 0x100000
@ -590,7 +590,7 @@
#define LIBERO_SETTING_DDR_64_NON_CACHE 0x1400000000
#define LIBERO_SETTING_DDR_64_NON_CACHE_SIZE 0x100000
#define LIBERO_SETTING_DPC_BITS 0x00050422
#define LIBERO_SETTING_DPC_BITS 0x0004c422
#define LIBERO_SETTING_DATA_LANES_USED 0x00000004
/* Cache settings */