Changeset dafacfa7 in rtems


Ignore:
Timestamp:
Jul 18, 2012, 7:26:13 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
64d72e8
Parents:
b9b3f3b7
git-author:
Sebastian Huber <sebastian.huber@…> (07/18/12 07:26:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/18/12 07:46:14)
Message:

bsp/mpc55xx: Add MPC55XX_SYSTEM_CLOCK_DIVIDER

Location:
c/src/lib/libbsp/powerpc/mpc55xxevb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac

    rb9b3f3b7 rdafacfa7  
    7373RTEMS_BSPOPTS_HELP([MPC55XX_FMPLL_MFD],
    7474[Must be defined to be the PLL multiplication factor for clock generation])
     75
     76RTEMS_BSPOPTS_SET([MPC55XX_SYSTEM_CLOCK_DIVIDER],[mpc5674f*],[2])
     77RTEMS_BSPOPTS_SET([MPC55XX_SYSTEM_CLOCK_DIVIDER],[*],[1])
     78RTEMS_BSPOPTS_HELP([MPC55XX_SYSTEM_CLOCK_DIVIDER],
     79[system clock divider])
    7580
    7681RTEMS_BSPOPTS_SET([MPC55XX_EMIOS_PRESCALER],[gwlcfm],[66])
  • c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in

    rb9b3f3b7 rdafacfa7  
    8484#undef MPC55XX_REFERENCE_CLOCK
    8585
     86/* system clock divider */
     87#undef MPC55XX_SYSTEM_CLOCK_DIVIDER
     88
    8689/* Define to the address where bug reports for this package should be sent. */
    8790#undef PACKAGE_BUGREPORT
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c

    rb9b3f3b7 rdafacfa7  
    9696        ppc_cpu_id_t myCpu;
    9797        ppc_cpu_revision_t myCpuRevision;
    98 #if defined(MPC55XX_BOARD_MPC5674FEVB)
    99         unsigned system_clock_divider = 2;
    100 #else
    101         unsigned system_clock_divider = 1;
    102 #endif
    10398
    10499        null_pointer_protection();
     
    120115         * determine clock speed
    121116         */
    122         bsp_clock_speed = mpc55xx_get_system_clock() / system_clock_divider;
     117        bsp_clock_speed = mpc55xx_get_system_clock() / MPC55XX_SYSTEM_CLOCK_DIVIDER;
    123118
    124119        /* Time reference value */
Note: See TracChangeset for help on using the changeset viewer.