Skip to content

Commit

Permalink
Merge tag 'LA.UM.5.5.r1-04700-8x96.0' of https://source.codeaurora.or…
Browse files Browse the repository at this point in the history
…g/quic/la/kernel/msm-3.18 into HEAD

"LA.UM.5.5.r1-04700-8x96.0"

Change-Id: I0776b0574961c6ecd30b7896e92b6fc80762df3b
  • Loading branch information
MoetaYuko committed Jun 1, 2017
2 parents 99e2602 + 04c1d98 commit af138ea
Show file tree
Hide file tree
Showing 108 changed files with 920 additions and 11,364 deletions.
Expand Up @@ -70,6 +70,7 @@ Required properties:
"qcom,gpucc-8996-v3.0"
"qcom,gpucc-8996-pro"
"qcom,gcc-gfx-8953"
"qcom,gcc-gfx-sdm450"
"qcom,gcc-californium"
"qcom,cc-debug-californium"
"qcom,gcc-mdm9607"
Expand Down
5 changes: 5 additions & 0 deletions Documentation/devicetree/bindings/arm/msm/msm.txt
Expand Up @@ -101,6 +101,9 @@ SoCs:
- MSM8953
compatible = "qcom,msm8953"

- SDM450
compatible = "qcom,sdm450"

- MSM8937
compatible = "qcom,msm8937"

Expand Down Expand Up @@ -291,6 +294,8 @@ compatible = "qcom,msm8953-cdp"
compatible = "qcom,msm8953-mtp"
compatible = "qcom,msm8953-qrd"
compatible = "qcom,msm8953-qrd-sku3"
compatible = "qcom,sdm450-cdp"
compatible = "qcom,sdm450-mtp"
compatible = "qcom,mdm9640-cdp"
compatible = "qcom,mdm9640-mtp"
compatible = "qcom,mdm9640-rumi"
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/qcom/Makefile
Expand Up @@ -103,6 +103,10 @@ dtb-$(CONFIG_ARCH_MSM8953) += msm8953-sim.dtb \
msm8953-iot-mtp.dtb \
apq8053-iot-mtp.dtb

dtb-$(CONFIG_ARCH_SDM450) += sdm450-rcm.dtb \
sdm450-cdp.dtb \
sdm450-mtp.dtb

dtb-$(CONFIG_ARCH_MDM9607) += mdm9607-rumi.dtb \
mdm9607-cdp.dtb \
mdm9607-mtp.dtb \
Expand Down
6 changes: 4 additions & 2 deletions arch/arm/boot/dts/qcom/msm8953.dtsi
Expand Up @@ -287,8 +287,10 @@
reg-names = "tsens_physical", "tsens_eeprom_physical";
interrupts = <0 184 0>, <0 314 0>;
interrupt-names = "tsens-upper-lower", "tsens-critical";
qcom,sensors = <16>;
qcom,slope = <3200 3200 3200 3200 3200 3200 3200 3200 3200
qcom,client-id = <1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>;
qcom,sensor-id = <1 2 3 4 5 6 7 8 9 10 11 12 13 14 15>;
qcom,sensors = <15>;
qcom,slope = <3200 3200 3200 3200 3200 3200 3200 3200
3200 3200 3200 3200 3200 3200 3200>;
qcom,valid-status-check;
};
Expand Down
23 changes: 23 additions & 0 deletions arch/arm/boot/dts/qcom/sdm450-cdp.dts
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2017, 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.
*/

/dts-v1/;

#include "sdm450.dtsi"
#include "msm8953-cdp.dtsi"

/ {
model = "Qualcomm Technologies, Inc. SDM450 CDP";
compatible = "qcom,sdm450-cdp", "qcom,sdm450", "qcom,cdp";
qcom,board-id= <1 0>;
};
23 changes: 23 additions & 0 deletions arch/arm/boot/dts/qcom/sdm450-mtp.dts
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2017, 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.
*/

/dts-v1/;

#include "sdm450.dtsi"
#include "msm8953-mtp.dtsi"

/ {
model = "Qualcomm Technologies, Inc. SDM450 MTP";
compatible = "qcom,sdm450-mtp", "qcom,sdm450", "qcom,mtp";
qcom,board-id= <8 0>;
};
23 changes: 23 additions & 0 deletions arch/arm/boot/dts/qcom/sdm450-rcm.dts
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2017, 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.
*/

/dts-v1/;

#include "sdm450.dtsi"
#include "msm8953-cdp.dtsi"

