ARM: msm: Add board config support for 32 bit NIGHTJAR

This change add initial board config support to enable build 32 bit
kernel for NIGHTJAR.

Change-Id: Ie5e24a45840d667fce1bd8ee9901d19dd6c47f3f
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
This commit is contained in:
Lijuan Gao 2020-08-18 18:24:00 +08:00
commit c383eb48e1
3 changed files with 42 additions and 0 deletions

View file

@ -61,5 +61,21 @@ config ARCH_SDXLEMUR
select QCOM_GDSC
select GENERIC_CLOCKEVENTS_BROADCAST
config ARCH_SDXNIGHTJAR
bool "Enable support for SDXNIGHTJAR"
select CPU_V7
select ARM_GIC
select HAVE_ARM_ARCH_TIMER
select HAVE_PCI
select MSM_CORTEX_A7
select PCI
select PINCTRL
select QCOM_SCM if SMP
select MSM_JTAG_MM if CORESIGHT_ETM
select PM_DEVFREQ
select COMMON_CLK
select COMMON_CLK_QCOM
select QCOM_GDSC
select GENERIC_CLOCKEVENTS_BROADCAST
endmenu
endif

View file

@ -2,3 +2,4 @@
obj-$(CONFIG_SMP) += platsmp.o
obj-$(CONFIG_USE_OF) += board-dt.o
obj-$(CONFIG_ARCH_SDXLEMUR) += board-sdxlemur.o
obj-$(CONFIG_ARCH_SDXNIGHTJAR) += board-sdxnightjar.o

View file

@ -0,0 +1,25 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#include <linux/kernel.h>
#include "board-dt.h"
#include <asm/mach/map.h>
#include <asm/mach/arch.h>
static const char *sdxnightjar_dt_match[] __initconst = {
"qcom,sdxnightjar",
NULL
};
static void __init sdxnightjar_init(void)
{
board_dt_populate(NULL);
}
DT_MACHINE_START(SDXNIGHTJAR_DT,
"Qualcomm Technologies, Inc. SDXNIGHTJAR (Flattened Device Tree)")
.init_machine = sdxnightjar_init,
.dt_compat = sdxnightjar_dt_match,
MACHINE_END