Re: [U-Boot] [PATCH] mmc: introduce mmc_power_init

2016-10-10 Thread Jaehoon Chung
Hi Peng, On 10/11/2016 03:37 PM, Peng Fan wrote: > Hi Jaehoon, > On Mon, Oct 10, 2016 at 01:19:41PM +0900, Jaehoon Chung wrote: >> Hi Peng, >> >> On 10/08/2016 07:07 PM, Peng Fan wrote: >>> In device tree, there is vmmc-supply property for SD/MMC. >>> Introduce mmc_power_init function to handle vm

Re: [U-Boot] [PATCH] mmc: introduce mmc_power_init

2016-10-10 Thread Peng Fan
Hi Jaehoon, On Mon, Oct 10, 2016 at 01:19:41PM +0900, Jaehoon Chung wrote: >Hi Peng, > >On 10/08/2016 07:07 PM, Peng Fan wrote: >> In device tree, there is vmmc-supply property for SD/MMC. >> Introduce mmc_power_init function to handle vmmc-supply. > >As i know, vqmmc-supply should be optional. Do

[U-Boot] [PATCH V4 8/8] imx: mx6ull_14x14_evk: add plugin defconfig

2016-10-10 Thread Peng Fan
Add defconfig file to use plugin code. Signed-off-by: Peng Fan Cc: Stefano Babic --- V4: None V3: None V2: New configs/mx6ull_14x14_evk_plugin_defconfig | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 configs/mx6ull_14x14_evk_plugin_defconfig d

[U-Boot] [PATCH V4 7/8] imx: mx6ullevk: correct boot device macro

2016-10-10 Thread Peng Fan
Correct boot device macro according to kconfig entry in common/Kconfig Signed-off-by: Peng Fan Cc: Stefano Babic --- V3: None V2: None board/freescale/mx6ullevk/imximage.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescale/mx6ullevk/imximage.cfg b/bo

[U-Boot] [PATCH V4 4/8] imx-common: introduce USE_IMXIMG_PLUGIN Kconfig

2016-10-10 Thread Peng Fan
Introduce USE_IMXIMG_PLUGIN Kconfig Signed-off-by: Peng Fan Cc: Stefano Babic Reviewed-by: Tom Rini --- V4: Typo fix. V3: None V2: New arch/arm/imx-common/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/imx-common/Kconfig b/arch/arm/imx-common/Kconfig index 1

[U-Boot] [PATCH V4 3/8] imx: mx7: Add plugin support

2016-10-10 Thread Peng Fan
Add mx7_plugin.S which calls boot rom setup function, generate the second ivt, and jump back to boot rom. Signed-off-by: Peng Fan Signed-off-by: Ye Li Cc: Stefano Babic Reviewed-by: Tom Rini --- V3: None V2: None arch/arm/include/asm/arch-mx7/mx7_plugin.S | 111 ++

[U-Boot] [PATCH V4 5/8] imx-common: compile plugin code

2016-10-10 Thread Peng Fan
If CONFIG_USE_IMXIMG_PLUGIN is selected, plugin.bin will be generated under board/$(BOARDDIR)/. Signed-off-by: Peng Fan Cc: Stefano Babic Reviewed-by: Tom Rini --- V4: None V3: None V2: New. Make this common to all i.MX6/7, but not duplicated in board makefile. arch/arm/imx-common/Make

[U-Boot] [PATCH V4 6/8] imx: mx6ullevk: support plugin

2016-10-10 Thread Peng Fan
Add plugin code for mx6ullevk. Define CONFIG_USE_IMXIMG_PLUGIN in defconfig file to use plugin code. Signed-off-by: Peng Fan Cc: Stefano Babic --- V3: Update commit log V2: None board/freescale/mx6ullevk/imximage.cfg | 2 +- board/freescale/mx6ullevk/plugin.S | 139 ++

[U-Boot] [PATCH V4 4/8] imx-common: introduce USE_IMXIMG_PLUGIN Kconfig

2016-10-10 Thread Peng Fan
Introduce USE_IMXIMG_PLUGIN Kconfig Signed-off-by: Peng Fan Cc: Stefano Babic Reviewed-by: Tom Rini --- arch/arm/imx-common/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/imx-common/Kconfig b/arch/arm/imx-common/Kconfig index 1b7da5a..fb93981 100644 --- a/arch/arm/

[U-Boot] [PATCH V4 2/8] imx: mx6: Add plugin support

2016-10-10 Thread Peng Fan
Add mx6_plugin.S which calls boot rom setup function, generate the second ivt, and jump back to boot rom. Signed-off-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Utkarsh Gupta Reviewed-by: Tom Rini Acked-by: Utkarsh Gupta --- V3: None V2: None arch/arm/include/asm/arch-mx6/mx6_plugi

[U-Boot] [PATCH V4 1/8] tools: imximage: add plugin support

2016-10-10 Thread Peng Fan
Add plugin support for imximage. Define CONFIG_USE_IMXIMG_PLUGIN in defconfig to enable using plugin. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Eric Nelson Cc: Ye Li Reviewed-by: Tom Rini --- V4: Max 64KB for plugin code. V3: Fix compile error. V2: Drop the CONFIG_USE_PLUGIN, ma

[U-Boot] [PATCH] ls1021a: QSPI: update the node for QSPI support

2016-10-10 Thread Yuan Yao
From: Yuan Yao Add the address value and size value name for QSPI dts node. Signed-off-by: Yuan Yao --- arch/arm/dts/ls1021a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi index 119b1af..37be169 100644 --- a/arch/arm/dts/ls1021a.d

Re: [U-Boot] [PATCH 00/82] x86: Add initial support for 64-bit U-Boot

2016-10-10 Thread Bin Meng
Hi Simon, On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > At present U-Boot runs entirely in 32-bit mode on x86, except for the > initial switch from 16-bit mode. On 64-bit machines it is possible to run > in 64-bit mode. This series starts the process of adding this support. > > The main

[U-Boot] [PATCH] configs: ls2080ardb: Enable DSPI flash support

2016-10-10 Thread Yuan Yao
From: Yuan Yao There is the stmicro DSPI flash on LS12080ARDB. Enable DSPI flash related configure options. Signed-off-by: Yuan Yao --- include/configs/ls2080ardb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h index b93e919..90

Re: [U-Boot] [PATCH 37/82] x86: mrccache: Fix error handling in mrccache_get_region()

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:17 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> This should return normal errors, not device-tree errors. Fix it. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/x86/lib/mrccache.c | 8 +--- >> 1 file changed, 5 insertions(+), 3

Re: [U-Boot] [PATCH 35/82] x86: Drop unused init_helper functions

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:17 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> Drop init_bd_struct_r() which is no-longer used. Also drop the declaration >> for init_func_spi() since this is now handled by generic board init. >> >> Signed-off-by: Simon Glass >> --- >

Re: [U-Boot] [PATCH 32/82] x86: ivybridge: Tidy up enable_clock_gating() for 64-bit

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > Hi Simon, > > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> Fix the hex case and remove unused brackets. Use -0U instead of ~0UL to > > Should be: ~0U Fixed this, and > >> allow compilation on 64-bit machines. >> >> Signed-off-by: Si

Re: [U-Boot] [PATCH 31/82] x86: ivybridge: Fix PCH power setup

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> At present pch_power_options() has the arguments to writel() around the >> wrong way. Fix this and update it to compile on 64-bit machines. >> >> Signed-off-by: Simon Glass >> --- >> >> a

Re: [U-Boot] [PATCH 28/82] x86: Don't export interrupt handlers with x86_64

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> We don't have a way of adjusting these at present so it is best to refuse to >> export these functions. This can be implemented later if the API is required. >> >> Signed-off-by: Simon Glas

Re: [U-Boot] [PATCH 22/82] x86: Correct address casts in interrupt code

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> We should cast an address to unsigned long, not u32. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/x86/cpu/interrupts.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >

Re: [U-Boot] [PATCH 21/82] x86: Correct address casts in cpu code

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> We should cast an address to unsigned long, not u32. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/x86/cpu/cpu.c | 10 -- >> 1 file changed, 4 insertions(+), 6 deletions(-) >

