]> code.ossystems Code Review - bsp/u-boot.git/commit
ARM: configs: cm_fx6: add mtd support
authorChristopher Spinrath <christopher.spinrath@rwth-aachen.de>
Tue, 12 Jul 2016 21:37:37 +0000 (23:37 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 20 Jul 2016 21:06:59 +0000 (18:06 -0300)
commit1231d04833e9264a60f18c9d0036eb5a5cad2ea7
tree08430c8a9ff300c4899a28771b63a3124dd2d4a4
parent14619b50717ed0ff3b67ec5766337cf8b12cc1fc
ARM: configs: cm_fx6: add mtd support

The cm-fx6 module has an on-board spi flash chip. Enable mtd support
and the mtdparts command. Also define a default partitioning, add
it to the default environment, and enable support to overwrite the
partitioning defined in a device tree by it. Finally, probe for the
chip on preboot to register the flash chip and, thus, establish the
connection between the mtd environment settings and the actual device.

These changes move the effective default partitioning from the device
tree shipped with the vendor kernels to U-Boot which becomes the single
point of definition for the partitioning for all device tree based
kernels (in particular, for the upstream Linux kernel which does not
have a default partitioning defined in its device tree).

Signed-off-by: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
include/configs/cm_fx6.h