Re: [U-Boot] [PATCH v3 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-05 Thread Ryder Lee
On Sat, 2018-11-03 at 00:08 -0600, Simon Glass wrote: > On 2 November 2018 at 09:15, Ryder Lee wrote: > > This patch adds support for MTK boot image generation. > > > > Signed-off-by: Weijie Gao > > Signed-off-by: Ryder Lee > > --- > > Makefile | 20 ++ > > common/image.c |

Re: [U-Boot] [PATCH v3 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-05 Thread Ryder Lee
On Sat, 2018-11-03 at 00:08 -0600, Simon Glass wrote: > Hi Ryder, > > On 2 November 2018 at 09:15, Ryder Lee wrote: > > This patch adds clock modules for MediaTek SoCs: > > - Shared part: a common driver which contains the general operations > > for plls, muxes, dividers and gates so that we can

Re: [U-Boot] [PATCH 0/3] mtd: Fix partition handling code

2018-11-05 Thread Jagan Teki
On Wed, Oct 31, 2018 at 3:38 PM Boris Brezillon wrote: > > Hello, > > Stefan recently reported a bug when using ubi part on a spi-nand > device and proposed this fix[1]. While his solution while working > I proposed a different approach to kill the CMD_UBI dependency on > CMD_MTDPARTS. This is wha

Re: [U-Boot] [PATCH v3 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-05 Thread Ryder Lee
On Mon, 2018-11-05 at 10:20 +0800, Ryder Lee wrote: > On Sat, 2018-11-03 at 00:09 -0600, Simon Glass wrote: > > Hi Ryder, > > > > On 2 November 2018 at 09:15, Ryder Lee wrote: > > > This patch adds an extra operation in ns16550.c to suuport MediaTek > > > SoCs as we have a highspeed register whic

Re: [U-Boot] [PATCH] sunxi: Fix memory 2-rank initialization for a33 cpu

2018-11-05 Thread Maxime Ripard
On Wed, Oct 31, 2018 at 08:03:16PM +0100, Michael Trimarchi wrote: > When we initialize the memory we need to autodetect rank and size > but this can happen only if we send the proper reset to both > memory module including cke signal. > For this reason we need initialize the physical on both chann

[U-Boot] [PATCH v2 00/14] efi: make efi and bootmgr more usable

2018-11-05 Thread AKASHI Takahiro
This patch set is a collection of patches to enhance efi user interfaces /commands. It will help improve user experience on efi boot and make it more usable *without* edk2's shell utility. Let's see how it works: => efishell boot add 1 SHELL mmc 0:1 /Shell.efi "" => efishell boot add 2 HELLO mmc 0

[U-Boot] [PATCH v2 01/14] efi_loader: allow device == NULL in efi_dp_from_name()

2018-11-05 Thread AKASHI Takahiro
This is a preparatory patch for use in efi_serialize_load_option() as a load option's file_path should have both a device path and a file path. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_device_path.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/

[U-Boot] [PATCH v2 06/14] cmd: efishell: add drivers command

2018-11-05 Thread AKASHI Takahiro
"drivers" command prints all the uefi drivers on the system. => efi drivers Driver Name Image Path (unknown) +(not found) guid: 18a031ab-b443-4d1a-a5c0-0c09261e9f71 Currently, no useful information can be printed. Signed-off-by: AKASHI Ta

[U-Boot] [PATCH v2 03/14] efi_loader: bootmgr: allow for running a given load option

2018-11-05 Thread AKASHI Takahiro
With an extra argument, efi_bootmgr_load() can now load an efi binary based on a "Boot" variable specified. Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 3 ++- lib/efi_loader/efi_bootmgr.c | 8 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/inclu

[U-Boot] [PATCH v2 02/14] efi_loader: bootmgr: add load option helper functions

2018-11-05 Thread AKASHI Takahiro
In this patch, helper functions for an load option variable (Boot) are added: * efi_deserialize_load_option(): parse a string into load_option data (renamed from parse_load_option and exported) * efi_serialize_load_option(): convert load_option data into a string Those

[U-Boot] [PATCH v2 09/14] cmd: efishell: add dh command

2018-11-05 Thread AKASHI Takahiro
"dh" command prints all the uefi handles used in the system. => efishell dh (T.B.D.) 0: (protocol info not available) 1: (protocol info not available) 2: (protocol info not available) 3: (protocol info not available) 4: (protocol info not available) 5: (protocol info not available) 6: (protocol inf

[U-Boot] [PATCH v2 12/14] cmd: run: add "-e" option to run an EFI application

2018-11-05 Thread AKASHI Takahiro
"run -e" allows for executing EFI application with a specific "Boot" variable. If no "Boot" is specified or "BootOrder" is specified, it tries to run an EFI application specified in the order of "bootOrder." Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 2 +- cmd/nvedit.c

[U-Boot] [PATCH v2 14/14] cmd: env: add "-e" option for handling UEFI variables

2018-11-05 Thread AKASHI Takahiro
"env [print|set] -e" allows for handling uefi variables without knowing details about mapping to corresponding u-boot variables. Signed-off-by: AKASHI Takahiro --- cmd/nvedit.c | 58 +++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 08/14] cmd: efishell: add memmap command

2018-11-05 Thread AKASHI Takahiro
"memmap" command prints uefi-specific memory map information. => efi memmap Type StartEnd Attributes == CONVENTIONAL 4000-7de27000 WB RUNTIME DATA 7de27000-7de

[U-Boot] [PATCH v2 05/14] cmd: efishell: add devices command

2018-11-05 Thread AKASHI Takahiro
"devices" command prints all the uefi variables on the system. => efishell devices Device Name /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b) /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0) /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/

[U-Boot] [PATCH v2 04/14] cmd: add efishell command

2018-11-05 Thread AKASHI Takahiro
Currently, there is no easy way to add or modify UEFI variables. In particular, bootmgr supports BootOrder/Boot variables, it is quite hard to define them as u-boot variables because they are represented in a complicated and encoded format. The new command, efishell, helps address these issues

[U-Boot] [PATCH v2 07/14] cmd: efishell: add images command

2018-11-05 Thread AKASHI Takahiro
"images" command prints loaded images-related information. Signed-off-by: AKASHI Takahiro --- cmd/efishell.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cmd/efishell.c b/cmd/efishell.c index 2f54f7803ac5..b5050d63fa22 100644 --- a/cmd/efishell.c +++ b/cmd/ef

[U-Boot] [PATCH v2 11/14] cmd: bootefi: run an EFI application of a specific load option

2018-11-05 Thread AKASHI Takahiro
With this patch applied, we will be able to selectively execute an EFI application by specifying a load option, say "1" for Boot0001, "2" for Boot0002 and so on. => bootefi bootmgr 1, or bootefi bootmgr - 1 Please note that Boot need not be included in "BootOrder". Signed-off-by: AKA

[U-Boot] [PATCH v2 10/14] cmd: bootefi: carve out fdt parameter handling

2018-11-05 Thread AKASHI Takahiro
The current way how command parameters, particularly "fdt addr," are handled makes it a bit complicated to add a subcommand-specific parameter. So just refactor the code and extract efi_handle_fdt(). This commit is a preparatory change for enhancing bootmgr sub-command. Signed-off-by: AKASHI Taka

[U-Boot] [PATCH v2 13/14] cmd: efishell: export uefi variable helper functions

2018-11-05 Thread AKASHI Takahiro
Those function will be used for integration with 'env' command so as to handle uefi variables. Signed-off-by: AKASHI Takahiro --- cmd/efishell.c| 4 ++-- include/command.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/efishell.c b/cmd/efishell.c index bd2b99e7407

[U-Boot] [PATCH 2/2] spi: pl022: Driver cleanup

2018-11-05 Thread Jagan Teki
- Drop unnecessary include files. - Rename platform_data include file as spi_pl022.h from pl022_spi.h, this is generic notation used for spi platdat include files. Cc: Quentin Schulz Signed-off-by: Jagan Teki --- drivers/spi/pl022_spi.c | 7 +-- include/dm/

[U-Boot] [PATCH 1/2] spi: pl022: Get rid of platdata ifdef's

2018-11-05 Thread Jagan Teki
pl022 spi driver support both OF_CONTROL and PLATDATA and it's using #ifdef check for differentiating platdata vs of_control. So this patch simplify the code and drop the ifdefs Cc: Quentin Schulz Signed-off-by: Jagan Teki --- drivers/spi/pl022_spi.c | 48 --

Re: [U-Boot] [PATCH v3 02/19] dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected

2018-11-05 Thread Jean-Jacques Hiblot
Hi Simon, On 03/11/2018 07:07, Simon Glass wrote: Hi Jean-Jacques, On 22 October 2018 at 08:12, Jean-Jacques Hiblot wrote: i2c_get_chip_for_busnum() really should check the presence of the chip on the bus. Most of the users of this function assume that this is done. Signed-off-by: Jean-Jacqu

Re: [U-Boot] [PATCH] efi_loader: Handle RELA absolute relocations properly

2018-11-05 Thread Auer, Lukas
On Sun, 2018-11-04 at 22:28 +0100, Alexander Graf wrote: > With RELA absolute relocations, the relocation target contains our > link > offset which we need to remove from the equation again. We did this > properly in the relative relocation path, but not in the absolute > one. > > So let's do this

Re: [U-Boot] [PATCH 2/2] arm64: mvebu: a8k: autodetect RAM size

2018-11-05 Thread Stefan Roese
Hi Baruch, On 31.10.18 15:50, Baruch Siach wrote: Hi Stefan, On Wed, Oct 31, 2018 at 02:29:50PM +0100, Stefan Roese wrote: On 28.10.18 13:30, Baruch Siach wrote: Some Armada 8K boards like Macchiatobin and Clearfog GT-8K use RAM from external DIMM. Hard coding the RAM size in the device-tree

Re: [U-Boot] [PATCH 1/2] spi: pl022: Get rid of platdata ifdef's

2018-11-05 Thread Quentin Schulz
Hi Jagan, On Mon, Nov 05, 2018 at 02:49:25PM +0530, Jagan Teki wrote: > pl022 spi driver support both OF_CONTROL and PLATDATA and > it's using #ifdef check for differentiating platdata vs of_control. > So this patch simplify the code and drop the ifdefs > You drop a few ifdef, not all. I also fi

[U-Boot] [PATCH V2 1/4] tools: imx8image: check lseek return value

2018-11-05 Thread Peng Fan
Check lseek return value. Fix Coverity CID: 184236 184235 184232 Reported-by: Coverity Signed-off-by: Peng Fan --- V2: Per Fabio's comments, use ret = lseek; if (ret) < 0) coding style. tools/imx8image.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff

[U-Boot] [PATCH V2 2/4] tools: imx8image: fix coverity CID 184234

2018-11-05 Thread Peng Fan
Fix: CID 184234:(TAINTED_SCALAR) Using tainted variable "header.num_images - 1" as an index into an array "header.img". Reported-by: Coverity Signed-off-by: Peng Fan --- tools/imx8image.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/imx8image.c b/tools/imx8im

[U-Boot] [PATCH V2 3/4] tools: imx8image: fix coverity CID 184233

2018-11-05 Thread Peng Fan
Fix: CID 184233:(NEGATIVE_RETURNS) Using variable "container" as an index to array "imx_header.fhdr". Reported-by: Coverity Signed-off-by: Peng Fan --- tools/imx8image.c | 8 1 file changed, 8 insertions(+) diff --git a/tools/imx8image.c b/tools/imx8image.c index 019b875773..ac89c8

[U-Boot] [PATCH V2 4/4] tools: imx8image: flatten container header only when creating container

2018-11-05 Thread Peng Fan
If there is no CONTAINER entry, there is no need to flatten container header. Signed-off-by: Peng Fan --- tools/imx8image.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index ac89c821c9..6e8ac464e7 100644 --- a

Re: [U-Boot] [PATCH v3 6/6] spi: kirkwood: Full dm conversion

2018-11-05 Thread Jagan Teki
On Mon, May 7, 2018 at 2:40 PM Jagan Teki wrote: > > kirkwood now support dt along with platform data, > respective boards need to switch into dm for the same. > > Signed-off-by: Jagan Teki > --- > Changes for v3: > - rebased master > - Move kconfig option if DM_SPI > > drivers/spi/Kconfig

[U-Boot] [PATCH 1/2] imx: imx8qxp_mek: imximage: remove config.h

2018-11-05 Thread Peng Fan
config.h is not needed, remove it. Signed-off-by: Peng Fan --- board/freescale/imx8qxp_mek/imximage.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/board/freescale/imx8qxp_mek/imximage.cfg b/board/freescale/imx8qxp_mek/imximage.cfg index 9d39f25bf6..bbffb1a88f 100644 --- a/board/freescal

[U-Boot] [PATCH 2/2] arm: imx8qxp: build u-boot-dtb.cfgout before checking files

2018-11-05 Thread Peng Fan
Build u-boot-dtb.cfgout before checking files, otherwise u-boot-dtb.cfgout is generated at late stage and cause final image not generated. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/Makefile b/arch/

Re: [U-Boot] [PATCH v1 1/1] spi: lpc32xx_ssp: DM conversion

2018-11-05 Thread Jagan Teki
On Wed, Sep 19, 2018 at 5:02 PM Vladimir Zapolskiy wrote: > > On 09/04/2018 09:33 AM, Jagan Teki wrote: > > On Wed, May 9, 2018 at 12:37 PM, Akash Gajjar > > wrote: > >> From: Akash Gajjar > >> > >> This patch adds support for DM to the LPC32xx SSP SPI driver. > >> > >> Some TODOs are left over

Re: [U-Boot] [PATCH] spi: Zap mpc8xx_spi driver

2018-11-05 Thread Jagan Teki
On Fri, Mar 2, 2018 at 3:17 PM Christophe LEROY wrote: > > > Le 26/02/2018 à 15:43, Jagan Teki a écrit : > > - Driver not used by any boards > > This driver should be used by MCR3000 board. For the time > being SPI is not activated on that board because we are struggling > with u-boot size. I'm wo

[U-Boot] [PATCH v1] fs: ubifs: Fix UBIFS decompression on 64 bit

2018-11-05 Thread Paul Davey
Add local size_t variable to crypto_comp_decompress as intermediate storage for destination length to avoid memory corruption and incorrect results on 64 bit targets. This is what linux does for the various lz compression implementations. Signed-off-by: Paul Davey Cc: Heiko Schocher --- When a

Re: [U-Boot] [PATCH] board: rockchip: rk3399: add Rockpro64 board support

2018-11-05 Thread akash
Hi Jagan, On 05/11/18 12:40 PM, Jagan Teki wrote: On 03/11/18 4:58 PM, Akash Gajjar wrote: Rockpro64 is rk3399 based board from pine64.org. add initial board support for Rockpro64. complete board support will be added later in upcoming patchsets. Signed-off-by: Akash Gajjar ---   arch/arm/d

Re: [U-Boot] [PULL] u-boot-sh/master

2018-11-05 Thread Tom Rini
On Sun, Nov 04, 2018 at 10:15:07AM +0100, Marek Vasut wrote: > The following changes since commit fdaccfeb5e03e18c05be386b8a7c6be02be2cf15: > > Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2018-10-31 > 17:15:55 -0400) > > are available in the Git repository at: > > git://git.d

Re: [U-Boot] [GIT PULL] mips-fixes-for-v2018.11

2018-11-05 Thread Tom Rini
On Sat, Nov 03, 2018 at 11:59:55AM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > please pull an important bugfix for MIPS, thanks. > > Travis CI: https://travis-ci.org/danielschwierzeck/u-boot/builds/450057399 > > > The following changes since commit 99431c1c21685fe63d46b6eac995b78ce9adce0a:

Re: [U-Boot] [PATCH V2 1/4] tools: imx8image: check lseek return value

2018-11-05 Thread Fabio Estevam
Hi Peng, On Mon, Nov 5, 2018 at 7:53 AM Peng Fan wrote: > > Check lseek return value. > > Fix Coverity CID: 184236 184235 184232 > > Reported-by: Coverity > Signed-off-by: Peng Fan Thanks for the respin. Reviewed-by: Fabio Estevam ___ U-Boot mailing

[U-Boot] [PATCH v2 01/58] mpc83xx: Introduce ARCH_MPC830*

2018-11-05 Thread Mario Six
Replace CONFIG_MPC830* with proper CONFIG_ARCH_MPC830* Kconfig options. Signed-off-by: Mario Six --- v1 -> v2: * Removed config options from whitelist --- arch/powerpc/cpu/mpc83xx/Kconfig | 17 + arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +- arch/powerpc/cpu/mp

[U-Boot] [PATCH v2 02/58] mpc83xx: Introduce ARCH_MPC831*

2018-11-05 Thread Mario Six
Replace CONFIG_MPC833* with proper CONFIG_ARCH_MPC833* Kconfig options. Signed-off-by: Mario Six --- v1 -> v2: * Removed config options from whitelist --- arch/powerpc/cpu/mpc83xx/Kconfig | 15 +++ arch/powerpc/cpu/mpc83xx/cpu.c | 2 +- arch/powerpc/cpu/mpc8

[U-Boot] [PATCH v2 03/58] mpc83xx: Introduce ARCH_MPC832*

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

[U-Boot] [PATCH v2 04/58] mpc83xx: Introduce ARCH_MPC834*

2018-11-05 Thread Mario Six
Replace CONFIG_MPC834* with proper CONFIG_ARCH_MPC834* Kconfig options. Signed-off-by: Mario Six --- v1 -> v2: * Removed config option from whitelist --- arch/powerpc/cpu/mpc83xx/Kconfig | 12 arch/powerpc/cpu/mpc83xx/cpu_init.c | 2 +- arch/powerpc/cpu/mpc8

[U-Boot] [PATCH v2 05/58] mpc83xx: Introduce ARCH_MPC836*

2018-11-05 Thread Mario Six
Replace CONFIG_MPC836* with proper CONFIG_ARCH_MPC836* Kconfig options. Signed-off-by: Mario Six --- v1 -> v2: * Removed config option from whitelist --- arch/powerpc/cpu/mpc83xx/Kconfig | 4 arch/powerpc/cpu/mpc83xx/speed.c | 10 +- arch/powerpc/include/asm/fsl_lbc.

[U-Boot] [PATCH v2 06/58] mpc83xx: Introduce ARCH_MPC837X

2018-11-05 Thread Mario Six
Replace CONFIG_MPC837x with a proper CONFIG_ARCH_MPC837X Kconfig option. Signed-off-by: Mario Six --- v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/Kconfig | 5 + arch/powerpc/cpu/mpc83xx/speed.c | 30 ++-- arch/powerpc/include/asm/arch

[U-Boot] [PATCH v2 09/58] keymile: Unroll includes

2018-11-05 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 --- v1 -> v2: No changes --- include/configs/km8309-common.h | 174 include/configs/km8321-common.h | 139 ---

[U-Boot] [PATCH v2 08/58] keymile: Move config files

2018-11-05 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. Signed-o

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

2018-11-05 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 v2 12/58] keymile: Make distinct kmeter1, and kmcoge5ne configs

2018-11-05 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 --- v1 -> v2: * Combined config creation and simplification patches --- arch/powerpc/cp

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

2018-11-05 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 --- v1 -> v2: * Combined config c

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

2018-11-05 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 --- v1 -> v2: No changes --- include/configs/km8360.h| 291 ++- include/configs/km83xx-common.h | 296 -

[U-Boot] [PATCH v2 13/58] mpc83xx: Make distinct MPC8313ERDB targets

2018-11-05 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 --- v1 -> v2: * Combined

[U-Boot] [PATCH v2 15/58] mpc83xx: Make distinct caddy2 config

2018-11-05 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. Furthermoew, simplify the vme8349 and caddy2 configs by keeping only

[U-Boot] [PATCH v2 16/58] powerpc: Add LSDMR config values

2018-11-05 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, introduce

[U-Boot] [PATCH v2 20/58] MPC832XEMDS: Migrate to CONFIG_TARGET_MPC832XEMDS

2018-11-05 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 --- v1 -> v2: * Removed config option from whitelist --- board/freescale/common/pq-mds-pib.c | 6 +++--- include/configs/MPC832XEMDS.h | 1 - scripts/

[U-Boot] [PATCH v2 14/58] vme8349: Migrate to CONFIG_TARGET_VME8349

2018-11-05 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 --- v1 -> v2: No changes --- drivers/pci/pci_auto.c | 2 +- drivers/pci/pci_auto_old.c | 2 +- include/configs/vme8349.h | 1 -

[U-Boot] [PATCH v2 19/58] ve8313: Merge BR/OR settings

2018-11-05 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 CONFIG_SYS_NOR_{BR,OR}_PRELI

[U-Boot] [PATCH v2 18/58] mpc8315erdb: Merge BR/OR settings

2018-11-05 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 CONFIG_SYS_NOR_{BR,OR

[U-Boot] [PATCH v2 17/58] mpc83xx: Make distinct MPC8349EMDS_SDRAM board

2018-11-05 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 --- v1 -> v2: * Combi

[U-Boot] [PATCH v2 26/58] MPC837XEMDS: Remove CONFIG_MPC837XEMDS

2018-11-05 Thread Mario Six
CONFIG_MPC837XEMDS is unused, and TARGET_MPC837XEMDS could replace it. Hence, get rid of CONFIG_MPC837XEMDS. Signed-off-by: Mario Six --- v1 -> v2: * Removed config option from whitelist --- include/configs/MPC837XEMDS.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed, 2 deletion

[U-Boot] [PATCH v2 21/58] MPC8349ITX: Migrate to CONFIG_TARGET_MPC8349ITX

2018-11-05 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 --- v1 -> v2: * Removed config option from whitelist --- board/freescale/mpc8349itx/mpc8349itx.c | 2 +- configs/MPC8349ITX_LOWBOOT_defconfig| 1 - config

[U-Boot] [PATCH v2 23/58] strider: Migrate to CONFIG_TARGET_STRIDER

2018-11-05 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 --- v1 -> v2: * Removed config option from whitelist --- board/gdsys/common/Makefile | 4 ++-- board/gdsys/mpc8308/Makefile | 2 +- include/configs/strider.h|

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

2018-11-05 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 --- v1 -> v2: No changes --- arch/powerpc/cpu/mpc83xx/Kconfig| 26 ++ board/freescale/mpc8349emds/pci.c |

[U-Boot] [PATCH v2 25/58] MPC8315ERDB: Remove CONFIG_MPC8315ERDB

2018-11-05 Thread Mario Six
CONFIG_MPC8315ERDB is unused, and TARGET_MPC8315ERDB could replace it. Hence, get rid of CONFIG_MPC8315ERDB. Signed-off-by: Mario Six --- v1 -> v2: * Removed config option from whitelist --- include/configs/MPC8315ERDB.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed, 2 deletion

[U-Boot] [PATCH v2 22/58] hrcon: Migrate to CONFIG_TARGET_HRCON

2018-11-05 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 --- v1 -> v2: * Combined config creation and simplification patches * Removed config option from whitelist --- board/gdsys/common/Makefile | 2 +- board/gdsys/mpc8308/

[U-Boot] [PATCH v2 24/58] MPC8313ERDB: Remove CONFIG_MPC8313ERDB

2018-11-05 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 --- v1 -> v2: * Removed config option from whitelist --- include/configs/MPC8313ERDB_NAND.h | 1 - include/configs/MPC8313

[U-Boot] [PATCH v2 27/58] MPC837XERDB: Remove CONFIG_MPC837XERDB

2018-11-05 Thread Mario Six
CONFIG_MPC837XERDB is unused, and TARGET_MPC837XERDB could replace it. Hence, get rid of CONFIG_MPC837XERDB. Signed-off-by: Mario Six --- v1 -> v2: * Removed config option from whitelist --- include/configs/MPC837XERDB.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed, 2 deletion

[U-Boot] [PATCH v2 29/58] mpc83xx: Replace CONFIG_83XX_CLKIN in calculations

2018-11-05 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 CONFIG_SYS_NS165

[U-Boot] [PATCH v2 30/58] mpc83xx: Get rid of CONFIG_83XX_CLKIN

2018-11-05 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 val

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

2018-11-05 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 --- v1 -> v2: No changes

[U-Boot] [PATCH v2 33/58] powerpc: Migrate HIGH_BATS to Kconfig

2018-11-05 Thread Mario Six
Migrate the CONFIG_HIGH_BATS variable to Kconfig. Signed-off-by: Mario Six --- v1 -> v2: * Removed config option from whitelist --- arch/powerpc/Kconfig | 6 ++ configs/MPC8313ERDB_33_defconfig | 1 + configs/MPC8313ERDB_66_defconfig | 1 + configs/MPC8313ERDB_N

[U-Boot] [PATCH v2 31/58] mpc83xx: Kconfig: Migrate HRCW to Kconfig

2018-11-05 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 comfor

[U-Boot] [PATCH v2 37/58] tqm834x: Expand CONFIG_SYS_OR_TIMING_FLASH macro

2018-11-05 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 c

[U-Boot] [PATCH v2 38/58] mpc83xx: Simplify BR,OR lines

2018-11-05 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 --- v1 -> v2: No changes --- include/configs/MPC8308RDB.h| 46 +--- include/configs/MPC8313ERDB_NAND.h | 67

[U-Boot] [PATCH v2 35/58] mpc83xx: Migrate LBLAW_* to Kconfig

2018-11-05 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, and

[U-Boot] [PATCH v2 36/58] mpc83xx: Normalize BR/OR option lines

2018-11-05 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

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

2018-11-05 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 --- v1 -> v2: New in v2 --- arch/powerpc/include/asm/arch-mpc83xx/gpio.h | 8 1 file changed, 8 insertions(+) diff --git a/arch/power

[U-Boot] [PATCH v2 39/58] sbc8349: Remove SDRAM functionality

2018-11-05 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 sbc834

[U-Boot] [PATCH v2 46/58] mpc83xx: Migrate HID config to Kconfig

2018-11-05 Thread Mario Six
Mirate the HID configuration settings to Kconfig. Signed-off-by: Mario Six --- 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 + arch/powerpc

[U-Boot] [PATCH v2 44/58] mpc83xx: Remove last CONFIG_MPC83xx

2018-11-05 Thread Mario Six
Remove the last instances of the CONFIG_MPC83xx symbol. Signed-off-by: Mario Six --- 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 index 9318e6252ae..400

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

2018-11-05 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 --- v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Makefile | 2 ++ arch/powerpc/include/asm/immap_83xx.h | 44 +++ 2 files ch

[U-Boot] [PATCH v2 42/58] powerpc: mpc83xx: Implement get_serial_clock()

2018-11-05 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 --- v1 -> v2: New in v2 --- arch/powerpc/cp

[U-Boot] [PATCH v2 51/58] mpc83xx: Migrate CONFIG_LCRR_* to Kconfig

2018-11-05 Thread Mario Six
Migrate the CONFIG_LCRR_* settings to Kconfig. Signed-off-by: Mario Six --- 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 v2 47/58] mpc83xx: Migrate CONFIG_SYS_IMMR to Kconfig

2018-11-05 Thread Mario Six
Migrate CONFIG_SYS_IMMR to Kconfig for MPC83xx. Signed-off-by: Mario Six --- v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/Kconfig| 7 +++ configs/TQM834x_defconfig | 1 + configs/ids8313_defconfig | 1 + include/configs/MPC8308RDB.h| 5 - include/co

[U-Boot] [PATCH v2 49/58] mpc83xx: Migrate arbiter config to Kconfig

2018-11-05 Thread Mario Six
Migrate the arbiter configuration to Kconfig. Signed-off-by: Mario Six --- 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 | 28 ++ arch/

[U-Boot] [PATCH v2 57/58] mpc83xx: Replace ppcDWstore with inline assembly

2018-11-05 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. Signed-off-b

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

2018-11-05 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 --- v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/fdt.c

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

2018-11-05 Thread Mario Six
Migrate the system IO configuration setting to Kconfig. Signed-off-by: Mario Six --- 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 + arch/powerpc/cpu

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

2018-11-05 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 --- v1 -> v2: New in v2

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

2018-11-05 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 --- v1 -> v2: New in v2 --- arch/powerpc/include/asm/arch-mpc83xx/clock.h | 22

[U-Boot] [PATCH v2 53/58] mpc83xx: Get rid of CONFIG_SYS_DDR_SDRAM_BASE

2018-11-05 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 --- v1 -> v2: New in v2 --- arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +- board/freescale/mpc8308rdb/sdram.c| 4 ++--

[U-Boot] [PATCH v2 52/58] mpc83xx: Get rid of CONFIG_SYS_DDR_BASE

2018-11-05 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 --- v1 -> v2: New in v2 --- board/esd/vme8349/vme8349.c | 2 +- board/freescale/mpc8323erdb/mpc8323erdb.c | 2

[U-Boot] [PATCH v2 50/58] mpc83xx: Migrate SPCR to Kconfig

2018-11-05 Thread Mario Six
Migrate the SPCR setting to Kconfig. Signed-off-by: Mario Six --- 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 ++ arch/powerpc/cpu/mpc83xx/initre

[U-Boot] [PATCH v2 54/58] mpc83xx: Get rid of CONFIG_SYS_LBC_*

2018-11-05 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 simplify

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

2018-11-05 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 --- 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 b/arch/powerpc/cpu/mpc83xx

Re: [U-Boot] [PATCH 2/2] board: allwinner: sun50i-h6: Add Orangepi Lite2 support

2018-11-05 Thread Maxime Ripard
On Mon, Nov 05, 2018 at 01:20:40PM +0530, Jagan Teki wrote: > OrangePi Lite2 is Allwinner H6 based open-source SBC, > which support: > - Allwinner H6 Quad-core 64-bit ARM Cortex-A53 > - GPU Mali-T720 > - 1GB LPDDR3 RAM > - AXP805 PMIC > - AP6356S Wifi/BT > - USB 2.0, USB 3.0 Host, OTG > - HDMI port

Re: [U-Boot] [PATCH v4 0/5] Add support for Pinebook

2018-11-05 Thread Dennis Gilmore
El sáb, 03-11-2018 a las 17:12 -0700, Vasily Khoruzhick escribió: > On Sat, Nov 3, 2018 at 2:15 PM André Przywara > wrote: > > On 11/3/18 8:19 PM, Vasily Khoruzhick wrote: > > > You need "allwinner" branch from this repo. > > > > I deliberately switched the standard branch away, since everything

[U-Boot] [PATCH v1] dm: Fix typo - missed semicolon

2018-11-05 Thread Andy Shevchenko
The commit 484fdf5ba058 ("dm: Add support for all targets which requires MANUAL_RELOC") introduces subtle typo, i.e. missed semicolon. Fixes: 484fdf5ba058 ("dm: Add support for all targets which requires MANUAL_RELOC") Cc: Michal Simek Signed-off-by: Andy Shevchenko --- drivers/serial/seri

Re: [U-Boot] [PATCH 2/2] Aquantia: Print information about system interface and firmaware version

2018-11-05 Thread Clément Péron
Hi Valentin-catalin, There is a typo in your commit title. Regards, Clement On Tue, 30 Oct 2018 at 11:44, Valentin-catalin Neacsu wrote: > > Print information about Aquantia firmware loaded on the phy > Signed-off-by: Valentin Catalin Neacsu > --- > drivers/net/phy/aquantia.c | 21 +++

  1   2   >