Re: [U-Boot] [PATCH 20/82] x86: Allow interrupts to be disabled in 64-bit mode

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> Update the code to support both 32-bit and 64-bit modes. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/x86/cpu/interrupts.c | 5 - >> 1 file changed, 4 insertions(+), 1 deletion(

Re: [U-Boot] [PATCH 18/82] usb: pci: Fix cast for 64-bit compilation

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> Fix a cast that causes warnings on 64-bit machines. >> >> Signed-off-by: Simon Glass >> --- >> >> drivers/usb/host/ehci-pci.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [U-Boot] [PATCH 27/82] x86: i2c: Fix cast of address to 32-bit value

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> This gives a build warning on 64-bit x86. Fix it. >> >> Signed-off-by: Simon Glass >> --- >> >> drivers/i2c/intel_i2c.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >

Re: [U-Boot] [PATCH 17/82] tpm: Tidy up use of size_t

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:16 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> We should consistently use %z with size_t, and avoid passing a uint32_t as >> a size_t value. Fix these issues to avoid warnings on 64-bit machines. >> >> Signed-off-by: Simon Glass >> ---

Re: [U-Boot] [PATCH 08/82] rtc: Use CONFIG_X86 instead of __I386__

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:15 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> For 64-bit x86, __I386__ should perhaps not be defined. It is not clear from >> the definition, but let's use CONFIG_X86 to be sure. >> >> Signed-off-by: Simon Glass >> --- >> >> drivers/

Re: [U-Boot] [PATCH 04/82] board_f: Drop the extra fdtdec_prepare_fdt()

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:15 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> This is already called earlier, from fdtdec_setup(), so drop this unnecessary >> call from the init sequence. >> >> Signed-off-by: Simon Glass >> --- >> >> common/board_f.c | 3 --- >> 1

Re: [U-Boot] [PATCH 03/82] bios_emulator: Fix cast for 64-bit compilation

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:15 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> Fix a cast that causes warnings on 64-bit machines. >> >> Signed-off-by: Simon Glass >> --- >> >> drivers/bios_emulator/atibios.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [U-Boot] [PATCH 06/82] elf: Add the Elf64_Rela type

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:15 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> Add this so that we can support 64-bit relocation on x86. >> >> Signed-off-by: Simon Glass >> --- >> >> include/elf.h | 6 ++ >> 1 file changed, 6 insertions(+) >> > > Reviewed-by: Bi

Re: [U-Boot] [PATCH 02/82] Add _image_binary_end section declaration

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 11:15 AM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> This is used in some link scripts, so add a declaration for it. >> >> Signed-off-by: Simon Glass >> --- >> >> include/asm-generic/sections.h | 1 + >> 1 file changed, 1 insertion(+) >> >

Re: [U-Boot] [PATCH v5 0/5] net: fec_mxc: Convert to DM

2016-10-10 Thread Jagan Teki
Hi Stefano, On Thu, Oct 6, 2016 at 4:25 PM, Jagan Teki wrote: > From: Jagan Teki > > This series convert fec_mxc to DM and tested both dm and > non-dm code and it is on top of u-boot-imx/master > > Changes for v5: > - Add stub fec calls to minimize the #ifdef's > - Use same func names on eth_ops

Re: [U-Boot] [PATCH v7 00/21] imx6: Add Engicam i.CoreM6 QDL support

2016-10-10 Thread Jagan Teki
Hi Stefano, On Sun, Oct 9, 2016 at 8:15 PM, Jagan Teki wrote: > Hi Stefano, > > On Sat, Oct 8, 2016 at 6:00 PM, Jagan Teki wrote: >> From: Jagan Teki >> >> This series supports Engicam i.CoreM6 QDL modules on top of u-boot-imx/master >> and test on the respective starter kits as well. >> >> Tes

Re: [U-Boot] [PATCH 36/82] x86: lib: Fix types and casts for 64-bit compilation

2016-10-10 Thread Bin Meng
Hi Simon, On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Fix various compiler warnings in the x86 library code. > > Signed-off-by: Simon Glass > --- > > arch/x86/lib/bios.c | 4 ++-- > arch/x86/lib/pinctrl_ich6.c | 2 +- > arch/x86/lib/pirq_routing.c | 4 ++-- > arch/x86/lib/sfi

Re: [U-Boot] [PATCH 37/82] x86: mrccache: Fix error handling in mrccache_get_region()

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > This should return normal errors, not device-tree errors. Fix it. > > Signed-off-by: Simon Glass > --- > > arch/x86/lib/mrccache.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/lib/mrccache.c b/arc

Re: [U-Boot] [PATCH 34/82] x86: fsp: Fix cast for 64-bit compilation

2016-10-10 Thread Bin Meng
Hi Simon, On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Fix a cast in get_next_hob() that causes warnings on 64-bit machines. > > Signed-off-by: Simon Glass > --- > > arch/x86/include/asm/fsp/fsp_hob.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng W

Re: [U-Boot] [PATCH 35/82] x86: Drop unused init_helper functions

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Drop init_bd_struct_r() which is no-longer used. Also drop the declaration > for init_func_spi() since this is now handled by generic board init. > > Signed-off-by: Simon Glass > --- > > arch/x86/include/asm/init_helpers.h | 2 -- > arch/x8

Re: [U-Boot] [PATCH 33/82] x86: dts: Mark serial as needed before relocation

2016-10-10 Thread Bin Meng
Hi Simon, On Mon, Sep 26, 2016 at 11:33 AM, 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 > --- > > arch/x86/dts/serial.dtsi | 1 + > 1 file

Re: [U-Boot] [PATCH 31/82] x86: ivybridge: Fix PCH power setup

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > At present pch_power_options() has the arguments to writel() around the > wrong way. Fix this and update it to compile on 64-bit machines. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/ivybridge/lpc.c | 8 > 1 file changed,

Re: [U-Boot] [PATCH 32/82] x86: ivybridge: Tidy up enable_clock_gating() for 64-bit

2016-10-10 Thread Bin Meng
Hi Simon, On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Fix the hex case and remove unused brackets. Use -0U instead of ~0UL to Should be: ~0U > allow compilation on 64-bit machines. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/ivybridge/lpc.c | 8 > 1 file changed,

Re: [U-Boot] [PATCH 29/82] x86: ivybridge: Add more debugging for failures

2016-10-10 Thread Bin Meng
Hi Simon, On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Add various debug() messages in places where errors occur. This aids with > debugging. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/ivybridge/cpu.c | 4 +++- > arch/x86/cpu/ivybridge/sdram.c | 36 ++

Re: [U-Boot] [PATCH 30/82] x86: ivybridge: Fix types for 64-bit compilation

2016-10-10 Thread Bin Meng
Hi Simon, On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Fix a few types that causes warnings on 64-bit machines. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/ivybridge/gma.c | 2 +- > arch/x86/cpu/ivybridge/sata.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) >

