- Jul 12, 2017
-
-
Fabio Estevam authored
There is no need to add a 100us delay after the DDR initialization. Other imx6 boards do not have such delay either, so simply remove it. Signed-off-by:
Fabio Estevam <fabio.estevam@nxp.com>
-
Fabio Estevam authored
SPL is already selected via CONFIG_SPL=y, so there is no need to pass it inside CONFIG_SYS_EXTRA_OPTIONS. Signed-off-by:
Fabio Estevam <fabio.estevam@nxp.com>
-
Fabio Estevam authored
SPL is already selected via CONFIG_SPL=y, so there is no need to pass it inside CONFIG_SYS_EXTRA_OPTIONS. Signed-off-by:
Fabio Estevam <fabio.estevam@nxp.com>
-
Fabio Estevam authored
SPL is already selected via CONFIG_SPL=y, so there is no need to pass it inside CONFIG_SYS_EXTRA_OPTIONS. Signed-off-by:
Fabio Estevam <fabio.estevam@nxp.com>
-
Fabio Estevam authored
SPL is already selected via CONFIG_SPL=y, so there is no need to pass it inside CONFIG_SYS_EXTRA_OPTIONS. Signed-off-by:
Fabio Estevam <fabio.estevam@nxp.com>
-
git://git.denx.de/u-boot-dmTom Rini authored
-
- Jul 11, 2017
-
-
Masahiro Yamada authored
DTB is encoded in big endian. When we retrieve property values, we need to use fdt32_to_cpu (aka be32_to_cpu) for endian conversion. This is a bit error-prone, but sparse is useful to detect endian mismatch. We need to use (fdt32_t *) instead of (u32 *) for a pointer of a property value. Otherwise sparse warns "cast to restricted __be32". Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
Include <dm/util.h> to fix sparse warnings: symbol 'dm_dump_all' was not declared. Should it be static? symbol 'dm_dump_uclass' was not declared. Should it be static? Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
Reuse ofnode_get_property() to simplify the implementation. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
This function returns the pointer to the value of a node property. The current name ofnode_read_prop() is confusing. Follow the naming of_get_property() from Linux. The return type (const u32 *) is wrong. DT property values can be strings as well as integers. This is why of_get_property/fdt_getprop returns an opaque pointer. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
The code inside the if-block is the same as of_get_property(). Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
This will clarify the code. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
Fix sparse warnings "... was not declared. Should it be static?" Also, fix redefinition of dm_warn/dm_dbg. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Tom Rini authored
While the previous pass through fixed one place where we knew that fdt_getprop would be given a positive len, in the case of 'fdt set' we do not, so check that we did no get NULL from fdt_getprop(). Cc: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 163249) Fixes 72c98ed1 ("fdt: Add a check to do_fdt() for coverity") Signed-off-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Many tegra boards have the console UART node disabled. With livetree this prevents serial from working since it does not 'force' the console to be bound. Updates the affected boards to fix this error. The boards were checked with: for b in $(grep tegra boards.cfg |grep -v integrator | \ awk '{print $7}' | sort); do echo $b; fdtgrep -c nvidia,tegra20-uart b/$b/u-boot.dtb |grep okay; done Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
This error condition should have a debug() message. Add it. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Add support for a live device tree to the core serial uclass. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
This function is quite long. Move the core code into a separate function in preparation for adding livetree support. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Update this driver to support a live device tree. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Update these two files so include files in the right order. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Add some debugging to show when the backlight is enabled. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Update this driver to support a live device tree. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
We should sync the display (e.g. flush cache) when backspace is pressed to ensure that the character is erased correctly. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Enable full bootstage support so we can time SPL and U-Boot. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
The error handling code does not current detect an error right away. Adjust it to return immediately. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Enable this to allow debugging when the serial UART driver is misconfigured. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Calculate the time taken to set up the LCD. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
The of_n_addr_cells() and of_n_size_cells() functions are useful for getting the size of addresses in a node, but in a few places U-Boot needs to obtain the actual property value for a node without walking up the stack. Add functions for this and just the existing code to use it. Add a comment to the existing ofnode functions which do not do the right thing with a flat tree. This fixes a problem reading PCI addresses. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
This function allows a device's status to be read. This indicates whether the device should be enabled or disabled. Note: In normal operation disabled devices will not be present in the driver-model tree. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
Add a function which reads resources from a device, such as the device hardware address. This uses the "reg" property in the device. Unlike other functions there is little sense in inlining this when livetree is not being used because it has some logic in it and this would just bloat the code size. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
This provides a way to find the number of strings in a string list. Add it and also fix up the comment for ofnode_read_string_index(). Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
-
Simon Glass authored
If a system module is named the same as one of those used by binman we currently pick the system module. Adjust the ordering so that our modules are chosen instead. The module conflict reported was 'tools' from jira-python. I cannot access that package to test it. Signed-off-by:
Simon Glass <sjg@chromium.org> Reported-by:
Kevin Hilman <khilman@baylibre.com> Acked-by:
Kevin Hilman <khilman@baylibre.com>
-
Simon Glass authored
Add some tests of dtoc's functionality to make it easier to expand and enhance the tool. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Currently we have code which prints out platform data at the start of SPL. Now that we have tests for dtoc this is probably not necessary. Drop it. Update test_ofplatdata to check for empty output since it is useful to check that sandbox_spl works as expected. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function uses several separate string replaces where a regular expression might seem more reasonable. Add a comment justifying the way it is currently done. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Collect the main logic of dtoc into a function and put it into dtb_platdata. This will allow tests to use this function instead of duplicating the code themselves. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Rather than using static functions within the class, move them out of the class. This will make it slightly easier for tests to call them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This option is the only one actually used by the dtb_platdata class. Pass it explicitly to avoid needing to pass the whole option object to the constructor. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This conversion appears to not be needed as it does not occur in practice. Drop it. Signed-off-by:
Simon Glass <sjg@chromium.org>