summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndreas Färber <[email protected]>2017-01-09 16:08:02 +0100
committerSimon Glass <[email protected]>2017-01-14 10:09:46 -0700
commitb05bf6c75d03c925737e228472b694cbeaa503c2 (patch)
tree22ed1bd68550422392a5b28759d81257a20d3e17 /include/linux
parent082b1414e80ffa94569613705eac319488324516 (diff)
cmd/fdt: Make fdt get value endian-safe for single-cell properties
On a Raspberry Pi 2 disagreements on cell endianness can be observed: U-Boot> fdt print /soc/gpio@7e200000 phandle phandle = <0x0000000d> U-Boot> fdt get value myvar /soc/gpio@7e200000 phandle; printenv myvar myvar=0x0D000000 Fix this by always treating the pointer as BE and converting it in fdt_value_setenv(), like its counterpart fdt_parse_prop() already does. Consistently use fdt32_t, fdt32_to_cpu() and cpu_to_fdt32(). Fixes: bc80295 ("fdt: Add get commands to fdt") Cc: Joe Hershberger <[email protected]> Cc: Gerald Van Baren <[email protected]> Signed-off-by: Andreas Färber <[email protected]> Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions