mtd: st_spi_fsm: Fetch boot-device from mode pins
authorLee Jones <lee.jones@linaro.org>
Thu, 20 Mar 2014 09:20:46 +0000 (09:20 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 20 Mar 2014 11:17:17 +0000 (04:17 -0700)
commita63984c18a6186a323987817f01095d07503bda1
treeda4a0da3d013be82943b04b5159b39fc94071489
parente209e1e8e330b55feaa16ed62836e3665026e406
mtd: st_spi_fsm: Fetch boot-device from mode pins

It's important for us to determine which device was used to boot from in
order to make some correct decisions surrounding Power Management. On
each of the platforms which support the FSM this is communicated via
a set of mode pins held in the system configuration area. This patch
determine the boot device and stores the result.

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