]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/fdt_support.h
sunxi: Ainol AW1 mmc0 card-detect pin
[karo-tx-uboot.git] / include / fdt_support.h
index 2309f755834b8dd93c002913beef8512961b1449..cb31847325f844947e2d4991c80633cae9e7c4c3 100644 (file)
@@ -48,6 +48,19 @@ int fdt_find_and_setprop(void *fdt, const char *node, const char *prop,
 void fdt_fixup_qe_firmware(void *fdt);
 
 #if defined(__UBOOT__)
+/**
+ * Update native-mode property of display-timings node to the phandle
+ * of the timings matching a display by name (case insensitive).
+ *
+ * see kernel Documentation/devicetree/bindings/video/display-timing.txt
+ *
+ * @param blob         FDT blob to update
+ * @param path         path within dt
+ * @param display      name of display timing to match
+ * @return 0 if ok, or -FDT_ERR_... on error
+ */
+int fdt_fixup_display(void *blob, const char *path, const char *display);
+
 #if defined(CONFIG_HAS_FSL_DR_USB) || defined(CONFIG_HAS_FSL_MPH_USB)
 void fdt_fixup_dr_usb(void *blob, bd_t *bd);
 #else
@@ -101,7 +114,7 @@ void ft_pci_setup(void *blob, bd_t *bd);
  */
 int ft_system_setup(void *blob, bd_t *bd);
 
-void set_working_fdt_addr(void *addr);
+void set_working_fdt_addr(ulong addr);
 int fdt_shrink_to_minimum(void *blob);
 int fdt_increase_size(void *fdt, int add_len);