[U-Boot] [PATCH v4 36/66] rockchip: pinctrl: rk3368: move IOMUX bit-definitions to pinctrl driver

2017-08-02 Thread Philipp Tomsich
from the grf_rk3368.h header into the pinctrl driver pinctrl_rk3368.c. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: - moved bit-definitions pertinent to

[U-Boot] [PATCH v4 06/66] spl: use TPL_SYS_MALLOC_F_LEN for TPL

2017-08-02 Thread Philipp Tomsich
(SYS_MALLOC_F_LEN) Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Version-changes: 3 - (new patch) adds changes to SYS_MALLOC_F_LEN for TPL to fix breakage from rebasing to u-boot-rockchip/master Version-changes:

[U-Boot] [PATCH v4 01/66] spl: add a 'return to bootrom' boot method

2017-08-02 Thread Philipp Tomsich
). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Tom Rini <tr...@konsulko.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/include/asm/spl.h | 1 + common/spl/Kc

[U-Boot] [PATCH v2 2/6] dm: timer: normalise SPL and TPL support

2017-08-02 Thread Philipp Tomsich
). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: None arch/arm/cpu/armv8/Makefile | 2 ++ common/spl/Kconfig | 8 configs/chromebook_link64_defconfig | 2 +-

[U-Boot] [PATCH v2 4/6] dts: rk3368: make timer0 accessible for SPL and TPL

2017-08-02 Thread Philipp Tomsich
To use it with the DM timer driver in SPL and TPL, timer0 needs to be marked as pre-reloc. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - add 'clock-frequency' prop to timer in the -u-boot.dts

[U-Boot] [PATCH v2 6/6] rockchip: rk3368: remove setup of secure timer from TPL/SPL

2017-08-02 Thread Philipp Tomsich
, there will be a dependency from Linux to the ATF through the ARMv8 generic timer... this seems reasonable, as Linux will require the ATF (and PSCI) to start up the secondary cores anyway (in other words: we don't add any new dependencies). Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v4 11/66] spl: dm: Kconfig: introduce TPL_RAM (in analogy to SPL_RAM)

2017-08-02 Thread Philipp Tomsich
To allow finer grained selection of features for TPL, we introduce TPL_RAM (in analogy to SPL_RAM). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- Changes i

[U-Boot] [PATCH v4 63/66] rockchip: rk3368: mark TPL as not inheriting its stack, text-base and size from SPL

2017-08-02 Thread Philipp Tomsich
The RK3368 needs to have a different base-address and stack-pointer for its TPL stage. Now that we want to do this via Kconfig, we need to tick the appropriate 'TPL_NEEDS_...' boxes. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Gl

[U-Boot] [PATCH v4 51/66] rockchip: rk3368: dts: add DMC node in rk3368.dtsi

2017-08-02 Thread Philipp Tomsich
to allow DTS files including this DTSI to refer to the symbolic constants for the DDR3 bin and for the memory-schedule. Note that the DMC contains both the memory regions for the (Designware) protocol controller as well as the DDR PHY. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v4 48/66] net: gmac_rockchip: Add support for the RK3368 GMAC

2017-08-02 Thread Philipp Tomsich
The GMAC in the RK3368 once again is identical to the incarnation in the RK3288 and the RK3399, except for where some of the configuration and control registers are located in the GRF. This adds the RK3368-specific logic necessary to reuse this driver. Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH v4 43/66] rockchip: clk: rk3368: implement MMC/SD clock reparenting

2017-08-02 Thread Philipp Tomsich
instead of SCLK_MMC/SCLK_SDMMC: to match this (and to ensure that clock setup always works), we adjust the driver appropriately. This includes the changes from: - rockchip: clk: rk3368: convert MMC_PLL_SEL_* definitions to shifted-value form Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH v4 52/66] rockchip: rk3368: spl: enable SPL_FRAMEWORK in rk3368_common.h

2017-08-02 Thread Philipp Tomsich
To build TPL and SPL stages for the RK3368, we will also need to enable the SPL_FRAMEWORK. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Version-changes: 2 - dropped duplicate definition (this in fact dropped one of the patches in this series) of CONFIG_SYS_SDRA

[U-Boot] [PATCH v4 15/66] spl: dm: use CONFIG_IS_ENABLED to test for the DM option

