diff options
| -rw-r--r-- | drivers/clk/tegra/Makefile | 3 | ||||
| -rw-r--r-- | drivers/firmware/Kconfig | 5 | ||||
| -rw-r--r-- | drivers/firmware/Makefile | 1 | ||||
| -rw-r--r-- | drivers/firmware/tegra/Kconfig | 9 | ||||
| -rw-r--r-- | drivers/i2c/busses/Kconfig | 8 | ||||
| -rw-r--r-- | drivers/platform/tegra/Kconfig | 3 | ||||
| -rw-r--r-- | drivers/thermal/Makefile | 2 | ||||
| -rw-r--r-- | include/soc/tegra/tegra_bpmp.h | 2 |
8 files changed, 26 insertions, 7 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 @@ | |||
| 1 | obj-y += clk-bpmp.o | ||
| 2 | obj-y += clk-tegra-bpmp.o | ||
| 3 | obj-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 @@ | |||
| 1 | append_menu "Firmware Drivers" | ||
| 2 | |||
| 3 | source "drivers/firmware/tegra/Kconfig" | ||
| 4 | |||
| 5 | endmenu | ||
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 @@ | |||
| 1 | menu "Tegra BPMP Driver" | 1 | menu "Tegra BPMP Driver" |
| 2 | 2 | ||
| 3 | config TEGRA_BPMP | 3 | config 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 | |||
| 11 | config BPMP_DEBUGFS_MOUNT_ON_BOOT | 14 | config 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 | ||
| 12 | config I2C_BPMP_TEGRA | 12 | config 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 | |||
| 24 | config TEGRA_I2CSLV_T186 | 28 | config 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 | ||
| 164 | config POWERGATE_TEGRA_BPMP | ||
| 165 | def_bool NV_TEGRA_BPMP | ||
| 166 | |||
| 164 | source "drivers/platform/tegra/nvadsp/Kconfig" | 167 | source "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 | ||
diff --git a/include/soc/tegra/tegra_bpmp.h b/include/soc/tegra/tegra_bpmp.h index fbbc09563..e3c330e6a 100644 --- a/include/soc/tegra/tegra_bpmp.h +++ b/include/soc/tegra/tegra_bpmp.h | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | typedef void (*bpmp_mrq_handler)(int mrq, void *data, int ch); | 22 | typedef void (*bpmp_mrq_handler)(int mrq, void *data, int ch); |
| 23 | 23 | ||
| 24 | #ifdef CONFIG_TEGRA_BPMP | 24 | #ifdef CONFIG_NV_TEGRA_BPMP |
| 25 | int tegra_bpmp_running(void); | 25 | int tegra_bpmp_running(void); |
| 26 | int tegra_bpmp_send_receive_atomic(int mrq, void *ob_data, int ob_sz, | 26 | int tegra_bpmp_send_receive_atomic(int mrq, void *ob_data, int ob_sz, |
| 27 | void *ib_data, int ib_sz); | 27 | void *ib_data, int ib_sz); |
