# this is for EP9315 with the LQ64D343, 640x480 8bpp setenv ${txt_file} setenv message echo setup registers for sphere fb LQ64D323 8bpp # some register can't be written without unlocking first setenv syscon_lock mw 0x809300c0 0x000000aa setenv raster_lock mw 0x8003007c 0x000000aa # here are the actual registers setenv vidclkdiv mw 0x80930084 0x0000c205 setenv pixelmode mw 0x80030054 0x0000000a setenv scrnlines mw 0x80030030 0x000001df setenv vlinestep mw 0x80030038 0x000000a0 setenv hclktotal mw 0x80030010 0x0000031f setenv hclkstrtstop mw 0x8003001c 0x0031f031f setenv hactstrtstop mw 0x80030018 0x001F029F setenv hblnkstrtstop mw 0x8003022c 0x001F029F setenv hsyncstrtstop mw 0x80030014 0x02BF031F setenv vlinestotal mw 0x80030000 0x00000227 setenv vclkstrtstop mw 0x8003000C 0x02270227 setenv vsyncstrtstop mw 0x80030004 0x02010205 setenv vactstrtstop mw 0x80030008 0x000301e3 setenv vblnkstrtstop mw 0x80030228 0x022701e3 setenv videoattribs mw 0x80030024 0x00000000 # too many to fit on a single command/line setenv hw1 run message syscon_lock vidclkdiv pixelmode scrnlines vlinestep setenv hw2 run raster_lock hclktotal raster_lock hclkstrtstop raster_lock hactstrtstop setenv hw3 run raster_lock hblnkstrtstop raster_lock hsyncstrtstop raster_lock vlinestotal setenv hw4 run raster_lock vclkstrtstop raster_lock vsyncstrtstop raster_lock vactstrtstop setenv hw5 run raster_lock vblnkstrtstop raster_lock videoattribs # run all of them setenv hw_config run hw1 hw2 hw3 hw4 hw5