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.
*/
#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.