diff options
Diffstat (limited to 'target/linux/oxnas/files/drivers/mtd/nand')
-rw-r--r-- | target/linux/oxnas/files/drivers/mtd/nand/oxnas_nand.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/oxnas/files/drivers/mtd/nand/oxnas_nand.c b/target/linux/oxnas/files/drivers/mtd/nand/oxnas_nand.c index c96d66b245..9536e5179c 100644 --- a/target/linux/oxnas/files/drivers/mtd/nand/oxnas_nand.c +++ b/target/linux/oxnas/files/drivers/mtd/nand/oxnas_nand.c @@ -56,10 +56,14 @@ static int oxnas_nand_probe(struct platform_device *pdev) return 0; } +/* allow users to override the partition in DT using the cmdline */ +static const char * part_probes[] = { "cmdlinepart", "ofpart", NULL }; + static struct platform_nand_data oxnas_nand_data = { .chip = { .nr_chips = 1, .chip_delay = 30, + .part_probe_types = part_probes, }, .ctrl = { .probe = oxnas_nand_probe, |