1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-10 12:26:19 +01:00
Files
u-boot-megous/cmd
Andreas Färber b05bf6c75d 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 <joe.hershberger@ni.com>
Cc: Gerald Van Baren <gvb@unssw.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Simon Glass <sjg@chromium.org>
2017-01-14 10:09:46 -07:00
..
2016-08-16 11:44:09 +08:00
2016-02-06 12:00:59 +01:00
2016-10-31 10:13:17 -04:00
2016-03-22 12:16:08 -04:00
2016-03-14 15:34:50 -06:00
2016-09-09 15:53:14 -04:00
2016-05-02 18:37:09 -04:00
2016-04-18 17:11:36 -04:00
2016-07-16 09:43:12 -04:00
2016-01-25 10:39:43 -05:00
2016-02-06 12:00:59 +01:00
2016-03-22 12:16:13 -04:00
2016-10-31 10:13:18 -04:00
2017-01-12 13:16:26 -05:00
2016-12-01 11:09:44 +09:00
2016-01-25 10:39:43 -05:00
2016-07-24 20:36:29 -05:00
2016-09-01 20:08:48 -05:00
2016-12-27 11:24:18 -05:00
2016-10-06 20:57:42 -04:00
2016-09-07 08:49:02 -04:00
2016-09-12 08:44:54 -04:00
2016-03-27 09:12:55 -04:00
2016-02-06 12:00:59 +01:00
2016-02-26 08:53:10 -07:00