From: 黄涛 Date: Tue, 7 Feb 2012 10:46:54 +0000 (+0800) Subject: rk30: add early printk X-Git-Tag: firefly_0821_release~9595^2~170 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf4c36af777a4c254f93d8ed66a624e9600afa84;p=firefly-linux-kernel-4.4.55.git rk30: add early printk --- diff --git a/arch/arm/mach-rk30/Makefile b/arch/arm/mach-rk30/Makefile index e58b689aebf4..b629368edd25 100644 --- a/arch/arm/mach-rk30/Makefile +++ b/arch/arm/mach-rk30/Makefile @@ -5,5 +5,9 @@ obj-y += io.o obj-y += iomux.o obj-y += reset.o obj-y += timer.o +obj-y += ../mach-rk29/early_printk.o +ifndef CONFIG_DEBUG_LL +obj-y += ../kernel/debug.o +endif obj-$(CONFIG_LOCAL_TIMERS) += localtimer.o obj-$(CONFIG_MACH_RK30_SDK) += board-rk30-sdk.o diff --git a/arch/arm/mach-rk30/common.c b/arch/arm/mach-rk30/common.c index 3ec0c2d558b7..0fe7be5a7be0 100755 --- a/arch/arm/mach-rk30/common.c +++ b/arch/arm/mach-rk30/common.c @@ -10,6 +10,8 @@ #include #include +extern void __init rk29_setup_early_printk(void); + void __init rk30_init_irq(void) { gic_init(0, IRQ_LOCALTIMER, RK30_GICD_BASE, RK30_GICC_BASE); @@ -19,7 +21,8 @@ void __init rk30_init_irq(void) void __init rk30_map_io(void) { rk30_map_common_io(); - rk30_iomux_init(); + rk29_setup_early_printk(); + rk30_iomux_init(); } void __init rk30_fixup(struct machine_desc *desc, struct tag *tags,