MTD: pxa3xx-nand: add devicetree bindings
authorDaniel Mack <zonque@gmail.com>
Sun, 22 Jul 2012 17:51:02 +0000 (19:51 +0200)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Thu, 16 Aug 2012 08:14:24 +0000 (16:14 +0800)
commit1e7ba630d4aeabef8e022a4099b20ab9f660d37d
treeaaafa789d13ab154e42367cfc3f599d0b09610aa
parent9020b7cc27439e23a0e993f79ef8632fea5e88d5
MTD: pxa3xx-nand: add devicetree bindings

This patch contains a hack to get the DMA resources of the device when
probed from a devicetree node. This can be removed once a generic DMA
controller framework lands.

A mtd_part_parser_data is passed mtd_device_parse_register which
contains a reference to the device node, so MTD partitions can be
added as children.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Documentation/devicetree/bindings/mtd/pxa3xx-nand.txt [new file with mode: 0644]
drivers/mtd/nand/pxa3xx_nand.c