[U-Boot] [PATCH v3 04/60] mpc83xx: Introduce ARCH_MPC834*

2019-01-21 Thread Mario Six
Replace CONFIG_MPC834* with proper CONFIG_ARCH_MPC834* Kconfig options. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- arch/powerpc/cpu/mpc83xx/Kconfig | 12 +++ arch/powerpc/cpu/mpc83xx/cpu_init.c | 2 +-

[U-Boot] [PATCH v3 33/60] powerpc: Migrate HIGH_BATS to Kconfig

2019-01-21 Thread Mario Six
Migrate the CONFIG_HIGH_BATS variable to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- arch/powerpc/Kconfig | 6 ++ configs/MPC8313ERDB_33_defconfig | 1 + configs/MPC8313ERDB_66_defconfig | 1 +

[U-Boot] [PATCH v3 58/60] mpc83xx: Use pre-defined asm functions

2019-01-21 Thread Mario Six
For a lot of inline assembly calls in the mpc8xxx and mpc83xx directories, we already have convenient pre-defined helper functions, but they're not used, resulting in hard-to-read code. Use these helper functions where ever possible and useful. Signed-off-by: Mario Six --- v2 -> v3: No

[U-Boot] [PATCH v3 57/60] mpc83xx: Replace ppcDWstore with inline assembly

2019-01-21 Thread Mario Six
ppcDWstore/ppcDWload are hardly used by any board, but since they're implemented in start.S, they're always present in every U-Boot image, even if they're not needed. Re-implement these fuctions in C with inline assembly, so that the compiler can decide when to actually include them.

Re: [U-Boot] [linux-sunxi] [PATCH 2/9] sunxi: clk: A80: add MMC clock support

2019-01-21 Thread Chen-Yu Tsai
On Mon, Jan 21, 2019 at 5:32 PM Jagan Teki wrote: > > On Sat, Jan 19, 2019 at 7:02 AM Andre Przywara wrote: > > > > The A80 handles resets and clock gates for the MMC devices differently, > > outside of the CCU IP block. Consequently we have a separate clock > > device with a separate binding

Re: [U-Boot] [PATCH] board: mvebu: drop unused ETH_PHY macro definitions

2019-01-21 Thread Stefan Roese
On 02.01.19 17:26, Baruch Siach wrote: These macros are not used anywhere in the boards code. Cc: Chris Packham Cc: Dirk Eibach Cc: Mario Six Cc: Dennis Gilmore Signed-off-by: Baruch Siach --- board/Marvell/db-88f6820-amc/db-88f6820-amc.c | 4

Re: [U-Boot] [PATCH v2 1/1] arm64: mvebu: defconfig: enable CONFIG_CMD_NVME

2019-01-21 Thread Stefan Roese
On 26.12.18 10:37, Heinrich Schuchardt wrote: An NVME drive may be installed on the MACCHIATObin board using the PCIe slot or on the Clearfog Pro using mini a PCI-e slot. With the configuration change it becomes usable. Signed-off-by: Heinrich Schuchardt --- configs/clearfog_gt_8k_defconfig

Re: [U-Boot] [PATCH v3 1/1] arm64: dts: marvell: armada-ap806: reserve PSCI area

