From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/platform/sprd/arch_init.c | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 drivers/platform/sprd/arch_init.c (limited to 'drivers/platform/sprd/arch_init.c') diff --git a/drivers/platform/sprd/arch_init.c b/drivers/platform/sprd/arch_init.c new file mode 100644 index 00000000..68674b2a --- /dev/null +++ b/drivers/platform/sprd/arch_init.c @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2014 Spreadtrum Communications Inc. + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include +#include +#include + +static int __init arch_init(void) +{ + early_hwspinlocks_init(); + sci_adi_init(); + sci_adc_init(); + + return 0; +} + +postcore_initcall_sync(arch_init); + +//jian.chen temporary modification +#ifdef CONFIG_64BIT +const struct of_device_id of_sprd_late_bus_match_table[] = { + { .compatible = "sprd,sound", }, + {} +}; +static void __init sc8830_init_late(void) +{ + of_platform_populate(of_find_node_by_path("/sprd-audio-devices"), + of_sprd_late_bus_match_table, NULL, NULL); +} +core_initcall(sc8830_init_late); +#endif -- cgit v1.3.1