/ {
model = "Qualcomm Technologies, Inc. SDM450 RCM";
compatible = "qcom,sdm450-cdp", "qcom,sdm450", "qcom,cdp";
qcom,board-id= <21 0>;
};
120 changes: 120 additions & 0 deletions arch/arm/boot/dts/qcom/sdm450.dtsi
@@ -0,0 +1,120 @@
/*
* Copyright (c) 2017, 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 "skeleton64.dtsi"
#include "msm8953.dtsi"

/ {
model = "Qualcomm Technologies, Inc. SDM450";
compatible = "qcom,sdm450";
qcom,msm-id = <338 0x0>;
interrupt-parent = <&intc>;

soc: soc { };
};

&clock_gcc_gfx {
compatible = "qcom,gcc-gfx-sdm450";
qcom,gfxfreq-corner =
< 0 0 >,
< 133330000 1 >, /* Min SVS */
< 216000000 2 >, /* Low SVS */
< 320000000 3 >, /* SVS */
< 400000000 4 >, /* SVS Plus */
< 510000000 5 >, /* NOM */
< 560000000 6 >, /* Nom Plus */
< 600000000 7 >; /* Turbo */
};

/* GPU Overrides*/
&msm_gpu {

/delete-node/qcom,gpu-pwrlevels;

qcom,gpu-pwrlevels {
#address-cells = <1>;
#size-cells = <0>;

compatible = "qcom,gpu-pwrlevels";

/* TURBO */
qcom,gpu-pwrlevel@0 {
reg = <0>;
qcom,gpu-freq = <600000000>;
qcom,bus-freq = <10>;
qcom,bus-min = <10>;
qcom,bus-max = <10>;
};

/* NOM+ */
qcom,gpu-pwrlevel@1 {
reg = <1>;
qcom,gpu-freq = <560000000>;
qcom,bus-freq = <10>;
qcom,bus-min = <8>;
qcom,bus-max = <10>;
};

/* NOM */
qcom,gpu-pwrlevel@2 {
reg = <2>;
qcom,gpu-freq = <510000000>;
qcom,bus-freq = <9>;
qcom,bus-min = <6>;
qcom,bus-max = <10>;
};

/* SVS+ */
qcom,gpu-pwrlevel@3 {
reg = <3>;
qcom,gpu-freq = <400000000>;
qcom,bus-freq = <7>;
qcom,bus-min = <5>;
qcom,bus-max = <8>;
};

/* SVS */
qcom,gpu-pwrlevel@4 {
reg = <4>;
qcom,gpu-freq = <320000000>;
qcom,bus-freq = <4>;
qcom,bus-min = <2>;
qcom,bus-max = <6>;
};

/* Low SVS */
qcom,gpu-pwrlevel@5 {
reg = <5>;
qcom,gpu-freq = <216000000>;
qcom,bus-freq = <1>;
qcom,bus-min = <1>;
qcom,bus-max = <4>;
};

/* Min SVS */
qcom,gpu-pwrlevel@6 {
reg = <6>;
qcom,gpu-freq = <133300000>;
qcom,bus-freq = <1>;
qcom,bus-min = <1>;
qcom,bus-max = <4>;
};
/* XO */
qcom,gpu-pwrlevel@7 {
reg = <7>;
qcom,gpu-freq = <19200000>;
qcom,bus-freq = <0>;
qcom,bus-min = <0>;
};
};
};
1 change: 1 addition & 0 deletions arch/arm/configs/msmcortex-perf_defconfig
Expand Up @@ -43,6 +43,7 @@ CONFIG_ARCH_MSM8916=y
CONFIG_ARCH_MSM8937=y
CONFIG_ARCH_MSM8940=y
CONFIG_ARCH_MSM8953=y
CONFIG_ARCH_SDM450=y
CONFIG_SMP=y
CONFIG_SCHED_MC=y
CONFIG_NR_CPUS=8
Expand Down
1 change: 1 addition & 0 deletions arch/arm/configs/msmcortex_defconfig
Expand Up @@ -44,6 +44,7 @@ CONFIG_ARCH_MSM8916=y
CONFIG_ARCH_MSM8937=y
CONFIG_ARCH_MSM8940=y
CONFIG_ARCH_MSM8953=y
CONFIG_ARCH_SDM450=y
CONFIG_SMP=y
CONFIG_SCHED_MC=y
CONFIG_NR_CPUS=8
Expand Down
32 changes: 32 additions & 0 deletions arch/arm/mach-msm/Kconfig
Expand Up @@ -254,6 +254,38 @@ config ARCH_MSM8953
select ARCH_WANT_KMAP_ATOMIC_FLUSH
select ARCH_MSM8953_SOC_SETTINGS