2019-01-21 Thread Stefan Roese
On 21.12.18 17:30, Heinrich Schuchardt wrote: The memory area [0x400-0x420[ is occupied by the PSCI firmware. Any attempt to access it from U-Boot leads to an immediate crash. So let's make the same memory reservation as the vendor device tree. Signed-off-by: Heinrich Schuchardt ---

[U-Boot] [PATCH v3 06/60] mpc83xx: Introduce ARCH_MPC837X

2019-01-21 Thread Mario Six
Replace CONFIG_MPC837x with a proper CONFIG_ARCH_MPC837X Kconfig option. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/Kconfig | 5 arch/powerpc/cpu/mpc83xx/speed.c | 30 ++--

[U-Boot] [PATCH v3 18/60] mpc8315erdb: Merge BR/OR settings

2019-01-21 Thread Mario Six
The mpc8315erdb has the option of either configuring the eLBC (enhanced local system bus) such that * NOR flash is the first memory bank, and NAND flash is the second memory bank, or * NAND flash is the first memory bank, and NOR flash is the second memory bank, by using

[U-Boot] [PATCH v3 30/60] mpc83xx: Get rid of CONFIG_83XX_CLKIN

2019-01-21 Thread Mario Six
MPC83xx uses CONFIG_83XX_CLKIN instead of CONFIG_SYS_CLK_FREQ to set the system clock. To migrate the architecture, we can replace CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ. To do this * replace all occurrences of CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ * set CONFIG_SYS_CLK_FREQ to the old

[U-Boot] [PATCH v3 20/60] MPC832XEMDS: Migrate to CONFIG_TARGET_MPC832XEMDS

2019-01-21 Thread Mario Six
Use the proper CONFIG_TARGET_MPC832XEMDS Kconfig option to replace the CONFIG_MPC832XEMDS ad-hoc config option. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- board/freescale/common/pq-mds-pib.c | 6 +++---

[U-Boot] [PATCH v3 49/60] mpc83xx: Migrate arbiter config to Kconfig

2019-01-21 Thread Mario Six
Migrate the arbiter configuration to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/arbiter/Kconfig | 139 + arch/powerpc/cpu/mpc83xx/arbiter/arbiter.h |

[U-Boot] [PATCH v3 50/60] mpc83xx: Migrate SPCR to Kconfig

2019-01-21 Thread Mario Six
Migrate the SPCR setting to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/cpu_init.c | 29 + arch/powerpc/cpu/mpc83xx/initreg/Kconfig | 5 +

[U-Boot] [PATCH v3 52/60] mpc83xx: Get rid of CONFIG_SYS_DDR_BASE

2019-01-21 Thread Mario Six
CONFIG_SYS_DDR_BASE is specific to mpc83xx an is always set to the same value as CONFIG_SYS_SDRAM_BASE. Just use CONFIG_SYS_SDRAM_BASE instead. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- board/esd/vme8349/vme8349.c | 2 +-

Re: [U-Boot] [PATCH] dtoc: make generated platdata structs const

2019-01-21 Thread Simon Goldschmidt
Hi Simon, Am 20.01.2019 um 21:23 schrieb Simon Glass: Hi Simon, On Tue, 8 Jan 2019 at 08:29, Simon Goldschmidt wrote: The platdata initialization structs are currently generated into .rwdata. Make sure the are put into .rodata by generating them as const. Signed-off-by: Simon Goldschmidt

Re: [U-Boot] [linux-sunxi] [PATCH 2/9] sunxi: clk: A80: add MMC clock support

2019-01-21 Thread Andre Przywara
On Mon, 21 Jan 2019 17:34:25 +0800 Chen-Yu Tsai wrote: > On Mon, Jan 21, 2019 at 5:32 PM Jagan Teki > wrote: > > > > On Sat, Jan 19, 2019 at 7:02 AM Andre Przywara > > wrote: > > > > > > The A80 handles resets and clock gates for the MMC devices > > > differently, outside of the CCU IP

[U-Boot] [PATCH v3 2/2] efi_selftest: fix variables test for GetNextVariableName()

2019-01-21 Thread Heinrich Schuchardt
From: AKASHI Takahiro There is a bug in efi variables test. Fix it with some cosmetic improvements. Please note that efi variables test still fails at QueryVariableInfo() and GetVariable(), but this is not due to a change in this patch. ==8<== Testing EFI API implementation Selected

[U-Boot] [PATCH v3 0/2] efi_loader: add GetNextVariableName

2019-01-21 Thread Heinrich Schuchardt
In this patch series GetNextVariableName runtime service is implemented. v3 rebase on efi-next v2 update variable_name_size in GetNextVariableName add more comments change some internal variable names AKASHI Takahiro (2): efi_loader: implement

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-21 Thread Jagan Teki
On Mon, Jan 21, 2019 at 5:28 PM Vignesh R wrote: > > > > On 14/01/19 8:32 PM, Vignesh R wrote: > > Hi Jagan, > > > > Could you please review v2? If we plan to merge this series for > > v2019.04, we should probably plan to take it a bit early so as to > > address any regression or fall out in

Re: [U-Boot] [PATCH v2 06/11] clk: Add SiFive FU540 PRCI clock driver

2019-01-21 Thread Auer, Lukas
On Mon, 2019-01-21 at 05:55 +, Anup Patel wrote: > > -Original Message- > > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de] > > Sent: Monday, January 21, 2019 1:43 AM > > To: s...@chromium.org; bmeng...@gmail.com; r...@andestech.com; Anup > > Patel ; joe.hershber...@ni.com; >

[U-Boot] [PATCH v3 11/60] keymile: Unroll km/km83xx-common.h

2019-01-21 Thread Mario Six
Simplify the keymile config files once more by unrolling the km/km83xx-common.h, and resolve the #ifdef logic as needed. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- include/configs/km8360.h| 287 ++-

[U-Boot] [PATCH v3 23/60] strider: Migrate to CONFIG_TARGET_STRIDER

2019-01-21 Thread Mario Six
Use the proper CONFIG_TARGET_STRIDER Kconfig option to replace the CONFIG_STRIDER ad-hoc config option. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- board/gdsys/common/Makefile | 4 ++-- board/gdsys/mpc8308/Makefile | 2 +-

[U-Boot] [PATCH v3 29/60] mpc83xx: Replace CONFIG_83XX_CLKIN in calculations

2019-01-21 Thread Mario Six
CONFIG_SYS_CLK_FREQ is the standard way to set the system clock frequency. On MPC83xx, CONFIG_83XX_CLKIN is used for this purpose. Hence, the obvious way is to replace CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ. A few MPC83xx boards use the CONFIG_83XX_CLKIN variable for computing

[U-Boot] [PATCH v3 53/60] mpc83xx: Get rid of CONFIG_SYS_DDR_SDRAM_BASE

2019-01-21 Thread Mario Six
CONFIG_SYS_DDR_SDRAM_BASE is set to the same value as CONFIG_SYS_SDRAM_BASE on all existing boards. Just use CONFIG_SYS_SDRAM_BASE instead. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +-

[U-Boot] [PATCH v3 41/60] powerpc: mpc83xx: Fix MPC8308 IMMR memory layout

2019-01-21 Thread Mario Six
The MPC8308 has two I2C controllers, but no PCI controller. Fix the register map layout for this SoC. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Makefile | 2 ++ arch/powerpc/include/asm/immap_83xx.h | 42

[U-Boot] [PATCH v3 55/60] mpc83xx: Add arch clock.h to make SDHC work

2019-01-21 Thread Mario Six
The fsl-esdhc driver can be used for the SDHC functionality on MPC83xx, but it needs some additional definitions. Add a clock.h file, so we can use the driver for MPC83xx. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 ---

[U-Boot] [PATCH v3 43/60] powerpc: mpc83xx: fdt: Use get_serial_clock()

2019-01-21 Thread Mario Six
Replace the hard-coded CONFIG_SYS_NS16550_CLK value for the FDT fixup with the previously introduced get_serial_clock function This will make it possible to activate DM for serial devices on MPC83xx later on. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 ---

[U-Boot] [PATCH] tests: dtoc: adapt tests to changed dtoc output

2019-01-21 Thread Simon Goldschmidt
The dtoc tests need to be adapted to dtoc being changed to output platdata structs as const, which has been introduced in commit 7d05d3a8e35f ("dtoc: make generated platdata structs const"). Fixes: 7d05d3a8e35f ("dtoc: make generated platdata structs const") Signed-off-by: Simon Goldschmidt ---

Re: [U-Boot] [linux-sunxi] [PATCH 2/9] sunxi: clk: A80: add MMC clock support

2019-01-21 Thread Jagan Teki
On Sat, Jan 19, 2019 at 7:02 AM Andre Przywara wrote: > > The A80 handles resets and clock gates for the MMC devices differently, > outside of the CCU IP block. Consequently we have a separate clock > device with a separate binding for that. > > Implement that with the respective clock gates and

Re: [U-Boot] [linux-sunxi] [PATCH 2/9] sunxi: clk: A80: add MMC clock support

2019-01-21 Thread Andre Przywara
On Mon, 21 Jan 2019 18:02:17 +0800 Chen-Yu Tsai wrote: > On Mon, Jan 21, 2019 at 5:39 PM Andre Przywara > wrote: > > > > On Mon, 21 Jan 2019 17:34:25 +0800 > > Chen-Yu Tsai wrote: > > > > > On Mon, Jan 21, 2019 at 5:32 PM Jagan Teki > > > wrote: > > > > > > > > On Sat, Jan 19, 2019 at

[U-Boot] [PATCH v3 9/9] arm: dts: sunxi: Enumerate MMC2 as MMC1

2019-01-21 Thread Jagan Teki
Environment and fastboot MMC devices are configured based number of mmc slots defined on particular board in sunxi platform. If number of slots are not more than 1, it assigns 0 which usually mmc device on SD slot. With DM_MMC it is detected as 0 since mmc0 node always be an mmc device. If

[U-Boot] [PATCH v3 4/9] mmc: sunxi: Add mmc, emmc H5/A64 compatible

2019-01-21 Thread Jagan Teki
Added H5, A64 compatible for mmc and emmc. Cc: Jaehoon Chung Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index ec4f227130..1259e627cc 100644 --- a/drivers/mmc/sunxi_mmc.c +++

[U-Boot] [PATCH v3 7/9] dm: mmc: sunxi: Add CLK and RESET support

2019-01-21 Thread Jagan Teki
Now CLK and RESET driver for Allwinner SoC are available, so add the relevant operations on mmc sunxi driver. Cc: Jaehoon Chung Signed-off-by: Jagan Teki --- Changes for v3: - Grab changes for ML drivers/mmc/sunxi_mmc.c | 52 + 1 file changed, 47

[U-Boot] [PATCH v3 6/9] mmc: sunxi: Add DM_MMC support for A80

2019-01-21 Thread Jagan Teki
Unlike other Allwinner SoC's, A80 comes with different ahb gate clock offset values and also has mmc common controller. So support them via driver data. Cc: Rask Ingemann Lambertsen Cc: Jaehoon Chung Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 8 1 file changed, 8

[U-Boot] [PATCH v3 2/9] sunxi: clk: A80: add MMC clock support

2019-01-21 Thread Jagan Teki
From: Andre Przywara The A80 handles resets and clock gates for the MMC devices differently, outside of the CCU IP block. Consequently we have a separate clock device with a separate binding for that. Implement that with the respective clock gates and resets to allow the A80 taking part in the

[U-Boot] [PATCH v3 12/60] keymile: Make distinct kmeter1, and kmcoge5ne configs

2019-01-21 Thread Mario Six
The kmeter1, and kmcoge5ne boards also build from the same config file with #ifdef logic. Create a separate include config for each board with the #ifdef logic resolved as needed. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Combined config creation and simplification

[U-Boot] [PATCH v3 25/60] MPC8315ERDB: Remove CONFIG_MPC8315ERDB

2019-01-21 Thread Mario Six
CONFIG_MPC8315ERDB is unused, and TARGET_MPC8315ERDB could replace it. Hence, get rid of CONFIG_MPC8315ERDB. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- include/configs/MPC8315ERDB.h | 1 - scripts/config_whitelist.txt | 1 - 2

Re: [U-Boot] [PATCH 2/2] env: Fix saving environment to "bad CRC" location

2019-01-21 Thread Simon Goldschmidt
Am 19.01.2019 um 14:28 schrieb Sam Protsenko: Hi Simon, On Fri, Jan 18, 2019 at 10:46 PM Simon Goldschmidt wrote: Am Fr., 18. Jan. 2019, 20:20 hat Sam Protsenko geschrieben: In case when the environment on some location is malformed (CRC isn't matching), there is a chance we won't be

Re: [U-Boot] env: sf: fix environment in SPI NOR

2019-01-21 Thread Heiko Schocher
Hello Tom, Am 19.01.2019 um 03:54 schrieb Tom Rini: On Fri, Jan 18, 2019 at 10:45:56AM +0100, Heiko Schocher wrote: commit 9a9d66f5eff0 ("env: add spi_flash_read_env function") breaks Environment functionality, as it reads only until 2 \0 are found, but fills the buffer with 0x0 instead 0xff

Re: [U-Boot] [PATCH v2] arm64: mvebu: Add basic support for uDPU board

2019-01-21 Thread Stefan Roese
On 15.01.19 12:50, Vladimir Vid wrote: This adds initial support for micro-DPU (uDPU) board which is based on Armada-3720 SoC. micro-DPU is the single-port FTTdp "distribution point unit" made by Methode Electronics which offers complete modularity with replaceable SFP modules both for uplink

Re: [U-Boot] [PATCH v4 00/10] Changes for Turris Mox

2019-01-21 Thread Stefan Roese
On 17.12.18 16:10, Marek Behún wrote: This is the fourth version of patches for Turris Mox. Changes from previous version: - changed patch subject prefix from board: turris_mox to arm: mvebu: turris_mox as requested by Stefan - added Reviewed-by Stefan - add description of the changes for

[U-Boot] [PATCH v3 1/2] efi_loader: implement GetNextVariableName()

2019-01-21 Thread Heinrich Schuchardt
From: AKASHI Takahiro The current GetNextVariableName() is a placeholder. With this patch, it works well as expected. Signed-off-by: AKASHI Takahiro rebased on efi-next Reviewed-by: Heinrich Schuchardt --- v3: rebase on efi-next v2: update variable_name_size in

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread Offouga Joris
> Le 21 janv. 2019 à 11:58, Bryan O'Donoghue a > écrit : > > > >> On 21/01/2019 10:34, jorisoffouga wrote: >>> Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit : >>> >>> On 20/01/2019 21:18, Joris Offouga wrote: This patch imports the Linux kernel base board imx7d-pico.dtsi and

[U-Boot] [PATCH v3 07/60] keymile: Make distinct kmtegr1, kmvect1, suvd3 configs

2019-01-21 Thread Mario Six
The kmtegr1, kmvect1, and suvd3 boards all use the same config include file with lots of #ifdefs in it. The Kconfig migation will become easier if we get rid of these #ifdefs first. Hence, create distinct config include files for these boards, and unwind the #ifdef logic in these config files to

[U-Boot] [PATCH v3 09/60] keymile: Unroll includes

2019-01-21 Thread Mario Six
To further simplify config include files, unroll the km/km8309-common.h and km/km8321-common.h include files. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- include/configs/km8309-common.h | 174 include/configs/km8321-common.h |

[U-Boot] [PATCH v3 08/60] keymile: Move config files

2019-01-21 Thread Mario Six
We want to unroll several include files, while keeping include statements consistent. To make it easier to not break the include statements, move the include files to the main configs directory. All three include files moved will be unrolled, so they won't pollute the directory for long.

[U-Boot] [PATCH v3 02/60] mpc83xx: Introduce ARCH_MPC831*

2019-01-21 Thread Mario Six
Replace CONFIG_MPC833* with proper CONFIG_ARCH_MPC833* Kconfig options. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config options from whitelist --- arch/powerpc/cpu/mpc83xx/Kconfig | 15 arch/powerpc/cpu/mpc83xx/cpu.c | 2 +-

[U-Boot] [PATCH v3 03/60] mpc83xx: Introduce ARCH_MPC832*

2019-01-21 Thread Mario Six
Replace CONFIG_MPC832* with proper CONFIG_ARCH_MPC832* Kconfig options. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/Kconfig | 7 +++ arch/powerpc/cpu/mpc83xx/speed.c | 10 +- arch/powerpc/include/asm/immap_83xx.h

[U-Boot] [PATCH v3 10/60] keymile: Make distinct kmsupx5, tuge1, kmopti2, and kmtepr2 configs

2019-01-21 Thread Mario Six
The kmsupx5, tuge1, kmopti2, and kmtepr2 boards all build from the same include config file with lots of #ifdef logic. To ease Kconfig migration, create new config include files for these boards, and resolve the #ifdef logic as needed. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 ->

[U-Boot] [PATCH v3 38/60] mpc83xx: Simplify BR,OR lines

2019-01-21 Thread Mario Six
Re-format all BR,OR #define lines into single lines. This makes them harder to read, but accessible to semi-automatic replacement. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- include/configs/MPC8308RDB.h| 46 ---

[U-Boot] [PATCH v3 54/60] mpc83xx: Get rid of CONFIG_SYS_LBC_*

2019-01-21 Thread Mario Six
Except for one counter example, CONFIG_SYS_LBC_LBCR always has a value of either 0x0004 or 0x. CONFIG_SYS_LBC_MRTPR always has the value 0x2000. CONFIG_SYS_LBC_LSDMR_{1,2,4,5} are not set for any mpc83xx board. CONFIG_SYS_LBC_LSRT is set by one board (to 0x3200). To

[U-Boot] [PATCH v3 48/60] mpc8308: Migrate system io config to Kconfig

2019-01-21 Thread Mario Six
Migrate the system IO configuration setting to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/cpu_init.c | 1 + arch/powerpc/cpu/mpc83xx/sysio/Kconfig| 7

Re: [U-Boot] [PATCH v3 9/9] arm: dts: sunxi: Enumerate MMC2 as MMC1

2019-01-21 Thread Chen-Yu Tsai
On Mon, Jan 21, 2019 at 6:32 PM Jagan Teki wrote: > > Environment and fastboot MMC devices are configured based number > of mmc slots defined on particular board in sunxi platform. > > If number of slots are not more than 1, it assigns 0 which usually mmc > device on SD slot. With DM_MMC it is

[U-Boot] [PATCH v3 05/60] mpc83xx: Introduce ARCH_MPC836*

2019-01-21 Thread Mario Six
Replace CONFIG_MPC836* with proper CONFIG_ARCH_MPC836* Kconfig options. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- arch/powerpc/cpu/mpc83xx/Kconfig | 4 arch/powerpc/cpu/mpc83xx/speed.c | 10 +-

[U-Boot] [PATCH v3 26/60] MPC837XEMDS: Remove CONFIG_MPC837XEMDS

2019-01-21 Thread Mario Six
CONFIG_MPC837XEMDS is unused, and TARGET_MPC837XEMDS could replace it. Hence, get rid of CONFIG_MPC837XEMDS. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- include/configs/MPC837XEMDS.h | 1 - scripts/config_whitelist.txt | 1 - 2

[U-Boot] [PATCH v3 28/60] mpc83xx: Migrate legacy PCI options to Kconfig

2019-01-21 Thread Mario Six
The MPC83xx include files contain some settings of the PCI subsystem. Migrate these to Kconfig until a proper DM PCI driver exists. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/Kconfig| 26 ++

[U-Boot] [PATCH v3 51/60] mpc83xx: Migrate CONFIG_LCRR_* to Kconfig

2019-01-21 Thread Mario Six
Migrate the CONFIG_LCRR_* settings to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/cpu_init.c | 22 --- arch/powerpc/cpu/mpc83xx/initreg/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/initreg/Kconfig.lcrr | 139

[U-Boot] [PATCH v3 39/60] sbc8349: Remove SDRAM functionality

2019-01-21 Thread Mario Six
The MPC8349EMDS configuration was the basis for the sbc8349, so it also contains its SDRAM option. Since * the SDRAM has to be soldered onto the board, * the sbc8349 never used the support, and * the support never worked (see previous patch fixing it), we can assume that the support on the

[U-Boot] [PATCH v3 46/60] mpc83xx: Migrate HID config to Kconfig

2019-01-21 Thread Mario Six
Mirate the HID configuration settings to Kconfig. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig | 1 + arch/powerpc/cpu/mpc83xx/hid/Kconfig | 565 ++ arch/powerpc/cpu/mpc83xx/hid/hid.h| 72

Re: [U-Boot] [linux-sunxi] [PATCH 0/9] sunxi: enable DM_MMC

2019-01-21 Thread Andre Przywara
Hi, >>> Testing with A10 Gemei G9 Tablet, FEL mode is broken: >>> >>> a) With usb-boot via fel: >>> >>> I get following error/warning: >>> Loading Environment from FAT... Card did not respond to voltage select! >>> >>> => mmc list >>> mmc@1c0f000: 0 >>> ### All commands below stalls for a

[U-Boot] [PATCH v3 56/60] mpc83xx: Don't define cpu_eth_init for DM eth

2019-01-21 Thread Mario Six
Don't use the legacy method of initializing the ethernet controller on MPC83xx when DM is active. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/cpu/mpc83xx/cpu.c

Re: [U-Boot] [linux-sunxi] [PATCH 0/9] sunxi: enable DM_MMC

2019-01-21 Thread Priit Laes
On Mon, Jan 21, 2019 at 08:51:10AM +, Andre Przywara wrote: > Hi, > > > > >>> Testing with A10 Gemei G9 Tablet, FEL mode is broken: > >>> > >>> a) With usb-boot via fel: > >>> > >>> I get following error/warning: > >>> Loading Environment from FAT... Card did not respond to voltage

