Changeset 3f03199 in mainline for uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c
- Timestamp:
- 2013-09-15T06:33:53Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9348862
- Parents:
- dd7078c (diff), 1c0cef0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c
rdd7078c r3f03199 273 273 ddf_log_note("Setting mode: %ux%ux%u\n", x, y, bpp*8); 274 274 const size_t size = ALIGN_UP(x * y * bpp, PAGE_SIZE); 275 void *buffer, *pa; 276 int ret = dmamem_map_anonymous(size, AS_AREA_READ | AS_AREA_WRITE, 277 0, &pa, &buffer); 275 uintptr_t pa; 276 void *buffer; 277 int ret = dmamem_map_anonymous(size, DMAMEM_4GiB, 278 AS_AREA_READ | AS_AREA_WRITE, 0, &pa, &buffer); 278 279 if (ret != EOK) { 279 280 ddf_log_error("Failed to get new FB\n"); 280 281 return ret; 281 282 } 283 282 284 amdm37x_dispc_setup_fb(dispc->regs, x, y, bpp *8, (uint32_t)pa); 283 285 dispc->active_fb.idx = mode.index;
Note:
See TracChangeset
for help on using the changeset viewer.