]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/common/karo.h
karo: tx6: don't write u-boot image with WITH_DROP_FFS
[karo-tx-uboot.git] / board / karo / common / karo.h
index 7264df1ab7bf45ac873dc235463260985cc13c28..d4f5cdb9e8821d3cb46c2979296f32bc5ade9c73 100644 (file)
@@ -14,6 +14,9 @@
  * GNU General Public License for more details.
  *
 */
+
+#include <errno.h>
+
 struct fb_videomode;
 
 #ifdef CONFIG_SYS_LVDS_IF
@@ -22,6 +25,8 @@ struct fb_videomode;
 #define is_lvds()                      0
 #endif
 
+void env_cleanup(void);
+
 #ifdef CONFIG_OF_LIBFDT
 void karo_fdt_remove_node(void *blob, const char *node);
 void karo_fdt_move_fdt(void);
@@ -153,3 +158,5 @@ static inline int karo_load_part(const char *part, void *addr, size_t len)
                return karo_load_mmc_part(part, addr, len);
        return ret;
 }
+
+#define DIV_ROUND(n, d)                (((n) + (d) / 2) / (d))