Re: [U-Boot] TPL max size for RK3288 ?

2019-01-21 Thread Kever Yang
Hi Tom, On 01/19/2019 06:54 AM, Tom Rini wrote: > Hey, > > So I was playing with how to make our linker scripts more re-usable > and have the kinds of link error on excessive size checks that we find > really useful to avoid introducing run time failures, and I found > something. On rk3288 we

Re: [U-Boot] re-use dm data for pre-relocate and post-relocate[Please note, mail behalf by s...@google.com]

2019-01-21 Thread Kever Yang
Simon,     Thanks for you reply to this mail, and it's surprised that it's a mail which is more than one years ago at Nov 2017 :)     I have implement re-use kernel dtb in my local branch in 2018, you can see how I do it here[0] with USING_KERNEL_DTB macro if you have interest for it.     I'm

[U-Boot] [PATCH v3 8/9] arm: sunxi: Enable DM_MMC

2019-01-21 Thread Jagan Teki
Enable DM_MMC for all Allwinner SoCs, this will eventually enable BLK. Also removed DM_MMC enablement in few parts of sunxi configurations. Signed-off-by: Jagan Teki --- arch/arm/Kconfig | 1 + arch/arm/mach-sunxi/Kconfig | 1 -

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread Bryan O'Donoghue
On 21/01/2019 10:34, jorisoffouga wrote: Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit : On 20/01/2019 21:18, Joris Offouga wrote: This patch imports the Linux kernel base board imx7d-pico.dtsi and specific dts for imx7d-pico-pi I recommend including the upstream Linux SHA in the

