)]}' { "commit": "1aa7e302a84bbf46a97bcfbb54b6b6d57de76cee", "tree": "3c659d3300306067d6dce445658c6ea3b3b60713", "parents": [ "6fa8e72e7bde73012d1e9b1f227d323864e739cf" ], "author": { "name": "Andre Przywara", "email": "andre.przywara@arm.com", "time": "Sun Dec 19 13:55:33 2021 +0000" }, "committer": { "name": "Joanna Farley", "email": "joanna.farley@arm.com", "time": "Tue Apr 26 15:43:58 2022 +0200" }, "message": "feat(libfdt): add function to set MAC addresses\n\nThe devicetree specification[1] defines the generic DT properties\n\"mac-address\" and \"local-mac-address\", that allow to set the MAC address\nfor a network device. This is needed because many platform network\ndevices do not define a method for obtaining a unique MAC address, and\nmany devices lack the non-volatile storage to hold such a number.\n\nSome platforms (for instance Allwinner) derive the MAC address from\nanother unique SoC property, for instance some serial number. To allow\nthose MAC address to be set by TF-A, add a function that finds the DT\nnode of a network device (by using the \"ethernet\u003cx\u003e\" alias), then adding\nthe \"local-mac-address\" property into that node, setting it to a user\nprovided address. Platforms can use this function to generate MAC\naddresses in a platform specific way, and store them in the DT.\n\nDT consumers like U-Boot or the Linux kernel will automatically pick up\nthe address from that property and program the MAC device accordingly.\n\n[1] https://devicetree-specification.readthedocs.io/en/latest/chapter4-device-bindings.html#local-mac-address-property\n\nChange-Id: I3f5766cc575fa9718f9ca23e8269b11495c43be2\nSigned-off-by: Andre Przywara \u003candre.przywara@arm.com\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "de02b46e8f2f65a31d0b1d3a100e004bdd7fe3f4", "old_mode": 33188, "old_path": "common/fdt_fixup.c", "new_id": "0ab50d8ab6159f6e3cf1649b42704209db307c06", "new_mode": 33188, "new_path": "common/fdt_fixup.c" }, { "type": "modify", "old_id": "7a590b2dcbe98086ec4ce8f9351719535f2f040a", "old_mode": 33188, "old_path": "include/common/fdt_fixup.h", "new_id": "0399ff50f462e9e274c210c77bc593aa56cffd4e", "new_mode": 33188, "new_path": "include/common/fdt_fixup.h" } ] }