2017-08-02 Thread Philipp Tomsich
for the SPL variant. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- Changes in v4: None Changes in v3: None Changes in v2: None common/spl/spl.c| 5 ++

[U-Boot] [PATCH v4 64/66] moveconfig: migrate TPL_STACK, TPL_TEXT_BASE and TPL_MAX_SIZE

2017-08-02 Thread Philipp Tomsich
We can finally drop TPL_STACK, TPL_TEXT_BASE and TPL_MAX_SIZE off the whitelist (this time it's really happening!) and migrate the setting (only used on the RK3368-uQ7 so far) into Kconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Gl

[U-Boot] [PATCH v4 16/66] armv8: move low-level assembly functions into function-sections

2017-08-02 Thread Philipp Tomsich
this code. Even for a feature-rich TPL (including DM support as for the RK3368), this equates to a size difference of significantly more than 10% in TPL binary size. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- C

[U-Boot] [PATCH v4 55/66] rockchip: rk3368: spl: add SPL support

2017-08-02 Thread Philipp Tomsich
Adds SPL support for the RK3368 (assuming that our TPL stage has initialised DRAM and set up the memory firewall). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None C

[U-Boot] [PATCH v4 60/66] rockchip: Kconfig: preset TPL_LDSCRIPT via Kconfig for the RK3368

2017-08-02 Thread Philipp Tomsich
Set TPL_LDSCRIPT in Kconfig, so we don't have to pollute our header file. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v4: - (added) sets TPL_LDSCRIPT via Kconfig Changes in v3: None Changes in v2: None arch/arm/mach-rockchip/Kconfi

[U-Boot] [PATCH v4 39/66] rockchip: clk: rk3368: support OF_PLATDATA for the RK3368 clk driver

2017-08-02 Thread Philipp Tomsich
With the RK3368's limited TPL size, we'll want to use OF_PLATFDATA for the SPL stage. This implements support for OF_PLATDATA in the clock driver for the RK3368. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org>

[U-Boot] [PATCH v4 66/66] rockchip: board: puma_rk3399: rename ATF firmware

2017-08-02 Thread Philipp Tomsich
..@chromium.org> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v4: None Changes in v3: None Changes in v2: None board/theobroma-systems/puma_rk3399/README | 2 +- board/theobroma-systems/puma_rk3399/fit_spl_atf.its | 2 +- 2 files cha

[U-Boot] [PATCH v4 09/66] spl: dm: Kconfig: split REGMAP/SYSCON support for TPL from SPL

2017-08-02 Thread Philipp Tomsich
This change introduces TPL variants of the REGMAP and SYSCON config options (i.e. TPL_REGMAP and TPL_SYSCON in analogy to SPL_REGMAP and SPL_SYSCON) in preparation of a finer-grained feature selection for building feature-rich TPL variants. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH v4 08/66] spl: dm: Kconfig: use more specific prereqs for SPL_REGMAP and SPL_SYSCON

2017-08-02 Thread Philipp Tomsich
SPL_REGMAP and SPL_SYSCON were marked as depending on DM, when a stricter dependency of SPL_DM was possible. This commit makes the prereq more specific. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by:

[U-Boot] [PATCH v4 00/66] Support OF_PLATDATA in TPL, enable RK3368 DRAM init and add RK3368-uQ7

2017-08-02 Thread Philipp Tomsich
s Goger (1): rockchip: board: puma_rk3399: rename ATF firmware Philipp Tomsich (65): spl: add a 'return to bootrom' boot method spl: configure 'return to bootrom' separately for SPL and TPL rockchip: back-to-bootrom: add 'back-to-bootrom' support for AArch64 rockchip: back-to-boot

[U-Boot] [PATCH v4 40/66] rockchip: clk: rk3368: do not change CPLL/GPLL before returning to BROM

2017-08-02 Thread Philipp Tomsich
a little later (i.e. in SPL). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/clk/rockchip/clk_rk3368.c | 18 +- 1 file

[U-Boot] [PATCH v4 02/66] spl: configure 'return to bootrom' separately for SPL and TPL

2017-08-02 Thread Philipp Tomsich
separately for the TPL stage. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- Changes in v4: None Changes in v3: None Changes in v2: None common/spl/Kconfig | 11 +

[U-Boot] [PATCH v4 05/66] rockchip: back-to-bootrom: simplify the #ifdef-check for LIBGENERIC in TPL/SPL

2017-08-02 Thread Philipp Tomsich
With the finer-grained control over LIBGENERIC_SUPPORT for TPL/SPL (i.e. with the newly introduced distinction between TPL_LIBGENERIC_SUPPORT and SPL_LIBGENERIC_SUPPORT), we can simplify the #ifdef-check to simply use CONFIG_IS_ENABELD. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v4 04/66] rockchip: back-to-bootrom: split BACK_TO_BOOTROM for TPL/SPL

2017-08-02 Thread Philipp Tomsich
of the option to give us finer-grained control over when it should be used. This change is motivated by our RK3368 boot process, which returns to the boot ROM only from the TPL stage, but not from the SPL stage. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by:

[U-Boot] [PATCH v2 5/6] rockchip: lion-rk3368: defconfig: enable DM timer for all stages

2017-08-02 Thread Philipp Tomsich
-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: None configs/lion-rk3368_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/lion-rk3368_defconfig b/configs/lion-rk3368_defconfig i

[U-Boot] [PATCH v4 49/66] rockchip: Makefile: streamline SPL/TPL configuration

2017-08-02 Thread Philipp Tomsich
Handling TPL and SPL in the Makefile for mach-rockchip was based on nested if checks and/or if-else-if paths. This can be simplified and made more readable by using $(SPL_TPL_) and by introducing intermediate variables for the aggregation of SPL and TPL features. Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH v4 29/66] rockchip: rk3368: spl: add memory layout for TPL and SPL

2017-08-02 Thread Philipp Tomsich
-ROM and contain the SP when the TPL is entered) - SPL from DRAM at 0x0 - U-Boot from DRAM at 0x20 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes

[U-Boot] [PATCH v4 28/66] rockchip: rk3368: spl: define COUNTER_FREQUENCY to 24MHz

2017-08-02 Thread Philipp Tomsich
timer can not work correctly. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: None include/configs/rk3368_common.h | 2 ++ 1 file changed, 2 insertions(+)

[U-Boot] [PATCH v4 14/66] spl: dm: Kconfig: split OF_CONTROL and OF_PLATDATA between SPL and TPL

2017-08-02 Thread Philipp Tomsich
through the $(SPL_TPL_) macro instead of hard-coding the SPL variant. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- Changes in v4: None Changes in v3: None C

[U-Boot] [PATCH v4 32/66] rockchip: rk3368: grf: use shifted-constants

2017-08-02 Thread Philipp Tomsich
The RK3368 GRF header was still defines with a shifted-mask but with non-shifted function selectors for the IOMUX defines. As the RK3368 support is still fresh enough to allow a quick change, we do this now before having more code use this. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH v4 26/66] rockchip: rk3368: mkimage: add support for the RK3368

2017-08-02 Thread Philipp Tomsich
This commit adds support for RK3368 SoC in mkimage. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: None tools/rkcommon.c | 1 + 1 file changed, 1 insert

[U-Boot] [PATCH v4 20/66] lib: spl: differentiate between TPL and SPL for libfdt/of_control/of_platdata

2017-08-02 Thread Philipp Tomsich
This splits the compilation of code modules for TPL and SPL for OF_CONTROL (and related) features between TPL and SPL. The typical use-case of this is a TPL stage that uses OF_PLATDATA at TPL and provides full OF_CONTROL at SPL (e.g. on the RK3368). Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH v4 12/66] spl: dm: Kconfig: SPL_CLK depends on SPL_DM

2017-08-02 Thread Philipp Tomsich
SPL_CLK should also depend on SPL_DM (and not just on CLK). Add the additional dependency. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- Changes in v4: None C

[U-Boot] [PATCH v4 62/66] armv8: TPL_STACK will always be defined, so test CONFIG_TPL_NEEDS_SEPARATE_STACK

2017-08-02 Thread Philipp Tomsich
be used or whether we try to inherit whatever SPL uses. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: - changes the test to CONFIG_TPL_NEEDS_SEPARATE_STACK, as TPL_STACK w

[U-Boot] [PATCH v4 27/66] rockchip: rk3368: pmugrf: add definitions for os_reg[0..3]

2017-08-02 Thread Philipp Tomsich
and configuration) between stages. This change adds the definitions for os_reg[0] through os_reg[3] to the pmugrf structure for the RK3368. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes

[U-Boot] [PATCH v4 37/66] rockchip: pinctrl: rk3368: add SPI support

