Age | Commit message (Collapse) | Author |
|
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
|
|
|
|
|
|
|
|
|
|
until someone does the efuse+calculate mac dance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sdram configuration happens outside of dm-infrastructure in special
tpl-code, so the sdram driver itself has just the function to read
back the sdram configuration and allow main uboot to handle dram sizes.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
|
|
Check later if really needed
|
|
Patches on the U-Boot mailing list from Rockchip engineers
indicate, that the PX30's DMA engines are not able to use
addresses in high-memory (above 0xf8000000).
This patch models this restriction in an RK3368 specific
mach_addr_is_dmaable() function.
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
|
|
|
|
|
|
|
|
|
|
PX30 have 10K sram available.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>Date: Thu Sep 27 15:39:45 2018 +0800
|
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
|
|
|
|
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
Right now enabling SPL_FRAMEWORK will also enable it for the TPL in all
cases, making the TPL bigger. There may be cases where the TPL is really
size constrained due to its underlying ram size.
Therefore introduce a new TPL_FRAMEWORK option and make the relevant
conditionals check for both. The default is set to "y if SPL_FRAMEWORK"
to mimic the previous behaviour where the TPL would always get the
SPL framework if it was enabled in SPL.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
CONFIG_IS_ENABLED() needs the config name like used in Kconfig, so
without the leading CONFIG_. The clock drivers all wrongly check for
CONFIG_RESET_ROCKCHIP, fix that
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
rockchip_reset_bind() already does the needed init for the reset registers
only referenced the wrong cru structure.
|
|
In general code should check if calls to malloc() return NULL.
Additionally functions should check return values for errors.
However, that's not mandatory. There is quite some code in U-Boot,
which does not check results of invocations and silently ingores
them. Most likely this is caused by developers, which don't see
how a certain code could ever fail. But they don't see that code
can and will change in future and break previously valid assumptions.
This patch protects from writing to NULL, by introducing an endless
loop in case the alloc space is exhausted.
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
|
|
The majority of code in U-Boot does not use the log_* API.
This patch streamlines the debug messages of malloc_simple
as well.
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
|
|
If we are using malloc-simple, we get into the problem, that
calls to free() won't free any memory. When using bouncebuf
in SPL with malloc-simple this means, that every allocated buffer
is lost. This can quickly consume the whole heap.
This patch addresses this memory wasting by introducing a static
allocated memory location, which is used instead of dynamically
allocated buffers.
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
|
|
printf-simple does not have size_t-support (format string '%zu')
with the effect, that the debug output will just contain a 'u'
instead of the provided number.
This patch converts the size_t value to unsigned long and use
the format string %lu to print it. With that the debug messages
can be printed with printf-simple.
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
|
|
Currently addr_aligned() performs an alignment and a length check
to validate the DMA address. However, some machines have stricter
restrictions of DMA-able addresses.
This patch adds a call to mach_addr_is_dmaable() to honor this
machine specific restrictions.
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
|
|
Some machines have limited DMA engines, which cannot deal
with arbitrary addresses. This patch introduces a function
to model these restrictions on a machine level.
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
|
|
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
|
|
Fixes the microSD slot on the ASUS C201.
Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com<mailto:peng.fan@nxp.com>>
|
|
Signed-off-by: Tom Rini <trini@konsulko.com>
|
|
https://gitlab.denx.de/u-boot/custodians/u-boot-dm
binman support for replacing files
|
|
- More DaVinci DM migration, drop am18xx EVM platform
- Keystone bug fix
|
|
When an image is signed/encrypted on K2 devices the image may get padded
to meet alignment requirements for the signature/encryption type. The
original size is appended as 4 bytes little-endian to the end of the
final image.
Normally the trailing extra bytes are ignored and so restoring the
exact original size is not important. In the case of initrd the
original size is important as the kernel uses it to look for
additional filesystem data and can do the wrong thing when the
size is not correct.
Read off the original size and report it back from the image post
processing stage.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
|
|
Now that we have enabled the driver-model in SPL, we can remove the
code disabling NAND self-init in SPL from the config include for
omapl138-lcdk.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|
|
Enable CONFIG_SPL_DM and enable the driver model for serial by defining
an appropriate device in the board file for da850-lcdk.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|
|
There's no SPI on da850-lcdk. Remove unnecessary includes.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|
|
We're working towards enabling the driver-model in SPL for da850-lcdk.
Enable CONFIG_USE_TINY_PRINTF in defconfig to reduce SPL size.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|
|
We're working towards enabling the driver model in SPL for da850-lcdk.
Enable SPL_SYS_MALLOC_SIMPLE in defconfig to reduce SPL size.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|
|
Enable the driver-model on da850-evm. We need to add a dummy nand node
to the device tree, as the real nand node is a sub-node of the aemif
device.
On linux the aemif driver populates all its child nodes, but we can't do
it in u-boot currently.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: Adam Ford <aford173@gmail.com> #da850-evm
|
|
Enable the driver-model on da850-lcdk. We need to add a dummy nand node
to the device tree, as the real nand node is a sub-node of the aemif
device.
On linux the aemif driver populates all its child nodes, but we can't do
it in u-boot currently.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|