]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: phytec: phycore_imx8mp: Set VDD_ARM to 0,95V
authorTeresa Remmet <t.remmet@phytec.de>
Wed, 7 Jul 2021 12:58:01 +0000 (12:58 +0000)
committerStefano Babic <sbabic@denx.de>
Sat, 10 Jul 2021 14:53:34 +0000 (16:53 +0200)
Increase VDD_ARM to prevent timing issues as VDD_SOC is
used in OD mode. Also increase GIC clock.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
board/phytec/phycore_imx8mp/spl.c
configs/phycore-imx8mp_defconfig

index 0bc4c7693b0690a8d7d6697ca135688b455528bd..815ca9badcbad6c7d512819a4cc6a69b3e1ca859 100644 (file)
@@ -62,7 +62,8 @@ int power_init_board(void)
        /* BUCKxOUT_DVS0/1 control BUCK123 output */
        pmic_reg_write(p, PCA9450_BUCK123_DVS, 0x29);
 
-       /* increase VDD_SOC to typical value 0.95V */
+       /* Increase VDD_SOC and VDD_ARM to OD voltage 0.95V */
+       pmic_reg_write(p, PCA9450_BUCK1OUT_DVS0, 0x1C);
        pmic_reg_write(p, PCA9450_BUCK2OUT_DVS0, 0x1C);
 
        /* set WDOG_B_CFG to cold reset */
@@ -71,6 +72,14 @@ int power_init_board(void)
        return 0;
 }
 
+void spl_board_init(void)
+{
+       /* Set GIC clock to 500Mhz for OD VDD_SOC. */
+       clock_enable(CCGR_GIC, 0);
+       clock_set_target_val(GIC_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(5));
+       clock_enable(CCGR_GIC, 1);
+}
+
 int board_fit_config_name_match(const char *name)
 {
        return 0;
index a22f5e089d976a523ec216580c56e2256aea2971..89c2ac977f479a5c3086b172300e5335780ae505 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/imx8m/imximage-8mp-lpddr4.cfg"
 CONFIG_DEFAULT_FDT_FILE="oftree"
 CONFIG_BOARD_LATE_INIT=y
+CONFIG_SPL_BOARD_INIT=y
 CONFIG_SPL_BOOTROM_SUPPORT=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_SEPARATE_BSS=y