2017-08-02 Thread Philipp Tomsich
To implement pinctrl support for the RK3368, we need to add the bit-definitions to configure the IOMUX and tie these into the pinctrl framework. This also adds the mapping from the IRQ# back onto the periheral id for the SPI devices. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v4 30/66] rockchip: rk3368: syscon: MSCH/PMUGRF/GRF support for OF_PLATDATA

2017-08-02 Thread Philipp Tomsich
adds support for the MSCH, PMUGRF and GRF register regions in syscon, which are necessary for initialising the RK3368's DRAM controller. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None C

[U-Boot] [PATCH v4 07/66] spl: dm: Kconfig: fix help text for SPL/TPL confusion

2017-08-02 Thread Philipp Tomsich
TPL_NAND_SUPPORT, TPL_SERIAL_SUPPORT, TPL_SPI_FLASH_SUPPORT and TPL_SPI_SUPPORT refer to SPL in their help text. This fixes up the description to correctly reference TPL. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chr

[U-Boot] [PATCH v4 19/66] spl: Kconfig: split SYS_MALLOC_SIMPLE for TPL and SPL

2017-08-02 Thread Philipp Tomsich
As include/malloc.h already checks for SYS_MALLOC_SIMPLE using the CONFIG_IS_ENABLED macro, we need to move to having separate entries as we switch to fully separate configuration for SPL and TPL. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Gl

[U-Boot] [PATCH v2 1/6] timer: add OF_PLATDATA support for timer-uclass

2017-08-02 Thread Philipp Tomsich
. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - marks blob as maybe_unused (to accomodate the OF_CONTROL case w/o warnings) drivers/timer/timer-uclass.c | 8 ++-- 1 file changed, 6 inse

[U-Boot] [PATCH v4 59/66] spl: Kconfig: migrate $(SPL_TPL_)LDSCRIPT to Kconfig

2017-08-02 Thread Philipp Tomsich
Now that we have split up SPL_LDSCRIPT into a SPL and TPL variant and have started to use the TPL-variant for the RK3368, it's time to clean up behind ourselves: move both variants into Kconfig and remove them from the whitelist. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v4 22/66] spl: add TPL_DRIVER_MISC_SUPPORT option

2017-08-02 Thread Philipp Tomsich
This adds the TPL_DRIVER_MISC_SUPPORT option to allow activation of DRIVER_MISC_SUPPORT for devices that need it in the TPL stage. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr.

[U-Boot] [PATCH v4 41/66] rockchip: clk: rk3368: implement DPLL (DRAM PLL) support

2017-08-02 Thread Philipp Tomsich
To implement a TPL stage (incl. its DRAM controller setup) for the RK3368, we'll want to configure the DPLL (DRAM PLL). This commit implements setting the DPLL (CLK_DDR) and provides PLL configuration details for the common DRAM operating speeds found on RK3368 boards. Signed-off-by: Philipp

[U-Boot] [PATCH v4 57/66] rockchip: spi: enable support for the rk_spi driver for the RK3368

2017-08-02 Thread Philipp Tomsich
-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Version-changes: 2 - added in this version Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/spi/rk_spi.c | 9 + 1 file changed, 9 insertions(+)

[U-Boot] [PATCH v4 35/66] rockchip: pinctrl: rk3368: add support for configuring the MMC pins

2017-08-02 Thread Philipp Tomsich
. This adds pinctrl support for the MMC controller. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: - removed the RK3368 prefix on the SD/MMC pin definitio

[U-Boot] [PATCH v4 21/66] spl: consistently use $(SPL_TPL_) to select features for SPL and TPL builds

2017-08-02 Thread Philipp Tomsich
happen on an as-needed basis, whenever someone needs a feature/boot-method/etc. in their TPL. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- Changes in v4: None C

[U-Boot] [PATCH v4 33/66] rockchip: rk3368: dts: add sgrf node

2017-08-02 Thread Philipp Tomsich
-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/rk3368.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/rk3368.dtsi b/arch/arm/dts

[U-Boot] [PATCH v4 56/66] rockchip: rk3368: spl: mark SPL and TPL as supported for ROCKCHIP_RK3368

2017-08-02 Thread Philipp Tomsich
the early boot-up, as we turn on TPL and SPL. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: - use imply for SPL/TPL preselects where SPL/TPL may not be enabled to avoid warning on applying a defco