Re: [U-Boot] [linux-sunxi] [PATCH 0/9] sunxi: enable DM_MMC

2019-01-21 Thread Priit Laes
On Mon, Jan 21, 2019 at 12:54:52AM +, André Przywara wrote: > On 20/01/2019 19:51, Priit Laes wrote: > > Hi, > > > On Sat, Jan 19, 2019 at 01:30:46AM +, Andre Przywara wrote: > >> This series enables the Allwinner MMC driver to drive all SoCs with its > >> DM_MMC variant. We use the

[U-Boot] [PATCH v3 14/60] vme8349: Migrate to CONFIG_TARGET_VME8349

2019-01-21 Thread Mario Six
CONFIG_TARGET_VME8349 can replace CONFIG_VME8349. Hence, replace CONFIG_VME8349 with CONFIG_TARGET_VME8349, and remove CONFIG_VME8349. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: No changes --- drivers/pci/pci_auto.c | 2 +- drivers/pci/pci_auto_old.c | 2 +-

[U-Boot] [PATCH v3 37/60] tqm834x: Expand CONFIG_SYS_OR_TIMING_FLASH macro

2019-01-21 Thread Mario Six
We want to normalize all BR/OR config lines as much as possible. The TQM834x board uses CONFIG_SYS_OR_TIMING_FLASH in a OR definition, which we want to remove. But CONFIG_SYS_OR_TIMING_FLASH is also used outside of the config file. Replace these usages with the definition of the variable, so we

Re: [U-Boot] [PATCH v2 00/21] imx: vybrid: Update BK4 and PCM052 boards to only use DM/DTS

2019-01-21 Thread Lukasz Majewski
Hi Stefan, > This patch series converts PCM052 and BK4 to use Driver Model and > Device Tree. > > Some notable changes: > - The way how MAC address is read from fuses can now be adjusted > - DTS improvement/sync with kernel (also extract u-boot specific > properties) > - Using generic code

[U-Boot] [PATCH v3 47/60] mpc83xx: Migrate CONFIG_SYS_IMMR to Kconfig

2019-01-21 Thread Mario Six
Migrate CONFIG_SYS_IMMR to Kconfig for MPC83xx. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig| 7 +++ configs/TQM834x_defconfig | 1 + configs/ids8313_defconfig | 1 + include/configs/MPC8308RDB.h

[U-Boot] [PATCH v3 44/60] mpc83xx: Remove last CONFIG_MPC83xx

2019-01-21 Thread Mario Six
Remove the last instances of the CONFIG_MPC83xx symbol. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- include/configs/hrcon.h | 1 - include/configs/strider.h | 1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/hrcon.h b/include/configs/hrcon.h

[U-Boot] [PATCH v3 59/60] keymile: Remove CONFIG_SYS_APP{1, 2}_{BASE, SIZE}

