Loading arch/arm/mach-qcom/Kconfig +38 −0 Original line number Diff line number Diff line if ARCH_QCOM menu "QCOM SoC Type" config ARCH_SDM660 bool "Enable Support for SDM660" 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 COMMON_CLK_QCOM select QCOM_GDSC select PINCTRL_MSM_TLMM select USE_PINCTRL_IRQ select MSM_PM if PM select QMI_ENCDEC select CPU_FREQ select CPU_FREQ_MSM 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 GENERIC_IRQ_MIGRATION select MSM_JTAGV8 if CORESIGHT_ETMV4 help This enables support for the SDM660 chipset. If you do not wish to build a kernel that runs on this chipset, say 'N' here. config ARCH_QCS405 bool "Enable Support for QCS405" select CLKDEV_LOOKUP Loading arch/arm/mach-qcom/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ 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 obj-$(CONFIG_ARCH_SDM660) += board-660.o arch/arm/mach-qcom/board-660.c 0 → 100644 +67 −0 Original line number Diff line number Diff line /* * Copyright (c) 2016, 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/arch.h> #include "board-dt.h" static const char *sdm660_dt_match[] __initconst = { "qcom,sdm660", "qcom,sda660", NULL }; static void __init sdm660_init(void) { board_dt_populate(NULL); } DT_MACHINE_START(SDM660_DT, "Qualcomm Technologies, Inc. SDM 660 (Flattened Device Tree)") .init_machine = sdm660_init, .dt_compat = sdm660_dt_match, MACHINE_END static const char *sdm630_dt_match[] __initconst = { "qcom,sdm630", "qcom,sda630", NULL }; static void __init sdm630_init(void) { board_dt_populate(NULL); } DT_MACHINE_START(SDM630_DT, "Qualcomm Technologies, Inc. SDM 630 (Flattened Device Tree)") .init_machine = sdm630_init, .dt_compat = sdm630_dt_match, MACHINE_END static const char *sdm658_dt_match[] __initconst = { "qcom,sdm658", "qcom,sda658", NULL }; static void __init sdm658_init(void) { board_dt_populate(NULL); } DT_MACHINE_START(SDM658_DT, "Qualcomm Technologies, Inc. SDM 658 (Flattened Device Tree)") .init_machine = sdm658_init, .dt_compat = sdm658_dt_match, MACHINE_END Loading
arch/arm/mach-qcom/Kconfig +38 −0 Original line number Diff line number Diff line if ARCH_QCOM menu "QCOM SoC Type" config ARCH_SDM660 bool "Enable Support for SDM660" 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 COMMON_CLK_QCOM select QCOM_GDSC select PINCTRL_MSM_TLMM select USE_PINCTRL_IRQ select MSM_PM if PM select QMI_ENCDEC select CPU_FREQ select CPU_FREQ_MSM 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 GENERIC_IRQ_MIGRATION select MSM_JTAGV8 if CORESIGHT_ETMV4 help This enables support for the SDM660 chipset. If you do not wish to build a kernel that runs on this chipset, say 'N' here. config ARCH_QCS405 bool "Enable Support for QCS405" select CLKDEV_LOOKUP Loading
arch/arm/mach-qcom/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ 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 obj-$(CONFIG_ARCH_SDM660) += board-660.o
arch/arm/mach-qcom/board-660.c 0 → 100644 +67 −0 Original line number Diff line number Diff line /* * Copyright (c) 2016, 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/arch.h> #include "board-dt.h" static const char *sdm660_dt_match[] __initconst = { "qcom,sdm660", "qcom,sda660", NULL }; static void __init sdm660_init(void) { board_dt_populate(NULL); } DT_MACHINE_START(SDM660_DT, "Qualcomm Technologies, Inc. SDM 660 (Flattened Device Tree)") .init_machine = sdm660_init, .dt_compat = sdm660_dt_match, MACHINE_END static const char *sdm630_dt_match[] __initconst = { "qcom,sdm630", "qcom,sda630", NULL }; static void __init sdm630_init(void) { board_dt_populate(NULL); } DT_MACHINE_START(SDM630_DT, "Qualcomm Technologies, Inc. SDM 630 (Flattened Device Tree)") .init_machine = sdm630_init, .dt_compat = sdm630_dt_match, MACHINE_END static const char *sdm658_dt_match[] __initconst = { "qcom,sdm658", "qcom,sda658", NULL }; static void __init sdm658_init(void) { board_dt_populate(NULL); } DT_MACHINE_START(SDM658_DT, "Qualcomm Technologies, Inc. SDM 658 (Flattened Device Tree)") .init_machine = sdm658_init, .dt_compat = sdm658_dt_match, MACHINE_END