[U-Boot] [PATCH v4 58/66] rockchip: board: lion-rk3368: add support for the RK3368-uQ7

2017-08-02 Thread Philipp Tomsich
' interfaces (e.g. UART, SPI, I2C, I2S, ...) Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: - (after rebase) update defconfig - (after rebase and defconfig update) lion_rk33

[U-Boot] [PATCH v4 13/66] spl: dm: Kconfig: split CLK support for SPL and TPL

2017-08-02 Thread Philipp Tomsich
Introduce TPL_CLK to allow finer-grained selection of TPL features for feature-rich (i.e. DM-based) TPL stages. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- C

[U-Boot] [PATCH v4 53/66] rockchip: rk3368: spl: add TPL support

2017-08-02 Thread Philipp Tomsich
This adds the TPL support for the RK3368, including the u-boot-tpl.lds. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v4: None Changes in v3: - removes the '#define DEBUG' - uses the syscon API t

Re: [U-Boot] rockchip: rk3288: fix EMMC_DIV_MASK definition in header

2017-08-03 Thread Philipp Tomsich
; 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] rockchip: rk3288: fix EMMC_DIV_MASK definition in header

2017-08-03 Thread Philipp Tomsich
; 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, 1/3] rockchip: add u-boot specific dts for rk3368 based boards

2017-08-03 Thread Philipp Tomsich
> Device drivers like debug serial, dmc should be enabled before > relocation, so add u-boot.dtsi files to contain devices that > should be marked as dm-pre-reloc. > > Signed-off-by: Andy Yan <andy@rock-chips.com> > Reviewed-by: Philipp Tomsich <philipp.to

Re: [U-Boot] [U-Boot, 1/3] rockchip: add u-boot specific dts for rk3368 based boards

2017-08-03 Thread Philipp Tomsich
h/arm/dts/rk3368-geekbox-u-boot.dtsi > create mode 100644 arch/arm/dts/rk3368-px5-evb-u-boot.dtsi > create mode 100644 arch/arm/dts/rk3368-sheep-u-boot.dtsi > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boo

Re: [U-Boot] rockchip: rk3399-firefly: update gmac parameter

2017-08-16 Thread Philipp Tomsich
> Update the tx_deday and rx_delay to match the timing for > rk3399-firefly board to improve the stability of gmac data > transfer. > > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com>

[U-Boot] [RFC PATCH 2/4] rockchip: timer: update for 32/64bit-aware OF_PLATDATA

2017-08-14 Thread Philipp Tomsich
With dtoc emitting fdt64_t for addresses (and region sizes), the array indices for accessing the reg[] array needs to be adjusted. This adjusts the Rockchip DM timer driver to correctly handle OF_PLATDATA given this new structure layout. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [RFC PATCH 3/4] rockchip: rk3368: adjust DMC driver for 32/64bit-aware OF_PLATDATA

2017-08-14 Thread Philipp Tomsich
here and simply access of_plat.reg[] directly. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/ram/rockchip/dmc-rk3368.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockch

[U-Boot] [RFC PATCH 1/4] rockchip: clk: rk3368: update for 32/64bit-aware OF_PLATDATA

2017-08-14 Thread Philipp Tomsich
With dtoc emitting fdt64_t for addresses (and region sizes), the array indices for accessing the reg[] array needs to be adjusted. This adjusts the clk_rk3368 driver to correctly handle OF_PLATDATA given this new structure layout. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [RFC PATCH 0/4] rockchip: rk3368: fixes to work with 64bit-aware OF_PLATDATA

2017-08-14 Thread Philipp Tomsich
. Note that the remaining uses of 'regmap_init_mem_platdata' work by a lucky coincidence only (i.e. that we are little-endian and never need the region-size correct) on the RK3368. [1] see https://lists.denx.de/pipermail/u-boot/2017-June/295929.html Philipp Tomsich (4): rockchip: clk: rk3368: update

[U-Boot] [PATCH 4/4] rockchip: dts: rk3368: reduce the number of nodes seen in TPL

2017-08-14 Thread Philipp Tomsich
The RK3368 TPL stage always returns to the BootROM, so it has no need for the eMMC, SD and SPI nodes. This marks those nodes (that should be included in SPL, but not TPL) as 'u-boot,dm-spl'. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3368-

