s5j/sflash: clean up and simplify logic
authorHeesub Shin <heesub.shin@samsung.com>
Sat, 29 Apr 2017 09:20:35 +0000 (18:20 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Sat, 6 May 2017 14:00:43 +0000 (23:00 +0900)
commit6c0cf4b3e7315161a9c2f2d0368a63570d40bfe4
tree124a5968712ca55b1bd36f650790cb2955cfb7c5
parentc9e8520a7d8bcefeb18aab92ae4bbea633e19527
s5j/sflash: clean up and simplify logic

Serial flash driver is using hard-coded constants. Now that the SFR
addresses and their biefield are defined in chip/s5jt200_sflash.h, we
can clean up a little bit by removing those constants and simplify the
internal logics for better readability.

Change-Id: Ifda7048bbcf58abd1a619a23fcc60d13d0cfe3e0
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/arch/arm/src/s5j/s5j_sflash.c