mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Allow UART_POLL_FREQ to be set as a kernel option as well as via tunable
(the code was already set up for this, just needs to be in conf/options). Also, if reporting that polling is being used, report the frequency too.
This commit is contained in:
parent
c438c6eb70
commit
1662b00871
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254534
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user