diff options
-rw-r--r-- | sys/conf/NOTES | 2 | ||||
-rw-r--r-- | sys/conf/options | 3 | ||||
-rw-r--r-- | sys/dev/uart/uart_core.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 3f8422266140..d8e13c955a70 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -1801,6 +1801,8 @@ device uart # Options for uart(4) options UART_PPS_ON_CTS # Do time pulse capturing using CTS # instead of DCD. +options UART_POLL_FREQ # Set polling rate, used when hw has + # no interrupt support (50 Hz default). # The following hint should only be used for pure ISA devices. It is not # needed otherwise. Use of hints is strongly discouraged. diff --git a/sys/conf/options b/sys/conf/options index ed37a8e513d2..09276e8d4c3e 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -641,8 +641,9 @@ BKTR_SIS_VIA_MODE opt_bktr.h BKTR_USE_FREEBSD_SMBUS opt_bktr.h BKTR_NEW_MSP34XX_DRIVER opt_bktr.h -# Options to support PPS +# Options for uart(4) UART_PPS_ON_CTS opt_uart.h +UART_POLL_FREQ opt_uart.h # options for bus/device framework BUS_DEBUG opt_bus.h diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index c2f53b8e2663..17dabd7d8017 100644 --- a/sys/dev/uart/uart_core.c +++ b/sys/dev/uart/uart_core.c @@ -537,7 +537,7 @@ uart_bus_attach(device_t dev) sep = ", "; } if (sc->sc_polled) { - printf("%spolled mode", sep); + printf("%spolled mode (%dHz)", sep, uart_poll_freq); sep = ", "; } printf("\n"); |