sf: Add SPI protection mechanism from the kernel
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 5 Nov 2015 14:43:41 +0000 (12:43 -0200)
committerTom Rini <trini@konsulko.com>
Thu, 5 Nov 2015 21:47:05 +0000 (16:47 -0500)
commit41b358d7a7c9f29eca4a439fba0ae679100a9ad5
tree0a0b551ae6184c239233ca92a8368ab4ff3cfab7
parent2d2f490dd594a9a3fcf3649f572e910771007962
sf: Add SPI protection mechanism from the kernel

Add the SPI NOR protection mechanism from the kernel.

This code is based on the work from
Brian Norris <computersforpeace@gmail.com>
Here is the commit details:
"mtd: spi-nor: refactor block protection functions"
(sha1: 62593cf40b23b523b9fc9334ca61ba6c595ebb09)

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/sf_ops.c