diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2018-06-22 17:19:46 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-06-27 09:07:55 +0200 |
commit | 9345943b2b5ea890cb479770c3c802cf851ed3e6 (patch) | |
tree | 04335409f2e49ce867e9fe50ce9c4ceaa3980b8b /drivers/mtd/nand/mxs_nand_spl.c | |
parent | 51f957adf77575075b69a95a37f118653532892c (diff) |
mtd: nand: mxs_nand: introduce SPL specific init
In preparation to convert the driver to use NAND self init
provide a new minimal init for SPL builds. As a side effect
this also reduces size of SPL by about 4KiB.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'drivers/mtd/nand/mxs_nand_spl.c')
-rw-r--r-- | drivers/mtd/nand/mxs_nand_spl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxs_nand_spl.c b/drivers/mtd/nand/mxs_nand_spl.c index 3e8b35f04a..47857a81bc 100644 --- a/drivers/mtd/nand/mxs_nand_spl.c +++ b/drivers/mtd/nand/mxs_nand_spl.c @@ -6,6 +6,7 @@ #include <common.h> #include <nand.h> #include <malloc.h> +#include "mxs_nand.h" static struct mtd_info *mtd; static struct nand_chip nand_chip; @@ -145,7 +146,7 @@ static int mxs_nand_init(void) return 0; /* init mxs nand driver */ - board_nand_init(&nand_chip); + mxs_nand_init_spl(&nand_chip); mtd = nand_to_mtd(&nand_chip); /* set mtd functions */ nand_chip.cmdfunc = mxs_nand_command; |