From: Christoffer Dall Date: Wed, 29 Oct 2014 14:55:19 +0000 (+0100) Subject: arm: virt: Support the ranchu machine name as a virt board X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f298a2ba35c2390fcd734fa6e020a196db7fc23;p=platform%2Fkernel%2Flinux-arm64.git arm: virt: Support the ranchu machine name as a virt board The QEMU ranchu board is a variant of the virt board, it is completely device-tree driven, but should be matched by the virt board. It contains a pl011 serial port for console output, but the virt board doesn't currently initialize the of clock framework, which is required for this device to be probed, so add this logic to the virt board as well. Note that for newer kernels, this has all been reworked to not have a board file for mach-virt, so it should not be neccessary in that context and this patch should not be carried foward into newer kernels, but it is useful for Linux v3.10-based Android kernels. Signed-off-by: Christoffer Dall --- diff --git a/arch/arm/mach-virt/Kconfig b/arch/arm/mach-virt/Kconfig index 8958f0d896b..eafb6bed380 100644 --- a/arch/arm/mach-virt/Kconfig +++ b/arch/arm/mach-virt/Kconfig @@ -8,3 +8,4 @@ config ARCH_VIRT select CPU_V7 select SPARSE_IRQ select USE_OF + select GENERIC_CLOCKEVENTS diff --git a/arch/arm/mach-virt/virt.c b/arch/arm/mach-virt/virt.c index 061f283f579..4f5b2598386 100644 --- a/arch/arm/mach-virt/virt.c +++ b/arch/arm/mach-virt/virt.c @@ -22,16 +22,19 @@ #include #include #include +#include #include static void __init virt_init(void) { + of_clk_init(NULL); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } static const char *virt_dt_match[] = { "linux,dummy-virt", + "ranchu", "xen,xenvm", NULL };