Re: [U-Boot] [U-Boot,1/3] dtoc: Adjust Node to record its parent

2017-08-14 Thread Philipp Tomsich
On Mon, 19 Jun 2017, Simon Glass wrote: We need to be able to search back up the tree for #address-cells and #size-cells. Record the parent of each node to make this easier. Signed-off-by: Simon Glass <s...@chromium.org> --- Reviewed-by: Philipp Tomsich <philipp.toms...@

Re: [U-Boot] [U-Boot, 2/3] dtoc: Add a 64-bit type and a way to convert cells into 64 bits

2017-08-14 Thread Philipp Tomsich
On Mon, 19 Jun 2017, Simon Glass wrote: When dealing with multi-cell values we need a type that can hold this value. Add this and a function to process it from a list of cell values. Signed-off-by: Simon Glass <s...@chromium.org> --- Reviewed-by: Philipp Tomsich <philipp.toms...@

Re: [U-Boot] [U-Boot, 3/3] dtoc: Add support for 32 or 64-bit addresses

2017-08-14 Thread Philipp Tomsich
sntech.de> Reported-by: Kever Yang <kever.y...@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> See below for comments. --- tools/dtoc/dtb_platdata.py

[U-Boot] [PATCH] spl: fix Makefile for NOR, XIP and YMODEM

2017-08-17 Thread Philipp Tomsich
During the the conversion to $(SPL_TPL_), the SPL_ fragment was left over for the NOR, XIP and YMODEM boot methods in SPL, making these unselectable. This commit fixes this by dropping the spurious 'SPL_' fragment from each line. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

Re: [U-Boot] spl: fix Makefile for NOR, XIP and YMODEM

2017-08-17 Thread Philipp Tomsich
> During the the conversion to $(SPL_TPL_), the SPL_ fragment was > left over for the NOR, XIP and YMODEM boot methods in SPL, making > these unselectable. > > This commit fixes this by dropping the spurious 'SPL_' fragment > from each line. > > Signed-off-by: Phili

Re: [U-Boot] scripts: setlocalversion: safely extract variables from auto.conf using awk

2017-08-10 Thread Philipp Tomsich
: ARCH: command not found > > This change does no longer attempt to source auto.conf, but rather > passes it through awk to retrieve the values for CONFIG_LOCALVERSION > and CONFIG_LOCALVERSION_AUTO. This will also mitigate the risk of > unintended command substitution. > > Signed-o

Re: [U-Boot] rockchip: rk3288: fix EMMC_DIV_MASK definition in header

2017-08-10 Thread Philipp Tomsich
> It shoulb be '<<' instead of '<' for _MASK definition, fix it. > > Signed-off-by: Ziyuan Xu <xzy...@rock-chips.com> > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com>

Re: [U-Boot] [U-Boot, RESENT, v2, 1/4] rockchip: rk322x: set the DDR region as non-secure in SPL

2017-08-10 Thread Philipp Tomsich
; > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > --- > > Changes in v2: > - add comment for the change and update the commit message > > arch/arm/mach-rockchip

Re: [U-Boot] [U-Boot, RESENT, v2, 3/4] rockchip: clk: update dwmmc clock div

2017-08-10 Thread Philipp Tomsich
chips.com> > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > --- > > Changes in v2: > - add comment for mmc clock div 2 internal > - update the commit message > >

Re: [U-Boot] [U-Boot, RESENT, v2, 2/4] rockchip: rk322x: update max-frequency for mmc node

2017-08-10 Thread Philipp Tomsich
> mmc using 15000 as max-frequency like what rk3288 sets. > This can speed up the mmc read/write, the actual mmc clock is: > Before this patch: 37.125M > After this patch: 49.5M > > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, RESENT, v2, 4/4] rockchip: clk: remove RATE_TO_DIV

2017-08-10 Thread Philipp Tomsich
> Use DIV_ROUND_UP instead RATE_TO_DIV for all Rockchip SoC > clock driver. > Add or fix the div-field overflow check at the same time. > > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com&g

Re: [U-Boot] [U-Boot, 3/5] rockchip: dts: rk322x: add sdmmc device node

2017-08-10 Thread Philipp Tomsich
> add node for sdmmc in dts and rk3229-evb. > > Signed-off-by: Kever Yang <kever.y...@rock-chips.com> > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > --- &g

