#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330907 |
|
14-Mar-2018 |
kevans |
MFC r330019: ofw_fdt: Simplify parts with new libfdt methods
libfdt now provides methods to iterate through subnodes and properties in a convenient fashion.
Replace our ofw_fdt_{peer,child} searches with calls to their corresponding libfdt methods. Rework ofw_fdt_nextprop to use the fdt_for_each_property_offset macro, making it even more obvious what it's doing.
No functional change intended.
|
#
330905 |
|
14-Mar-2018 |
kevans |
MFC r327391: Avoid use of the fdt_get_property_*() API
[It is] intrinsically incompatible with FDT versions < 16. This also simplifies the code a bit.
|
#
330902 |
|
14-Mar-2018 |
kevans |
MFC r322359: Enable OF_setprop API function to add property in FDT
This patch modifies function ofw_fdt_setprop (called by OF_setprop), so that it can add property, when replacing is not possible. Adding property is needed to fixup FDT's that have missing properties.
|
#
330900 |
|
14-Mar-2018 |
kevans |
MFC r322287 (mw): Add support for "compatible" parameter in ofw_fdt_fixup
Sometimes it's convenient to provide fixup to many boards that use the same SoC family (eg. Marvell Armada 38x). Instead of putting multiple entries in fdt_fixup_table, use one entry which refers to all boards with given SoC.
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
314506 |
|
01-Mar-2017 |
ian |
MFC r306262, r306267, r310021: (needed to avoid conflicts on later merges)
Remove bus_dma_get_range and bus_dma_get_range_nb on armv6. We only need this on a few earlier arm SoCs.
Restrict where we need to define fdt_fixup_table to just PowerPC and Marvell.
Add the missing void to function signatures in much of the arm code.
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
294511 |
|
21-Jan-2016 |
andrew |
Remove fdt_fixup_table from architectures where it's unneeded. We only make use of fdt_fixup_table on PowerPC and ARM. As such we can remove it from other architectures as it's unneeded.
Reviewed by: nwhitehorn Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D5013
|
#
277289 |
|
17-Jan-2015 |
nwhitehorn |
Return an appropriate error code in the case of a missing property rather than random numbers.
MFC after: 1 week
|
#
277257 |
|
16-Jan-2015 |
nwhitehorn |
Add two fake properties ("fdtbootcpu" and "fdtmemreserv") to the device tree's /chosen node to provide out-of-band header fields of the FDT. This emulation is not perfect without corresponding changes to ofw_fdt_nextprop(), but is enough to enable lookup by memory-map-parsing code.
MFC after: 1 week
|
#
276514 |
|
01-Jan-2015 |
nwhitehorn |
The path entry for a device tree node and its name property are usually, but not always, identical. In particular, the path entry may contain a unit address that the name does not. If the FDT node does have an explicit name property, treat that as an override of the FDT path rather than ignoring it.
MFC after: 2 weeks
|
#
270945 |
|
01-Sep-2014 |
ian |
Rename OF_xref_phandle() to OF_node_from_xref() and add a new function that provides the inverse translation, OF_xref_from_node().
Discussed with: nwhitehorn
|
#
259199 |
|
10-Dec-2013 |
nwhitehorn |
Return the correct IEEE 1275 code for "nextprop".
|
#
258805 |
|
01-Dec-2013 |
nwhitehorn |
Open Firmware mandates that certain cross-references, in particular those in /chosen, be ihandles. The ePAPR spec makes those cross-reference phandles, since FDT has no concept of ihandles. Have the OF FDT CI module interpret queries about ihandles as cross-reference phandles.
|
#
257747 |
|
06-Nov-2013 |
nwhitehorn |
An addendum: it is possible, though of questionable utility, for a node to have no properties at all. Do the right thing in such cases.
|
#
257745 |
|
06-Nov-2013 |
nwhitehorn |
Make OF_nextprop() work correctly for FDT by using the libfdt fdt_next_property_offset() API. The old code would sometimes (e.g. on the device tree supplied by the RB800 boot loader) get confused and stop partway through listing properties.
MFC after: 1 week
|
#
256967 |
|
23-Oct-2013 |
nwhitehorn |
Remove OF_instance_to_package() hack for FDT and replace with use of the generic OF_xref_phandle() API universally. Also replace some related explicit uses of fdt32_to_cpu() with OF_getencprop() calls.
|
#
256870 |
|
22-Oct-2013 |
nwhitehorn |
Return standards-compliant code from OF_nextprop() with FDT when no properties remain on this node.
|
#
228201 |
|
02-Dec-2011 |
jchandra |
Fix OF_finddevice error return value in case of FDT.
According to the open firmware standard, finddevice call has to return a phandle with value of -1 in case of error.
This commit is to: - Fix the FDT implementation of this interface (ofw_fdt_finddevice) to return (phandle_t)-1 in case of error, instead of 0 as it does now. - Fix up the callers of OF_finddevice() to compare the return value with -1 instead of 0 to check for errors. - Since phandle_t is unsigned, the return value of OF_finddevice should be checked with '== -1' rather than '<= 0' or '> 0', fix up these cases as well.
Reported by: nwhitehorn
Reviewed by: raj Approved by: raj, nwhitehorn
|
#
226466 |
|
17-Oct-2011 |
jchandra |
FDT changes for 64 bit kernel
Use the offset into the device tree from fdtp as the phandle instead of using pointer into the device tree. This will make sure that the phandle fits into a uint32_t type, even when compiled for 64bit.
Reviewed by: raj, nathanw, marcel
|
#
215120 |
|
11-Nov-2010 |
raj |
Return IEEE 1275 compliant error codes.
Submitted by: nwhitehorn
|
#
212477 |
|
11-Sep-2010 |
marius |
Change OF_interpret() to also take an array of cell_t (missed in r209801).
Reviewed by: nwhitehorn
|
#
208615 |
|
28-May-2010 |
raj |
Initial implementation of the OFW i/f methods for FDT back-end.
Reviewed by: imp Sponsored by: The FreeBSD Foundation
|