summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-19evb-px30: defconfig: Setting U-Boot offset to 0x200.wip-px30Christoph Muellner
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2019-09-13fixup: px30.c - init sdmmc with constants and make emmc boot workHeiko Stuebner
2019-09-09px30.c additions - needs cleanupHeiko Stuebner
2019-09-09evb-uboot.dtsi: expose grf+xin24m in splHeiko Stuebner
2019-09-09evb-px30_defconfig: remove random ethaddr optionHeiko Stuebner
2019-09-09hack: add a static mac addressHeiko Stuebner
until someone does the efuse+calculate mac dance
2019-09-06fixup: px30 clock driverHeiko Stuebner
2019-09-05sync px30.dtsi from kernelHeiko Stuebner
2019-09-05sync px30-evb.dts from kernelHeiko Stuebner
2019-09-05sync px30.dtsi from kernelHeiko Stuebner
2019-08-12fixup px30-evb boardcode to use common boardsHeiko Stuebner
2019-08-12fixup px30-core arch to use common boards where possibleHeiko Stuebner
2019-08-11hacksHeiko Stuebner
2019-08-11rockchip: ram: add dm-based sdram driverHeiko Stuebner
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>
2019-08-11update px30-evb defconfigHeiko Stuebner
2019-08-11increase spl_bss size as linker complains about .sdram sizeHeiko Stuebner
Check later if really needed
2019-08-11px30: Add restriction for DMA-able addresses.Christoph Müllner
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>
2019-08-11add px30 boardHeiko Stuebner
2019-08-11rockchip: add px30 architecture coreHeiko Stuebner
2019-08-11rockchip: px30: add core headersHeiko Stuebner
2019-08-11rockchip: add px30 devicetreesHeiko Stuebner
2019-08-11timer: add px30 timer variant to rockchip_timerHeiko Stuebner
2019-08-11rockchip: mkimage: add support for px30Kever Yang
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
2019-08-11net: gmac_rockchip: add support for px30Heiko Stuebner
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2019-08-11fixup px30 clkHeiko Stuebner
2019-08-11px30-clk: separate clock initHeiko Stuebner
2019-08-11rockchip: clk: add px30 clock driverKever Yang
Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2019-08-11pinctrl: rockchip: add px30 pinctrl driverDavid Wu
Signed-off-by: David Wu <david.wu@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2019-08-11spl: separate SPL_FRAMEWORK config for spl and tplHeiko Stuebner
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>
2019-08-11rockchip: clk: fix wrong CONFIG_IS_ENABLED handlingHeiko Stuebner
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>
2019-08-11rockchip: clk: rv1108: remove duplicate reset initHeiko Stuebner
rockchip_reset_bind() already does the needed init for the reset registers only referenced the wrong cru structure.
2019-08-11malloc-simple: Hang if alloc space is exhausted.Christoph Müllner
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>
2019-08-11malloc_simple: Convert to non-log output.Christoph Müllner
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>
2019-08-11bouncebuf: Add static buffer allocation method for SPL.Christoph Müllner
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>
2019-08-11bouncebuf: Allow printf-simple to debug messages.Christoph Müllner
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>
2019-08-11bouncebuf: Add DMA validation check to addr_aligned().Christoph Müllner
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>
2019-08-11board_f: Add mach specific DMA address check function.Christoph Müllner
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>
2019-08-11[noupstream] Add debug output to SPL loading loop.Christoph Müllner
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
2019-07-31dw_mmc: turn on the IO supplyUrja Rannikko
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>>
2019-07-29Prepare v2019.10-rc1Tom Rini
Signed-off-by: Tom Rini <trini@konsulko.com>
2019-07-29Merge tag 'dm-pull-29jul19' of ↵Tom Rini
https://gitlab.denx.de/u-boot/custodians/u-boot-dm binman support for replacing files
2019-07-29Merge branch '2019-07-29-ti-imports'Tom Rini
- More DaVinci DM migration, drop am18xx EVM platform - Keystone bug fix
2019-07-29arm: mach-keystone: Use appended original image size in image processingAndrew F. Davis
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>
2019-07-29configs: omapl138_lcdk: enable NAND self-init in SPLBartosz Golaszewski
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>
2019-07-29davinci: omapl138-lcdk: enable driver-model in SPLBartosz Golaszewski
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>
2019-07-29davinci: omapl138-lcdk: remove unneeded includesBartosz Golaszewski
There's no SPI on da850-lcdk. Remove unnecessary includes. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
2019-07-29davinci: omapl138-lcdk: enable CONFIG_USE_TINY_PRINTFBartosz Golaszewski
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>
2019-07-29davinci: omapl138-lcdk: enable SPL_SYS_MALLOC_SIMPLEBartosz Golaszewski
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>
2019-07-29davinci: da850-evm: enable driver model for NANDBartosz Golaszewski
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
2019-07-29davinci: omapl138-lcdk: enable driver model for NANDBartosz Golaszewski
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>