Re: [U-Boot] [U-Boot, 2/2] rockchip: clk: rk3399: remove unused fields from priv-structures

2017-07-12 Thread Philipp Tomsich
> This removes the unused 'rate' field from both rk3399_pmuclk_priv and > rk3399_clk_priv. I didn't bother to check where this came from (i.e. > what the historical context of these was), but only verified that > these are indeed unused across all code-paths. > > Signed-off-b

Re: [U-Boot] [U-Boot, 1/2] rockchip: clk: rk3368: remove unused fields from rk3368_clk_priv

2017-07-12 Thread Philipp Tomsich
> The rk3368_clk_priv has two unused fields: rate, has_bwadj. This > removes them as there's no need for either (i.e. has_bwadj is always > true for the RK3368, according to its TRM). > > Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > Rev

Re: [U-Boot] rockchip: spl: make boot0 hook TPL safe

2017-07-12 Thread Philipp Tomsich
ution wouldn't even require the check whether we are in the > SPL/TPL build (i.e. CONFIG_SPL_BUILD), but we leave this check in for > documentation purposes. > > Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > Reviewed-by: Simon Glass <s...@chromium.org> >

Re: [U-Boot] rockchip: clk: rk3368: use correct (i.e. 'rk3368_clk_priv') structure for auto-alloc

2017-07-12 Thread Philipp Tomsich
s did not cause any pain (except wasting memory). > > Fix this by using the correct data structure's size. > > Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > Reviewed-by: Simon Glass <s...@chromium.org> > --- > > drivers/clk/rockchip

[U-Boot] [PATCH 2/3] Kconfig: CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE

2017-07-14 Thread Philipp Tomsich
to model this dependency. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 6758db1..a60a568 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -667,6 +667,7 @@ config C

[U-Boot] [PATCH] rockchip: rk3399: enable SPL_SERIAL_SUPPORT and SPL_DRIVERS_MISC via Kconfig

2017-07-14 Thread Philipp Tomsich
the SPL build Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/mach-rockchip/Kconfig | 2 ++ include/configs/rk3399_common.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig

[U-Boot] [PATCH 1/3] usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig

2017-07-14 Thread Philipp Tomsich
In order to easily model a that CMD_USB_MASS_STORAGE implies having USB_FUNCTION_MASS_STORAGE enabled, we first need to migrate USB_FUNCTION_MASS_STORAGE to Kconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/usb/gadget/Kconfig | 9 +

Re: [U-Boot] rockchip: timer: make register sizes explicit

2017-07-17 Thread Philipp Tomsich
> We are about to reuse the rockchip timer (header file) for 64bit ARMv8 > chips, so it seems a good time to make the register sizes explicit by > changing from 'unsigned int' to 'u32'. > > Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > --- &g

Re: [U-Boot] [U-Boot, 1/2] rockchip: rk3288: Remove phy reset GPIO pull up

2017-07-17 Thread Philipp Tomsich
Signed-off-by: Romain Perier <romain.per...@collabora.com> > --- > drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Acked-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> _

Re: [U-Boot] rockchip: rk3399: enable SPL_SERIAL_SUPPORT and SPL_DRIVERS_MISC via Kconfig

2017-07-17 Thread Philipp Tomsich
ERS_MISC is needed to pass the SPL build > > Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > --- > > arch/arm/mach-rockchip/Kconfig | 2 ++ > include/configs/rk3399_common.h | 2 -- > 2 files changed, 2 insertions(+), 2 deletions(-) > Acke

Re: [U-Boot] [U-Boot, 2/2] rockchip: rk3288: Revert MAC_TXCLK in pinctrl for GMAC

2017-07-17 Thread Philipp Tomsich
nabled > (!PINTRL_FULL). > > Fixes: 2454b719fb87 ("rockchip: rk3288: Add pinctrl support for the...") > Signed-off-by: Romain Perier <romain.per...@collabora.com> > --- > drivers/pinctrl/rockchip/pinctrl_rk3288.c | 4 > 1 file changed, 4 insertions(+) > Ac

Re: [U-Boot] [U-Boot, 5/5] net: phy: Hide Micrel KSZ9021 and KSZ9031 Kconfig options

2017-07-07 Thread Philipp Tomsich
insertions(+), 22 deletions(-) > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, 2/5] net: phy: micrel: Separate KSZ9000 drivers from KSZ8000 drivers

