From cca4647d975fac6445530d8a82659dc7a111950a Mon Sep 17 00:00:00 2001 From: xbw Date: Thu, 21 Feb 2013 19:01:55 +0800 Subject: [PATCH] SDMMC: 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c b/arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c index 373e648a603e..2f447b0dec30 100644 --- a/arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c +++ b/arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c @@ -38,6 +38,21 @@ */ #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. -- 2.34.1