]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/mach-tegra/gpu.c
ARM: tegra: enable GPU DT node when appropriate
[karo-tx-uboot.git] / arch / arm / mach-tegra / gpu.c
index b2fa50b5400e23fbcaba3bc39dd975926016a8e4..4ea046d3e5b654d61c47d05a4f58c01a3389f837 100644 (file)
@@ -45,3 +45,22 @@ bool vpr_configured(void)
 {
        return _configured;
 }
+
+#if defined(CONFIG_OF_LIBFDT)
+
+int gpu_enable_node(void *blob, const char *gpupath)
+{
+       int offset;
+
+       if (vpr_configured()) {
+               offset = fdt_path_offset(blob, gpupath);
+               if (offset > 0) {
+                       fdt_status_okay(blob, offset);
+                       debug("enabled GPU node %s\n", gpupath);
+               }
+       }
+
+       return 0;
+}
+
+#endif