Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 | menuconfig UART_NS16550
bool "NS16550 serial driver"
default n
select SERIAL_HAS_DRIVER
help
This option enables the NS16550 serial driver.
This driver can be used for the serial hardware
available on x86 platforms.
config UART_NS16550_PCI
bool "Enable PCI Support"
default n
depends on PCI && UART_NS16550
help
This enables NS16550 to probe for PCI-based serial devices.
This option enables the driver to auto-detect the device
configuration required to access those ports.
choice
prompt "Controller Registers Access Method"
depends on UART_NS16550
default UART_NS16550_ACCESS_IOPORT if SOC_IA32
default UART_NS16550_ACCESS_MMIO
config UART_NS16550_ACCESS_MMIO
bool "Memory mapped I/O"
help
The UART controller is mapped to memory space, and can be directly
access through memory manipulation.
config UART_NS16550_ACCESS_IOPORT
bool "I/O Port"
depends on !UART_NS16550_PCI
help
The UART controller is accessed through I/O port.
endchoice
config UART_NS16550_DLF
bool "Enable Divisor Latch Fraction (DLF) support"
default n
depends on UART_NS16550 && UART_NS16550_ACCESS_MMIO
help
This enables support for divisor latch fraction (DLF).
It is used to limit frequency error.
Says n if you are not sure if hardware supports this.
config UART_NS16550_LINE_CTRL
bool "Enable Serial Line Control for Apps"
default n
depends on UART_LINE_CTRL && UART_NS16550
help
This enables the API for apps to control the serial line,
such as CTS and RTS.
Says n if not sure.
config UART_NS16550_DRV_CMD
bool "Enable Driver Commands"
default n
depends on UART_DRV_CMD && UART_NS16550
help
This enables the API for apps to send commands to driver.
Says n if not sure.
# ---------- Port 0 ----------
menuconfig UART_NS16550_PORT_0
bool "Enable NS16550 Port 0"
default n
depends on UART_NS16550
help
This tells the driver to configure the UART port at boot, depending on
the additional configure options below.
config UART_NS16550_PORT_0_NAME
string "Port 0 Device Name"
default "UART_0"
depends on UART_NS16550_PORT_0
help
This is the device name for UART, and is included in the device
struct.
config UART_NS16550_PORT_0_BASE_ADDR
hex "Port 0 Base Address or I/O Port"
default 0x00000000
depends on UART_NS16550_PORT_0
help
The base address of UART port.
Leave this at 0x00000000 to skip initialization at boot.
For PCI device, this value is from PCI configuration space, so just
leave it at 0x00000000.
config UART_NS16550_PORT_0_IRQ
int "Port 0 Interrupt Vector"
default 0
depends on UART_NS16550_PORT_0
help
The interrupt vector for UART port. This is used for interrupt driven
transfers.
For PCI device, this value is from PCI configuration space, so just
leave it at 0x00.
config UART_NS16550_PORT_0_IRQ_PRI
int "Port 0 Interrupt Priority"
default 0
depends on UART_NS16550_PORT_0
help
The interrupt priority for UART port.
config UART_NS16550_PORT_0_BAUD_RATE
int "Port 0 Baud Rate"
default 0
depends on UART_NS16550_PORT_0
help
The baud rate for UART port to be set to at boot.
Leave at 0 to skip initialization.
config UART_NS16550_PORT_0_CLK_FREQ
int "Port 0 Clock Frequency"
default 0
depends on UART_NS16550_PORT_0
help
The clock frequency for UART port.
config UART_NS16550_PORT_0_OPTIONS
int "Port 0 Options"
default 0
depends on UART_NS16550_PORT_0
help
Options used for port initialization.
config UART_NS16550_PORT_0_DLF
hex "Port 0 DLF value"
default 0x0
depends on UART_NS16550_PORT_0 && UART_NS16550_DLF
help
Value for DLF register.
config UART_NS16550_PORT_0_PCI
bool "Port 0 is PCI-based"
default n
depends on UART_NS16550_PCI && UART_NS16550_PORT_0
help
Obtain port information from PCI.
config UART_NS16550_PORT_0_PCI_CLASS
hex "Port 0 PCI Class"
default 0x07
depends on UART_NS16550_PORT_0_PCI
help
Needed for PCI based UART port.
Value 0x07 is for simple communication controllers.
config UART_NS16550_PORT_0_PCI_BUS
int "Port 0 PCI Bus Number"
default 0
depends on UART_NS16550_PORT_0_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_0_PCI_DEV
int "Port 0 PCI Device Number"
default 0
depends on UART_NS16550_PORT_0_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_0_PCI_VENDOR_ID
hex "Port 0 PCI Vendor ID"
default 0x0000
depends on UART_NS16550_PORT_0_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_0_PCI_DEVICE_ID
hex "Port 0 PCI Device ID"
default 0x0000
depends on UART_NS16550_PORT_0_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_0_PCI_FUNC
int "Port 0 PCI Function"
default 0
depends on UART_NS16550_PORT_0_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_0_PCI_BAR
int "Port 0 PCI BAR"
default 0
depends on UART_NS16550_PORT_0_PCI
help
Needed for PCI based UART port.
# ---------- Port 1 ----------
menuconfig UART_NS16550_PORT_1
bool "Enable NS16550 Port 1"
default n
depends on UART_NS16550
help
This tells the driver to configure the UART port at boot, depending on
the additional configure options below.
config UART_NS16550_PORT_1_NAME
string "Port 1 Device Name"
default "UART_1"
depends on UART_NS16550_PORT_1
help
This is the device name for UART, and is included in the device
struct.
config UART_NS16550_PORT_1_BASE_ADDR
hex "Port 1 Base Address or I/O Port"
default 0x00000000
depends on UART_NS16550_PORT_1
help
The base address of UART port.
Leave this at 0x00000000 to skip initialization at boot.
For PCI device, this value is from PCI configuration space, so just
leave it at 0x00000000.
config UART_NS16550_PORT_1_IRQ
int "Port 1 Interrupt Vector"
default 0
depends on UART_NS16550_PORT_1
help
The interrupt vector for UART port. This is used for interrupt driven
transfers.
For PCI device, this value is from PCI configuration space, so just
leave it at 0x00.
config UART_NS16550_PORT_1_IRQ_PRI
int "Port 1 Interrupt Priority"
default 0
depends on UART_NS16550_PORT_1
help
The interrupt priority for UART port.
config UART_NS16550_PORT_1_BAUD_RATE
int "Port 1 Baud Rate"
default 0
depends on UART_NS16550_PORT_1
help
The baud rate for UART port to be set to at boot.
Leave at 0 to skip initialization.
config UART_NS16550_PORT_1_CLK_FREQ
int "Port 1 Clock Frequency"
default 0
depends on UART_NS16550_PORT_1
help
The clock frequency for UART port.
config UART_NS16550_PORT_1_OPTIONS
int "Port 1 Options"
default 0
depends on UART_NS16550_PORT_1
help
Options used for port initialization.
config UART_NS16550_PORT_1_DLF
hex "Port 1 DLF value"
default 0x0
depends on UART_NS16550_PORT_1 && UART_NS16550_DLF
help
Value for DLF register.
config UART_NS16550_PORT_1_PCI
bool "Port 1 is PCI-based"
default n
depends on UART_NS16550_PCI && UART_NS16550_PORT_1
help
Obtain port information from PCI.
config UART_NS16550_PORT_1_PCI_CLASS
hex "Port 1 PCI Class"
default 0x07
depends on UART_NS16550_PORT_1_PCI
help
Needed for PCI based UART port.
Value 0x07 is for simple communication controllers.
config UART_NS16550_PORT_1_PCI_BUS
int "Port 1 PCI Bus Number"
default 0
depends on UART_NS16550_PORT_1_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_1_PCI_DEV
int "Port 1 PCI Device Number"
default 0
depends on UART_NS16550_PORT_1_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_1_PCI_VENDOR_ID
hex "Port 1 PCI Vendor ID"
default 0x0000
depends on UART_NS16550_PORT_1_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_1_PCI_DEVICE_ID
hex "Port 1 PCI Device ID"
default 0x0000
depends on UART_NS16550_PORT_1_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_1_PCI_FUNC
int "Port 1 PCI Function"
default 0
depends on UART_NS16550_PORT_1_PCI
help
Needed for PCI based UART port.
config UART_NS16550_PORT_1_PCI_BAR
int "Port 1 PCI BAR"
default 0
depends on UART_NS16550_PORT_1_PCI
help
Needed for PCI based UART port.
|