u-boot/drivers
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
..
bios_emulator kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
block sata: dwc_ahsata: implement sata_port_status 2014-09-09 15:32:32 +02:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
core dm: avoid dev->req_seq overflow 2014-09-23 12:44:31 -06:00
crypto includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
ddr/fsl driver/ddr/fsl: Add support of overriding chip select write leveling 2014-09-08 10:30:34 -07:00
demo dm: Give the demo uclass a name 2014-07-23 14:08:37 +01:00
dfu dfu: Provide means to find difference between dfu-util -e and -R 2014-09-02 14:29:28 +02:00
dma omap: clean-up dead configs 2014-08-09 11:17:04 -04:00
fpga m68k: Fix warnings with gcc 4.6 2014-06-11 16:27:05 -04:00
gpio tegra: Convert tegra GPIO driver to use driver model 2014-09-10 12:59:59 -06:00
hwmon kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
i2c ls102xa: i2c: Add i2c support for LS102xA 2014-09-08 10:30:32 -07:00
input stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc cros_ec: Fix two bugs in the SPI implementation 2014-08-06 00:18:01 +05:30
mmc ls102xa: esdhc: Add esdhc support for LS102xA 2014-09-08 10:30:34 -07:00
mtd mtd: spi: add support for M25PE16 and M25PX16 2014-09-24 17:25:16 +05:30
net Merge branch 'master' of git://git.denx.de/u-boot-arm 2014-09-17 18:01:04 -04:00
pci pcie_imx: Add mx6solox support 2014-09-09 17:24:49 +02:00
pcmcia powerpc: mpc8xx: remove svm_sc8xx board 2014-08-21 12:01:12 -04:00
power pmic: pmic_pfuze100: Use a shorter name for PMIC name 2014-08-08 10:29:41 +02:00
pwm pwm, imx6: add support for pwm modul on imx6 2014-07-23 12:25:42 +02:00
qe net: Merge asm/fsl_enet.h into fsl_mdio.h 2014-09-08 10:30:33 -07:00
rtc RTC: add support for DS1339 (using DS1307 driver) 2014-08-14 14:45:58 +02:00
serial dm: serial: Don't require device tree to configure a console 2014-09-23 12:44:30 -06:00
sound build: define CPU only when arch/${ARCH}/cpu/${CPU} exists 2014-07-07 19:42:34 -04:00
spi spi: mxc: fix sf probe when using mxc_spi 2014-09-24 17:25:39 +05:30
tpm tpm: don't use unneeded double brackets 2014-07-07 19:43:01 -04:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb USB: ehci-atmel: use pcr to enable or disable clock 2014-09-19 00:11:21 +02:00
video Merge branch 'master' of git://git.denx.de/u-boot-arm 2014-09-12 11:27:46 -04:00
watchdog arm: ls102xa: Add Freescale LS102xA SoC support 2014-09-08 10:30:32 -07:00
Makefile pwm, imx6: add support for pwm modul on imx6 2014-07-23 12:25:42 +02:00