This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM4376: PLL configuration

Genius 5785 points
Part Number: AM4376

Tool/software: Linux

Hello Experts,

Based on AM437x PSDK-Linux v4.3, I'm checking software changes for custom board. I understand I can configure register setting of MPU PLL and CORE PLL with the following file.

u-boot/board/ti/am43xx/board.c

However, I don't know which file should be configured for Display PLL and EXTDEV PLL. Could you give me some advice?

Regards,
Kazu

  • Hi kazu,

    Regarding EXTDEV PLL and Display PLL, we have no configuration code in u-boot. You can add your own, see for EXTDEV PLL example below file:

    u-boot/board/compulab/cm_t43/cm_t43.c

    static void board_phy_init(void)
    {
    set_mdio_pin_mux();
    writel(0x40003, 0x44e10a74); /* Mux pin as clkout2 */ //CTRL_CONF_XDMA_EVT_INTR1[3:0] = 0x3
    writel(0x10006, 0x44df4108); /* Select EXTDEV as clock source */ //PRCM_CM_CLKOUT2_CTRL[2:0] = 0x6
    writel(0x4, 0x44df2e60); /* Set EXTDEV as MNbypass */ //PRCM_CM_CLKMODE_DPLL_EXTDEV[[2:0] = 0x4

    /* For revision A */
    writel(0x2000009, 0x44df2e6c); //PRCM_CM_CLKSEL_DPLL_EXTDEV
    writel(0x38a, 0x44df2e70); //PRCM_CM_DIV_M2_DPLL_EXTDEV

    Note also that the default value is determined by sysboot5 pin value, check AM437x TRM, section 5.2.5.2 SYSBOOT Configuration Pins

    Regards,
    Pavel

  • Hi Pavel,

    Thank you for your prompt reply. I might add initial processing for Display PLL and EXTDEV PLL into setup_dplls function below.

    u-boot/arch/arm/mach-omap2/am33xx/clock.c

    Regards,
    Kazu