Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-29 Thread David Gibson
On Wed, Jun 29, 2016 at 07:34:54PM -0700, Frank Rowand wrote: > On 06/27/16 20:12, David Gibson wrote: > > On Mon, Jun 27, 2016 at 01:40:00PM +0200, Maxime Ripard wrote: > >> Hi David, > >> > >> On Mon, Jun 27, 2016 at 03:26:07PM +1000, David Gibson wrote: > +static uint32_t overlay_get_target

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-29 Thread Frank Rowand
On 06/27/16 20:12, David Gibson wrote: > On Mon, Jun 27, 2016 at 01:40:00PM +0200, Maxime Ripard wrote: >> Hi David, >> >> On Mon, Jun 27, 2016 at 03:26:07PM +1000, David Gibson wrote: +static uint32_t overlay_get_target_phandle(const void *fdto, int fragment) +{ + const uint32_t *v

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-27 Thread David Gibson
On Mon, Jun 27, 2016 at 01:40:00PM +0200, Maxime Ripard wrote: > Hi David, > > On Mon, Jun 27, 2016 at 03:26:07PM +1000, David Gibson wrote: > > > +static uint32_t overlay_get_target_phandle(const void *fdto, int > > > fragment) > > > +{ > > > + const uint32_t *val; > > > + int len; > > > + > > >

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-27 Thread Maxime Ripard
Hi David, On Mon, Jun 27, 2016 at 03:26:07PM +1000, David Gibson wrote: > > +static uint32_t overlay_get_target_phandle(const void *fdto, int fragment) > > +{ > > + const uint32_t *val; > > + int len; > > + > > + val = fdt_getprop(fdto, fragment, "target", &len); > > + if (!val || (*val ==

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-27 Thread Maxime Ripard
Hi Simon, On Sat, Jun 25, 2016 at 08:53:58PM -0600, Simon Glass wrote: > Hi Maxime, > > On 24 June 2016 at 08:27, Maxime Ripard > wrote: > > The device tree overlays are a good way to deal with user-modifyable > > boards or boards with some kind of an expansion mechanism where we can > > easily

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-26 Thread David Gibson
On Fri, Jun 24, 2016 at 04:27:55PM +0200, Maxime Ripard wrote: > The device tree overlays are a good way to deal with user-modifyable > boards or boards with some kind of an expansion mechanism where we can > easily plug new board in (like the BBB, the Raspberry Pi or the CHIP). > > Add a new func

Re: [U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-25 Thread Simon Glass
Hi Maxime, On 24 June 2016 at 08:27, Maxime Ripard wrote: > The device tree overlays are a good way to deal with user-modifyable > boards or boards with some kind of an expansion mechanism where we can > easily plug new board in (like the BBB, the Raspberry Pi or the CHIP). > > Add a new function

[U-Boot] [PATCH v3 10/12] libfdt: Add overlay application function

2016-06-24 Thread Maxime Ripard
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily plug new board in (like the BBB, the Raspberry Pi or the CHIP). Add a new function to merge overlays with a base device tree. Signed-off-by: Maxime Ri