mtd: st_spi_fsm: Add support for JEDEC ID extraction
authorLee Jones <lee.jones@linaro.org>
Thu, 20 Mar 2014 09:20:38 +0000 (09:20 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 20 Mar 2014 11:17:15 +0000 (04:17 -0700)
commit1bd512b562dde92dae90036c4e6fd91f3870e44f
treef5efc1ad5d42d6b9c5af6752526339365c3febac
parent030e82dc6386f23bcd05876b452d2618dd8046b4
mtd: st_spi_fsm: Add support for JEDEC ID extraction

Once we start supporting devices it will be handy go detect them
dynamically. This will be done using the chip's unique JEDEC ID. This
patch allows us to extract a device's JEDEC ID using the a predefined
FSM register write sequence.

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