SDMMC:
authorxbw <xbw@rock-chips.com>
Thu, 21 Feb 2013 11:01:55 +0000 (19:01 +0800)
committerxbw <xbw@rock-chips.com>
Thu, 21 Feb 2013 11:01:55 +0000 (19:01 +0800)
   For example, how to modify the voltage of sdmmc0-gpio group in RK CPU.
Please modify your board-xxx-sdmmc-config.c youself , if you want to use 1.8V for SDMMC0-PIN.

arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c

index 373e648a603ef4c8155f7924e49240ac9dc8f007..2f447b0dec3074f490f26bd75797d6a257efb823 100644 (file)
 */
 #define RK29SDK_SD_CARD_PWR_EN                  RK30_PIN3_PA1
 #define RK29SDK_SD_CARD_PWR_EN_LEVEL            GPIO_LOW 
+double rk31sdk_get_sdmmc0_pin_io_voltage(void)
+{
+    double voltage;
+#define RK31SDK_SET_SDMMC0_PIN_VOLTAGE
+
+    /******************************************************************************
+    **  Please tell me how much voltage of your SDMMC0-pin in your project. 
+    **
+    **     ÀýÈç: ÓеÄÏîÄ¿£¬ËüµÄSDMMC0ËùÔÚµÄRKÖ÷¿ØµÄIO×飬ÏëÓÃ1.8V, ¶ø¿¨±¾ÉíÓÃ3.3V, 
+    **  ¶øÖмäͨ¹ý¸öµçƽת»».ÄÇô£¬Äú´Ëʱ£¬Ó¦¸ÃÉèÖÃÏÂÃæµÄvoltageֵΪ 1.8
+    ******************************************************************************/
+    voltage = 3.3;  
+
+    return voltage;
+}
 
 /*
 * define the card-detect-pin.