From 45e27cd2378f293143fd3e2a87b6e148163ae53c Mon Sep 17 00:00:00 2001 From: Srinivas Ramana Date: Wed, 1 Jun 2016 12:25:58 +0530 Subject: [PATCH] msmfalcon: add board files for 32-bit boot Add board file to support msmfalcon 32-bit boot. Change-Id: I4a7c9fd54983e58e5fdd73ae080702018a813cd7 Signed-off-by: Srinivas Ramana --- arch/arm/mach-qcom/Makefile | 1 + arch/arm/mach-qcom/board-falcon.c | 33 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 arch/arm/mach-qcom/board-falcon.c diff --git a/arch/arm/mach-qcom/Makefile b/arch/arm/mach-qcom/Makefile index 3d9f893ba3af..c5e30fff2b1e 100644 --- a/arch/arm/mach-qcom/Makefile +++ b/arch/arm/mach-qcom/Makefile @@ -1,3 +1,4 @@ obj-y := board.o obj-$(CONFIG_USE_OF) += board-dt.o +obj-$(CONFIG_ARCH_MSMFALCON) += board-falcon.o obj-$(CONFIG_SMP) += platsmp.o diff --git a/arch/arm/mach-qcom/board-falcon.c b/arch/arm/mach-qcom/board-falcon.c new file mode 100644 index 000000000000..e9374050b2cb --- /dev/null +++ b/arch/arm/mach-qcom/board-falcon.c @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2016, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * 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 "board-dt.h" + +static const char *msmfalcon_dt_match[] __initconst = { + "qcom,msmfalcon", + "qcom,apqfalcon", + NULL +}; + +static void __init msmfalcon_init(void) +{ + board_dt_populate(NULL); +} + +DT_MACHINE_START(MSMFALCON_DT, + "Qualcomm Technologies, Inc. MSM FALCON (Flattened Device Tree)") + .init_machine = msmfalcon_init, + .dt_compat = msmfalcon_dt_match, +MACHINE_END