2019-01-21 Thread Mario Six
CONFIG_SYS_APP1_BASE, CONFIG_SYS_APP2_BASE, CONFIG_SYS_APP1_SIZE, and CONFIG_SYS_APP2_SIZE are no longer used in the keymile config files (they were used for setting values, which were converted to Kconfig earlier in the series). Remove them from the configs and the whitelist. Signed-off-by:

Re: [U-Boot] [linux-sunxi] [PATCH 0/9] sunxi: enable DM_MMC

2019-01-21 Thread Jagan Teki
On Sat, Jan 19, 2019 at 7:02 AM Andre Przywara wrote: > > This series enables the Allwinner MMC driver to drive all SoCs with its > DM_MMC variant. We use the gates clock and reset support from the new > clock driver, but keep the actual mod clock in its somewhat hackish > state. Properly

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread Bryan O'Donoghue
On 20/01/2019 21:18, Joris Offouga wrote: This patch imports the Linux kernel base board imx7d-pico.dtsi and specific dts for imx7d-pico-pi I recommend including the upstream Linux SHA in the commit log to make it easier to validate against and also if any changes/bugfixes go in upstream

[U-Boot] [PATCH v3 1/9] sunxi: clk: add MMC gates/resets

2019-01-21 Thread Jagan Teki
From: Andre Przywara Add the MMC clock gates and reset bits for all the Allwinner SoCs. This allows them to be used by the MMC driver. We don't advertise the mod clock yet, as this is still handled by the MMC driver. Signed-off-by: Andre Przywara [jagan: add V3S gates/resets, fix

