]> git.dujemihanovic.xyz Git - u-boot.git/commit
freescale: fman: make sure phy-handle property is big endian
authorShaohui Xie <Shaohui.Xie@freescale.com>
Tue, 10 Nov 2015 11:20:16 +0000 (19:20 +0800)
committerYork Sun <yorksun@freescale.com>
Mon, 14 Dec 2015 02:27:28 +0000 (18:27 -0800)
commit1aaf3f9ae471929a70509f86a48a61da6fbfb19f
tree66bdf60b2cb7762ee7bb105208015b36d4d3a7f3
parent3901978d42b7008b13e7e9b67bea12a51cc5847b
freescale: fman: make sure phy-handle property is big endian

When creating phy-handle property, an unsigned int value is created by
fdt_create_phandle, and memcpy is used to get the value, since DTS is
big endian, the value cannot be used directly on little endian SoCs,
it should be converted by cpu_to_fdt32.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/common/fman.c