mtd: cfi_cmdset_0002: Invalidate cache after entering/exiting OTP memory
authorChristian Riesch <christian.riesch@omicron.at>
Fri, 26 Apr 2013 19:10:28 +0000 (21:10 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 12 Jul 2014 02:44:24 +0000 (19:44 -0700)
commitfeb8677935d4319c6d22b017fefac1532cd80529
treef067645bb0cad175f786c59edbb6362552efb05a
parentdc7e9ecdd6a41edbd57b80e5ed837a06debd14ae
mtd: cfi_cmdset_0002: Invalidate cache after entering/exiting OTP memory

When the one time programmable (OTP) memory region is entered by
issuing the 0xaa/0x55/0x88 command, the OTP memory occupies the
addresses which are normally used by the first sector of the regular
flash memory. This patch therefore invalidates cache for this
addresses after entering/exiting OTP memory.

This patch also moves the code into separate functions.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/chips/cfi_cmdset_0002.c
This page took 0.025003 seconds and 5 git commands to generate.