hwstub: add pix clock setup

Change-Id: I94f764c0fcfb47bd9ccafe23f6d6079b42f23826
This commit is contained in:
Amaury Pouly 2013-09-10 23:15:47 +02:00
parent 0ee25f62eb
commit 743a6d0a57

View file

@ -4,6 +4,12 @@
STMP.lcdif = {} STMP.lcdif = {}
function STMP.lcdif.setup_clock()
HW.CLKCTRL.CLKSEQ.BYPASS_PIX.set()
HW.CLKCTRL.PIX.CLKGATE.write(0)
HW.CLKCTRL.PIX.DIV.write(1)
end
function STMP.lcdif.init() function STMP.lcdif.init()
HW.LCDIF.CTRL.SFTRST.set() HW.LCDIF.CTRL.SFTRST.set()
HW.LCDIF.CTRL.SFTRST.clr() HW.LCDIF.CTRL.SFTRST.clr()