Changeset 7eb49f4 in mainline


Ignore:
Timestamp:
2012-10-12T21:29:35Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2a6b72
Parents:
7290ca0
Message:

rootamdm37x: Set DPLL 3 and 4 to automatic too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/infrastructure/rootamdm37x/rootamdm37x.c

    r7290ca0 r7eb49f4  
    153153        assert(clock_control_cm);
    154154
    155         /* Always set DPLL5 to automatic */
    156         uint32_t reg = clock_control_cm->autoidle2_pll;
     155        uint32_t reg;
     156
     157        /* Set DPLL3 and DPLL4 to automatic */
     158        reg = clock_control_cm->autoidle_pll;
     159        reg &= ~(CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_CORE_DPLL_MASK <<
     160            CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_CORE_DPLL_SHIFT);
     161        reg &= ~(CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_MASK <<
     162            CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_SHIFT);
     163        reg |= (CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_CORE_DPLL_AUTOMATIC <<
     164            CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_CORE_DPLL_SHIFT);
     165        reg |= (CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_AUTOMATIC <<
     166            CLOCK_CONTROL_CM_AUTOIDLE_PLL_AUTO_PERIPH_DPLL_SHIFT);
     167        clock_control_cm->autoidle_pll = reg;
     168
     169        /* Set DPLL5 to automatic */
     170        reg = clock_control_cm->autoidle2_pll;
    157171        reg &= ~(CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_MASK <<
    158172            CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_SHIFT);
     
    160174            CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_SHIFT);
    161175        clock_control_cm->autoidle2_pll = reg;
     176
    162177
    163178#ifdef DEBUG_CM
Note: See TracChangeset for help on using the changeset viewer.