mtd: st_spi_fsm: Initialise and configure the FSM for normal working conditions
authorLee Jones <lee.jones@linaro.org>
Thu, 20 Mar 2014 09:20:35 +0000 (09:20 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 20 Mar 2014 11:17:14 +0000 (04:17 -0700)
commit86f309fd8fb291039a3776593a0b2a9d86c895ab
treeede4e81d45ef50c567d3fb6613fd99aa8bcb276b
parentbc09fb5756b90df65b1776cf38d67bbb306b72fd
mtd: st_spi_fsm: Initialise and configure the FSM for normal working conditions

This patch uses default values to initialise a connected flash chip. This
includes; a device soft reset, setting of a safe working frequency, a
switch into Fast Sequencing Mode, configuring of timing data and a purge
of the FIFO.

Acked-by Angus Clark <angus.clark@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/st_spi_fsm.c