From cdaf770bd80c57f9107c6fcd7983a2d2cb84351b Mon Sep 17 00:00:00 2001 From: Dongjin Kim Date: Sat, 3 Jan 2015 04:24:13 +0900 Subject: [PATCH] ODROIDC:sd: Fix "Uart in" error if UHS is disabled This patch is to fix loosing UART if UHS-I support is disabled, and C1 does not need to support UART on MicroSD port. Change-Id: I0bbf99bc40b5d39f08caf3fde21240d9159862f8 Signed-off-by: Dongjin Kim (cherry picked from commit e498a5444b9a5e30c826ec6b781e32e492caab9b) --- drivers/amlogic/mmc/amlsd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/amlogic/mmc/amlsd.c b/drivers/amlogic/mmc/amlsd.c index bbfb253ceb1e..fcfcea8e2ebc 100644 --- a/drivers/amlogic/mmc/amlsd.c +++ b/drivers/amlogic/mmc/amlsd.c @@ -959,6 +959,12 @@ static int aml_is_sdjtag(struct amlsd_platform * pdata) return 0; } +#if defined(CONFIG_MACH_MESON8B_ODROIDC) +static int aml_is_sduart(struct amlsd_platform * pdata) +{ + return 0; +} +#else static int aml_is_sduart(struct amlsd_platform * pdata) { #ifdef CONFIG_MESON_CPU_EMULATOR @@ -1005,6 +1011,7 @@ static int aml_is_sduart(struct amlsd_platform * pdata) // return 0; #endif } +#endif // int n=0; static int aml_uart_switch(struct amlsd_platform* pdata, bool on)