Changeset 3406
- Timestamp:
- Nov 1, 2012 10:02:34 PM (7 months ago)
- File:
-
- 1 edited
-
cpu/arm/mmp3/hdmi.fth (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/mmp3/hdmi.fth
r3403 r3406 226 226 227 227 \ Tune these for best eye diagram 228 5 value damp 1value eamp 0 value cp229 0 value ajd 1 value svtx h# cvalue idrv228 6 value damp 2 value eamp 0 value cp 229 0 value ajd 1 value svtx 8 value idrv 230 230 231 231 : setup-phy ( freq -- ) 232 d rop \ We may need to retune the phy for different frequencies232 d# 148 = if 9 else 8 then to idrv 233 233 234 234 select-phy … … 324 324 \ : dither-table! ( n -- ) h# a4 lcd! ; 325 325 326 [ifdef] notdef327 : tv-clear ( reg# -- ) 0 swap lcd! ;328 : tv-unused-clear ( -- )329 h# 00 tv-clear h# 04 tv-clear h# 08 tv-clear \ Y0, U0, V0 start address330 h# 10 tv-clear h# 14 tv-clear h# 18 tv-clear \ Y1, U1, V1 start address331 h# 20 tv-clear h# 24 tv-clear \ Y+C pitch, U+V pitch332 h# 28 tv-clear \ Video starting point on screen333 h# 2c tv-clear h# 30 tv-clear \ Video source size, dest size334 h# 38 tv-clear \ Graphic frame 1 start address335 0 0 tv-gfx-offset!336 0 0 tv-cursor-pos!337 h# 68 tv-clear h# 6c tv-clear \ Cursor color 1, 2338 h# 70 tv-clear h# 74 tv-clear h# 78 tv-clear \ Y, U, V color keys339 ;340 : tv-enable ( -- ) h# 5140 tv-dma-ctrl0! ;341 : tv-misc ( -- )342 tv-unused-clear343 h# 283eff00 tv-dma-ctrl1!344 h# 00ff1001 tv-tvif!345 h# 60010005 tv-divider!346 ;347 : tv-base-res! ( hres vres -- )348 over bytes/pixel * tv-pitch! ( hres vres )349 2dup tv-gfx-dst-res! ( hres vres )350 tv-active! ( )351 ;352 [then]353 354 326 d# 16 value tv-bpp 355 327 : init-tv-graphics ( -- ) … … 368 340 7 d# 9 -bits \ Turn off YUV422PACK, YVYU422P, UYVY422P 369 341 370 1 d# 12 -bits \ RGBswap 371 \ 1 d# 12 +bits \ RGBswap 342 1 d# 12 +bits \ RGBswap (RGB, not BGR) 372 343 373 344 1 d# 27 +bits \ DMA AXI arbiter enable
Note: See TracChangeset
for help on using the changeset viewer.
