]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-tegra/gpu.c
ARM: tegra: move ft_system_setup()
[u-boot] / arch / arm / mach-tegra / gpu.c
index 0dbddd45d4159293cad21519c7643d06dfc9049e..74b64a620c5f65ef7ab33afb64d40cfc0beb8420 100644 (file)
@@ -33,16 +33,17 @@ void tegra_gpu_config(void)
 
 #if defined(CONFIG_OF_LIBFDT)
 
-int tegra_gpu_enable_node(void *blob, const char *gpupath)
+int tegra_gpu_enable_node(void *blob, const char *compat)
 {
        int offset;
 
-       if (_configured) {
-               offset = fdt_path_offset(blob, gpupath);
-               if (offset > 0) {
-                       fdt_status_okay(blob, offset);
-                       debug("enabled GPU node %s\n", gpupath);
-               }
+       if (!_configured)
+               return 0;
+
+       offset = fdt_node_offset_by_compatible(blob, -1, compat);
+       while (offset != -FDT_ERR_NOTFOUND) {
+               fdt_status_okay(blob, offset);
+               offset = fdt_node_offset_by_compatible(blob, offset, compat);
        }
 
        return 0;