Changeset 18b6a88 in mainline for kernel/genarch/src/drivers/am335x/timer.c
- Timestamp:
- 2018-04-15T09:35:04Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/am335x/timer.c
r8ebe212 r18b6a88 47 47 48 48 typedef struct timer_regs_mmap { 49 50 49 uintptr_t base; 50 size_t size; 51 51 } timer_regs_mmap_t; 52 52 53 53 static const timer_regs_mmap_t regs_map[TIMERS_MAX] = { 54 54 { .base = AM335x_DMTIMER0_BASE_ADDRESS, .size = AM335x_DMTIMER0_SIZE }, 55 { 0, 0}, /* DMTIMER1 is not supported by this driver */55 { 0, 0 }, /* DMTIMER1 is not supported by this driver */ 56 56 { .base = AM335x_DMTIMER2_BASE_ADDRESS, .size = AM335x_DMTIMER2_SIZE }, 57 57 { .base = AM335x_DMTIMER3_BASE_ADDRESS, .size = AM335x_DMTIMER3_SIZE }, … … 67 67 am335x_timer_regs_t *regs = timer->regs; 68 68 69 while (regs->twps & reg); 69 while (regs->twps & reg) 70 ; 70 71 71 72 switch (reg) { … … 149 150 timer->regs->tiocp_cfg |= AM335x_TIMER_TIOCPCFG_SOFTRESET_FLAG; 150 151 /* Wait until the reset is done */ 151 while (timer->regs->tiocp_cfg & AM335x_TIMER_TIOCPCFG_SOFTRESET_FLAG); 152 while (timer->regs->tiocp_cfg & AM335x_TIMER_TIOCPCFG_SOFTRESET_FLAG) 153 ; 152 154 } 153 155
Note:
See TracChangeset
for help on using the changeset viewer.