Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177501310
D5986.1794573645.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D5986.1794573645.diff
View Options
Index: sys/dev/uart/uart_cpu_fdt.c
===================================================================
--- sys/dev/uart/uart_cpu_fdt.c
+++ sys/dev/uart/uart_cpu_fdt.c
@@ -122,6 +122,7 @@
{
const char *propnames[] = {"stdout-path", "linux,stdout-path", "stdout",
"stdin-path", "stdin", NULL};
+ const char *propname_dbg[] = "{"freebsd,debug-path", NULL};
const char **name;
struct uart_class *class;
phandle_t node, chosen;
@@ -135,8 +136,16 @@
if (!err)
return (0);
- if (devtype != UART_DEV_CONSOLE)
+ switch (devtype) {
+ case UART_DEV_CONSOLE:
+ cp = kern_getenv("hw.fdt.console");
+ break;
+ case UART_DEV_DBGPORT:
+ cp = kern_getenv("hw.fdt.debug");
+ break;
+ default:
return (ENXIO);
+ }
/* Has the user forced a specific device node? */
cp = kern_getenv("hw.fdt.console");
@@ -146,7 +155,11 @@
*/
node = -1;
if ((chosen = OF_finddevice("/chosen")) != -1) {
- for (name = propnames; *name != NULL; name++) {
+ if (devtype == UART_DEV_DBGPORT)
+ name = propnames_dbg;
+ else
+ name = propnames;
+ for (; *name != NULL; name++) {
if (phandle_chosen_propdev(chosen, *name,
&node) == 0)
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 13, 12:40 PM (9 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41686026
Default Alt Text
D5986.1794573645.diff (1 KB)
Attached To
Mode
D5986: Add support of UART_DEV_DBGPORT to uart_cpu_fdt.c
Attached
Detach File
Event Timeline