Re: [U-Boot] [PATCH] cmd/fdt: Make fdt get value endian-safe for single-cell properties

2016-11-25 Thread Simon Glass
Hi Andreas, On 15 November 2016 at 17:18, Simon Glass wrote: > Hi Andreas, > > On 15 November 2016 at 10:07, Andreas Färber wrote: >> Hi Simon, >> >> Am 28.10.2016 um 03:52 schrieb Simon Glass: >>> On 27 October 2016 at 05:44, Andreas Färber wrote: Am 26.10.2016 um 21:19 schrieb Simon Glas

Re: [U-Boot] [PATCH] cmd/fdt: Make fdt get value endian-safe for single-cell properties

2016-11-15 Thread Simon Glass
Hi Andreas, On 15 November 2016 at 10:07, Andreas Färber wrote: > Hi Simon, > > Am 28.10.2016 um 03:52 schrieb Simon Glass: >> On 27 October 2016 at 05:44, Andreas Färber wrote: >>> Am 26.10.2016 um 21:19 schrieb Simon Glass: On 26 October 2016 at 09:02, Andreas Färber wrote: > On a Ra

Re: [U-Boot] [PATCH] cmd/fdt: Make fdt get value endian-safe for single-cell properties

2016-11-15 Thread Andreas Färber
Hi Simon, Am 28.10.2016 um 03:52 schrieb Simon Glass: > On 27 October 2016 at 05:44, Andreas Färber wrote: >> Am 26.10.2016 um 21:19 schrieb Simon Glass: >>> On 26 October 2016 at 09:02, Andreas Färber wrote: On a Raspberry Pi 2 disagreements on cell endianness can be observed:

Re: [U-Boot] [PATCH] cmd/fdt: Make fdt get value endian-safe for single-cell properties

2016-10-27 Thread Simon Glass
Hi Andreas, On 27 October 2016 at 05:44, Andreas Färber wrote: > Hi Simon, > > Am 26.10.2016 um 21:19 schrieb Simon Glass: >> On 26 October 2016 at 09:02, Andreas Färber wrote: >>> On a Raspberry Pi 2 disagreements on cell endianness can be observed: >>> >>> U-Boot> fdt print /soc/gpio@7e2

Re: [U-Boot] [PATCH] cmd/fdt: Make fdt get value endian-safe for single-cell properties

2016-10-27 Thread Andreas Färber
Hi Simon, Am 26.10.2016 um 21:19 schrieb Simon Glass: > On 26 October 2016 at 09:02, Andreas Färber wrote: >> On a Raspberry Pi 2 disagreements on cell endianness can be observed: >> >> U-Boot> fdt print /soc/gpio@7e20 phandle >> phandle = <0x000d> >> U-Boot> fdt get value myvar /so

Re: [U-Boot] [PATCH] cmd/fdt: Make fdt get value endian-safe for single-cell properties

2016-10-26 Thread Simon Glass
Hi Andreas, On 26 October 2016 at 09:02, Andreas Färber wrote: > On a Raspberry Pi 2 disagreements on cell endianness can be observed: > > U-Boot> fdt print /soc/gpio@7e20 phandle > phandle = <0x000d> > U-Boot> fdt get value myvar /soc/gpio@7e20 phandle; printenv myvar > myvar

[U-Boot] [PATCH] cmd/fdt: Make fdt get value endian-safe for single-cell properties

2016-10-26 Thread Andreas Färber
On a Raspberry Pi 2 disagreements on cell endianness can be observed: U-Boot> fdt print /soc/gpio@7e20 phandle phandle = <0x000d> U-Boot> fdt get value myvar /soc/gpio@7e20 phandle; printenv myvar myvar=0x0D00 Fix this by always treating the pointer as __be32 and convertin