Changeset 60b0fd5 in rtems


Ignore:
Timestamp:
Feb 19, 2015, 8:20:13 AM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
ead16ae1
Parents:
31e4e25d
git-author:
Daniel Hellstrom <daniel@…> (02/19/15 08:20:13)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:15)
Message:

leon3: clock driver rely on previous found timer

No point in scanning for the same GPTIMER twice. Rely on
amba.c AMBA PnP scanning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/clock/ckinit.c

    r31e4e25d r60b0fd5  
    8888#define Clock_driver_support_find_timer() \
    8989  do { \
    90     struct ambapp_dev *adev; \
    91     \
    92     /* Find first LEON3 GP Timer */ \
    93     adev = (void *)ambapp_for_each(&ambapp_plb, (OPTIONS_ALL|OPTIONS_APB_SLVS),\
    94               VENDOR_GAISLER, GAISLER_GPTIMER, ambapp_find_by_idx, NULL); \
    95     if (adev) { \
    96       /* Found APB GPTIMER Timer */ \
    97       LEON3_Timer_Regs = (volatile struct gptimer_regs *) \
    98                          DEV_TO_APB(adev)->start; \
     90    /* Assume timer found during BSP initialization */ \
     91    if (LEON3_Timer_Regs) { \
    9992      clkirq = (LEON3_Timer_Regs->cfg & 0xf8) >> 3; \
    10093      \
Note: See TracChangeset for help on using the changeset viewer.