config ARCH_SDM450
bool "SDM450"
select MSM_CORTEX_A53
select ARCH_MSM_CORTEXMP
select CPU_V7
select HAVE_SMP
select ARM_GIC
select MSM_IRQ
select SPARSE_IRQ
select MULTI_IRQ_HANDLER
select HAVE_ARM_ARCH_TIMER
select MAY_HAVE_SPARSE_IRQ
select PINCTRL
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 ARM_HAS_SG_CHAIN
select MSM_RPM_SMD
select MSM_JTAGV8 if CORESIGHT_ETMV4
select ARCH_WANT_KMAP_ATOMIC_FLUSH
select ARCH_MSM8953_SOC_SETTINGS

config ARCH_MSM8909
bool "MSM8909"
select ARCH_MSM_CORTEXMP
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-msm/Makefile
Expand Up @@ -8,6 +8,7 @@ obj-$(CONFIG_ARCH_MSM8920) += board-8920.o
obj-$(CONFIG_ARCH_MSM8937) += board-8937.o
obj-$(CONFIG_ARCH_MSM8940) += board-8940.o
obj-$(CONFIG_ARCH_MSM8953) += board-8953.o
obj-$(CONFIG_ARCH_SDM450) += board-sdm450.o
obj-$(CONFIG_ARCH_MSM8909) += board-8909.o

#SMP
Expand Down
32 changes: 32 additions & 0 deletions arch/arm/mach-msm/board-sdm450.c
@@ -0,0 +1,32 @@
/*
* Copyright (c) 2017, 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 *sdm450_dt_match[] __initconst = {
"qcom,sdm450",
NULL
};

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

DT_MACHINE_START(SDM450_DT,
"Qualcomm Technologies, Inc. SDM450 (Flattened Device Tree)")
.init_machine = sdm450_init,
.dt_compat = sdm450_dt_match,
MACHINE_END
8 changes: 8 additions & 0 deletions arch/arm64/Kconfig
Expand Up @@ -309,6 +309,14 @@ config ARCH_MSM8953
This enables support for the MSM8953 chipset. If you don't
know what to do here, say N

config ARCH_SDM450
bool "Enable Support for Qualcomm Technologies Inc SDM450"
depends on ARCH_MSM
select ARCH_MSM8953_SOC_SETTINGS
help
This enables support for the SDM450 chipset. If you don't
know what to do here, say N

config ARCH_MSM8937
bool "Enable Support for Qualcomm Technologies Inc MSM8937"
depends on ARCH_MSM
Expand Down
1 change: 0 additions & 1 deletion arch/arm64/configs/msm-auto_defconfig
Expand Up @@ -597,7 +597,6 @@ CONFIG_CORESIGHT_REMOTE_ETM=y
CONFIG_CORESIGHT_QPDI=y
CONFIG_SENSORS_SSC=y
CONFIG_MSM_TZ_LOG=y
CONFIG_MOBICORE_DRIVER=m
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT3_FS=y
Expand Down
1 change: 0 additions & 1 deletion arch/arm64/configs/msm_defconfig
Expand Up @@ -600,7 +600,6 @@ CONFIG_CORESIGHT_REMOTE_ETM=y
CONFIG_CORESIGHT_QPDI=y
CONFIG_SENSORS_SSC=y
CONFIG_MSM_TZ_LOG=y
CONFIG_MOBICORE_DRIVER=m
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT3_FS=y
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/msmcortex-perf_defconfig
Expand Up @@ -41,6 +41,7 @@ CONFIG_ARCH_MSM=y
CONFIG_ARCH_MSM8916=y
CONFIG_ARCH_MSM8940=y
CONFIG_ARCH_MSM8953=y
CONFIG_ARCH_SDM450=y
CONFIG_ARCH_MSM8937=y
CONFIG_ARCH_MSMCOBALT=y
CONFIG_PCI_MSM=y
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/msmcortex_defconfig
Expand Up @@ -40,6 +40,7 @@ CONFIG_ARCH_MSM=y
CONFIG_ARCH_MSM8916=y
CONFIG_ARCH_MSM8940=y
CONFIG_ARCH_MSM8953=y
CONFIG_ARCH_SDM450=y
CONFIG_ARCH_MSM8937=y
CONFIG_ARCH_MSMCOBALT=y
CONFIG_PCI_MSM=y
Expand Down
2 changes: 0 additions & 2 deletions drivers/Kconfig
Expand Up @@ -198,6 +198,4 @@ source "drivers/firmware/Kconfig"

source "drivers/bif/Kconfig"

source "drivers/gud/Kconfig"

endmenu

0 comments on commit af138ea

Please sign in to comment.