Skip to content

Commit

Permalink
staging: mt7621-spi: add mt7621 support
Browse files Browse the repository at this point in the history
NeilBrown:
    The code will fail with a warning if asked to transfer
    more than 32 bytes at a time.  So used max_transfer_size
    interface to tell users about this.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
John Crispin authored and Greg Kroah-Hartman committed Mar 19, 2018
1 parent 16e556a commit 1ab7f2a
Show file tree
Hide file tree
Showing 6 changed files with 504 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,6 @@ source "drivers/staging/mt7621-pinctrl/Kconfig"

source "drivers/staging/mt7621-gpio/Kconfig"

source "drivers/staging/mt7621-spi/Kconfig"

endif # STAGING
1 change: 1 addition & 0 deletions drivers/staging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ obj-$(CONFIG_PI433) += pi433/
obj-$(CONFIG_SOC_MT7621) += mt7621-pci/
obj-$(CONFIG_SOC_MT7621) += mt7621-pinctrl/
obj-$(CONFIG_SOC_MT7621) += mt7621-gpio/
obj-$(CONFIG_SOC_MT7621) += mt7621-spi/
6 changes: 6 additions & 0 deletions drivers/staging/mt7621-spi/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config SPI_MT7621
tristate "MediaTek MT7621 SPI Controller"
depends on RALINK
help
This selects a driver for the MediaTek MT7621 SPI Controller.

1 change: 1 addition & 0 deletions drivers/staging/mt7621-spi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_SPI_MT7621) += spi-mt7621.o
5 changes: 5 additions & 0 deletions drivers/staging/mt7621-spi/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

- general code review and clean up
- ensure device-tree requirements are documented

Cc: NeilBrown <neil@brown.name>
Loading

0 comments on commit 1ab7f2a

Please sign in to comment.