diff options
Diffstat (limited to 'arch/mips/cavium-octeon/executive/cvmx-helper-spi.c')
-rw-r--r-- | arch/mips/cavium-octeon/executive/cvmx-helper-spi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-spi.c b/arch/mips/cavium-octeon/executive/cvmx-helper-spi.c index 02a444230ef7..2830e4bdf7f3 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-spi.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-spi.c | |||
@@ -51,6 +51,16 @@ void __cvmx_interrupt_stxx_int_msk_enable(int index); | |||
51 | #define CVMX_HELPER_SPI_TIMEOUT 10 | 51 | #define CVMX_HELPER_SPI_TIMEOUT 10 |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | int __cvmx_helper_spi_enumerate(int interface) | ||
55 | { | ||
56 | if ((cvmx_sysinfo_get()->board_type != CVMX_BOARD_TYPE_SIM) && | ||
57 | cvmx_spi4000_is_present(interface)) { | ||
58 | return 10; | ||
59 | } else { | ||
60 | return 16; | ||
61 | } | ||
62 | } | ||
63 | |||
54 | /** | 64 | /** |
55 | * Probe a SPI interface and determine the number of ports | 65 | * Probe a SPI interface and determine the number of ports |
56 | * connected to it. The SPI interface should still be down after | 66 | * connected to it. The SPI interface should still be down after |