Re: [U-Boot] [PATCH] driver: spi: add spansion s25fs-s family protect/unprotect

2016-08-15 Thread Yunhui Cui
On August 15, 2016 4:02 PM, Jagan Teki Wrote: > On 15 August 2016 at 11:42, Yunhui Cui wrote: > > From: Yunhui Cui > > > > In order to support spansion s25fs512s flash protect/unprotect: > > > > [1] Fill callbak flash->lock/unlock/is_locked by spansion_lock/ > > unlock/is_locked. > > Try to use

Re: [U-Boot] [PATCH] driver: spi: add spansion s25fs-s family protect/unprotect

2016-08-15 Thread Jagan Teki
On 15 August 2016 at 11:42, Yunhui Cui wrote: > From: Yunhui Cui > > In order to support spansion s25fs512s flash protect/unprotect: > > [1] Fill callbak flash->lock/unlock/is_locked by spansion_lock/ > unlock/is_locked. Try to use existing lock code and add spansion on top of that. -- Jagan T

[U-Boot] [PATCH] driver: spi: add spansion s25fs-s family protect/unprotect

2016-08-15 Thread Yunhui Cui
From: Yunhui Cui In order to support spansion s25fs512s flash protect/unprotect: [1] Fill callbak flash->lock/unlock/is_locked by spansion_lock/ unlock/is_locked. [2] Achieve protect/unprotected by operating sr1nv, cr1nv. Signed-off-by: Yunhui Cui --- drivers/mtd/spi/spi_flash.c | 195 ++