From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/microblaze/platform/platform.c | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ANDROID_3.4.5/arch/microblaze/platform/platform.c (limited to 'ANDROID_3.4.5/arch/microblaze/platform/platform.c') diff --git a/ANDROID_3.4.5/arch/microblaze/platform/platform.c b/ANDROID_3.4.5/arch/microblaze/platform/platform.c new file mode 100644 index 00000000..b9529caa --- /dev/null +++ b/ANDROID_3.4.5/arch/microblaze/platform/platform.c @@ -0,0 +1,30 @@ +/* + * Copyright 2008 Michal Simek + * + * based on virtex.c file + * + * Copyright 2007 Secret Lab Technologies Ltd. + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +#include +#include +#include +#include + +static struct of_device_id xilinx_of_bus_ids[] __initdata = { + { .compatible = "simple-bus", }, + { .compatible = "xlnx,compound", }, + {} +}; + +static int __init microblaze_device_probe(void) +{ + of_platform_bus_probe(NULL, xilinx_of_bus_ids, NULL); + of_platform_reset_gpio_probe(); + return 0; +} +device_initcall(microblaze_device_probe); -- cgit