forked from len0rd/rockbox
imx233/fuze+: correctly lcdif block
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30531 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eedbed1040
commit
11883f4785
1 changed files with 1 additions and 12 deletions
|
@ -41,18 +41,7 @@ void imx233_lcdif_enable(bool enable)
|
||||||
|
|
||||||
void imx233_lcdif_reset(void)
|
void imx233_lcdif_reset(void)
|
||||||
{
|
{
|
||||||
//imx233_reset_block(&HW_LCDIF_CTRL);// doesn't work
|
imx233_reset_block(&HW_LCDIF_CTRL);
|
||||||
while(HW_LCDIF_CTRL & __BLOCK_CLKGATE)
|
|
||||||
HW_LCDIF_CTRL &= ~__BLOCK_CLKGATE;
|
|
||||||
while(!(HW_LCDIF_CTRL & __BLOCK_SFTRST))
|
|
||||||
HW_LCDIF_CTRL |= __BLOCK_SFTRST;
|
|
||||||
while(HW_LCDIF_CTRL & __BLOCK_CLKGATE)
|
|
||||||
HW_LCDIF_CTRL &= ~__BLOCK_CLKGATE;
|
|
||||||
while(HW_LCDIF_CTRL & __BLOCK_SFTRST)
|
|
||||||
HW_LCDIF_CTRL &= ~__BLOCK_SFTRST;
|
|
||||||
while(HW_LCDIF_CTRL & __BLOCK_CLKGATE)
|
|
||||||
HW_LCDIF_CTRL &= ~__BLOCK_CLKGATE;
|
|
||||||
__REG_SET(HW_LCDIF_CTRL1) = HW_LCDIF_CTRL1__RESET;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void imx233_lcdif_set_timings(unsigned data_setup, unsigned data_hold,
|
void imx233_lcdif_set_timings(unsigned data_setup, unsigned data_hold,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue