u-boot-brain/board/freescale
Nikita Kiryanov 155fa9af95 spi: mxc: fix sf probe when using mxc_spi
MXC SPI driver has a feature whereas a GPIO line can be used to force CS high
across multiple transactions. This is set up by embedding the GPIO information
in the CS value:

cs = (cs | gpio << 8)

This merge of cs and gpio data into one value breaks the sf probe command:
if the use of gpio is required, invoking "sf probe <cs>" will not work, because
the CS argument doesn't have the GPIO information in it. Instead, the user must
use "sf probe <cs | gpio << 8>". For example, if bank 2 gpio 30 is used to force
cs high on cs 0, bus 0, then instead of typing "sf probe 0" the user now must
type "sf probe 15872".

This is inconsistent with the description of the sf probe command, and forces
the user to be aware of implementaiton details.

Fix this by introducing a new board function: board_spi_cs_gpio(), which will
accept a naked CS value, and provide the driver with the relevant GPIO, if one
is necessary.

Cc: Eric Nelson <eric.nelson@boundarydevices.com>
Cc: Eric Benard <eric@eukrea.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@ti.com>
Cc: Marek Vasut <marex@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
2014-09-24 17:25:39 +05:30
..
b4860qds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
bsc9131rdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
bsc9132qds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
c29xpcie kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
common video: dcu: Add Sii9022A HDMI Transmitter support 2014-09-08 10:30:35 -07:00
corenet_ds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
imx/ddr Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ls1021aqds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
ls1021atwr kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
ls2085a kconfig: armv8: move CONFIG_ARM64 to Kconfig 2014-09-16 12:24:00 -04:00
m547xevb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m548xevb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5208evbe kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5235evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5249evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5253demo kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5253evbe kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5272c3 kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5275evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5282evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5329evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m5373evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m52277evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m53017evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m54418twr kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m54451evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
m54455evb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc832xemds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc837xemds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc837xerdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc5121ads kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc7448hpc2 kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8266ads kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8308rdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8313erdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8315erdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8323erdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8349emds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8349itx kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8360emds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8360erdk kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8536ds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8540ads kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8541cds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8544ds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8548cds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8555cds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8560ads kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8568mds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8569mds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8572ds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8610hpcd kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8641hpcn kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx6qarm2 kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx6qsabreauto spi: mxc: fix sf probe when using mxc_spi 2014-09-24 17:25:39 +05:30
mx6sabresd spi: mxc: fix sf probe when using mxc_spi 2014-09-24 17:25:39 +05:30
mx6slevk spi: mxc: fix sf probe when using mxc_spi 2014-09-24 17:25:39 +05:30
mx6sxsabresd kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx23evk kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx25pdk kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx28evk kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx31ads kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx31pdk kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx35pdk kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx51evk kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx53ard kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx53evk kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx53loco kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mx53smd kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p1_p2_rdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p1_p2_rdb_pc kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p1_twr kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p1010rdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p1022ds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p1023rdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p2020come kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p2020ds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
p2041rdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
qemu-ppce500 kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
t4qds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
t4rdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
t104xrdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
t208xqds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
t208xrdb kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
t1040qds kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
vf610twr kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00