Re: [U-Boot] [PATCH 28/82] x86: Don't export interrupt handlers with x86_64

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > We don't have a way of adjusting these at present so it is best to refuse to > export these functions. This can be implemented later if the API is required. > > Signed-off-by: Simon Glass > --- > > include/_exports.h | 2 +- > 1 file changed

Re: [U-Boot] [PATCH 26/82] x86: ivybridge: Declare global data where it is used

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, 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 > --- > > arch/x86/cpu/ivybridge/bd82x6x.c | 2 ++ > arch/x86/cpu/ivybridge/gma.c | 2 +

Re: [U-Boot] [PATCH 27/82] x86: i2c: Fix cast of address to 32-bit value

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > This gives a build warning on 64-bit x86. Fix it. > > Signed-off-by: Simon Glass > --- > > drivers/i2c/intel_i2c.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > Reviewed-by: Bin Meng __

Re: [U-Boot] [PATCH 22/82] x86: Correct address casts in interrupt code

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > We should cast an address to unsigned long, not u32. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/interrupts.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng ___

Re: [U-Boot] [PATCH 21/82] x86: Correct address casts in cpu code

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > We should cast an address to unsigned long, not u32. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/cpu.c | 10 -- > 1 file changed, 4 insertions(+), 6 deletions(-) > Reviewed-by: Bin Meng ___

Re: [U-Boot] [PATCH 18/82] usb: pci: Fix cast for 64-bit compilation

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Fix a cast that causes warnings on 64-bit machines. > > Signed-off-by: Simon Glass > --- > > drivers/usb/host/ehci-pci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng __

Re: [U-Boot] [PATCH 20/82] x86: Allow interrupts to be disabled in 64-bit mode

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Update the code to support both 32-bit and 64-bit modes. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/interrupts.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > Reviewed-by: Bin Meng ___

Re: [U-Boot] [PATCH 19/82] video: Use ulong for video frame buffer address

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Change this type from int to ulong to avoid warnings on 64-bit machines. > > Signed-off-by: Simon Glass > --- > > include/video_fb.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/video_fb.h b/include/video_

Re: [U-Boot] [PATCH 06/82] elf: Add the Elf64_Rela type

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Add this so that we can support 64-bit relocation on x86. > > Signed-off-by: Simon Glass > --- > > include/elf.h | 6 ++ > 1 file changed, 6 insertions(+) > Reviewed-by: Bin Meng ___ U-Boot m

Re: [U-Boot] [PATCH 17/82] tpm: Tidy up use of size_t

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > We should consistently use %z with size_t, and avoid passing a uint32_t as > a size_t value. Fix these issues to avoid warnings on 64-bit machines. > > Signed-off-by: Simon Glass > --- > > drivers/tpm/tpm_tis_lpc.c | 4 ++-- > 1 file changed

Re: [U-Boot] [PATCH 08/82] rtc: Use CONFIG_X86 instead of __I386__

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > For 64-bit x86, __I386__ should perhaps not be defined. It is not clear from > the definition, but let's use CONFIG_X86 to be sure. > > Signed-off-by: Simon Glass > --- > > drivers/rtc/mc146818.c | 2 +- > 1 file changed, 1 insertion(+), 1 d

Re: [U-Boot] [PATCH 09/82] spl: spi: Add a debug message if loading fails

2016-10-10 Thread Bin Meng
Hi Simon, On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > This currently fails silently. Add a debug message to aid debugging. > > Signed-off-by: Simon Glass > --- > > common/spl/spl_spi.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/common/spl/spl_spi.c b/

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

2016-10-10 Thread Bin Meng
Hi Simon, Typo of CONFIG-CONSOLE_MUX in the commit title. On Mon, Sep 26, 2016 at 11:33 AM, 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.

Re: [U-Boot] [PATCH 02/82] Add _image_binary_end section declaration

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > This is used in some link scripts, so add a declaration for it. > > Signed-off-by: Simon Glass > --- > > include/asm-generic/sections.h | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Bin Meng ___

Re: [U-Boot] [PATCH 03/82] bios_emulator: Fix cast for 64-bit compilation

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > Fix a cast that causes warnings on 64-bit machines. > > Signed-off-by: Simon Glass > --- > > drivers/bios_emulator/atibios.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng __

Re: [U-Boot] [PATCH 04/82] board_f: Drop the extra fdtdec_prepare_fdt()

2016-10-10 Thread Bin Meng
On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: > This is already called earlier, from fdtdec_setup(), so drop this unnecessary > call from the init sequence. > > Signed-off-by: Simon Glass > --- > > common/board_f.c | 3 --- > 1 file changed, 3 deletions(-) > Reviewed-by: Bin Meng __

Re: [U-Boot] [PATCH v2] fs:When 'go' run the program by 'fatload', added the cache flush to prevent cache mismatch.

2016-10-10 Thread yoko
Dear Jim, Thank you very much. I read the Wiki page. I was running to load the standalone application program. CPU is so ARM, there is instruction and data caches. As in the Wiki of example, a program that was loaded with 'loads' command was able to run. However, when I loaded in the same progra

Re: [U-Boot] [PATCH 4/5] sf: Add status register protect for Winbond

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 2:58 AM, George McCollister wrote: > Winbond parts such as W25Q64FV and Spansion parts such as S25FL128S > support two status register protection bits. Implement sr_protect for > Winbond and Spansion devices. > > --- > |

Re: [U-Boot] [PATCH 5/5] sf: Add sr-protect sub-command

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 2:58 AM, George McCollister wrote: > Add an sf sub-command named sr-protect which allows the status register > protection method to be changed. > > Valid settings are software, hardware, power and otp. > > Signed-off-by: George McCollister > --- > cmd/sf.c | 28 ++

Re: [U-Boot] [PATCH 2/5] sf: Add status register protect for STMICRO, SST

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 2:57 AM, George McCollister wrote: > STMICRO parts such as M25PX64 and SST parts such as SST26VF032B support > a single status register protect bit. When set this bit cause writes to > the status register to be blocked when the write protect signal is low. > > Implement sr_

Re: [U-Boot] [PATCH 3/5] sf: Use stm_lock/unlock for Spansion and Winbond

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 2:57 AM, George McCollister wrote: > Spansion parts such as S25FL128S and Winbond parts such as W25Q64FV > support the block protection mechanism implemented as > stm_lock() and stm_unlock(). Use stm_lock() and stm_unlock() for > Spansion and Winbond devices. > > Signed-off

Re: [U-Boot] [PATCH 1/5] sf: Add status register protection mechanism

2016-10-10 Thread Bin Meng
On Tue, Oct 11, 2016 at 2:57 AM, George McCollister wrote: > Many SPI NOR flash devices support status register protection through > one or two status register protection bits. Status register protection > enables protection of block protect and other bits from manipulation. > > So far, four diffe

Re: [U-Boot] build error with CONFIG_DM_PCI disabled in menuconfig

2016-10-10 Thread Bin Meng
On Mon, Oct 10, 2016 at 11:47 PM, Ding, ChiX wrote: > Hi there > I disabled CONFIG_DM_PCI in menuconfig because I have problem detecting AHCI > SCSI controller on X86 board > with CONFIG_DM_PCI enabled and the older code in drivers/pci/pci.c works for > me in the previous U-boot version. > Then

Re: [U-Boot] [PATCH v2] cmd: cros_ec: Move crosec commands to cmd subdirectory

2016-10-10 Thread Simon Glass
On 4 October 2016 at 18:08, Moritz Fischer wrote: > Move crosec commands from drivers/misc/cros_ec.c to > cmd/cros_ec.c > > Acked-by: Simon Glass > Signed-off-by: Moritz Fischer > Cc: Simon Glass > Cc: Heiko Schocher > Cc: Bin Meng > Cc: Miao Yan > Cc: Masahiro Yamada > Cc: Stefan Roese >

Re: [U-Boot] [PATCH] sandbox: Use the address in readl/writel() functions

2016-10-10 Thread Simon Glass
On 1 October 2016 at 14:42, Simon Glass wrote: > At present these functions do not touch addr, which can raising warnings > about unused variables. > > This fixes the following warnings: > > sandbox_spl defconfig > drivers/core/regmap.c: In function ‘regmap_read’: > drivers/core/regmap.c:125:12: w

Re: [U-Boot] [PATCH 3/5] sandbox/fs: Use correct size path name buffer

2016-10-10 Thread Simon Glass
On 3 October 2016 at 15:50, Simon Glass wrote: > On 1 October 2016 at 12:41, Stefan Brüns wrote: >> The readdir linux manpage explicitly states (quoting POSIX.1) that >> sizeof(d_name) is not correct for determining the required size, but to >> always use strlen. Grow the buffer if needed. >> >>

Re: [U-Boot] [PATCH 2/5] sandbox/fs: Make linking of nodes in os_dirent_ls more obvious

2016-10-10 Thread Simon Glass
On 3 October 2016 at 15:49, Simon Glass wrote: > On 1 October 2016 at 12:41, Stefan Brüns wrote: >> Previously, after reading/creating the second dirent, the second entry >> would be chained to the first entry and the first entry would be linked >> to head. Instead, immediately link the first ent

Re: [U-Boot] [PATCH 5/5] sandbox/fs: Use readdir instead of deprecated readdir_r

2016-10-10 Thread Simon Glass
On 3 October 2016 at 15:50, Simon Glass wrote: > On 1 October 2016 at 12:41, Stefan Brüns wrote: >> Using readdir_r limits the maximum file name length and may even be >> unsafe, and is thus deprecated in since glibc 2.24. >> >> Signed-off-by: Stefan Brüns >> --- >> arch/sandbox/cpu/os.c | 19 +

Re: [U-Boot] [PATCH v2 4/5] sandbox/fs: Set correct filetype for unknown filetype

2016-10-10 Thread Simon Glass
On 4 October 2016 at 13:46, Stefan Brüns wrote: > The "hostfs ls" command prefixes each directory entry with either DIR, > LNK or " " if it is a directory, symlink resp. regular file, or > "???" for any other or unknown type. > The latter only works if the type is set correctly, as the entry def

Re: [U-Boot] [PATCH v6 6/6] configs: am57xx_evm_defconfig: Enable CMD_REG option

2016-10-10 Thread Simon Glass
On 30 September 2016 at 20:17, Tom Rini wrote: > On Fri, Sep 30, 2016 at 09:20:47AM +0530, Keerthy wrote: > >> Enable CMD_REG option. >> >> Signed-off-by: Keerthy > > Reviewed-by: Tom Rini Applied to u-boot-dm, thanks! ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] [PATCH 1/5] sandbox/fs: Free memory allocated by os_dirent_ls

2016-10-10 Thread Simon Glass
\On 3 October 2016 at 15:49, Simon Glass wrote: > On 1 October 2016 at 12:41, Stefan Brüns wrote: >> Signed-off-by: Stefan Brüns >> --- >> fs/sandbox/sandboxfs.c | 1 + >> include/os.h | 11 ++- >> 2 files changed, 11 insertions(+), 1 deletion(-) > > Acked-by: Simon Glass A

Re: [U-Boot] [PATCH v3 2/2] power: regulator: lp873x: Add regulator support

2016-10-10 Thread Simon Glass
On 29 September 2016 at 22:04, Keerthy wrote: > The driver provides regulator set/get voltage > enable/disable functions for lp873x family of PMICs. > > Signed-off-by: Keerthy > Reviewed-by: Simon Glass > --- > Changes in v2: > > * Used pmic_reg_read/pmic_reg_write instead of direct i2c >

Re: [U-Boot] [PATCH v6 4/6] configs: dra7xx_evm_defconfig: Enable PALMAS options

2016-10-10 Thread Simon Glass
On 29 September 2016 at 21:50, Keerthy wrote: > Enable palmas PMIC config options. > > Signed-off-by: Keerthy > Reviewed-by: Tom Rini > --- > configs/dra7xx_evm_defconfig | 3 +++ > 1 file changed, 3 insertions(+) Applied to u-boot-dm, thanks! ___ U-

Re: [U-Boot] [PATCH v6 5/6] configs: am57xx_evm_defconfig: Enable PALMAS options

2016-10-10 Thread Simon Glass
On 29 September 2016 at 21:50, Keerthy wrote: > Enable palmas PMIC config options. > > Signed-off-by: Keerthy > Reviewed-by: Tom Rini > --- > configs/am57xx_evm_defconfig | 3 +++ > 1 file changed, 3 insertions(+) Applied to u-boot-dm, thanks! ___ U-

Re: [U-Boot] [PATCH v3 1/2] power: pmic: lp873x: Add the base pmic support

2016-10-10 Thread Simon Glass
On 29 September 2016 at 22:04, Keerthy wrote: > Add support to bind the regulators/child nodes with the pmic. > > Signed-off-by: Keerthy > Reviewed-by: Simon Glass > --- > > Changes in v3: > > * Used dm_i2c_write and dm_i2c_read in place of dm_i2c_reg_write > dm_i2c_reg_read respectively.

Re: [U-Boot] [PATCH v6 3/6] power: regulator: palmas: Add regulator support

2016-10-10 Thread Simon Glass
On 29 September 2016 at 21:50, Keerthy wrote: > The driver provides regulator set/get voltage > enable/disable functions for palmas family of PMICs. > > Signed-off-by: Keerthy > Reviewed-by: Simon Glass > Reviewed-by: Tom Rini > --- > > Changes in v5: > > * Used pmic_reg_read pmic_reg_write f

Re: [U-Boot] [PATCH v6 2/6] power: pmic: Palmas: Add the base pmic support

2016-10-10 Thread Simon Glass
On 29 September 2016 at 21:50, Keerthy wrote: > Add support to bind the regulators/child nodes with the pmic. > Also adds the pmic i2c based read/write funtions to access pmic > registers. > > Signed-off-by: Keerthy > Reviewed-by: Simon Glass > Reviewed-by: Tom Rini > --- > Changes in v6: > >

Re: [U-Boot] [PATCH v2] power: regulator: Add support for gpio regulators

2016-10-10 Thread Simon Glass
On 6 October 2016 at 08:28, Przemyslaw Marczak wrote: > Hello, > > > On 10/05/2016 06:50 PM, Simon Glass wrote: >> >> Hi Keerthy, >> >> On 5 October 2016 at 05:58, Keerthy wrote: >>> >>> >>> On Monday 19 September 2016 06:29 AM, Simon Glass wrote: On 15 September 2016 at 05:34, Keerthy

Re: [U-Boot] [PATCH v6 1/6] power: regulator: Add ctrl_reg and volt_reg fields for pmic

2016-10-10 Thread Simon Glass
On 29 September 2016 at 21:50, Keerthy wrote: > The ctrl reg contains bit fields to enable and disable regulators, > and volt_reg has the bit fields to configure the voltage values. > The registers are frequently accessed hence make them part > of dm_regulator_uclass_platdata structure. > > Signed

Re: [U-Boot] [PATCH] power: regulator: Add limits checking while setting voltage and current

2016-10-10 Thread Simon Glass
Hi Keerthy, On 15 September 2016 at 05:16, Keerthy wrote: > > > On Thursday 15 September 2016 04:38 PM, Keerthy wrote: >> >> >> >> On Thursday 15 September 2016 04:26 PM, Przemyslaw Marczak wrote: >>> >>> Hello Keerthy, >>> >>> On 09/15/2016 10:54 AM, Keerthy wrote: Currently the specif

[U-Boot] Please pull u-boot-mmc

2016-10-10 Thread Jaehoon Chung
Dear Tom, Could you these patches on u-boot/master? The following changes since commit f5fd45ff64e28a73499548358e3d1ceda0de7daf: Merge branch 'master' of git://www.denx.de/git/u-boot-imx (2016-10-08 09:33:37 -0400) are available in the git repository at: http://git.denx.de/u-boot-mmc.git

Re: [U-Boot] [PATCH 07/82] mmc: Fix cast for 64-bit compilation

2016-10-10 Thread Jaehoon Chung
On 10/10/2016 03:56 PM, Bin Meng wrote: > On Mon, Sep 26, 2016 at 11:33 AM, Simon Glass wrote: >> Fix a cast that causes warnings on 64-bit machines. >> >> Signed-off-by: Simon Glass >> --- >> >> drivers/mmc/pci_mmc.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> > > Reviewed-by:

[U-Boot] Pull request, u-boot-tegra/master

2016-10-10 Thread Tom Warren
Tom, Please pull u-boot-tegra/master into U-Boot/master. Thanks! All Tegra builds are OK, and Stephen's automated test system reports that all tests pass. The following changes since commit f5fd45ff64e28a73499548358e3d1ceda0de7daf: Merge branch 'master' of git://www.denx.de/git/u-boot-imx (20

Re: [U-Boot] [PATCH v2 2/6] apalis/colibri_t20/t30: deactivate displaying board info

2016-10-10 Thread Stephen Warren
On 10/05/2016 10:12 AM, Stefan Agner wrote: On 2016-10-05 08:53, Stephen Warren wrote: On 10/03/2016 02:27 PM, Stefan Agner wrote: On 03.10.2016 10:28, Stephen Warren wrote: On 09/30/2016 04:00 AM, Marcel Ziswiler wrote: On Wed, 2016-09-28 at 12:00 -0600, Stephen Warren wrote: On 09/28/2016

[U-Boot] [PATCH 5/5] sf: Add sr-protect sub-command

2016-10-10 Thread George McCollister
Add an sf sub-command named sr-protect which allows the status register protection method to be changed. Valid settings are software, hardware, power and otp. Signed-off-by: George McCollister --- cmd/sf.c | 28 1 file changed, 28 insertions(+) diff --git a/cmd/sf.

[U-Boot] [PATCH 4/5] sf: Add status register protect for Winbond

2016-10-10 Thread George McCollister
Winbond parts such as W25Q64FV and Spansion parts such as S25FL128S support two status register protection bits. Implement sr_protect for Winbond and Spansion devices. --- | SRP1 | SRP0 | Method | Description| ---

[U-Boot] [PATCH 1/5] sf: Add status register protection mechanism

2016-10-10 Thread George McCollister
Many SPI NOR flash devices support status register protection through one or two status register protection bits. Status register protection enables protection of block protect and other bits from manipulation. So far, four different status register protection methods have been observed: Softwar

[U-Boot] [PATCH 2/5] sf: Add status register protect for STMICRO, SST

2016-10-10 Thread George McCollister
STMICRO parts such as M25PX64 and SST parts such as SST26VF032B support a single status register protect bit. When set this bit cause writes to the status register to be blocked when the write protect signal is low. Implement sr_protect for these devices. Signed-off-by: George McCollister --- d

[U-Boot] [PATCH 0/5] sf: Add support for status register protect

2016-10-10 Thread George McCollister
Many SPI NOR flash devices support status register protection through one or two status register protection bits. Protection of the status register is essential in defending the device from rogue software which may attempt to modify block protection bits in order to make malicious modifications to

[U-Boot] [PATCH 3/5] sf: Use stm_lock/unlock for Spansion and Winbond

2016-10-10 Thread George McCollister
Spansion parts such as S25FL128S and Winbond parts such as W25Q64FV support the block protection mechanism implemented as stm_lock() and stm_unlock(). Use stm_lock() and stm_unlock() for Spansion and Winbond devices. Signed-off-by: George McCollister --- drivers/mtd/spi/spi_flash.c | 11

Re: [U-Boot] [PATCH v3 2/3] rk3288: sdram: auto-detect the capacity

2016-10-10 Thread Vagrant Cascadian
On 2016-10-07, Kever Yang wrote: > Add support for rk3288 dram capacity auto detect, support DDR3 and > LPDDR3, DDR2 is not supported. > The program will automatically detect: > - channel number > - rank number > - column address number > - row address number > > The dts file do not need to describ

Re: [U-Boot] [PATCH] net: smsc95xx: fix DM MAC address reading

2016-10-10 Thread Stephen Warren
On 09/23/2016 11:43 AM, Joe Hershberger wrote: On Fri, Sep 23, 2016 at 11:31 AM, Stephen Warren wrote: On 09/15/2016 01:20 PM, Joe Hershberger wrote: On Thu, Sep 15, 2016 at 1:53 PM, Stephen Warren wrote: From: Stephen Warren eth-uclass.c expects DM-capable Ethernet adapters to implement

[U-Boot] build error with CONFIG_DM_PCI disabled in menuconfig

2016-10-10 Thread Ding, ChiX
Hi there I disabled CONFIG_DM_PCI in menuconfig because I have problem detecting AHCI SCSI controller on X86 board with CONFIG_DM_PCI enabled and the older code in drivers/pci/pci.c works for me in the previous U-boot version. Then I got the build error : u-boot/arch/x86/cpu/irq.c:29: undefined r

[U-Boot] [PATCH] ARM: tegra: reduce DRAM size mapped into MMU on ARM64

2016-10-10 Thread Stephen Warren
From: Stephen Warren ARM CPUs can architecturally (speculatively) prefetch completely arbitrary normal memory locations, as defined by the current translation tables. The current MMU configuration for 64-bit Tegras maps an extremely large range of addresses as DRAM, well beyond the actual physica

[U-Boot] [RFC 4/4] arm: socfpga: scrub the SDRAM to properly enable ECC support

2016-10-10 Thread Dinh Nguyen
From: Dinh Nguyen In order for SDRAM ECC to work correctly, the SDRAM needs to get zero'd which enables the ECC bit. By using the PL330 DMA to fill the SDRAM with zeroes, the operation is completed in ~1.2 seconds, versus ~14 seconds with a memset. Signed-off-by: Dinh Nguyen --- arch/arm/mach-

[U-Boot] [RFC 3/4] dm: add DMA_SUPPORTS_DEV_TO_MEM type to DMA_UCLASS

2016-10-10 Thread Dinh Nguyen
From: Dinh Nguyen Add DMA_SUPPORTS_DEV_TO_MEM type to the DMA uclass. Signed-off-by: Dinh Nguyen --- drivers/dma/dma-uclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/dma-uclass.c b/drivers/dma/dma-uclass.c index ea21fd9..a021395 100644 --- a/drivers/dm

[U-Boot] [RFC 1/4] drivers: dma: Add the ARM PL330 DMA driver

2016-10-10 Thread Dinh Nguyen
From: Dinh Nguyen Adopted from the Linux kernel PL330 DMA driver. Signed-off-by: Dinh Nguyen --- arch/arm/include/asm/pl330.h | 105 + drivers/dma/pl330.c | 942 +++ 2 files changed, 1047 insertions(+) create mode 100644 arch/arm/include/as

[U-Boot] [RFC 2/4] dma: Kconfig: Add CONFIG_PL330_DMA entry

2016-10-10 Thread Dinh Nguyen
From: Dinh Nguyen Add PL330_DMA entry. Signed-off-by: Dinh Nguyen --- drivers/dma/Kconfig | 4 drivers/dma/Makefile | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 1b92c77..d95f959 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kc

[U-Boot] [RFC] 0/4] Add Pl330 DMA support

2016-10-10 Thread Dinh Nguyen
Hi, This patchset adds the PL330 DMA driver to U-Boot. The SoCFPGA platform makes use of the PL330 to transfer zereos to the SDRAM which enables the ECC bit. This is only an RFC because after rebasing to v2016.11-rc1, I had to revert the following patch "a78cd8613204 ARM: Rework and correct barri

  1   2   >