From: Feng Tang <feng.tang@xxxxxxxxx> Latest firmware will correctly configure the GPIO lines used by hsu console, so remove that workaround. Signed-off-by: Feng Tang <feng.tang@xxxxxxxxx> Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx> --- arch/x86/kernel/mrst_earlyprintk.c | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) diff --git a/arch/x86/kernel/mrst_earlyprintk.c b/arch/x86/kernel/mrst_earlyprintk.c index 1fb1305..d1a49a7 100644 --- a/arch/x86/kernel/mrst_earlyprintk.c +++ b/arch/x86/kernel/mrst_earlyprintk.c @@ -287,17 +287,10 @@ void mrst_early_printk(const char *fmt, ...) /* Will use HSU port2 for early console */ - -/* - * Note: - * 1. still need GPIO workaround for UART2 - * - */ static spinlock_t hsu_lock; static int hsu_inited; static void __iomem *phsu; #define HSU_PORT2_PADDR 0xffa28180 -#define MFD_GPIO_HSU_REG 0xff12c064 static void early_hsu_init(void) { @@ -308,13 +301,6 @@ static void early_hsu_init(void) spin_lock_init(&hsu_lock); - /* GPIO workaround */ - set_fixmap_nocache(FIX_EARLYCON_MEM_BASE, MFD_GPIO_HSU_REG); - phsu = (void *)(__fix_to_virt(FIX_EARLYCON_MEM_BASE) + - (MFD_GPIO_HSU_REG & (PAGE_SIZE - 1))); - - *((u32 *)phsu) = 0x55465; - set_fixmap_nocache(FIX_EARLYCON_MEM_BASE, HSU_PORT2_PADDR); phsu = (void *)(__fix_to_virt(FIX_EARLYCON_MEM_BASE) + (HSU_PORT2_PADDR & (PAGE_SIZE - 1))); @@ -338,8 +324,6 @@ static void early_hsu_init(void) readb(phsu + UART_IIR); readb(phsu + UART_MSR); - - writeb(0x7, phsu + UART_FCR); hsu_inited = 1; @@ -371,10 +355,6 @@ static void early_hsu_write(struct console *con, int i; unsigned long flags; - /* - printk("%s(): enter\n\n", __func__); - */ - if (unlikely(!hsu_inited)) early_hsu_init(); -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html