Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f90dc8ed authored by lijuang's avatar lijuang
Browse files

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



This change adds initial board config support to enable build
32 bit kernel for trinket.

Change-Id: I2b7835d301e8bf08d37782ddbf6ca50db3a869d6
Signed-off-by: default avatarGaurav Kohli <gkohli@codeaurora.org>
Signed-off-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarlijuang <lijuang@codeaurora.org>
parent ff7951df
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
@@ -73,6 +73,45 @@ config ARCH_QCS403
	This enables support for the QCS403 chipset. If you do not
	wish to build a kernel that runs on this chipset, say 'N' here.

config ARCH_TRINKET
	bool "Enable Support for TRINKET"
	select CPU_V7
	select CLKDEV_LOOKUP
	select HAVE_CLK
	select HAVE_CLK_PREPARE
	select PM_OPP
	select SOC_BUS
	select MSM_IRQ
	select THERMAL_WRITABLE_TRIPS
	select ARM_GIC_V3
	select ARM_AMBA
	select SPARSE_IRQ
	select MULTI_IRQ_HANDLER
	select HAVE_ARM_ARCH_TIMER
	select MAY_HAVE_SPARSE_IRQ
	select COMMON_CLK
	select QCOM_GDSC
	select PINCTRL_MSM
	select USE_PINCTRL_IRQ
	select MSM_PM if PM
	select QMI_ENCDEC
	select CPU_FREQ
	select PM_DEVFREQ
	select MSM_DEVFREQ_DEVBW
	select DEVFREQ_SIMPLE_DEV
	select DEVFREQ_GOV_MSM_BW_HWMON
	select MSM_BIMC_BWMON
	select MSM_QDSP6V2_CODECS
	select MSM_AUDIO_QDSP6V2 if SND_SOC
	select MSM_RPM_SMD
	select PCI
	select MSM_JTAG_MM if CORESIGHT_ETM
	select MSM_RPM_LOG
	select MSM_RPM_STATS_LOG
	help
	This enables support for the TRINKET chipset. If you do not
	wish to build a kernel that runs on this chipset, say 'N' here.

config ARCH_MSM8X60
	bool "Enable support for MSM8X60"
	select ARCH_SUPPORTS_BIG_ENDIAN
+1 −0
Original line number Diff line number Diff line
@@ -2,5 +2,6 @@ obj-$(CONFIG_USE_OF) += board-dt.o
obj-$(CONFIG_SMP)	+= platsmp.o
obj-$(CONFIG_ARCH_QCS405) += board-qcs405.o
obj-$(CONFIG_ARCH_QCS403) += board-qcs403.o
obj-$(CONFIG_ARCH_TRINKET) += board-trinket.o
obj-$(CONFIG_ARCH_SDXPRAIRIE) += board-sdxprairie.o
obj-$(CONFIG_ARCH_MDM9607) += board-mdm9607.o
+33 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2019, 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 <linux/kernel.h>
#include <asm/mach/map.h>
#include <asm/mach/arch.h>
#include "board-dt.h"

static const char *trinket_dt_match[] __initconst = {
	"qcom,trinket",
	NULL
};

static void __init trinket_init(void)
{
	board_dt_populate(NULL);
}

DT_MACHINE_START(TRINKET,
	"Qualcomm Technologies, Inc. TRINKET (Flattened Device Tree)")
	.init_machine		= trinket_init,
	.dt_compat		= trinket_dt_match,
MACHINE_END