RapidIO: Add enabling SRIO port RX and TX
PATCH v3 6/6 RapidIO: Add enabling SRIO port RX and TX
From: Thomas Moll <[email protected]>
Add the functionality to enable Input receiver and Output transmitter of every port, to allow non-maintenance traffic.
Signed-off-by Thomas Moll <[email protected]>
Cc Matt Porter <[email protected]>
---
drivers/rapidio/Kconfig | 11 ++++++ drivers/rapidio/rio-scan.c | 79 ++++++++++++++++++++++++++++++++++++++++++++- include/linux/rio_regs.h | 5 ++ 3 files changed, 94 insertions(+), 1 deletion(-)
drivers/rapidio/Kconfig +11 -0
@@ -9,4 +9,15 @@ config RAPIDIO_DISC_TIMEOUT Amount of time a discovery node waits for a host to complete enumeration before giving up. +config RAPIDIO_ENABLE_RX_TX_PORTS + bool "Enable RapidIO Input/Output Ports" + depends on RAPIDIO + ---help--- + The RapidIO specification describes a Output port transmit + enable and a Input port receive enable. The recommended state + for Input ports and Output ports should be disabled. When + this switch is set the RapidIO subsystem will enable all + ports for Input/Output direction to allow other traffic + than Maintenance transfers. + source "drivers/rapidio/switches/Kconfig"
drivers/rapidio/rio-scan.c +78 -1
111 lines not on this page · raw message
include/linux/rio_regs.h +5 -0
@@ -243,7 +243,12 @@#define RIO_PORT_N_CTL_PWIDTH 0xc0000000#define RIO_PORT_N_CTL_PWIDTH_1 0x00000000#define RIO_PORT_N_CTL_PWIDTH_4 0x40000000 +#define RIO_PORT_N_CTL_P_TYP_SER 0x00000001#define RIO_PORT_N_CTL_LOCKOUT 0x00000002 +#define RIO_PORT_N_CTL_EN_RX_SER 0x00200000 +#define RIO_PORT_N_CTL_EN_TX_SER 0x00400000 +#define RIO_PORT_N_CTL_EN_RX_PAR 0x08000000 +#define RIO_PORT_N_CTL_EN_TX_PAR 0x40000000/* * Error Management Extensions (RapidIO 1.3+, Part 8)