summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2011-12-21 12:52:36 +0000
committerTomasz Moń <desowin@gmail.com>2011-12-21 12:52:36 +0000
commit3aced71e541d66b3f7051294ea58a93ec5a22d3f (patch)
treea8b9ae2512e12a7621adbc26a66ee9af39407076 /firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c
parentd63b19ab496d45ff98bd11f1749f6a3b52b0130e (diff)
downloadrockbox-3aced71e541d66b3f7051294ea58a93ec5a22d3f.tar.gz
rockbox-3aced71e541d66b3f7051294ea58a93ec5a22d3f.zip
Sansa Connect: Put DAC (needed for analog video output) in Powerdown mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31391 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c')
-rw-r--r--firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c b/firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c
index b255a063f8..403ce182be 100644
--- a/firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c
+++ b/firmware/target/arm/tms320dm320/sansa-connect/lcd-sansaconnect.c
@@ -100,7 +100,8 @@ void lcd_init_device(void)
100 bitset16(&IO_CLK_MOD1, CLK_MOD1_OSD); 100 bitset16(&IO_CLK_MOD1, CLK_MOD1_OSD);
101 101
102 /* magic values based on OF bootloader initialization */ 102 /* magic values based on OF bootloader initialization */
103 IO_VID_ENC_VMOD = 0x2010; 103 /* Set DAC to powerdown mode (bit 2 to 1 in VMOD) */
104 IO_VID_ENC_VMOD = 0x2014; /* OF sets 0x2010 */
104 IO_VID_ENC_VDPRO = 0x80; 105 IO_VID_ENC_VDPRO = 0x80;
105 IO_VID_ENC_HSPLS = 0x4; 106 IO_VID_ENC_HSPLS = 0x4;
106 IO_VID_ENC_HINT = 0x4B0; 107 IO_VID_ENC_HINT = 0x4B0;
@@ -117,7 +118,7 @@ void lcd_init_device(void)
117 IO_VID_ENC_VDCTL = 0x6000; 118 IO_VID_ENC_VDCTL = 0x6000;
118 IO_VID_ENC_SYNCTL = 0x2; 119 IO_VID_ENC_SYNCTL = 0x2;
119 IO_VID_ENC_LCDOUT = 0x101; 120 IO_VID_ENC_LCDOUT = 0x101;
120 IO_VID_ENC_VMOD = 0x2011; 121 IO_VID_ENC_VMOD = 0x2015; /* OF sets 0x2011 */
121 122
122 /* Copy Rockbox frame buffer to the second framebuffer */ 123 /* Copy Rockbox frame buffer to the second framebuffer */
123 lcd_update(); 124 lcd_update();
@@ -148,7 +149,7 @@ void lcd_init_device(void)
148 bitset16(&IO_CLK_MOD1, CLK_MOD1_VENC | CLK_MOD1_OSD); 149 bitset16(&IO_CLK_MOD1, CLK_MOD1_VENC | CLK_MOD1_OSD);
149 150
150 /* Enable Video Encoder - RGB666, custom timing */ 151 /* Enable Video Encoder - RGB666, custom timing */
151 IO_VID_ENC_VMOD = 0x2011; 152 IO_VID_ENC_VMOD = 0x2015;
152 avr_hid_lcm_wake(); 153 avr_hid_lcm_wake();
153 lcd_on = true; 154 lcd_on = true;
154} 155}