Skip to content

Commit 1804c60

Browse files
MingcongBaiKexyBiscuit
authored andcommitted
AOSCOS: spi: spi-loongson: allow building on MACH_LOONGSON32/64
LS2K/LS7A chipsets are also found on some MIPS-based Loongson hardware, allow building for 32-bit (2K) and 64-bit (3A/B) hardware. Signed-off-by: Mingcong Bai <[email protected]> Signed-off-by: Kexy Biscuit <[email protected]>
1 parent 99763ea commit 1804c60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/spi/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,12 +569,12 @@ config SPI_LM70_LLP
569569

570570
config SPI_LOONGSON_CORE
571571
tristate
572-
depends on LOONGARCH || COMPILE_TEST
572+
depends on LOONGARCH || MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST
573573

574574
config SPI_LOONGSON_PCI
575575
tristate "Loongson SPI Controller PCI Driver Support"
576576
select SPI_LOONGSON_CORE
577-
depends on PCI && (LOONGARCH || COMPILE_TEST)
577+
depends on PCI && (LOONGARCH || MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST)
578578
help
579579
This bus driver supports the Loongson SPI hardware controller in
580580
the Loongson platforms and supports to use PCI framework to
@@ -585,7 +585,7 @@ config SPI_LOONGSON_PCI
585585
config SPI_LOONGSON_PLATFORM
586586
tristate "Loongson SPI Controller Platform Driver Support"
587587
select SPI_LOONGSON_CORE
588-
depends on OF && (LOONGARCH || COMPILE_TEST)
588+
depends on OF && (LOONGARCH || MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST)
589589
help
590590
This bus driver supports the Loongson SPI hardware controller in
591591
the Loongson platforms and supports to use DTS framework to

0 commit comments

Comments
 (0)