[U-Boot] [PATCH v6 00/11] mips: bmips: add SPI support
Álvaro Fernández Rojas
noltari at gmail.com
Tue Jan 2 19:01:00 UTC 2018
BCM63xx SPI controller is a bit tricky since it doesn't allow keeping CS
active between transfers, so I had to modify the spi_flash driver in order
to allow limiting reads.
v6: Introduce changes suggested by Jagan Teki:
- Use cmd instead of val to avoid confusions.
- Switch to wait_for_bit instead of infinite loop.
v5: Introduce changes suggested by Jagan Teki:
- Use long structs for registers
v4: Introduce changes suggested by Jagan Teki:
- Add data for each HW controller instead of having two separate configs.
v3: Fix bug introduced in v2: sizeof(cmd) vs len.
Also rename BCM6338 SPI driver to BCM6348 SPI since BCM6338 is a stripped
down version of the BCM6348.
Switch to devfdt_get_addr_size_index().
v2: Introduce changes requested by Simon Glass:
- Always include command bytes when determining max write size.
Also move SPI aliases from .dts to .dtsi files.
Álvaro Fernández Rojas (11):
wait_bit: add big endian version of wait_for_bit function
drivers: spi: allow limiting reads
drivers: spi: consider command bytes when sending transfers
dm: spi: add BCM63xx SPI driver
mips: bmips: add bcm63xx-spi driver support for BCM6338
mips: bmips: add bcm63xx-spi driver support for BCM6348
mips: bmips: add bcm63xx-spi driver support for BCM6358
mips: bmips: add bcm63xx-spi driver support for BCM3380
mips: bmips: add bcm63xx-spi driver support for BCM63268
mips: bmips: enable the SPI flash on the Sagem F at ST1704
mips: bmips: enable the SPI flash on the Netgear CG3100D
arch/mips/dts/brcm,bcm3380.dtsi | 17 ++
arch/mips/dts/brcm,bcm63268.dtsi | 17 ++
arch/mips/dts/brcm,bcm6338.dtsi | 17 ++
arch/mips/dts/brcm,bcm6348.dtsi | 17 ++
arch/mips/dts/brcm,bcm6358.dtsi | 17 ++
arch/mips/dts/netgear,cg3100d.dts | 12 +
arch/mips/dts/sagem,f at st1704.dts | 12 +
configs/netgear_cg3100d_ram_defconfig | 8 +
configs/sagem_f at st1704_ram_defconfig | 8 +
drivers/mtd/spi/spi_flash.c | 5 +-
drivers/spi/Kconfig | 8 +
drivers/spi/Makefile | 1 +
drivers/spi/bcm63xx_spi.c | 433 ++++++++++++++++++++++++++++++++++
include/spi.h | 5 +-
include/wait_bit.h | 44 ++++
15 files changed, 619 insertions(+), 2 deletions(-)
create mode 100644 drivers/spi/bcm63xx_spi.c
--
2.11.0
More information about the U-Boot
mailing list