| f134ed7d | 31-Jul-2015 |
Simon Glass <sjg@chromium.org> |
efi: Display the correct initcall pre-relocation values
With EFI the start address of U-Boot is specified differently. We could consider just setting GD_FLG_RELOC and then setting up reloc_off. But
efi: Display the correct initcall pre-relocation values
With EFI the start address of U-Boot is specified differently. We could consider just setting GD_FLG_RELOC and then setting up reloc_off. But that flag has other implementations and we are not able to use U-Boot relocation which this flag implies.
Instead, just add a special case for EFI.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| 6b9f9ead | 13-Jul-2015 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
linux_compat: handle __GFP_ZERO in kmalloc()
Currently, kzalloc() returns zero-filled memory, while kmalloc() simply ignores the second argument and never fills the memory area with zeros.
I want k
linux_compat: handle __GFP_ZERO in kmalloc()
Currently, kzalloc() returns zero-filled memory, while kmalloc() simply ignores the second argument and never fills the memory area with zeros.
I want kmalloc(size, __GFP_ZERO) to behave as kzalloc() does, which will make it easier to add more memory allocator variants.
With the introduction of __GFP_ZERO flag, going forward, kzmalloc() variants can fall back to kmalloc() enabling the __GFP_ZERO flag.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Heiko Schocher <hs@denx.de> Acked-by: Simon Glass <sjg@chromium.org> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
show more ...
|
| cb5f97f7 | 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
fdt: Provide debug info when a device tree cannot be found
It can be quite confusing with a new platform to figure out why the device tree cannot be located. Add some debug information for this case
fdt: Provide debug info when a device tree cannot be found
It can be quite confusing with a new platform to figure out why the device tree cannot be located. Add some debug information for this case.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c3c4c005 | 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
fdt: Add fdt_first/next_region() functions
These have been sent upstream but not accepted to libfdt. For now, bring these into U-Boot to enable fdtgrep to operate. We will use fdtgrep to cut device
fdt: Add fdt_first/next_region() functions
These have been sent upstream but not accepted to libfdt. For now, bring these into U-Boot to enable fdtgrep to operate. We will use fdtgrep to cut device tree files down for SPL.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 8f6e2e1e | 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
fdt: Add a function to remove unused strings from a device tree
Property names are stored in a string table. When a node property is removed, the string table is not updated since other nodes may ha
fdt: Add a function to remove unused strings from a device tree
Property names are stored in a string table. When a node property is removed, the string table is not updated since other nodes may have a property with the same name.
Thus it is possible for the string table to build up a number of unused strings. Add a function to remove these. This works by building a new device tree from the old one, adding strings one by one as needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 73e1e795 | 14-Jul-2015 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
libfdt: fix error code of fdt_count_strings()
Currently, this function returns a positive value on error, so we never know whether this function has succeeded or failed.
For example, if the given p
libfdt: fix error code of fdt_count_strings()
Currently, this function returns a positive value on error, so we never know whether this function has succeeded or failed.
For example, if the given property is not found, fdt_getprop() returns -FDT_ERR_NOTFOUND, and then this function inverts it, i.e., returns FDT_ERR_NOTFOUND (=1).
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Fixes: bc4147ab2d69 ("fdt: Add a function to count strings") Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 31f334ab | 14-Jul-2015 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
libfdt: fix error code of fdt_get_string_index()
As mentioned in the comment block in include/libfdt.h, fdt_get_string_index() is supposed to return a negative value on error.
Signed-off-by: Masahi
libfdt: fix error code of fdt_get_string_index()
As mentioned in the comment block in include/libfdt.h, fdt_get_string_index() is supposed to return a negative value on error.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Fixes: 5094eb408a5d ("fdt: Add functions to retrieve strings") Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|