From: Tom Rini Date: Thu, 19 Jun 2014 11:20:51 -0400 Subject: [U-Boot] [U-Boot, v2, 7/9] fdt_support: fix an endian bug of fdt_fixup_memory_banks In-Reply-To: <1397810465-10006-8-git-send-email-yamada.m@jp.panasonic.com> References: <1397810465-10006-8-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140619152051.GL20480@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Apr 18, 2014 at 05:41:03PM +0900, Masahiro Yamada wrote: > Data written to DTB must be converted to big endian order. > It is usually done by using cpu_to_fdt32(), cpu_to_fdt64(), etc. > > fdt_fixup_memory_banks() invoked write_cell(), which always > swaps byte order. > It means the function only worked on little endian architectures. > > This commit adds and uses a new helper function, fdt_pack_reg(), > which works on both big endian and little endian architrectures. > > Signed-off-by: Masahiro Yamada > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: