Re: [U-Boot] [PATCH 1/1] x86: put global data pointer into the .text section

2018-10-12 Thread Bin Meng
On Sat, Oct 13, 2018 at 12:57 PM Bin Meng wrote: > > Hi Heinrich, > > On Sat, Oct 13, 2018 at 9:07 AM Heinrich Schuchardt > wrote: > > > > On x86_64 the field global_data_ptr is assigned before relocation. As > > global data sections (.data and .bss) overlap with the relocation sections > >

Re: [U-Boot] [PATCH 1/1] x86: put global data pointer into the .text section

2018-10-12 Thread Bin Meng
Hi Heinrich, On Sat, Oct 13, 2018 at 9:07 AM Heinrich Schuchardt wrote: > > On x86_64 the field global_data_ptr is assigned before relocation. As > global data sections (.data and .bss) overlap with the relocation sections Good catch! But I think the x86_64 global data is in the .bss, not

Re: [U-Boot] [PATCH 1/1] x86: detect unsupported relocation types

2018-10-12 Thread Bin Meng
On Sat, Oct 13, 2018 at 9:30 AM Heinrich Schuchardt wrote: > > Currently we support only relocations of type ELF64_R_TYPE or ELF32_R_TYPE. > We should be warned if other relocation types appear in the relocation > sections. > > This type of message has helped to identify code overwriting a

Re: [U-Boot] [U-Boot,11/45] rtc: Allow use of RTC in SPL and TPL

2018-10-12 Thread Bin Meng
Hi Heinrich, On Fri, Oct 12, 2018 at 3:56 AM Heinrich Schuchardt wrote: > > On 10/11/2018 09:21 PM, Heinrich Schuchardt wrote: > > > > On 10/01/2018 08:22 PM, Simon Glass wrote: > >> Add Kconfig options so that the RTC can be used in SPL and TPL. This is > >> helpful for accessing the contents

[U-Boot] Facing issue while building multiple environments in Kconfig

2018-10-12 Thread Rajesh Bhagat
We are facing issue while enabling CONFIG_ENV_IS_IN_SPI_FLASH and CONFIG_ENV_IS_IN_MMC in defconfig at the same time. Same problem has been faced in below thread: https://patches.linaro.org/patch/125578/ Is there any solution to this problem currently. Best Regards, Rajesh Bhagat

[U-Boot] [PATCH 1/1] x86: detect unsupported relocation types

2018-10-12 Thread Heinrich Schuchardt
Currently we support only relocations of type ELF64_R_TYPE or ELF32_R_TYPE. We should be warned if other relocation types appear in the relocation sections. This type of message has helped to identify code overwriting a relocation section before relocation and incorrect parsing of relocation

Re: [U-Boot] [PATCH 4/4] WIP: travis: Add qemu-x86_64 target for test.py testing

2018-10-12 Thread Heinrich Schuchardt
On 10/12/2018 11:02 PM, Heinrich Schuchardt wrote: > On 10/12/2018 03:45 AM, Bin Meng wrote: >> Hi Heinrich, >> >> On Fri, Oct 12, 2018 at 6:10 AM Heinrich Schuchardt >> wrote: >>> >>> On 10/11/2018 03:57 AM, Bin Meng wrote: Hi Heinrich, On Thu, Oct 11, 2018 at 9:48 AM Bin Meng

[U-Boot] [PATCH 1/1] x86: put global data pointer into the .text section

2018-10-12 Thread Heinrich Schuchardt
On x86_64 the field global_data_ptr is assigned before relocation. As global data sections (.data and .bss) overlap with the relocation sections (.rela) this destroys the relocation table and leads to spurious errors. By moving the field to the .text section it will not overlap any relocation

[U-Boot] [PATCH v2] socfpga: clean up sfp generation

2018-10-12 Thread Dalon Westergreen
From: Dalon Westergreen Move the sfp file generation entirely to the root Makefile. This means that the u-boot-spl.sfp will only be generated when required and only for the socfpga variants that require it. sfp generation is now entirely controlled by CONFIG_BUILD_TARGET being set to either

[U-Boot] [PATCH 1/1] efi_loader: fix relocation on x86_64

2018-10-12 Thread Heinrich Schuchardt
Currently the relocation of the EFI runtime on x86_64 fails. This renders the EFI subsystem unusable. The ELF relocation records for x86_64 contain an addend field. Always write the function name into error messages related to the EFI runtime relocation. Break an excessively long line.

Re: [U-Boot] [PATCH 4/4] WIP: travis: Add qemu-x86_64 target for test.py testing

2018-10-12 Thread Heinrich Schuchardt
On 10/12/2018 03:45 AM, Bin Meng wrote: > Hi Heinrich, > > On Fri, Oct 12, 2018 at 6:10 AM Heinrich Schuchardt > wrote: >> >> On 10/11/2018 03:57 AM, Bin Meng wrote: >>> Hi Heinrich, >>> >>> On Thu, Oct 11, 2018 at 9:48 AM Bin Meng wrote: Add qemu-x86_64 to the list of targets we use

Re: [U-Boot] [PATCH] ldpaa_eth.c: Fix warning when PHYLIB is not enabled

2018-10-12 Thread Tom Rini
On Fri, Oct 12, 2018 at 04:58:17PM +0200, Philipp Tomsich wrote: > > On 12.10.2018, at 16:34, Tom Rini wrote: > > > > We need to #ifdef some variables to avoid warning about them being > > unused. > > > > Fixes: 1a048cd65645 ("driver: net: fsl-mc: Add support of multiple phys for > > dpmac")

Re: [U-Boot] [PATCH] ldpaa_eth.c: Fix warning when PHYLIB is not enabled

2018-10-12 Thread Tom Rini
On Fri, Oct 12, 2018 at 10:34:50AM -0400, Tom Rini wrote: > We need to #ifdef some variables to avoid warning about them being > unused. > > Fixes: 1a048cd65645 ("driver: net: fsl-mc: Add support of multiple phys for > dpmac") > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! --

Re: [U-Boot] Pull request: u-boot-net.git master

2018-10-12 Thread Tom Rini
On Thu, Oct 11, 2018 at 02:23:38PM -0500, Joe Hershberger wrote: > Hi Tom, > > The few checkpatch alerts were checked to be exceptions. All passed travis. > Thanks! > > The following changes since commit 0a60a81ba3860946551cb79aa6486aa076e357f3: > > Kconfig: sandbox: enable cmd_avb and

Re: [U-Boot] [PATCH v4 12/17] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-10-12 Thread Bin Meng
Hi Stefan, On Fri, Oct 12, 2018 at 10:00 PM Stefan Roese wrote: > > Hi! > > I just tested the latest U-Boot version on one of my x86 > platforms (Baytrail theadorable-x86-dfi-bt700_defconfig). > Unfortunately this patch break the board port, resulting in > this output: > > U-Boot

[U-Boot] [PATCH] syscon: reset node list syscon_list after relocation

2018-10-12 Thread Patrick Delaunay
Reset the list head after the reallocation because the list syscon_list use allocated pointer and they are no more valid. This patch avoid issue (crash) when syscon_node_to_regmap() is called before and after reallocation. Signed-off-by: Patrick Delaunay --- Hi This patch correct a crash see on

Re: [U-Boot] [PATCH] ldpaa_eth.c: Fix warning when PHYLIB is not enabled

2018-10-12 Thread Philipp Tomsich
> On 12.10.2018, at 16:34, Tom Rini wrote: > > We need to #ifdef some variables to avoid warning about them being > unused. > > Fixes: 1a048cd65645 ("driver: net: fsl-mc: Add support of multiple phys for > dpmac") > Signed-off-by: Tom Rini > --- > drivers/net/ldpaa_eth/ldpaa_eth.c | 10

[U-Boot] [PATCH v4 27/27] armv8: ls1012afrx: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
TFABOOT support includes: - ls1012a2g5rdb/ls1012afrdm/ls1012afrwy_tfa_defconfig to be loaded by trusted firmware - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- board/freescale/ls1012afrdm/ls1012afrdm.c | 29 -

[U-Boot] [PATCH v4 14/27] armv8: fsl-layerscape: Update parsing boot source

2018-10-12 Thread Rajesh Bhagat
From: York Sun Workaround of erratum A010539 clears the RCW source field in PORSR1 register, causing failure of detecting boot source using this method. Use SMC call if U-Boot runs at EL2. If SMC is not implemented or running at EL3, continue to read PORSR1 and presume QSPI as boot source if

[U-Boot] [PATCH v4 24/27] armv8: ls1012ardb: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
TFABOOT support includes: - ls1012ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT - enable PFE validation for secure boot Signed-off-by: Rajesh Bhagat Signed-off-by: Vinitha V Pillai Signed-off-by:

[U-Boot] [PATCH v4 23/27] armv8: ls1043aqds: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
TFABOOT support includes: - ls1043aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg Signed-off-by: Vinitha V Pillai Signed-off-by: Rajesh Bhagat --- Change in v4: None

[U-Boot] [PATCH v4 26/27] armv8: ls1012aqds: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
TFABOOT support includes: - ls1012aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Rajesh Bhagat Signed-off-by: Vinitha V Pillai Signed-off-by: Pankit Garg --- Change in v4: None

[U-Boot] [PATCH v4 17/27] net: fm: add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
Adds TFABOOT support and allows to pick FMAN firmware on basis of boot source. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v4: None Change in v3: None Change in v2: - Removed extra CONFIG_TFABOOT

[U-Boot] [PATCH v4 20/27] armv8: ls1046ardb: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
TFABOOT support includes: - ls1046ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: York Sun Signed-off-by: Pankit Garg Signed-off-by: Vinitha V Pillai

[U-Boot] [PATCH v4 25/27] armv8: ls1012aqds: fix secure boot compilation

2018-10-12 Thread Rajesh Bhagat
Includes environment.h file in ls1012aqds.c Also, enables pfe validation Signed-off-by: Vinitha V Pillai --- Change in v4: - Changed order to solve compilation error Change in v3: None Change in v2: None board/freescale/ls1012aqds/Kconfig | 10 ++

[U-Boot] [PATCH v4 18/27] drivers: qe: add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
Adds TFABOOT support and allows to pick QE firmware on basis of boot source. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v4: None Change in v3: None

[U-Boot] [PATCH v4 21/27] armv8: ls1046aqds: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
TFABOOT support includes: - ls1046aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg Signed-off-by: Vinitha V Pillai Signed-off-by: Rajesh

[U-Boot] [PATCH v4 08/27] armv8: layerscape: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
Adds TFABOOT support config option and add generic code to enable execution from DDR. Signed-off-by: York Sun Signed-off-by: Rajesh Bhagat --- Change in v4: None Change in v3: - Seperated TFABOOT generic code - Moved before dependency patches arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 7

[U-Boot] [PATCH v4 16/27] armv8: sec_firmware: return job ring status as true in TFABOOT

2018-10-12 Thread Rajesh Bhagat
From: Pankit Garg Returns job ring status as true in TFABOOT, as one job ring is always reserved. Signed-off-by: Ruchika Gupta Signed-off-by: Pankit Garg --- Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/sec_firmware.c | 4 1 file changed, 4 insertions(+)

[U-Boot] [PATCH v4 19/27] armv8: fsl-layerscape: add support of MC framework for TFA

2018-10-12 Thread Rajesh Bhagat
From: Pankit Garg Add support of MC framework for TFA Make MC framework independent of boot source. Signed-off-by: Rajesh Bhagat Signed-off-by: Pankit Garg --- Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/soc.c | 50 + 1

[U-Boot] [PATCH v4 09/27] armv8: fsl-layerscape: identify boot source from PORSR register

2018-10-12 Thread Rajesh Bhagat
PORSR register holds the cfg_rcw_src field which can be used to identify boot source. Further, it can be used to select the environment location. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v4: None Change in v3: None Change in v2: None

[U-Boot] [PATCH v4 06/27] armv8: fsl-layerscape: change tlb base from OCRAM to DDR in EL < 3

2018-10-12 Thread Rajesh Bhagat
From: Pankit Garg Change tlb base address from OCRAM to DDR when exception level is less than 3. Signed-off-by: Ruchika Gupta Signed-off-by: Pankit Garg --- Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 5 - 1 file changed, 4

[U-Boot] [PATCH v4 05/27] armv8: layerscape: Enable routing SError exception

2018-10-12 Thread Rajesh Bhagat
From: York Sun In case SError happens at EL2, if SCR_EL3[EA] is not routing it to EL3, and SCR_EL3[RW] is set to aarch64, setting HCR_EL2[AMO] routes the exception to EL2. Otherwise this exception is not taken. Signed-off-by: York Sun --- Change in v4: None Change in v3: None Change in v2:

[U-Boot] [PATCH v4 15/27] armv8: sec_firmware: change el2_to_aarch32 SMC ID

2018-10-12 Thread Rajesh Bhagat
Changes the el2_to_aarch32 SMC ID from 0xc000ff04 to 0xc200ff17, it is applicable to both TFA and non-TFA boot. Signed-off-by: Rajesh Bhagat --- Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/sec_firmware_asm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH v4 12/27] armv8: layerscape: add SMC calls for DDR size and bank info

2018-10-12 Thread Rajesh Bhagat
Adds SMC calls for getting DDR size and bank info for TFABOOT. Signed-off-by: Rajesh Bhagat Signed-off-by: Pankit Garg --- Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 84 +++

[U-Boot] [PATCH v4 22/27] armv8: ls1043ardb: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
TFABOOT support includes: - ls1043ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN and QE address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg Signed-off-by: Vinitha V Pillai Signed-off-by:

[U-Boot] [PATCH v4 07/27] drivers: ifc: dynamic chipselect mapping support

2018-10-12 Thread Rajesh Bhagat
From: Pankit Garg IFC driver changes to implement the chipselect mappings at run time. Defines init_early_memctl_regs and init_final_memctl_regs with chipselect dynamic mapping for nor and nand boot. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v4: None Change in v3:

[U-Boot] [PATCH v4 10/27] armv8: layerscape: remove EL3 specific erratas for TFABOOT

2018-10-12 Thread Rajesh Bhagat
Removes EL3 specific erratas for TFABOOT, And now taken care in TFA. ARM_ERRATA_855873, SYS_FSL_ERRATUM_A008850, SYS_FSL_ERRATUM_A008511, SYS_FSL_ERRATUM_A008336, SYS_FSL_ERRATUM_A009663, SYS_FSL_ERRATUM_A009803 SYS_FSL_ERRATUM_A009942, SYS_FSL_ERRATUM_A010165 Signed-off-by: Rajesh Bhagat ---

[U-Boot] [PATCH v4 13/27] armv8: layerscape: skip OCRAM init for TFABOOT

2018-10-12 Thread Rajesh Bhagat
OCRAM initialization is performed by TFA, Hence skipped from u-boot. Signed-off-by: Ruchika Gupta --- Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v4 03/27] env: sf: define API to override sf environment address

2018-10-12 Thread Rajesh Bhagat
Defines env_sf_get_env_addr API to override sf environment address, required to support multiple environment. Signed-off-by: Rajesh Bhagat --- Change in v4: None Change in v3: None Change in v2: None env/sf.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/env/sf.c

[U-Boot] [PATCH v4 11/27] armv8: fsl-layerscape: bootcmd identification for TFABOOT

2018-10-12 Thread Rajesh Bhagat
From: Pankit Garg Adds bootcmd identificaton on basis on boot source, valid in TFABOOT configuration. Signed-off-by: Rajesh Bhagat Signed-off-by: Pankit Garg --- Change in v4: None Change in v3: - Merged secure boot bootcmd changes Change in v2: None

[U-Boot] [PATCH v4 02/27] env: allow flash and nand env driver to compile together

2018-10-12 Thread Rajesh Bhagat
Define env_ptr as static in flash and nand env driver to allow these to compile together. Signed-off-by: Rajesh Bhagat --- Change in v4: None Change in v3: - Merged env nand specific patches to remove compilation warning Change in v2: None env/flash.c | 4 ++-- env/nand.c

[U-Boot] [PATCH v4 04/27] driver/ifc: replace __ilog2 with LOG2 macro

2018-10-12 Thread Rajesh Bhagat
Replaces __ilog2 function call with LOG2 macro, required to use macros in global variables. Also, corrects the value passed in LOG2 for some PowerPC platforms. Minimum value that can be configured is is 64K for IFC IP. Signed-off-by: Pankit Garg Signed-off-by: Rajesh Bhagat --- Change in v4:

[U-Boot] [PATCH v4 01/27] move data structure out of cpu.h

2018-10-12 Thread Rajesh Bhagat
From: York Sun Move static definitions to cpu.c file, as it doesn't allow the cpu.h file to be included in multiple c files. Signed-off-by: York Sun --- Change in v4: None Change in v3: None Change in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 297 +

[U-Boot] [PATCH v4 00/27] TF-A Boot support for NXP Chassis 2 platforms

2018-10-12 Thread Rajesh Bhagat
Includes changes in u-boot framework to support TF-A for NXP Chassis 2 platforms. A new defconfig is added namely ls*_tfa_defconfig which will be used for all boot sources when TF-A is used.

[U-Boot] [PATCH] ldpaa_eth.c: Fix warning when PHYLIB is not enabled

2018-10-12 Thread Tom Rini
We need to #ifdef some variables to avoid warning about them being unused. Fixes: 1a048cd65645 ("driver: net: fsl-mc: Add support of multiple phys for dpmac") Signed-off-by: Tom Rini --- drivers/net/ldpaa_eth/ldpaa_eth.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH] armv8: ls1088ardb_pb: Add support for board detection

2018-10-12 Thread Pramod Kumar
ls1088ardb-pb and ls1088ardb both boards are ls1088a based soc, board type detection is dynamic at boot time Signed-off-by: Pramod Kumar --- board/freescale/ls1088a/ls1088a.c | 27 +-- include/configs/ls1088a_common.h | 3 ++- 2 files changed, 27 insertions(+), 3

Re: [U-Boot] [PATCH v4 12/17] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-10-12 Thread Stefan Roese
Hi! I just tested the latest U-Boot version on one of my x86 platforms (Baytrail theadorable-x86-dfi-bt700_defconfig). Unfortunately this patch break the board port, resulting in this output: U-Boot 2018.11-rc1-00268-g1f7888b626 (Oct 12 2018 - 15:23:52 +0200) initcall sequence fff5aa40 failed

Re: [U-Boot] [RESEND PATCH v3 25/26] armv8: ls1012aqds: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
> -Original Message- > From: York Sun > Sent: Wednesday, October 10, 2018 1:20 AM > To: Rajesh Bhagat ; u-boot@lists.denx.de > Cc: Prabhakar Kushwaha ; Vinitha V Pillai > ; Pankit Garg > Subject: Re: [RESEND PATCH v3 25/26] armv8: ls1012aqds: Add TFABOOT > support > > On 10/09/2018

Re: [U-Boot] [RESEND PATCH v3 24/26] armv8: ls1012ardb: Add TFABOOT support

2018-10-12 Thread Rajesh Bhagat
> -Original Message- > From: York Sun > Sent: Wednesday, October 10, 2018 1:19 AM > To: Rajesh Bhagat ; u-boot@lists.denx.de > Cc: Prabhakar Kushwaha ; Vinitha V Pillai > ; Pankit Garg > Subject: Re: [RESEND PATCH v3 24/26] armv8: ls1012ardb: Add TFABOOT > support > > On 10/09/2018

[U-Boot] Please pull ARC changes

2018-10-12 Thread Alexey Brodkin
Hi Tom, The following changes since commit 3d5ced9e22d32112a20f9dc0f5fb1f22ef088079: Merge tag 'dm-9oct18' of git://git.denx.de/u-boot-dm (2018-10-10 13:35:17 -0400) are available in the Git repository at: git://git.denx.de/u-boot-arc.git tags/arc-more-updates-for-2018.11-rc2 for you to

[U-Boot] u-boot support for iMote2

2018-10-12 Thread Santi Pagola
From 83f7ae49425f53861420ecb5576c9117d1ec2c0f Mon Sep 17 00:00:00 2001 From: Santi Pagola Date: Thu, 11 Oct 2018 08:59:25 +0200 Subject: [PATCH] add u-boot support for imote2 board --- arch/arm/Kconfig | 5 + arch/arm/cpu/pxa/pxa2xx.c | 2 +-

Re: [U-Boot] [U-Boot, 01/10] rockchip: enable DEBUG_UART_BOARD_INIT by default

2018-10-12 Thread Philipp Tomsich
Kever, Did I miss the rebased series? Also note that next is not current at the moment (I haven’t started on next yet), so best to rebase onto the Tom’s master. Thanks, Philipp. > On 30.08.2018, at 03:04, Kever Yang wrote: > > Philipp, > > Sure, I can do it. > > > Thanks, > - Kever > On

[U-Boot] [PATCH] armv8: ls1012afrwy: update of env board variables

2018-10-12 Thread Pramod Kumar
ls1012afrwy and ls1012afrdm both boards are variant of ls1012a based SoC, by default board and board_name uboot env variables are set as ls1012afrdm. whenever board is detected as ls1012afrwy, uboot env variables are updated to ls1012afrwy if it set as other than ls1012afrwy Signed-off-by: Pramod

Re: [U-Boot] [PATCH v3 3/9] dm: uclass: Add uclass_foreach_dev_probe

2018-10-12 Thread Bin Meng
Hi Patrice, On Fri, Oct 12, 2018 at 3:51 PM Patrice CHOTARD wrote: > > Hi Bin > > On 10/11/2018 11:06 AM, Bin Meng wrote: > > Hi Patrice, > > > > On Tue, Oct 9, 2018 at 9:41 PM Patrice Chotard > > wrote: > >> > >> Add uclass_foreach_dev_probe() which iterates through > >> devices of a given

[U-Boot] [PATCH 1/1] common: command: fix typo

2018-10-12 Thread Heinrich Schuchardt
%s/CMD_RET_SUCCESX/CMD_RET_SUCCESS/g Signed-off-by: Heinrich Schuchardt --- include/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/command.h b/include/command.h index 5b1577f3b4..200c7a5e9f 100644 --- a/include/command.h +++ b/include/command.h @@ -67,7

[U-Boot] [PATCH] ls1088a: Move CONFIG_FSL_QSPI to defconfig

2018-10-12 Thread Ashish Kumar
Signed-off-by: Rajat Srivastava Signed-off-by: Ashish Kumar --- configs/ls1088aqds_qspi_SECURE_BOOT_defconfig| 1 + configs/ls1088aqds_qspi_defconfig| 1 + configs/ls1088aqds_sdcard_qspi_defconfig | 1 + configs/ls1088ardb_qspi_SECURE_BOOT_defconfig

Re: [U-Boot] [PATCH v3 3/9] dm: uclass: Add uclass_foreach_dev_probe

2018-10-12 Thread Patrice CHOTARD
Hi Bin On 10/11/2018 11:06 AM, Bin Meng wrote: > Hi Patrice, > > On Tue, Oct 9, 2018 at 9:41 PM Patrice Chotard wrote: >> >> Add uclass_foreach_dev_probe() which iterates through >> devices of a given uclass. Devices are probed if necessary >> and are ready to use. >> >> Signed-off-by: Patrice

Re: [U-Boot] [PATCH v1 06/19] configs: MediaTek: add MT7629 reference board support

2018-10-12 Thread Ryder Lee
On Thu, 2018-10-11 at 10:10 -0400, Tom Rini wrote: > On Tue, Oct 09, 2018 at 11:54:06AM +0800, Ryder Lee wrote: > > > This patch adds defconfig for the MT7629 reference board. > > > > Signed-off-by: Ryder Lee > > --- > > configs/mt7629_rfb_defconfig | 72 > >

Re: [U-Boot] [PATCH v1 04/19] arm: MediaTek: add basic support for MT7629 boards

2018-10-12 Thread Ryder Lee
On Thu, 2018-10-11 at 10:10 -0400, Tom Rini wrote: > On Tue, Oct 09, 2018 at 11:54:04AM +0800, Ryder Lee wrote: > > > This adds a general board file based on MT7629 SoCs from MediaTek. > > > > Apart from the generic parts (cpu) we add some low level init codes > > and initialize the early

[U-Boot] [PATCH v2 17/18] spi: mtk_qspi: add qspi driver for MT7629 SoC

2018-10-12 Thread Ryder Lee
From: Guochun Mao This patch adds MT7629 qspi driver for accessing SPI NOR flash. Cc: Jagan Teki Signed-off-by: Guochun Mao --- change since v2: - Drop flash commands in the driver. --- drivers/spi/Kconfig| 7 + drivers/spi/Makefile | 1 + drivers/spi/mtk_qspi.c | 359

[U-Boot] [PATCH v2 07/18] clk: MediaTek: add clock driver for MT7623 SoC.

2018-10-12 Thread Ryder Lee
This patch adds a driver for MT7623 clock blocks. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7623.c | 870 ++ 2 files changed, 871 insertions(+) create mode 100644

[U-Boot] [PATCH v2 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-10-12 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile |

[U-Boot] [PATCH v2 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-10-12 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/mach-mediatek/Kconfig

[U-Boot] [PATCH v2 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-10-12 Thread Ryder Lee
This adds a general board file based on MT7629 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. Signed-off-by: Ryder Lee Signed-off-by: Weijie Gao --- arch/arm/Kconfig | 14 +++

[U-Boot] [PATCH v2 02/18] arm: dts: MediaTek: add device tree for MT7629

2018-10-12 Thread Ryder Lee
This patch adds MT7629 device tree and the includes it needs. Signed-off-by: Ryder Lee --- arch/arm/dts/Makefile| 3 + arch/arm/dts/mt7629-rfb.dts | 71 + arch/arm/dts/mt7629.dtsi | 244 +++

[U-Boot] [PATCH v2 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-10-12 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629.c | 766 + 3 files changed, 774

[U-Boot] [PATCH v2 16/18] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC

2018-10-12 Thread Ryder Lee
From: Weijie Gao This patch adds MT7623 host controller driver for accessing SD/MMC. Cc: Jaehoon Chung Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/mmc/Kconfig |9 + drivers/mmc/Makefile |1 + drivers/mmc/mtk-sd.c | 1331

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

2018-10-12 Thread Ryder Lee
This patch adds an extra operation in ns16550.c to suuport MediaTek SoCs as we have a highspeed register which influences the calcualtion of the divisor. Note that we don't support the baudrate greater than 115200 currently. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger ---

[U-Boot] [PATCH v2 18/18] MAINTAINERS: add an entry for MediaTek

2018-10-12 Thread Ryder Lee
This patch adds an entry for MediaTek. Signed-off-by: Ryder Lee --- MAINTAINERS | 18 ++ 1 file changed, 18 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ace7d9a..c8b7ecb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -157,6 +157,24 @@ T: git

[U-Boot] [PATCH v2 13/18] power domain: MediaTek: add power domain driver for MT7623 SoC

2018-10-12 Thread Ryder Lee
This adds power domain (scpsys) support for MT7623 SoC. Signed-off-by: Ryder Lee --- drivers/power/domain/mtk-power-domain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c

[U-Boot] [PATCH v2 08/18] timer: MediaTek: add timer driver for MediaTek SoCs

2018-10-12 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1 + drivers/timer/mtk_timer.c | 85 +++

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

2018-10-12 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee --- Makefile | 22 ++ common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 11 + tools/Makefile | 1 + tools/mtkimage.c | 749

[U-Boot] [PATCH v2 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-10-12 Thread Ryder Lee
Hello, This is the new round to add U-Boot support for MediaTek SoCs - MT7623n & MT7629, and the most of the drivers are based on mainline Linux, such as clock, timer, mmc, pinctrl, watchdog, power domain and device tree. The following are the major differences between mainline Linux and

[U-Boot] [PATCH v2 03/18] arm: dts: MediaTek: add device tree for MT7623

2018-10-12 Thread Ryder Lee
This adds device tree for MT7623 development board - Bananapi R2 Detailed hardware information for BPI-R2 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/dts/Makefile| 1 +

[U-Boot] [PATCH v2 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-10-12 Thread Ryder Lee
This patch adds pinctrl support for MT7629 SoC. The IO core found on the SoC has the registers for pinctrl, pinconf and gpio mixed up in the same register range. Hence the driver also implements the gpio functionality through UCLASS_GPIO. This also creates a common file as there might be other

[U-Boot] [PATCH v2 12/18] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-10-12 Thread Ryder Lee
This adds a power domain driver for the Mediatek SCPSYS unit. The System Control Processor System (SCPSYS) has several power management related tasks in the system. The tasks include thermal measurement, dynamic voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control. The

[U-Boot] [PATCH v2 09/18] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-10-12 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mtk_wdt.c | 135 + 3 files

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

2018-10-12 Thread Ryder Lee
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 reuse it in future. - Specific SoC part: the group of structures used to hold the hardware configuration for each SoC. We take

Re: [U-Boot] [PATCH v2 2/8] cpu: mpc83xx: Remove unnecessary characters in the description string

2018-10-12 Thread Mario Six
On Thu, Oct 11, 2018 at 4:02 AM Simon Glass wrote: > > On 7 October 2018 at 04:01, Bin Meng wrote: > > The description string should not contain unnecessary characters, > > like the ending '\n' or the leading 'CPU:'. > > > > Signed-off-by: Bin Meng > > --- > > > > Changes in v2: None > > > >

Re: [U-Boot] [PATCH 00/48] mpc83xx: Kconfig migrations

2018-10-12 Thread Mario Six
Hi York, On Fri, Sep 28, 2018 at 4:38 PM York Sun wrote: > > On 09/28/2018 02:53 AM, Mario Six wrote: > > This series converts the first bunch of legacy configuration options to > > the Kconfig framework. > > > > Functionality is preserved where possible, and setting configuration > > options is

Re: [U-Boot] [PATCH 01/48] mpc83xx: Introduce ARCH_MPC830*

2018-10-12 Thread Mario Six
Hi Bin, On Fri, Sep 28, 2018 at 1:43 PM Bin Meng wrote: > > Hi Mario, > > On Fri, Sep 28, 2018 at 5:59 PM Mario Six wrote: > > > > Replace CONFIG_MPC830* with proper CONFIG_ARCH_MPC830* Kconfig options. > > > > Signed-off-by: Mario Six > > --- > > arch/powerpc/cpu/mpc83xx/Kconfig |

Re: [U-Boot] [PATCH v3 03/13] net: ftgmac100: convert to driver model

2018-10-12 Thread Cédric Le Goater
On 10/12/18 1:15 AM, Joel Stanley wrote: > On Wed, 10 Oct 2018 at 22:12, Cédric Le Goater wrote: >> >> The driver is based on the previous one and the code is only adapted >> to fit the driver model. The support for the Faraday ftgmac100 >> controller is the same with MAC and MDIO bus support for

[U-Boot] Pull request: u-boot-sunxi/master

2018-10-12 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit 0a60a81ba3860946551cb79aa6486aa076e357f3: Kconfig: sandbox: enable cmd_avb and dependencies (2018-10-07 13:34:19 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sunxi.git sunxi for you

[U-Boot] Pull request: u-boot-spi/master

2018-10-12 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit 0a60a81ba3860946551cb79aa6486aa076e357f3: Kconfig: sandbox: enable cmd_avb and dependencies (2018-10-07 13:34:19 -0400) are available in the Git repository at: git://git.denx.de/u-boot-spi.git master for you

Re: [U-Boot] i2c: Fix pca953x endianess issue, commit daa75b34828d45b7c1d63009188d45f4a32d06ba

2018-10-12 Thread Mario Six
Hi Jocke, On Thu, Oct 11, 2018 at 5:48 PM Joakim Tjernlund wrote: > > On Thu, 2018-10-11 at 16:11 +0200, Dirk Eibach wrote: > > > > Hello, > > > > we have a 16 bit value here, so we have to define whether bit0(containin > > the information for IO0.0) is in the first or the second byte. Since the

Re: [U-Boot] [PATCH] driver/mtd: Add MICRON manufacturer id in spi framework

2018-10-12 Thread Jagan Teki
On Tue, Sep 25, 2018 at 2:13 PM Ashish Kumar wrote: >> Signed-off-by: Suresh Gupta > Signed-off-by: Yogesh Gaur > Signed-off-by: Ashish Kumar > --- Applied to u-boot-spi/master ___ U-Boot mailing list U-Boot@lists.denx.de