diff mbox series

[11/14] linux-firmware: add support for NVIDIA GM20B GPU

Message ID 20241029161046.110403-12-tmn505@terefe.re
State New
Headers show
Series Add support for NVIDIA Jetson TX1 DevKit | expand

Commit Message

Tomasz Maciej Nowak Oct. 29, 2024, 3:47 p.m. UTC
From: Koen Vandeputte <koen.vandeputte@citymesh.com>

This commit allows to install the required firmware files
for the GM20B GPU.
This GPU is based on Maxwell and is present on Tegra X1 SoC.

Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
[reword, add missing firmware file]
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
---
 package/firmware/linux-firmware/nvidia.mk | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
diff mbox series

Patch

diff --git a/package/firmware/linux-firmware/nvidia.mk b/package/firmware/linux-firmware/nvidia.mk
index 4bb523a18fe9..65df7ea035ea 100644
--- a/package/firmware/linux-firmware/nvidia.mk
+++ b/package/firmware/linux-firmware/nvidia.mk
@@ -1,3 +1,23 @@ 
+Package/gm20b-firmware = $(call Package/firmware-default,GM20B Video Driver firmware)
+define Package/gm20b-firmware/install
+	$(INSTALL_DIR) $(1)/lib/firmware/nvidia/gm20b/acr
+	$(INSTALL_DIR) $(1)/lib/firmware/nvidia/gm20b/gr
+	$(INSTALL_DIR) $(1)/lib/firmware/nvidia/gm20b/pmu
+	$(CP) \
+	$(PKG_BUILD_DIR)/nvidia/gm20b/acr/*.bin \
+		$(1)/lib/firmware/nvidia/gm20b/acr
+	$(CP) \
+		$(PKG_BUILD_DIR)/nvidia/gm20b/gr/*.bin \
+		$(1)/lib/firmware/nvidia/gm20b/gr
+	$(CP) \
+		$(PKG_BUILD_DIR)/nvidia/gm200/gr/sw_method_init.bin \
+		$(1)/lib/firmware/nvidia/gm20b/gr
+	$(CP) \
+		$(PKG_BUILD_DIR)/nvidia/gm20b/pmu/*.bin \
+		$(1)/lib/firmware/nvidia/gm20b/pmu
+endef
+$(eval $(call BuildPackage,gm20b-firmware))
+
 Package/t210-usb-firmware = $(call Package/firmware-default,nVidia T210 USB firmware)
 define Package/t210-usb-firmware/install
 	$(INSTALL_DIR) $(1)/lib/firmware/nvidia/tegra210