Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-20 Thread Simon Glass
Hi Thierry, On 20 August 2014 00:36, Thierry Reding wrote: > On Tue, Aug 19, 2014 at 03:28:09PM -0600, Simon Glass wrote: >> Hi Thierry, >> >> On 19 August 2014 07:12, Thierry Reding wrote: >> > On Tue, Aug 19, 2014 at 06:55:18AM -0600, Simon Glass wrote: >> >> On 19 August 2014 05:35, Thierry R

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-19 Thread Thierry Reding
On Tue, Aug 19, 2014 at 03:28:09PM -0600, Simon Glass wrote: > Hi Thierry, > > On 19 August 2014 07:12, Thierry Reding wrote: > > On Tue, Aug 19, 2014 at 06:55:18AM -0600, Simon Glass wrote: > >> On 19 August 2014 05:35, Thierry Reding wrote: > > [...] > >> > The Linux kernel handles this by wra

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-19 Thread Simon Glass
Hi Thierry, On 19 August 2014 07:12, Thierry Reding wrote: > On Tue, Aug 19, 2014 at 06:55:18AM -0600, Simon Glass wrote: >> On 19 August 2014 05:35, Thierry Reding wrote: > [...] >> > The Linux kernel handles this by wrapping it in an of_read_number() >> > helper and always returning u64, like

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-19 Thread Thierry Reding
On Tue, Aug 19, 2014 at 06:55:18AM -0600, Simon Glass wrote: > On 19 August 2014 05:35, Thierry Reding wrote: [...] > > The Linux kernel handles this by wrapping it in an of_read_number() > > helper and always returning u64, like this: > > > > static inline u64 of_read_number(const __be32

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-19 Thread Simon Glass
Hi Thierry, On 19 August 2014 05:35, Thierry Reding wrote: > > On Mon, Aug 18, 2014 at 12:06:26PM -0600, Simon Glass wrote: > > Hi Thierry, > > > > On 18 August 2014 01:16, Thierry Reding wrote: > > > From: Thierry Reding > > > > > > Add the fdt_get_resource() and fdt_get_named_resource() funct

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-19 Thread Thierry Reding
On Mon, Aug 18, 2014 at 12:06:26PM -0600, Simon Glass wrote: > Hi Thierry, > > On 18 August 2014 01:16, Thierry Reding wrote: > > From: Thierry Reding > > > > Add the fdt_get_resource() and fdt_get_named_resource() functions which > > can be used to parse resources (memory regions) from an FDT.

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-18 Thread Simon Glass
Hi Thierry, On 18 August 2014 01:16, Thierry Reding wrote: > From: Thierry Reding > > Add the fdt_get_resource() and fdt_get_named_resource() functions which > can be used to parse resources (memory regions) from an FDT. A helper to > compute the size of a region is also provided. > > Signed-off

[U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-18 Thread Thierry Reding
From: Thierry Reding Add the fdt_get_resource() and fdt_get_named_resource() functions which can be used to parse resources (memory regions) from an FDT. A helper to compute the size of a region is also provided. Signed-off-by: Thierry Reding --- include/fdtdec.h | 48 +