i2s:Set the default drive current 8ma
author邱建斌 <qjb@rock-chips.com>
Thu, 13 Jun 2013 06:35:26 +0000 (14:35 +0800)
committer邱建斌 <qjb@rock-chips.com>
Thu, 13 Jun 2013 06:35:26 +0000 (14:35 +0800)
sound/soc/rk29/rk30_i2s.c

index 0e66efffff72a8a59448334f045c935d4d510668..0f8f219b8a4d744cf1cb113e31a3b74e27b9bc01 100755 (executable)
@@ -557,16 +557,15 @@ static int __devinit rockchip_i2s_probe(struct platform_device *pdev)
        struct rk29_i2s_info *i2s;
        struct snd_soc_dai_driver *dai;
        int    ret;
-       int v;
 
 #if defined(CONFIG_SND_I2S_USE_18V)    
-       v = 0x2000200;//bit9: 1,1.8v;0,3.3v
-       writel_relaxed(v,RK30_GRF_BASE + GRF_IO_CON4);
+       writel_relaxed(0x2000200,RK30_GRF_BASE + GRF_IO_CON4);//bit9: 1,1.8v;0,3.3v
 #elif defined(CONFIG_SND_I2S_USE_33V)
-       v = 0x2000000;
-       writel_relaxed(v,RK30_GRF_BASE + GRF_IO_CON4);
+       writel_relaxed(0x2000000,RK30_GRF_BASE + GRF_IO_CON4);
 #endif
-
+       //default 8ma  0xF000F = 12ma 0xF0005=4ma 0xF0000=2ma
+       writel_relaxed(0xF000A,RK30_GRF_BASE + GRF_IO_CON1);
+       
        I2S_DBG("Enter %s, %d pdev->id = %d >>>>>>>>>>>\n", __func__, __LINE__, pdev->id);
        
        if(pdev->id >= MAX_I2S) {