Changeset 0cf5246 in mainline
- Timestamp:
- 2012-08-31T18:06:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a8ca607b
- Parents:
- 2be2506a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/drivers/amdm37x_dispc/amdm37x_dispc.h
r2be2506a r0cf5246 290 290 { 291 291 ASSERT(regs); 292 #define WRITE_DUMP(name, value) \293 printf("Writing %s %p: %x. New: %x\n", #name, ®s->name, value, regs->name)294 292 /* Init sequence for dispc is in chapter 7.6.5.1.4 p. 1810, 295 293 * no idea what parts of that work. */ … … 335 333 /* setup output */ 336 334 regs->size_lcd = size_reg; 337 WRITE_DUMP(size_lcd, size_reg);338 335 regs->size_dig = size_reg; 339 WRITE_DUMP(size_dig, size_reg);340 336 341 337 /* Nice blue default color */ 342 338 regs->default_color[0] = 0x0000ff; 343 339 regs->default_color[1] = 0x0000ff; 344 WRITE_DUMP(default_color[0], 0xff);345 WRITE_DUMP(default_color[1], 0xff);346 340 347 341 /* Setup control register */ … … 352 346 AMDM37X_DISPC_CONTROL_GPOUT1_FLAG; 353 347 regs->control = control; 354 WRITE_DUMP(control, control);355 348 356 349 /* No gamma stuff only data */ … … 358 351 << AMDM37X_DISPC_CONFIG_LOADMODE_SHIFT); 359 352 regs->config = config; 360 WRITE_DUMP(config, config);361 353 362 354 … … 365 357 regs->gfx.ba[1] = pa; 366 358 regs->gfx.position = 0; 367 WRITE_DUMP(gfx.ba[0], pa);368 WRITE_DUMP(gfx.ba[1], pa);369 WRITE_DUMP(gfx.position, 0);370 359 371 360 /* Setup fb size */ 372 361 regs->gfx.size = size_reg; 373 WRITE_DUMP(gfx.size, size_reg);374 375 362 376 363 /* Set pixel format */ … … 378 365 (attrib_pixel_format << AMDM37X_DISPC_GFX_ATTRIBUTES_FORMAT_SHIFT); 379 366 regs->gfx.attributes = attribs; 380 WRITE_DUMP(gfx.attributes, attribs);381 367 382 368 /* 0x03ff03c0 is the default */ … … 391 377 /* Gamma and palette table */ 392 378 regs->gfx.table_ba = 0; 393 WRITE_DUMP(gfx.fifo_threshold, 0x03ff03c0);394 WRITE_DUMP(gfx.row_inc, 1);395 WRITE_DUMP(gfx.pixel_inc, 1);396 WRITE_DUMP(gfx.window_skip, 0);397 WRITE_DUMP(gfx.table_ba, 0);398 379 399 380 /* enable frame buffer graphics */
Note:
See TracChangeset
for help on using the changeset viewer.