]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx6/flash.c
karo: merge with Ka-Ro specific tree for secure boot support
[karo-tx-uboot.git] / board / karo / tx6 / flash.c
index ce90c4e6c9d9caa1f5c584f93a666b8f79827c24..d0bb7c858ff677ddd6e11d25013e5b94558f6007 100644 (file)
@@ -24,7 +24,7 @@
 #include <jffs2/load_kernel.h>
 
 #include <asm/io.h>
-#include <asm/sizes.h>
+#include <linux/sizes.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/imx-common/regs-gpmi.h>
 #include <asm/imx-common/regs-bch.h>
@@ -336,7 +336,8 @@ static int write_fcb(void *buf, int block)
        printf("Writing FCB to block %d @ %08llx\n", block,
                (u64)block * mtd->erasesize);
        chip->select_chip(mtd, 0);
-       ret = chip->write_page(mtd, chip, buf, 1, page, 0, 1);
+       ret = chip->write_page(mtd, chip, 0, mtd->writesize,
+                       buf, 1, page, 0, 1);
        if (ret) {
                printf("Failed to write FCB to block %u: %d\n", block, ret);
        }