2017-07-07 Thread Philipp Tomsich
c | 363 > + > drivers/net/phy/phy.c | 7 +- > include/phy.h | 3 +- > 6 files changed, 403 insertions(+), 5 deletions(-) > rename drivers/net/phy/{micrel.c => micrel_ksz8xxx.c} (99%) > create mode 100

[U-Boot] [PATCH 1/2] rockchip: clk: rk3368: remove unused fields from rk3368_clk_priv

2017-07-11 Thread Philipp Tomsich
The rk3368_clk_priv has two unused fields: rate, has_bwadj. This removes them as there's no need for either (i.e. has_bwadj is always true for the RK3368, according to its TRM). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-ro

[U-Boot] [PATCH] rockchip: clk: rk3368: use correct (i.e. 'rk3368_clk_priv') structure for auto-alloc

2017-07-11 Thread Philipp Tomsich
(except wasting memory). Fix this by using the correct data structure's size. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/clk/rockchip/clk_rk3368.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk_rk336

[U-Boot] [PATCH 2/2] rockchip: clk: rk3399: remove unused fields from priv-structures

2017-07-11 Thread Philipp Tomsich
This removes the unused 'rate' field from both rk3399_pmuclk_priv and rk3399_clk_priv. I didn't bother to check where this came from (i.e. what the historical context of these was), but only verified that these are indeed unused across all code-paths. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH] rockchip: spl: make boot0 hook TPL safe

2017-07-11 Thread Philipp Tomsich
. CONFIG_SPL_BUILD), but we leave this check in for documentation purposes. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-rockchip/boot0.h | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-ro

[U-Boot] [PATCH] dm: Fix typo in include-guard for dm-structs.h

2017-07-11 Thread Philipp Tomsich
The include-guard for dm-structs.h was misspelled as __DT_STTUCTS. Change it. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- include/dt-structs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dt-structs.h b/include/dt-structs.h

Re: [U-Boot] [U-Boot, 4/5] net: phy: micrel: Remove ksz90x1 drivers from micrel_ksz8xxx

2017-07-07 Thread Philipp Tomsich
- > 1 file changed, 1 insertion(+), 356 deletions(-) > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, 1/5] net: phy: Remove duplicate Kconfig selection for Micrel KSZ9021

2017-07-07 Thread Philipp Tomsich
> --- > drivers/net/phy/Kconfig | 8 > 1 file changed, 8 deletions(-) > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] rockchip: dts: rk3229: add dwc2 node for fastboot

2017-07-13 Thread Philipp Tomsich
> Add dwc2 node for fastboot to init dwc2 controller. > > Signed-off-by: Meng Dongyang <daniel.m...@rock-chips.com> > --- > arch/arm/dts/rk3229-evb.dts | 4 > arch/arm/dts/rk322x.dtsi| 10 ++ > 2 files changed, 14 insertions(+) > Acked-by:

[U-Boot] [PATCH v2 1/3] usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig

2017-07-14 Thread Philipp Tomsich
In order to easily model that enabling CMD_USB_MASS_STORAGE implies a need to have USB_FUNCTION_MASS_STORAGE enabled, we first need to migrate USB_FUNCTION_MASS_STORAGE to Kconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: - ran 'tabify' on

[U-Boot] [PATCH 3/3] config: move USB_FUNCTION_MASS_STORAGE

2017-07-14 Thread Philipp Tomsich
With both an imply from CMD_USB to USB_FUNCTION_MASS_STORAGE and with USB_FUNCTION_MASS_STORAGE moved to Kconfig, we can now run moveconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- configs/CHIP_pro_defconfig | 1 + c

[U-Boot] [PATCH v2 3/3] config: move USB_FUNCTION_MASS_STORAGE

2017-07-14 Thread Philipp Tomsich
With both an imply from CMD_USB to USB_FUNCTION_MASS_STORAGE and with USB_FUNCTION_MASS_STORAGE moved to Kconfig, we can now run moveconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: None configs/CHIP_pro_defconfig

[U-Boot] [PATCH v2 0/3] CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE

2017-07-14 Thread Philipp Tomsich
a spaces vs. tabs issues Philipp Tomsich (3): usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig Kconfig: CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE config: move USB_FUNCTION_MASS_STORAGE cmd/Kconfig| 1 + configs/CHIP_pro_defconfig

<    1   2   3   4   5   6   7   8   9   10   >