Changeset a1b9f63 in mainline for kernel/genarch/include
- Timestamp:
- 2018-08-31T10:32:40Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6bf5b8c
- Parents:
- b1834a01
- git-author:
- Jakub Jermar <jakub@…> (2018-08-31 09:54:11)
- git-committer:
- Jakub Jermar <jakub@…> (2018-08-31 10:32:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/genarch/drivers/amdm37x/gpt.h
rb1834a01 ra1b9f63 208 208 // TODO find a nicer way to setup 32kHz clock source for timer1 209 209 // reg 0x48004C40 is CM_CLKSEL_WKUP see page 485 of the manual 210 ioport32_t *clksel = (void *) km_map(0x48004C40, 4, PAGE_NOT_CACHEABLE); 210 ioport32_t *clksel = (void *) km_map(0x48004C40, 4, PAGE_SIZE, 211 PAGE_NOT_CACHEABLE); 211 212 *clksel &= ~1; 212 213 km_unmap((uintptr_t)clksel, 4); … … 214 215 assert(timer); 215 216 /* Map control register */ 216 timer->regs = (void *) km_map(ioregs, iosize, PAGE_NOT_CACHEABLE); 217 timer->regs = (void *) km_map(ioregs, iosize, KM_NATURAL_ALIGNMENT, 218 PAGE_NOT_CACHEABLE); 217 219 218 220 /* Reset the timer */
Note:
See TracChangeset
for help on using the changeset viewer.
