From 743a6d0a5741bc0d4ef5ccc1c2e59ba8736c711e Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 10 Sep 2013 23:15:47 +0200 Subject: [PATCH] hwstub: add pix clock setup Change-Id: I94f764c0fcfb47bd9ccafe23f6d6079b42f23826 --- utils/hwstub/tools/lua/stmp/lcdif.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/hwstub/tools/lua/stmp/lcdif.lua b/utils/hwstub/tools/lua/stmp/lcdif.lua index a2f085e166..7d22edb937 100644 --- a/utils/hwstub/tools/lua/stmp/lcdif.lua +++ b/utils/hwstub/tools/lua/stmp/lcdif.lua @@ -4,6 +4,12 @@ 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() HW.LCDIF.CTRL.SFTRST.set() HW.LCDIF.CTRL.SFTRST.clr()