| b1f17bf5 | 05-Dec-2012 |
Simon Glass <sjg@chromium.org> |
Add strcasecmp() and strncasecmp()
strncasecmp() is present as strnicmp() but disabled. Make it available and define strcasecmp() also. There is a only a small performance penalty to having strcasec
Add strcasecmp() and strncasecmp()
strncasecmp() is present as strnicmp() but disabled. Make it available and define strcasecmp() also. There is a only a small performance penalty to having strcasecmp() call strncasecmp(), so do this instead of a standalone function, to save code space.
Update the prototype in arch-specific headers as needed to avoid warnings.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| ec7381fb | 05-Dec-2012 |
Simon Glass <sjg@chromium.org> |
sha256: Use const where possible and add watchdog function
In preparation for making the hash function common, we may as well use const where we can.
Also add a watchdog version of the hashing func
sha256: Use const where possible and add watchdog function
In preparation for making the hash function common, we may as well use const where we can.
Also add a watchdog version of the hashing function.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 202ff753 | 25-Oct-2012 |
Sean Paul <seanpaul@chromium.org> |
fdt: Add polarity-aware gpio functions to fdtdec
Add get and set gpio functions to fdtdec that take into account the polarity field in fdtdec_gpio_state.flags.
Signed-off-by: Sean Paul <seanpaul@ch
fdt: Add polarity-aware gpio functions to fdtdec
Add get and set gpio functions to fdtdec that take into account the polarity field in fdtdec_gpio_state.flags.
Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| aadef0a1 | 25-Oct-2012 |
Che-Liang Chiou <clchiou@chromium.org> |
fdt: Add fdtdec_get_uint64 to decode a 64-bit value from a property
It decodes a 64-bit value from a property that is at least 8 bytes long.
Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
S
fdt: Add fdtdec_get_uint64 to decode a 64-bit value from a property
It decodes a 64-bit value from a property that is at least 8 bytes long.
Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 79289c0b | 25-Oct-2012 |
Gabe Black <gabeblack@chromium.org> |
fdt: Add function to read boolean property
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Commit-Ready: Gabe Black <gabeblack@chromium.
fdt: Add function to read boolean property
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Commit-Ready: Gabe Black <gabeblack@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 5921f6a2 | 25-Oct-2012 |
Abhilash Kesavan <a.kesavan@samsung.com> |
fdt: Add function for decoding multiple gpios globally available
Samsung's SDHCI bindings require multiple gpios to be parsed and configured at a time. Export the already available fdtdec_decode_gpi
fdt: Add function for decoding multiple gpios globally available
Samsung's SDHCI bindings require multiple gpios to be parsed and configured at a time. Export the already available fdtdec_decode_gpios for this purpose.
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com> Commit-Ready: Che-Liang Chiou <clchiou@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| f20c4619 | 25-Oct-2012 |
Simon Glass <sjg@chromium.org> |
fdt: Add fdtdec_decode_region() to decode memory region
A memory region has a start and a size and is often specified in a node by a 'reg' property. Add a function to decode this information from th
fdt: Add fdtdec_decode_region() to decode memory region
A memory region has a start and a size and is often specified in a node by a 'reg' property. Add a function to decode this information from the fdt.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 332ab0d5 | 25-Oct-2012 |
Simon Glass <sjg@chromium.org> |
fdt: Add function to get a config string from device tree
Add a function to look up a configuration string such as board name and returns its value. We look in the "/config" node for this.
Signed-o
fdt: Add function to get a config string from device tree
Add a function to look up a configuration string such as board name and returns its value. We look in the "/config" node for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 0eb25768 | 29-Oct-2012 |
Kim Phillips <kim.phillips@freescale.com> |
lib/vsprintf.c: sparse fixes
vsprintf.c:31:12: warning: symbol 'hex_asc' was not declared. Should it be static? vsprintf.c:398:18: warning: Using plain integer as NULL pointer
Signed-off-by: Kim Ph
lib/vsprintf.c: sparse fixes
vsprintf.c:31:12: warning: symbol 'hex_asc' was not declared. Should it be static? vsprintf.c:398:18: warning: Using plain integer as NULL pointer
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
show more ...
|
| c71b64f3 | 16-Oct-2012 |
Gerald Van Baren <gvb@unssw.com> |
libfdt: Add helper function to create a trivial, empty tree
The libfdt read/write functions are now usable enough that it's become a moderately common pattern to use them to build and manipulate a d
libfdt: Add helper function to create a trivial, empty tree
The libfdt read/write functions are now usable enough that it's become a moderately common pattern to use them to build and manipulate a device tree from scratch. For example, we do so ourself in our rw_tree1 testcase, and qemu is starting to use this model when building device trees for some targets such as e500.
However, the read/write functions require some sort of valid tree to begin with, so this necessitates either having a trivial canned dtb to begin with or, more commonly, creating an empty tree using the serial-write functions first.
This patch adds a helper function which uses the serial-write functions to create a trivial, empty but complete and valid tree in a supplied buffer, ready for manipulation with the read/write functions.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
From git://git.jdl.com/software/dtc.git patch hash be6026838 with adaptations to include/libfdt.h and lib/libfdt/Makefile for the U-Boot environment.
Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
show more ...
|