From: 黄涛 Date: Mon, 3 Sep 2012 04:15:21 +0000 (+0800) Subject: rk3066b: common: init io drive strength X-Git-Tag: firefly_0821_release~8754 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d97d9b4ee3c3196f44d6fc9a9e776679dd68ce2f;p=firefly-linux-kernel-4.4.55.git rk3066b: common: init io drive strength --- diff --git a/arch/arm/mach-rk30/common.c b/arch/arm/mach-rk30/common.c index 4c9d7f7bf9df..9e47f426d484 100755 --- a/arch/arm/mach-rk30/common.c +++ b/arch/arm/mach-rk30/common.c @@ -40,6 +40,13 @@ static void __init rk30_cpu_axi_init(void) dsb(); } +static void __init rk30_io_drive_strength_init(void) +{ +#if defined(CONFIG_ARCH_RK3066B) + writel_relaxed(0x11001100, RK30_GRF_BASE + GRF_IO_CON4); +#endif +} + #define L2_LY_SP_OFF (0) #define L2_LY_SP_MSK (0x7) @@ -122,6 +129,7 @@ void __init rk30_map_io(void) rk30_map_common_io(); rk29_setup_early_printk(); rk30_cpu_axi_init(); + rk30_io_drive_strength_init(); rk29_sram_init(); board_clock_init(); rk30_l2_cache_init(); diff --git a/arch/arm/mach-rk30/include/mach/iomux-rk3066b.h b/arch/arm/mach-rk30/include/mach/iomux-rk3066b.h index 340481d58e24..483c7434d04b 100644 --- a/arch/arm/mach-rk30/include/mach/iomux-rk3066b.h +++ b/arch/arm/mach-rk30/include/mach/iomux-rk3066b.h @@ -370,6 +370,11 @@ #define GRF_DMAC2_CON1 0x00c0 #define GRF_DMAC2_CON2 0x00c4 #define GRF_DMAC2_CON3 0x00c8 +#define GRF_IO_CON0 0x00f4 +#define GRF_IO_CON1 0x00f8 +#define GRF_IO_CON2 0x00fc +#define GRF_IO_CON3 0x0100 +#define GRF_IO_CON4 0x0104 #define GRF_UOC0_CON0 0x010c #define GRF_UOC0_CON1 0x0110 #define GRF_UOC0_CON2 0x0114