Changeset 7290ca0 in mainline


Ignore:
Timestamp:
2012-10-11T23:45:45Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7eb49f4
Parents:
601fa93
Message:

rootamdm37x: fix missing semicolon and add some debug output.

File:
1 edited

Legend:

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

    r601fa93 r7290ca0  
    3737#define _DDF_DATA_IMPLANT
    3838
     39#define DEBUG_CM
     40
    3941#include <ddf/driver.h>
    4042#include <ddf/log.h>
     
    152154
    153155        /* Always set DPLL5 to automatic */
    154         uint32_t reg = clock_control_cm->autoidle2_pll
     156        uint32_t reg = clock_control_cm->autoidle2_pll;
    155157        reg &= ~(CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_MASK <<
    156158            CLOCK_CONTROL_CM_AUTOIDLE2_PLL_AUTO_PERIPH2_DPLL_SHIFT);
     
    159161        clock_control_cm->autoidle2_pll = reg;
    160162
     163#ifdef DEBUG_CM
     164        printf("DPLL5 could be on: %x %x.\n",
     165            clock_control_cm->idlest_ckgen, clock_control_cm->idlest2_ckgen);
     166#endif
     167
    161168        if (on) {
    162169                /* Enable interface and function clock for USB TLL */
     
    168175                usb_host_cm->fclken |= USBHOST_CM_FCLKEN_EN_USBHOST1_FLAG;
    169176                usb_host_cm->fclken |= USBHOST_CM_FCLKEN_EN_USBHOST2_FLAG;
     177#ifdef DEBUG_CM
     178        printf("DPLL5 (and everything else) should be on: %x %x.\n",
     179            clock_control_cm->idlest_ckgen, clock_control_cm->idlest2_ckgen);
     180#endif
    170181        } else {
    171182                /* Disable interface and function clock for USB hosts */
Note: See TracChangeset for help on using the changeset viewer.