]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/arm/mach-omap1/board-h3.c
Merge tag 'for-linus-3.5-20120601' of git://git.infradead.org/linux-mtd
[mirror_ubuntu-bionic-kernel.git] / arch / arm / mach-omap1 / board-h3.c
index 94858dc8c84043f5cc20d47ff805d6906a6480b0..108a8640fc6f04c2c42c0accc0d6602716831ef0 100644 (file)
@@ -181,20 +181,6 @@ static struct mtd_partition nand_partitions[] = {
        },
 };
 
-static void nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
-{
-       struct nand_chip *this = mtd->priv;
-       unsigned long mask;
-
-       if (cmd == NAND_CMD_NONE)
-               return;
-
-       mask = (ctrl & NAND_CLE) ? 0x02 : 0;
-       if (ctrl & NAND_ALE)
-               mask |= 0x04;
-       writeb(cmd, (unsigned long)this->IO_ADDR_W | mask);
-}
-
 #define H3_NAND_RB_GPIO_PIN    10
 
 static int nand_dev_ready(struct mtd_info *mtd)
@@ -211,7 +197,7 @@ static struct platform_nand_data nand_platdata = {
                .options                = NAND_SAMSUNG_LP_OPTIONS,
        },
        .ctrl   = {
-               .cmd_ctrl       = nand_cmd_ctl,
+               .cmd_ctrl       = omap1_nand_cmd_ctl,
                .dev_ready      = nand_dev_ready,
 
        },
@@ -436,6 +422,7 @@ MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board")
        .reserve        = omap_reserve,
        .init_irq       = omap1_init_irq,
        .init_machine   = h3_init,
+       .init_late      = omap1_init_late,
        .timer          = &omap1_timer,
        .restart        = omap1_restart,
 MACHINE_END