[U-Boot] [PATCH v3 5/9] mmc: sunxi: Add DM_MMC support for H6

2019-01-21 Thread Jagan Teki
Unlike other Allwinner SoC's, H6 comes with different clock and reset control offset values. So support them via driver data. Cc: Jaehoon Chung Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/mmc/sunxi_mmc.c

[U-Boot] [PATCH v3 0/9] mmc: sunxi: Enable DM_MMC

2019-01-21 Thread Jagan Teki
Compared to previous version changes[1] this version do manage ahb clocks/resets via CLK framework. This version created changes along with Andre patches to support clock/resets[2] Tested A64, SD, eMMC and respective changes available at u-boot-sunxi/next Changes for v3: - Handle clock via CLK

[U-Boot] [PATCH v3 3/9] mmc: sunxi: Add A83T emmc compatible

2019-01-21 Thread Jagan Teki
Add emmc compatible for A83T SoC. Cc: Jaehoon Chung Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 302332bf97..ec4f227130 100644 --- a/drivers/mmc/sunxi_mmc.c +++

[U-Boot] Please pull u-boot-marvell/master

2019-01-21 Thread Stefan Roese
Hi Tom, please pull the first Marvell patches in this merge window with the following changes: - Sync Armada-38x dts with Linux 4.20 from Chris - Misc changes and enhancements to Turris Mox (v4) from Marek - Reserve PSCI area for

[U-Boot] [PATCH v3 13/60] mpc83xx: Make distinct MPC8313ERDB targets

