Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144626379
D4675.1775858316.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
790 B
Referenced Files
None
Subscribers
None
D4675.1775858316.diff
View Options
Index: head/sys/dev/uart/uart_cpu_fdt.c
===================================================================
--- head/sys/dev/uart/uart_cpu_fdt.c
+++ head/sys/dev/uart/uart_cpu_fdt.c
@@ -133,7 +133,6 @@
struct uart_class *class;
phandle_t node, chosen;
pcell_t shift, br, rclk;
- u_long start, size, pbase, psize;
char *cp;
int err;
@@ -212,16 +211,6 @@
di->databits = 8;
di->stopbits = 1;
di->parity = UART_PARITY_NONE;
- di->bas.bst = uart_bus_space_mem;
- err = fdt_regsize(node, &start, &size);
- if (err)
- return (ENXIO);
- err = fdt_get_range(OF_parent(node), 0, &pbase, &psize);
- if (err)
- pbase = 0;
-
- start += pbase;
-
- return (bus_space_map(di->bas.bst, start, size, 0, &di->bas.bsh));
+ return (OF_decode_addr(node, 0, &di->bas.bst, &di->bas.bsh));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 9:58 PM (5 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28320167
Default Alt Text
D4675.1775858316.diff (790 B)
Attached To
Mode
D4675: Remap UART physical address with OF_decode_addr()
Attached
Detach File
Event Timeline
Log In to Comment