summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/am33xx_bbu_nand.c
Commit message (Collapse)AuthorAgeFilesLines
* OMAP: am33xx_bbu_nand: Extent barebox update handlerTeresa Remmet2016-06-301-22/+28
| | | | | | | | Make it possible to write barebox image to multiple partitions like xload partitions. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix erasing/protecting flashes with unspecified sizeSascha Hauer2016-04-191-1/+1
| | | | | | | | | | | | | | | | | fixes: 81737c1 mtd: Fix erasing of devices >4GiB Several places erased a complete flash partition passing ~0 as count to erase(). With the above commit count to erase was changed from an unsigned type to a signed type, so the (count > f->size - offset) check in erase() no longer triggers and the ~0 count is no longer adjusted to the whole device size. Among other things this results in saveenv failures on NOR flashes. This patch fixes this by introducing an explicit macro for erasing the whole device which is tested for in erase(). All other negative values are rejected. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reported-by: Giorgio <giorgio.nicole@arcor.de>
* ARM: am335x: NAND MLO update: always let the user confirm updatingSascha Hauer2014-09-301-4/+4
| | | | | | | Before actually doing something the user should always confirm the update. Move the question out of the if() block. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x: Add a NAND update handler for the regular bareboxSascha Hauer2014-09-301-0/+161
To be able to not only update the MLO in NAND but also the regular barebox image. Since this is implemented with help of the corresponding xload handler this also removes the 'xload' from the Kconfig options and the filename. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>