2019-01-21 Thread Mario Six
MPC8313ERDB has the option of either enabling NOR or NAND boot in its config file (by commenting out certain #ifdefs). To keep this ability after migrating options to Kconfig, we introduce two MPC8313ERDB configs: one for NOR, and one for NAND. Signed-off-by: Mario Six --- v2 -> v3: No changes

[U-Boot] [PATCH v3 19/60] ve8313: Merge BR/OR settings

2019-01-21 Thread Mario Six
The ve8313 has the option of either configuring the eLBC (enhanced local system bus) such that * NOR flash is the first memory bank, and NAND flash is the second memory bank, or * NAND flash is the first memory bank, and NOR flash is the second memory bank, by using

[U-Boot] [PATCH v3 32/60] mpc83xx: pcie: Read the clock from registers

2019-01-21 Thread Mario Six
The MPC83xx DM timer driver disables arch.pciexp*_clk, and uses clk_get_rate instead. But the legacy MPC83xx PCIe driver still uses arch.pciexp*_clk for the clock. Hence, read the PCIe clock from the registers in the legacy MPC83xx PCIe driver. Signed-off-by: Mario Six --- v2 -> v3: No

[U-Boot] [PATCH v3 24/60] MPC8313ERDB: Remove CONFIG_MPC8313ERDB

2019-01-21 Thread Mario Six
CONFIG_MPC8313ERDB is unused, and TARGET_MPC8313ERDB_NAND/TARGET_MPC8313ERDB_NOR Kconfig could replace it. Hence, get rid of CONFIG_MPC8313ERDB. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- include/configs/MPC8313ERDB_NAND.h | 1 -

[U-Boot] [PATCH v3 31/60] mpc83xx: Kconfig: Migrate HRCW to Kconfig

2019-01-21 Thread Mario Six
The HRCW (hardware reset configuration word) is a constant that must be hard-coded into the boot loader image. So, it must be available at compile time, and cannot be migrated to the DT mechanism, but has to be kept in Kconfig. Configuration of this crucial variable should still be somewhat

[U-Boot] [PATCH v3 35/60] mpc83xx: Migrate LBLAW_* to Kconfig

2019-01-21 Thread Mario Six
The LBLAW_* values determine the window configuration of the memory controller. Hence, they must be known at compile time, and cannot be implemented in the DT mechanism. Configuration of this crucial variable should still be somewhat comfortable. Hence, make its fields configurable in Kconfig,

[U-Boot] [PATCH v3 36/60] mpc83xx: Normalize BR/OR option lines

2019-01-21 Thread Mario Six
All BR/OR option lines should have the same layout to make them easier to migrate to Kconfig. This includes using the same option macros everywhere. The normalize the lines, * replace function macros with their results, and * replace hardcoded hex values with standard macros Signed-off-by: Mario

Re: [U-Boot] [linux-sunxi] [PATCH 2/9] sunxi: clk: A80: add MMC clock support

2019-01-21 Thread Chen-Yu Tsai
On Mon, Jan 21, 2019 at 5:39 PM Andre Przywara wrote: > > On Mon, 21 Jan 2019 17:34:25 +0800 > Chen-Yu Tsai wrote: > > > On Mon, Jan 21, 2019 at 5:32 PM Jagan Teki > > wrote: > > > > > > On Sat, Jan 19, 2019 at 7:02 AM Andre Przywara > > > wrote: > > > > > > > > The A80 handles resets and

Re: [U-Boot] [linux-sunxi] [PATCH 2/9] sunxi: clk: A80: add MMC clock support

2019-01-21 Thread Chen-Yu Tsai
On Mon, Jan 21, 2019 at 6:12 PM Andre Przywara wrote: > > On Mon, 21 Jan 2019 18:02:17 +0800 > Chen-Yu Tsai wrote: > > > On Mon, Jan 21, 2019 at 5:39 PM Andre Przywara > > wrote: > > > > > > On Mon, 21 Jan 2019 17:34:25 +0800 > > > Chen-Yu Tsai wrote: > > > > > > > On Mon, Jan 21, 2019 at 5:32

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-21 Thread jorisoffouga
Le 21/01/2019 à 10:52, Bryan O'Donoghue a écrit : On 20/01/2019 21:18, Joris Offouga wrote: This patch imports the Linux kernel base board imx7d-pico.dtsi and specific dts for imx7d-pico-pi I recommend including the upstream Linux SHA in the commit log to make it easier to validate

[U-Boot] [PATCH v3 15/60] mpc83xx: Make distinct caddy2 config

2019-01-21 Thread Mario Six
vme8349.h contains two separate boards: The vme8349 itself, and the caddy2 board. The caddy2 board is chosen by setting certain config variables. Create a proper config file for the caddy2 board to make Kconfig migration easier. Furthermore, simplify the vme8349 and caddy2 configs by keeping only

[U-Boot] [PATCH v3 17/60] mpc83xx: Make distinct MPC8349EMDS_SDRAM board

2019-01-21 Thread Mario Six
The MPC8349EMDS config file contains config options to enable SDRAM support. To keep this ability after the Kconfig migration, create a new MPC8349EMDS_SDRAM board that enables the SDRAM support and remove the SDRAM support from the original board. Signed-off-by: Mario Six --- v2 -> v3: No

[U-Boot] [PATCH v3 16/60] powerpc: Add LSDMR config values

2019-01-21 Thread Mario Six
The LSDMR_* macros are used to configure the system bus on MPC83xx. A few of the possible LSDMR_* macros were never defined in the respective include files. This renders the SDRAM support on the MPC8349EMDS unusable, because it uses these undefined macros. To make the SDRAM option work,

[U-Boot] [PATCH v3 21/60] MPC8349ITX: Migrate to CONFIG_TARGET_MPC8349ITX

2019-01-21 Thread Mario Six
Use the proper CONFIG_TARGET_MPC8349ITX Kconfig option to replace the CONFIG_MPC8349ITX ad-hoc config option. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- board/freescale/mpc8349itx/mpc8349itx.c | 2 +-

[U-Boot] [PATCH v3 22/60] hrcon: Migrate to CONFIG_TARGET_HRCON

2019-01-21 Thread Mario Six
Use the proper CONFIG_TARGET_HRCON Kconfig option to replace the CONFIG_HRCON ad-hoc config option. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Combined config creation and simplification patches * Removed config option from whitelist --- board/gdsys/common/Makefile | 2

[U-Boot] [PATCH v3 27/60] MPC837XERDB: Remove CONFIG_MPC837XERDB

2019-01-21 Thread Mario Six
CONFIG_MPC837XERDB is unused, and TARGET_MPC837XERDB could replace it. Hence, get rid of CONFIG_MPC837XERDB. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: * Removed config option from whitelist --- include/configs/MPC837XERDB.h | 1 - scripts/config_whitelist.txt | 1 - 2

[U-Boot] [PATCH v3 42/60] powerpc: mpc83xx: Implement get_serial_clock()

2019-01-21 Thread Mario Six
DM serial drivers on PowerPC determine their clock frequency via the get_serial_clock function. This function is not Implemented yet for MPC83xx. This patch Implements the function so that DM serial drivers work on MPC83xx. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in

[U-Boot] [PATCH v3 45/60] mpc83xx: Prepare usage of DM gpio driver

2019-01-21 Thread Mario Six
The MPC85xx GPIO driver was converted to handle a broader range of SoCs. Prepare the MPC83xx code for usage of this driver. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 8 1 file changed, 8 insertions(+)

Re: [U-Boot] [PATCH v2] ARM: mvebu: sync Armada-38x dts with Linux 4.20

2019-01-21 Thread Stefan Roese
On 10.12.18 08:07, Chris Packham wrote: Sync the Armada-38x device tree files with Linux 4.20-rc5. The changes not taken are new compatible strings for the uart and nand flash controller. The nand binding is best updated if/when the mtd/nand infrastructure is updated. Signed-off-by: Chris

  1   2   3   >