summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTimo Alho <talho@nvidia.com>2017-11-25 15:47:48 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-11 09:40:42 -0500
commiteac0e7478dfd632a50be0cff95dca9286a5cb8d1 (patch)
treebd7fd650cf3483742fa1b19740bcf6d2a005511d /drivers
parentb9f24cc0c4cd2d143527a920714f4e6dabc9d2a8 (diff)
firmware: tegra: add NV_TEGRA_BPMP to build
BPMP driver was moved from linux-4.9 repository. Modify Makefiles and Kconfig files to add driver as part of build. Also rename downstream BPMP driver Kconfig to NV_TEGRA_BPMP to differentiate it from upstream driver that is available in recent kernel versions. Also add mention about it in menuconfig options. Bug 200325739 Change-Id: Ide3884b8c8afe8a4d89fa79932381b7cff8edf00 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1635551 GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/tegra/Makefile3
-rw-r--r--drivers/firmware/Kconfig5
-rw-r--r--drivers/firmware/Makefile1
-rw-r--r--drivers/firmware/tegra/Kconfig9
-rw-r--r--drivers/i2c/busses/Kconfig8
-rw-r--r--drivers/platform/tegra/Kconfig3
-rw-r--r--drivers/thermal/Makefile2
7 files changed, 25 insertions, 6 deletions
diff --git a/drivers/clk/tegra/Makefile b/drivers/clk/tegra/Makefile
new file mode 100644
index 000000000..02938f2f7
--- /dev/null
+++ b/drivers/clk/tegra/Makefile
@@ -0,0 +1,3 @@
1obj-y += clk-bpmp.o
2obj-y += clk-tegra-bpmp.o
3obj-y += clk-fake.o
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
new file mode 100644
index 000000000..60c6dfb5c
--- /dev/null
+++ b/drivers/firmware/Kconfig
@@ -0,0 +1,5 @@
1append_menu "Firmware Drivers"
2
3source "drivers/firmware/tegra/Kconfig"
4
5endmenu
diff --git a/drivers/firmware/Makefile b/drivers/firmware/Makefile
new file mode 100644
index 000000000..ba4584c6c
--- /dev/null
+++ b/drivers/firmware/Makefile
@@ -0,0 +1 @@
obj-$(CONFIG_NV_TEGRA_BPMP) += tegra/
diff --git a/drivers/firmware/tegra/Kconfig b/drivers/firmware/tegra/Kconfig
index 2fa8119a7..1be641336 100644
--- a/drivers/firmware/tegra/Kconfig
+++ b/drivers/firmware/tegra/Kconfig
@@ -1,17 +1,20 @@
1menu "Tegra BPMP Driver" 1menu "Tegra BPMP Driver"
2 2
3config TEGRA_BPMP 3config NV_TEGRA_BPMP
4 bool "Tegra BPMP driver" 4 bool "Tegra BPMP driver (Downstream version)"
5 default n 5 default n
6 select TEGRA_IVC 6 select TEGRA_IVC
7 select TEGRA_HSP 7 select TEGRA_HSP
8 help 8 help
9 Manages firmware running on Tegra BPMP 9 Manages firmware running on Tegra BPMP
10 10
11 This driver is a downstream version and there is a newer variant
12 available in modern kernels.
13
11config BPMP_DEBUGFS_MOUNT_ON_BOOT 14config BPMP_DEBUGFS_MOUNT_ON_BOOT
12 bool "Mount the BPMP debug fs on boot" 15 bool "Mount the BPMP debug fs on boot"
13 default y 16 default y
14 depends on DEBUG_FS 17 depends on DEBUG_FS && NV_TEGRA_BPMP
15 help 18 help
16 Disable this if you don't want to mount the BPMP debug fs by default 19 Disable this if you don't want to mount the BPMP debug fs by default
17 on boot. 20 on boot.
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index b0920979a..d488b815c 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -10,8 +10,8 @@ config I2C_TEGRA_VI
10 I2C controller embedded in NVIDIA Tegra SOCs 10 I2C controller embedded in NVIDIA Tegra SOCs
11 11
12config I2C_BPMP_TEGRA 12config I2C_BPMP_TEGRA
13 tristate "NVIDIA Tegra internal BPMP I2C controller" 13 tristate "NVIDIA Tegra internal BPMP I2C controller (Downstream version)"
14 depends on TEGRA_BPMP 14 depends on NV_TEGRA_BPMP
15 default y 15 default y
16 select I2C_ALGO_BUSCLEAR 16 select I2C_ALGO_BUSCLEAR
17 select I2C_ALGOBIT 17 select I2C_ALGOBIT
@@ -21,6 +21,10 @@ config I2C_BPMP_TEGRA
21 This I2C driver is a 'virtual' I2C driver. The real driver is 21 This I2C driver is a 'virtual' I2C driver. The real driver is
22 embedded in the BPMP firmware, and this driver merely communicates 22 embedded in the BPMP firmware, and this driver merely communicates
23 with that real driver. 23 with that real driver.
24
25 This driver is a downstream version and there is a newer variant
26 available in modern kernels.
27
24config TEGRA_I2CSLV_T186 28config TEGRA_I2CSLV_T186
25 bool "Tegra i2c slave controller driver" 29 bool "Tegra i2c slave controller driver"
26 default y 30 default y
diff --git a/drivers/platform/tegra/Kconfig b/drivers/platform/tegra/Kconfig
index e14fb29ce..5956cb223 100644
--- a/drivers/platform/tegra/Kconfig
+++ b/drivers/platform/tegra/Kconfig
@@ -161,4 +161,7 @@ config TEGRA_CBB_NOC
161 The Tegra Control Backbone(CBB)/Network-on-chip(NOC) error handler. 161 The Tegra Control Backbone(CBB)/Network-on-chip(NOC) error handler.
162 This drivers handles SError from bridges due to failed transactions. 162 This drivers handles SError from bridges due to failed transactions.
163 163
164config POWERGATE_TEGRA_BPMP
165 def_bool NV_TEGRA_BPMP
166
164source "drivers/platform/tegra/nvadsp/Kconfig" 167source "drivers/platform/tegra/nvadsp/Kconfig"
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile
index 0c48740ad..9576924a0 100644
--- a/drivers/thermal/Makefile
+++ b/drivers/thermal/Makefile
@@ -1 +1 @@
obj-$(CONFIG_TEGRA_BPMP) += tegra_bpmp_thermal.o obj-$(CONFIG_NV_TEGRA_BPMP) += tegra_bpmp_thermal.o