mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
hm60x/hm801: Fix USB DAC functionality
GPIOA pin 1 used for USB DAC. This configures IO mux for using GPIOA 0-4 pins instead of lcd data16-18,20,22, which are not needed, because hifiman's lcd works in 16bit mode. Change-Id: I47fe72abee56aebc56ef1c4c8a07a93698dcaa49
This commit is contained in:
parent
7b99318710
commit
35153885c1
1 changed files with 4 additions and 1 deletions
|
|
@ -122,13 +122,16 @@ static void lcdctrl_init(void)
|
||||||
LCDC_INTR_MASK = INTR_MASK_LINE; /* INTR_MASK_EVENLINE; */
|
LCDC_INTR_MASK = INTR_MASK_LINE; /* INTR_MASK_EVENLINE; */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* configure pins to drive lcd in 18bit mode */
|
/* configure pins to drive lcd in 18bit mode (16bit mode for HiFiMAN's) */
|
||||||
static void iomux_lcd(void)
|
static void iomux_lcd(void)
|
||||||
{
|
{
|
||||||
unsigned long muxa;
|
unsigned long muxa;
|
||||||
|
|
||||||
muxa = SCU_IOMUXA_CON & ~(IOMUX_LCD_VSYNC|IOMUX_LCD_DEN|0xff);
|
muxa = SCU_IOMUXA_CON & ~(IOMUX_LCD_VSYNC|IOMUX_LCD_DEN|0xff);
|
||||||
|
|
||||||
|
#if !defined(HM801) && !defined(HM60x)
|
||||||
muxa |= IOMUX_LCD_D18|IOMUX_LCD_D20|IOMUX_LCD_D22|IOMUX_LCD_D17|IOMUX_LCD_D16;
|
muxa |= IOMUX_LCD_D18|IOMUX_LCD_D20|IOMUX_LCD_D22|IOMUX_LCD_D17|IOMUX_LCD_D16;
|
||||||
|
#endif
|
||||||
|
|
||||||
SCU_IOMUXA_CON = muxa;
|
SCU_IOMUXA_CON = muxa;
|
||||||
SCU_IOMUXB_CON |= IOMUX_LCD_D815;
|
SCU_IOMUXB_CON |= IOMUX_LCD_D815;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue