Re: [U-Boot] [PATCH 2/2] armv8: add asserts of sizes to u-boot-spl.lds

2017-01-16 Thread Masahiro Yamada
2016-12-26 23:20 GMT+09:00 Oded Gabbay : > This patch copies from arm u-boot-spl.lds some asserts that check that the > size of the SPL image and BSS doesn't violate their max size. > > Signed-off-by: Oded Gabbay > Cc: Albert Aribaud > --- > arch/arm/cpu/armv8/u-boot-spl.lds | 19 +++

[U-Boot] [PATCH v2 1/2] powerpc: mpc83xx: Minimize r1 modification

2017-01-16 Thread Mario Six
The r1 register is modified several times during the cache-ram setup of the MPC83xx SoCs. Since this SP modification confuses debuggers, we use a general purpose register to compute the new stack pointer value, and only set the SP once after all computations are done. Signed-off-by: Mario Six --

[U-Boot] [PATCH v2 2/2] powerpc: mpc83xx: Enable pre-relocation malloc

2017-01-16 Thread Mario Six
To enable DM on MPC83xx, we need pre-relocation malloc, which is implemented in this patch. Signed-off-by: Mario Six --- Changes in v2: * Switched to r3 to hold SP modifications (as suggested by Joakim Tjernlund) --- arch/powerpc/cpu/mpc83xx/cpu_init.c| 3 +-- arch/powerpc/cpu/mpc83xx/sp

Re: [U-Boot] [PATCH] spl: don't use %.*s with CONFIG_USE_TINY_PRINTF

2017-01-16 Thread Masahiro Yamada
2016-12-28 16:36 GMT+09:00 Oded Gabbay : > In the tiny-printf implementation, there is no support for %.*s. This patch > checks if CONFIG_USE_TINY_PRINTF is defined and if so, prints a different > debug statement which doesn't use %.*s > > Signed-off-by: Oded Gabbay > Cc: Simon Glass > --- > com

Re: [U-Boot] [PATCH] spl: don't use %#l with CONFIG_USE_TINY_PRINTF

2017-01-16 Thread Masahiro Yamada
2016-12-28 17:12 GMT+09:00 Oded Gabbay : > In the tiny-printf implementation, there is no support for %# and/or %l. This > patch checks if CONFIG_USE_TINY_PRINTF is defined and if so, prints a > different debug statement which doesn't use %#l > > Signed-off-by: Oded Gabbay > Cc: Simon Glass > ---

Re: [U-Boot] [PATCH] powerpc: mpc83xx: Enable pre-relocation malloc

2017-01-16 Thread Mario Six
I'll take a look at the places where r1 is modified and send a v2. On Mon, Jan 16, 2017 at 11:00 PM, york sun wrote: > On 01/06/2017 08:32 AM, Joakim Tjernlund wrote: >> On Fri, 2017-01-06 at 14:56 +0100, Mario Six wrote: >>> To enable DM on MPC83xx, we need pre-relocation malloc, which is >>> im

[U-Boot] [v4, 1/3] mmc: fsl_esdhc: move 'status' property fixup into a weak function

2017-01-16 Thread Yangbo Lu
Move fdt fixup of 'status' property into a weak function. This allows board to define 'status' fdt fixup by themselves. Signed-off-by: Yangbo Lu --- Changes for v2: - None Changes for v3: - None Changes for v4: - None --- drivers/mmc/fsl_esdhc.c | 21 ++---

Re: [U-Boot] [PATCH v3 62/62] x86: link: Add a config for 64-bit U-Boot

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > Add a new link config which uses 64-bit U-Boot. This is not fully > functional but is it a start. Missing features: > > - SDRAM sizing > - Booting linux > - EFI support > - SCSI device init > (and others) > > Signed-off-by: Simon Glass > ---

Re: [U-Boot] [PATCH v3 60/62] x86: link: Add build options for SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > If SPL is used we want to use the generic SPL framework and boot from SPI > via a board-specific means. Add these options to the board config file. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Remove duplicate CONFIG_VIDEO_IVYB

Re: [U-Boot] [PATCH v2 52/63] x86: Move pirq_routing_table to global_data

2017-01-16 Thread Bin Meng
Hi Simon, On Mon, Jan 16, 2017 at 10:08 PM, Simon Glass wrote: > Hi Bin, > > On 14 January 2017 at 06:32, Bin Meng wrote: >> Hi Simon, >> >> On Sun, Nov 20, 2016 at 4:25 AM, Simon Glass wrote: >>> To avoid using BSS in SPL before SDRAM is set up, move this field to >>> global_data. >>> >> >> Wh

Re: [U-Boot] [PATCH v3 50/62] x86: Support jumping from SPL to U-Boot

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > Add a rough function to handle jumping from 32-bit SPL to 64-bit U-Boot. > This still needs work to clean it up. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/cal

Re: [U-Boot] [PATCH v3 47/62] x86: Don't build 32-bit efi files on x86_64

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > These cannot be built in this mode, so drop them. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/lib/Makefile | 4 > 1 file changed, 4 insertions(+) > applied to

Re: [U-Boot] [PATCH v3 46/62] x86: Don't build cpu files which are not supported on 64-bit

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > Some files cannot be built with 64-bit and mostly don't make sense in that > context. Disable them. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/Makefile | 9 +++

Re: [U-Boot] [PATCH v3 48/62] x86: Don't try to boot Linux from SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > Booting into linux from 64-bit U-Boot is not yet supported. Avoid bringing > in the bootm code until it is implemented. > > Of course 32-bit U-Boot still supports booting into both 32- and 64-bit > kernels. > > Signed-off-by: Simon Glass > Re

Re: [U-Boot] [PATCH v3 49/62] x86: Drop interrupt support in 64-bit mode

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > This is not currently supported, so drop the code. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/lib/interrupts.c | 5 + > 1 file changed, 5 insertions(+) > appl

[U-Boot] [U-boot] [PATCH 2/2] rockchip: firefly: configs: use spl back to brom

2017-01-16 Thread Jacob Chen
Keep it same with other boards otherwise i have to write special script for it.. Signed-off-by: Jacob Chen --- configs/firefly-rk3288_defconfig | 2 +- include/configs/firefly-rk3288.h | 5 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/configs/firefly-rk3288_defconfig b/co

[U-Boot] [U-boot] [PATCH 1/2] rockchip: configs: move env offset to common header

2017-01-16 Thread Jacob Chen
To reduce redundant code. Signed-off-by: Jacob Chen --- include/configs/evb_rk3288.h | 14 -- include/configs/fennec_rk3288.h | 14 -- include/configs/kylin_rk3036.h| 14 -- include/configs/miniarm_rk3288.h | 14 -- include/configs/pop

Re: [U-Boot] [PATCH v3 44/62] x86: Don't try to run the VGA BIOS in 64-bit mode

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > This is not supported, so disable it for now. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/lib/Makefile | 2 ++ > drivers/pci/pci_rom.c | 2 +- > 2 files changed, 3

Re: [U-Boot] [PATCH v3 43/62] x86: ivybridge: Provide a dummy SDRAM init for 64-bit

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 12:04 PM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: >> We don't support SDRAM init in 64-bit mode since it is essentially >> impossible to get into that mode before SDRAM set up. Provide dummy functions >> for now. At some point we will need to

Re: [U-Boot] [PATCH v3 42/62] x86: ivybridge: Skip SATA init in SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > This doesn't work at present. Disable it for now. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: > - Fix 'skipt' typo in the subject > > Changes in v2: None > > arch/x86/cpu/ivybridge/Makefile | 2 ++ > 1 fi

Re: [U-Boot] [PATCH v3 41/62] x86: Fix up type sizes for 64-bit

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 12:03 PM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: >> Adjust types as needed to support 64-bit compilation. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: None >> Changes in v2: None >> >> arch/x86/include/asm/posix_types.h | 5

Re: [U-Boot] [PATCH v3 45/62] x86: Don't build call64 and setjmp on 64-bit

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 12:04 PM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: >> These are currently not supported. Calling 64-bit code from 64-bit U-Boot is >> much simpler, so this code is not needed. setjmp() is not yet implemented for >> 64-bit. >> >> Signed-off-by:

Re: [U-Boot] [PATCH v3 45/62] x86: Don't build call64 and setjmp on 64-bit

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > These are currently not supported. Calling 64-bit code from 64-bit U-Boot is > much simpler, so this code is not needed. setjmp() is not yet implemented for > 64-bit. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Add a TODO indi

Re: [U-Boot] [PATCH v3 43/62] x86: ivybridge: Provide a dummy SDRAM init for 64-bit

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > We don't support SDRAM init in 64-bit mode since it is essentially > impossible to get into that mode before SDRAM set up. Provide dummy functions > for now. At some point we will need to pass the SDRAM parameters through from > SPL. > > Signe

Re: [U-Boot] [PATCH v3 41/62] x86: Fix up type sizes for 64-bit

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > Adjust types as needed to support 64-bit compilation. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/include/asm/posix_types.h | 5 + > arch/x86/include/asm/types.h | 5 + > 2 fi

Re: [U-Boot] [PATCH v3 36/62] x86: Add a link script for 64-bit x86

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > This needs a different image format from 32-bit x86, so add a new link > script. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/config.mk | 6 > arch/x86

Re: [U-Boot] [PATCH v3 34/62] x86: Support global_data on x86_64

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 11:26 AM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: >> At present this is just an ordinary variable. We may consider making it a >> fixed register in the future. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: >> - Add a TODO to l

Re: [U-Boot] [PATCH v3 35/62] x86: Fix up CONFIG_X86_64 check

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > When SPL and U-Boot proper have different settings for this flag, we need to > use the correct one. Fix this up in the interrupt code. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None

Re: [U-Boot] [PATCH v3 40/62] x86: Drop flag_is_changable() on x86_64

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > This doesn't build at present and is not used in a 64-bit build. Disable it > for now. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/include/asm/cpu.h | 3 +++ > 1 fi

Re: [U-Boot] [PATCH v3 38/62] x86: Add SPL build rules for start-up code

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > When SPL is used we need to build the 16-bit start-up code. Add Makefile > rules to handle this. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > scripts/Makefile.spl | 9 +++

Re: [U-Boot] [PATCH v3 39/62] x86: Fix up byteorder.h for x86_64

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > Remove the very old x86 code and add support for 64-bit. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/include/asm/byteorder.h | 17 + > 1 file change

Re: [U-Boot] [PATCH v3 37/62] x86: Add a link script for SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:04 PM, Simon Glass wrote: > If SPL is used it is always build in 32-bit mode. Add a link script to > handle the correct placement of the sections. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/c

Re: [U-Boot] [PATCH v3 33/62] x86: Add cpu code for x86_64

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > There is not much needed at present, but set up a separate directory to put > this code as it grows. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: > - Drop blank line at end of arch/x86/cpu/x86_64/interrupts

Re: [U-Boot] [PATCH v3 31/62] x86: Add an SPL implementation

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 11:24 AM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: >> SPL needs to set up the machine ready for loading 64-bit U-Boot and jumping >> to it. Call the existing init routines in order to accomplish this. >> >> Signed-off-by: Simon Glass >> --- >

Re: [U-Boot] [PATCH v3 32/62] x86: Move the i386 code into its own directory

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Much of the cpu and interrupt code cannot be compiled on 64-bit x86. Move it > into its own directory and build it only in 32-bit mode. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: Non

[U-Boot] [v4, 3/3] armv8: ls1012a: define esdhc_status_fixup for RDB board

2017-01-16 Thread Yangbo Lu
On LS1012ARDB board, three dual 1:4 mux/demux devices drive the SDHC2 signals to eMMC, SDIO wifi, SPI and Ardiuno shield. Only when we select eMMC and SDIO wifi, the SDHC2 could be used. Otherwise, the command inhibit bits of eSDHC2_PRSSTAT register will never release. This would cause below contin

Re: [U-Boot] [PATCH v3 34/62] x86: Support global_data on x86_64

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > At present this is just an ordinary variable. We may consider making it a > fixed register in the future. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Add a TODO to look at using a fixed register for gd on x86_64 > - Expand the

[U-Boot] [PATCH 2/2] ARM: OMAP5+: Remove unsed dpll structures

2017-01-16 Thread Lokesh Vutla
Latest gcc compile strted complaining about defined structure definition that are not used. Remove the unused sturctures. Reported-by: Dan Murphy Signed-off-by: Lokesh Vutla --- arch/arm/mach-omap2/omap5/hw_data.c | 59 +++-- 1 file changed, 4 insertions(+), 55 d

[U-Boot] [PATCH 1/2] ARM: OMAP4: Fix compiler warning

2017-01-16 Thread Lokesh Vutla
Latest gcc 6.2 compiler is throwing the below warning for omap4_panda_defconfig arch/arm/mach-omap2/omap4/hw_data.c:136:3: warning: 'abe_dpll_params_sysclk_196608khz' defined but not used [-Wunused-const-variable=] abe_dpll_params_sysclk_196608khz[NUM_SYS_CLKS] = { Fix this by guarding it wit

Re: [U-Boot] [PATCH v3 31/62] x86: Add an SPL implementation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > SPL needs to set up the machine ready for loading 64-bit U-Boot and jumping > to it. Call the existing init routines in order to accomplish this. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Update copyright year > - Drop dupli

[U-Boot] [PATCH] drivers: usb: gadget: ether: Fix compiler warning

2017-01-16 Thread Lokesh Vutla
Latest gcc 6.2 compiler is throwing the below warning for am335x_baltos_defconfig drivers/usb/gadget/ether.c:501:17: warning: 'mdlm_detail_desc' defined but not used [-Wunused-const-variable=] static const u8 mdlm_detail_desc[] = { Guard mdlm_detail_desc with CONFIG_USB_ETH_SUBSET to avoid the

Re: [U-Boot] [PATCH v2] armv8: aarch64: Fix the warning about x1-x3 nonzero issue

2017-01-16 Thread Alison Wang
> On 16 January 2017 at 08:34, Alexander Graf wrote: > > > > > > On 16/01/2017 07:16, Alison Wang wrote: > >> > >> For 64-bit kernel, there is a warning about x1-x3 nonzero in > >> violation of boot protocol. To fix this issue, input argument 4 is > >> added for > >> armv8_switch_to_el2 and armv8_

Re: [U-Boot] [PATCH v2] defconfig: Add a config for AM335x High Security EVM

2017-01-16 Thread Lokesh Vutla
On Monday 16 January 2017 10:14 PM, Andrew F. Davis wrote: > Add a new defconfig file for the AM335x High Security EVM. This config > is specific for the case of memory device booting. Memory device booting > is handled separatly from peripheral booting on HS devices as the load > address changes

[U-Boot] [v4, 2/3] armv8: ls1012a: define esdhc_status_fixup for QDS board

2017-01-16 Thread Yangbo Lu
The LS1012AQDS board has a hardware issue. When there is no eMMC adapter card inserted in SDHC2 adapter slot, the command inhibit bits of eSDHC2_PRSSTAT register will never release. This would cause below continious error messages in linux since it uses polling mode to detect card. "mmc1: Controlle

[U-Boot] [u-boot] AR8033 SerDes Test and System Mode Control setting issue

2017-01-16 Thread Ken.Lin
Hi Joe and Mugunthan, We encountered the voltage peak issue while doing the IEEE PHY conformance test, which has to do with the AR8033 register (SetDes Test and System Mode Control) setting in u-boot. In your commit change info, you tried to enable tx clock delay by setting bit 8 to 1 (filling

Re: [U-Boot] [PATCH v3 30/62] x86: Tidy up use of size_t in relocation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Addresses should not be cast to size_t. Use uintptr_t instead. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/lib/relocate.c | 4 ++-- > 1 file changed, 2 insertions(+

Re: [U-Boot] [PATCH v3 29/62] x86: Add support for 64-bit relocation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add a 64-bit relocation function. SPL loads U-Boot into RAM at a fixed > address and runs it. U-Boot then relocates itself to the top of RAM using > this relocation function. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > C

Re: [U-Boot] [PATCH v3 28/62] x86: Refactor relocation to prepare for 64-bit

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 10:33 AM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: >> Move the core relocation code into a separate function so that the checking >> code can be used for 64-bit relocation also. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: >>

Re: [U-Boot] [PATCH v3 26/62] x86: board_r: Set the global data pointer after relocation

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 10:29 AM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: >> Since 'gd' is just a normal variable on 64-bit x86, it is relocated by the >> time we get to board_init_r(). The old 'gd' variable is passed in as >> parameter to board_init_r(), presumably

Re: [U-Boot] [PATCH v3 27/62] x86: Do relocation before clearing BSS

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > The BSS region may overlap with relocations. If we clear BSS we will > overwrite the start of the relocation area. This doesn't matter when running > from SPI flash, since it is read-only. But when relocating 64-bit U-Boot > from one place in

Re: [U-Boot] [PATCH v3 24/62] x86: board_f: Update init sequence for 64-bit startup

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Adjust the code so that 64-bit startup works. Since we don't need to do CAR > changes in U-Boot proper anymore (they are done in SPL) we can simplify the > flow and return normally from board_init_f(). > > Signed-off-by: Simon Glass > Reviewe

Re: [U-Boot] [PATCH v3 25/62] board_f/r: Use static const for the init sequences

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 10:27 AM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: >> These tables should be declared static const. Unfortunately the table in >> board_r is updated on machines with manual relocation. >> >> Update them. >> >> Signed-off-by: Simon Glass >> --

Re: [U-Boot] [PATCH v3 23/62] x86: Add 64-bit start-up code

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 10:25 AM, Bin Meng wrote: > On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: >> Add code to start up U-Boot in 64-bit mode. It is fairly simple since we are >> running from RAM and SPL has done the low-level init. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes

Re: [U-Boot] [PATCH v3 21/62] x86: Use X86_32BIT_INIT instead of X86_RESET_VECTOR

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Use this new option to control the location of 32-bit init. This will allow > us to place this in SPL if needed. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/int

Re: [U-Boot] [PATCH v3 22/62] x86: ivybridge: Allow 32-bit init to move to SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Update the Makefile so that some 32-bit init can be built into SPL rather > than U-Boot proper. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/ivybridge/Makefile |

Re: [U-Boot] [PATCH v3 28/62] x86: Refactor relocation to prepare for 64-bit

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Move the core relocation code into a separate function so that the checking > code can be used for 64-bit relocation also. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Mention the commit ID containing information about the need

Re: [U-Boot] [PATCH v3 26/62] x86: board_r: Set the global data pointer after relocation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Since 'gd' is just a normal variable on 64-bit x86, it is relocated by the > time we get to board_init_r(). The old 'gd' variable is passed in as > parameter to board_init_r(), presumably for this situation. > > Assign it on 64-bit x86 so that

Re: [U-Boot] [PATCH v3 25/62] board_f/r: Use static const for the init sequences

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > These tables should be declared static const. Unfortunately the table in > board_r is updated on machines with manual relocation. > > Update them. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Add new patch to use static const f

[U-Boot] [PATCH v3] armv8: aarch64: Fix the warning about x1-x3 nonzero issue

2017-01-16 Thread Alison Wang
For 64-bit kernel, there is a warning about x1-x3 nonzero in violation of boot protocol. To fix this issue, input argument 4 is added for armv8_switch_to_el2 and armv8_switch_to_el1. The input argument 4 will be set to the right value, such as zero. Signed-off-by: Alison Wang Reviewed-by: Alexand

Re: [U-Boot] [PATCH v3 23/62] x86: Add 64-bit start-up code

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add code to start up U-Boot in 64-bit mode. It is fairly simple since we are > running from RAM and SPL has done the low-level init. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Drop unused headers > - Drop unused board_debug_u

Re: [U-Boot] [PATCH v3 18/62] x86: Add Kconfig options to build 64-bit U-Boot

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add a new CONFIG_X86_64 option which will eventually cause U-Boot to be > built as a 64-bit application, with SPL doing the 16/32-bit init. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: > - Use tab instead o

Re: [U-Boot] [PATCH v3 20/62] x86: Use X86_16BIT_INIT instead of X86_RESET_VECTOR

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Use this new option to control the location of 16-bit init. This will allow > us to place this in SPL if needed. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > Makefile

Re: [U-Boot] [PATCH v3 19/62] x86: Kconfig: Add location options for 16/32-bit init

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > At present all 16/32-bit init is controlled by CONFIG_X86_RESET_VECTOR. If > this is enabled, then U-Boot is the 'first' boot loader and handles execution > from the reset vector through to U-Boot's command prompt. If it is not > enabled then

Re: [U-Boot] [PATCH v3 17/62] x86: lib: Fix types and casts for 64-bit compilation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Fix various compiler warnings in the x86 library code. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Move table-related changes to an earlier patch > > arch/x86/lib/bios.c

Re: [U-Boot] [PATCH v3 16/62] x86: fsp: Fix cast for 64-bit compilation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Fix a cast in get_next_hob() that causes warnings on 64-bit machines. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Fix cast in get_guid_hob_data() also > > arch/x86/include/asm/fs

Re: [U-Boot] [PATCH v3 15/62] x86: dts: Mark serial as needed before relocation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > We almost always need the serial port before relocation, so mark it as such. > This will ensure that it appears in the device tree for SPL, if used. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Chang

Re: [U-Boot] [PATCH v3 13/62] x86: ivybridge: Add more debugging for failures

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add various debug() messages in places where errors occur. This aids with > debugging. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Output error code values in debug() statements >

Re: [U-Boot] [PATCH v3 14/62] x86: ivybridge: Fix types for 64-bit compilation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Fix a few types that causes warnings on 64-bit machines. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Fix cast in bd82x6x_video_probe() also > > arch/x86/cpu/ivybridge/sata.c | 4

Re: [U-Boot] [PATCH v3 11/62] x86: Update mpspec to build on 64-bit machines

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > At present this uses u32 to store an address. We should use unsigned long > and avoid special types in function return values and parameters unless > necessary. This makes the code more portable. > > Signed-off-by: Simon Glass > Reviewed-by:

Re: [U-Boot] [PATCH v3 12/62] x86: ivybridge: Declare global data where it is used

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Some files are missing this declaration. Add it to avoid build errors when > we actually need the declaration. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Drop change to gma.c > >

Re: [U-Boot] [PATCH v3 10/62] x86: Use unsigned long for address in table generation

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > We should use unsigned long rather than u32 for addresses. Update this so > that the table-generation code builds correctly on 64-bit machines. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in

Re: [U-Boot] [PATCH v3 08/62] spl: Allow PCH drivers to be used in SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add an option for building Platorm Controller Hub drivers in SPL. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > common/spl/Kconfig | 9 + > drivers/Makefile | 1 + >

Re: [U-Boot] [PATCH v3 07/62] spl: Allow timer drivers to be used in SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add a new Kconfig option to allow timer drivers to be used in SPL. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > common/spl/Kconfig | 9 + > drivers/Makefile | 1 + >

Re: [U-Boot] [PATCH v3 09/62] spl: Don't create a BSS padding when it is separate

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > When BSS does not immediate follow the SPL image we don't need padding > before the device tree. Remove it in this case. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > scripts/

Re: [U-Boot] [PATCH v3 05/62] spl: Allow PCI drivers to be used in SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add a new Kconfig option to allow PCI drivers to be used in SPL. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > common/spl/Kconfig | 9 + > drivers/Makefile | 1 + >

Re: [U-Boot] [PATCH v3 04/62] spl: Allow CPU drivers to be used in SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add a new Kconfig option to allow CPU drivers to be used in SPL. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > common/spl/Kconfig | 10 ++ > drivers/Makefile | 1 +

Re: [U-Boot] [PATCH v3 06/62] spl: Allow RTC drivers to be used in SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > Add a new Kconfig option to allow RTC drivers to be used in SPL. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: None > > common/spl/Kconfig | 10 ++ > drivers/Makefile | 1 +

Re: [U-Boot] [PATCH v3 02/62] spl: spi: Add a debug message if loading fails

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > This currently fails silently. Add a debug message to aid debugging. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Show the error value in spl_spi_load_image() > > common/spl/spl_s

Re: [U-Boot] [PATCH v3 03/62] spl: Makefile: Define SPL_ earlier

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > This Makefile variable can be used in the architecture's main Makefile but > at present it is not set up until later. Set it just before this Makefile is > included. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in

Re: [U-Boot] [PATCH v3 01/62] console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > CONFIG_CONSOLE_MUX and CONFIG_SYS_CONSOLE_IS_IN_ENV are not applicable > for SPL. Update the console code to use CONFIG_IS_ENABLED(), so that these > options will be inactive in SPL. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > -

Re: [U-Boot] [PATCH v2] armv8: aarch64: Fix the warning about x1-x3 nonzero issue

2017-01-16 Thread Alison Wang
> On 16/01/2017 07:16, Alison Wang wrote: > > For 64-bit kernel, there is a warning about x1-x3 nonzero in > violation > > of boot protocol. To fix this issue, input argument 4 is added for > > armv8_switch_to_el2 and armv8_switch_to_el1. The input argument 4 > will > > be set to the right value, s

Re: [U-Boot] [PATCH v1 1/1] x86: Synchronize list of x86 subarchitectures (update bootparam.h)

2017-01-16 Thread Bin Meng
On Tue, Jan 17, 2017 at 9:46 AM, Bin Meng wrote: > On Mon, Jan 9, 2017 at 4:51 AM, Andy Shevchenko > wrote: >> Basically rename X86_SUBARCH_MRST to X86_SUBARCH_INTEL_MID to be more >> specific. >> >> Signed-off-by: Andy Shevchenko >> --- >> arch/x86/include/asm/bootparam.h | 3 ++- >> 1 file c

Re: [U-Boot] [PATCH v1 1/1] x86: Synchronize list of x86 subarchitectures (update bootparam.h)

2017-01-16 Thread Bin Meng
On Mon, Jan 9, 2017 at 4:51 AM, Andy Shevchenko wrote: > Basically rename X86_SUBARCH_MRST to X86_SUBARCH_INTEL_MID to be more > specific. > > Signed-off-by: Andy Shevchenko > --- > arch/x86/include/asm/bootparam.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Bin Me

Re: [U-Boot] armv8: fix #if around spin-table code in start.S

2017-01-16 Thread Tom Rini
On Mon, Jan 16, 2017 at 10:19:46AM +0900, Masahiro Yamada wrote: > Hi Tom. > > > 2017-01-16 3:29 GMT+09:00 Tom Rini : > > On Tue, Dec 27, 2016 at 11:19:43AM +0200, Oded Gabbay wrote: > > > >> Using CONFIG_IS_ENABLED() doesn't work in SPL. This patch replaces the only > >> occurrence of CONFIG_IS_

Re: [U-Boot] [PATCHv7 1/2] armv8/ls1043a: fixup GIC offset for ls1043a rev1

2017-01-16 Thread york sun
On 01/13/2017 03:27 AM, Zhiqiang Hou wrote: > diff --git a/arch/arm/include/asm/arch-fsl-layerscape/config.h > b/arch/arm/include/asm/arch-fsl-layerscape/config.h > index c50894a..577f00c 100644 > --- a/arch/arm/include/asm/arch-fsl-layerscape/config.h > +++ b/arch/arm/include/asm/arch-fsl-laye

Re: [U-Boot] [PATCH v6 01/13] binman: Introduce binman, a tool for building binary images

2017-01-16 Thread Jörg Krause
Hi, On Fri, 2016-11-25 at 20:15 -0700, Simon Glass wrote: > This adds the basic code for binman, including command parsing, > processing > of entries and generation of images. > > So far no entry types are supported. These will be added in future > commits > as examples of how to add new types. >

Re: [U-Boot] [PATCH] armv8: fsl-layerscape: Fix SECURE_BOOT config

2017-01-16 Thread york sun
On 01/14/2017 09:13 AM, Simon Glass wrote: > On 4 January 2017 at 11:32, York Sun wrote: >> Without a prompt in Kconfig, SECURE_BOOT cannot be selected by >> defconfig. The option was dropped unintentionally when defconfig >> files were cleaned up. Three targets were impacted >> ls1043ardb_SECURE_

Re: [U-Boot] [PATCH] powerpc: mpc83xx: Enable pre-relocation malloc

2017-01-16 Thread york sun
On 01/06/2017 08:32 AM, Joakim Tjernlund wrote: > On Fri, 2017-01-06 at 14:56 +0100, Mario Six wrote: >> To enable DM on MPC83xx, we need pre-relocation malloc, which is >> implemented in this patch. >> > > Would be nice if you could avoid using r1, each time you modify r1 gdb will be > upset/confu

Re: [U-Boot] [PATCH v2] board/t1024rdb: enable board-level reset when issuing reset command

2017-01-16 Thread york sun
On 01/11/2017 09:39 PM, Shengzhou Liu wrote: > As board-specific reset logic, it needs to issue reset signal > via CPLD when issuing 'reset' command in u-boot, this patch > solves the issue of reset command not working on T1024RDB. > > Signed-off-by: Shengzhou Liu > --- > v2: add build condition.

Re: [U-Boot] [PATCH v3 1/3] SECURE_BOOT: Enable chain of trust on LS1046A platform

2017-01-16 Thread york sun
On 01/05/2017 10:32 PM, Sumit Garg wrote: > Define bootscript and its header addresses for QSPI target. Also > define PPA header address to enable PPA validation. > > Signed-off-by: Vinitha Pillai > Signed-off-by: Sumit Garg > --- > > Changes in v3: > Changes in comment style. > > Changes in v2:

Re: [U-Boot] [PATCH][v2] driver: net: fsl-mc: Use aligned address for MC FW load

2017-01-16 Thread york sun
On 01/09/2017 10:22 PM, Priyanka Jain wrote: > Firmware of Management Complex (MC) should be loaded at 512MB aligned > address. So, > -mc_ram_addr address calculation in mc_get_dram_addr() is updated to > fetch aligned address > -calculate_mc_private_ram_params() is removed as it is no longer requ

Re: [U-Boot] ARM - cache and alignment

2017-01-16 Thread Marek Vasut
On 01/16/2017 08:16 PM, Jean-Jacques Hiblot wrote: > > > On 16/01/2017 17:00, Marek Vasut wrote: >> On 01/16/2017 02:29 PM, Jean-Jacques Hiblot wrote: >>> Tom, Marek >> Hi, >> >>> At the moment, whenever an unaligned address is used in cache operations >>> (invalidate_dcache_range, or flush_dcach

Re: [U-Boot] ARM - cache and alignment

2017-01-16 Thread Jean-Jacques Hiblot
On 16/01/2017 17:00, Marek Vasut wrote: On 01/16/2017 02:29 PM, Jean-Jacques Hiblot wrote: Tom, Marek Hi, At the moment, whenever an unaligned address is used in cache operations (invalidate_dcache_range, or flush_dcache_range), the whole request is discarded for am926ejs. for armV7 or arm

Re: [U-Boot] [PATCH v2] splash: fix splash source flags check

2017-01-16 Thread Michael Nazzareno Trimarchi
Hi On 14 Jan 2017 3:54 a.m., "Anatolij Gustschin" wrote: From: "tomas.me...@vaisala.com" SPLASH_STORAGE_RAW is defined as 0, so a check against & will never be true. These flags are never combined so do a check against == instead. Signed-off-by: Tomas Melin Reviewed-by: Tom Rini --- Chan

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

2017-01-16 Thread Anatolij Gustschin
Hi Tom, The following changes since commit a705ebc81b7f91bbd0ef7c634284208342901149: Prepare v2017.01 (2017-01-09 11:57:05 -0500) are available in the git repository at: git://git.denx.de/u-boot-video.git master for you to fetch changes up to 3b593f9030bae149af9261f51933805be506f6b1: sp

Re: [U-Boot] [PATCH v2] splash: fix splash source flags check

2017-01-16 Thread Anatolij Gustschin
On Fri, 13 Jan 2017 20:54:23 +0100 Anatolij Gustschin ag...@denx.de wrote: ... > common/splash_source.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) applied to u-boot-video/master. -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.d

Re: [U-Boot] ARM - cache and alignment

2017-01-16 Thread Marek Vasut
On 01/16/2017 02:29 PM, Jean-Jacques Hiblot wrote: > Tom, Marek Hi, > At the moment, whenever an unaligned address is used in cache operations > (invalidate_dcache_range, or flush_dcache_range), the whole request is > discarded for am926ejs. for armV7 or armV8 only the aligned part is > maintain

[U-Boot] [PATCH RESEND v2 3/4] i2c: i2c-cdns: Implement workaround for hold quirk of the rev 1.0

2017-01-16 Thread Moritz Fischer
Revision 1.0 of this IP has a quirk where if during a long read transfer the transfer_size register will go to 0, the master will send a NACK to the slave prematurely. The way to work around this is to reprogram the transfer_size register mid-transfer when the only the receive fifo is known full, i

[U-Boot] [PATCH RESEND v2 4/4] i2c: i2c-cdns: No need for dedicated probe function

2017-01-16 Thread Moritz Fischer
The generic probe code in dm works, so get rid of the leftover cruft. Signed-off-by: Moritz Fischer Cc: Heiko Schocher Cc: Michal Simek Cc: u-boot@lists.denx.de --- Changes from v1: - None --- drivers/i2c/i2c-cdns.c | 21 - 1 file changed, 21 deletions(-) diff --git a/driv

[U-Boot] [PATCH RESEND v2 2/4] i2c: i2c-cdns: Reorder timeout loop for interrupt waiting

2017-01-16 Thread Moritz Fischer
Reorder the timeout loop such that we first check if the condition is already true, and then call udelay() so if the condition is already true, break early. Reviewed-by: Michal Simek Signed-off-by: Moritz Fischer Cc: Heiko Schocher Cc: Michal Simek Cc: u-boot@lists.denx.de --- Changes from v1:

  1   2   3   >