#  this is for Sphere with the LQ64D343, 640x480 16bpp
setenv message echo setup registers for sphere fb 16bpp
#  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 0x0000140c
setenv scrnlines mw 0x80030030 0x000001E0
setenv vlinestep mw 0x80030038 0x00000140
setenv hclktotal mw 0x80030010 0x0000031f
setenv hactstrtstop mw 0x80030018 0x001F029F
setenv hsyncstrtstop mw 0x80030014 0x02BF031F
setenv vlinestotal mw 0x80030000 0x00000227
setenv vsyncstrtstop mw 0x80030004 0x02010205
#  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 hactstrtstop
setenv hw3 run raster_lock hsyncstrtstop raster_lock vlinestotal
setenv hw4 run raster_lock vsyncstrtstop
#  run all of them
setenv hw_config run hw1 hw2 hw3 hw4