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 James Chargin
Dear yoko, On 10/07/2016 08:20 PM, yoko wrote: Signed-off-by: yoko --- Changes for v2: - The commit message is changed. fs/fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index 595ff1f..7607230 100644 --- a/fs/fs.c +++

Re: [U-Boot] [PATCH 8/9] pci: layerscape: rewrite pci driver based on DM

2016-10-10 Thread Bin Meng
Hi Minghuan, On Mon, Oct 10, 2016 at 4:47 PM, Minghuan Lian wrote: > There are more than five kinds of Layerscape SoCs. unfortunately, > PCIe controller of each SoC is a little bit different. In order > to avoid too many macro definitions, the patch re-implement PCIe >

[U-Boot] AHCI controller not found

2016-10-10 Thread Ding, ChiX
Hi there I'm testing U-boot as Coreboot payload on Intel board. It boots into U-boot shell but fails to detect AHCI controller. SCSI: Error: SCSI Controller(s) 8086:19B2 8086:19C2 not found AHCI SCSI devices are defined in coreboot.h, #define CONFIG_SCSI_AHCI #define CONFIG_SCSI_DEV_LIST

[U-Boot] [PATCH 1/3] drivers: net: phy: atheros: add separate config for AR8031

2016-10-10 Thread Mugunthan V N
In the current driver implementation, config() callback is common for AR8035 and AR8031 phy. In config() callback, driver tries to configure MMD Access Control Register and MMD Access Address Data Register unconditionally for both phy versions which leads to auto negotiation failure in AM335x

[U-Boot] [PATCH 3/3] driver: net: cpsw: add support for RGMII id mode support and RMII clock source selection

2016-10-10 Thread Mugunthan V N
cpsw driver supports only selection of phy mode in control module but control module has more setting like RGMII ID mode selection, RMII clock source selection. So ported to cpsw-phy-sel driver from kernel to u-boot. Signed-off-by: Mugunthan V N --- drivers/net/cpsw.c | 153

[U-Boot] [PATCH 0/3] Add Atheros phy delay support and CPSW RGMII id support

2016-10-10 Thread Mugunthan V N
This patch series adds support for RGMII phy internal delay support for Atheros 8031 phy driver and also add support for the phy mode configuration in control module in cpsw driver. Tested the series on the following EVMs with a zImage download from server, logs [1] and pushed a branch for

[U-Boot] [PATCH 2/3] include: configs: am335x: add Atheros phy support

2016-10-10 Thread Mugunthan V N
In AM335x GP EVM, Atheros 8031 phy is used, enable the driver as AM335x SoC RGMII delay mode has to be enabled in phy as mentioned in the silicon errata Advisory 1.0.10 Signed-off-by: Mugunthan V N --- include/configs/am335x_evm.h | 2 ++ 1 file changed, 2 insertions(+)

Re: [U-Boot] [PATCH v4 2/7] efi_loader: Fix memory map size check to avoid out-of-bounds access

2016-10-10 Thread Alexander Graf
On 10/09/2016 10:17 PM, Stefan Brüns wrote: The current efi_get_memory_map() function overwrites the map_size property before reading its value. That way the sanity check whether our memory map fits into the given array always succeeds, potentially overwriting arbitrary payload memory. This

Re: [U-Boot] [PATCH v4 4/7] efi_loader: Track size of pool allocations to allow freeing

2016-10-10 Thread Alexander Graf
On 10/09/2016 10:17 PM, Stefan Brüns wrote: We need a functional free_pool implementation, as otherwise each allocate_pool causes growth of the memory descriptor table. Different to free_pages, free_pool does not provide the size for the to be freed allocation, thus we have to track the size

Re: [U-Boot] [PATCH v4 3/7] efi_loader: Move efi_allocate_pool implementation to efi_memory.c

2016-10-10 Thread Alexander Graf
On 10/09/2016 10:17 PM, Stefan Brüns wrote: We currently handle efi_allocate_pool() in our boot time service file. In the following patch, pool allocation will receive additional internal semantics that we should preserve inside efi_memory.c instead. As foundation for those changes, split the

Re: [U-Boot] [PATCH 9/9] armv8: ls1046a: Enable PCIe support

2016-10-10 Thread Bin Meng
Hi Minghuan, On Mon, Oct 10, 2016 at 4:47 PM, Minghuan Lian wrote: > Signed-off-by: Minghuan Lian > --- > include/configs/ls1046a_common.h | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/include/configs/ls1046a_common.h >

Re: [U-Boot] [PATCH 2/9] dm: pci: remove pci_bus_to_hose(0) calling

2016-10-10 Thread Bin Meng
+Simon Hi Minghuan, On Mon, Oct 10, 2016 at 4:47 PM, Minghuan Lian wrote: > There may be multiple PCIe controllers in a SoC. > It is not correct that always calling pci_bus_to_hose(0) to get > the first PCIe controller for the PCIe device connected other > controllers. We

Re: [U-Boot] [PATCH 0/6] Add support for the BK4R1 variant of PCM052

2016-10-10 Thread Albert ARIBAUD
Hi Stefano, Sorry for the delay. Le Fri, 7 Oct 2016 12:01:02 +0200, Stefano Babic a écrit : > Hi Albert, > > On 06/10/2016 15:43, Albert ARIBAUD wrote: > > > > > Hmm... What U-Boot commit do you apply above? > > It was on top of v2016.11-rc1, and then I have already

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

[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

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

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

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 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

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 > --- > >

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 +-

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

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

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(-) >

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

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

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

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

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

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

[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 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 ---

[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:

[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

[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] 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

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

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 > --- > >

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 ++ >

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

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:

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

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

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 +++- >

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

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 +- >

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 > --- > >

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

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 > --- > >

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 > --- > >

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 > --- > >

[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

[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

[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

[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

[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:

[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

[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

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

Re: [U-Boot] [PATCH v2] mmc: sdhci: Add the programmable clock mode support

2016-10-10 Thread Jaehoon Chung
Dear Kever, On 10/07/2016 04:10 PM, Kever Yang wrote: > Hi Jaehoon, > > On 09/30/2016 06:48 PM, Jaehoon Chung wrote: >> Hi Kever, >> >> On 09/30/2016 07:05 PM, Kever Yang wrote: >>> Hi Wenyou, >>> >>> I can not enable my emmc device on my evb-rk3399 with this patch, >>> could you help to

Re: [U-Boot] [PATCH] sunxi: Fix H3 DRAM impedance calibration on rev. A chips

2016-10-10 Thread Hans de Goede
Hi, On 21-09-16 20:08, Jens Kuske wrote: H3 seems to have a silicon bug breaking the impedance calibration. This is currently worked around in software by multiple steps combining the results to replace the wrong values. Revision A chips need a different workaround, which is present in the

Re: [U-Boot] Patch for OLinuXino Lime boards: default DRAM settings

2016-10-10 Thread Hans de Goede
Hi, On 30-09-16 07:19, Josh Marshall wrote: We have a number of OlinuXino Lime2 boards (both NAND and eMMC versions) which were experiencing sporadic hangs. After testing with some heavy benchmarking and help from the Armbian forum, it was pinned down as the DRAM settings for the board. The

Re: [U-Boot] [PATCH] mmc: rockchip_sdhci: add clock init for mmc

2016-10-10 Thread Kever Yang
Hi Jaehoon, On 10/10/2016 07:01 AM, Jaehoon Chung wrote: On 10/07/2016 06:23 PM, Kever Yang wrote: Init the clock rate to CONFIG_ROCKCHIP_SDHCI_MAX_FREQ with clock driver api. Signed-off-by: Kever Yang --- drivers/mmc/rockchip_sdhci.c | 4 1 file changed,

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

2016-10-10 Thread Jaehoon Chung
Hi Simon, Bin, On 09/26/2016 12:33 PM, Simon Glass wrote: > Fix a cast that causes warnings on 64-bit machines. If you are ok, I will pick this. how about? Best Regards, Jaehoon Chung > > Signed-off-by: Simon Glass > --- > > drivers/mmc/pci_mmc.c | 2 +- > 1 file

Re: [U-Boot] [PATCH 07/82] mmc: 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/mmc/pci_mmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng

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

2016-10-10 Thread Bin Meng
Hi Jaehoon, On Mon, Oct 10, 2016 at 2:37 PM, Jaehoon Chung wrote: > Hi Simon, Bin, > > On 09/26/2016 12:33 PM, Simon Glass wrote: >> Fix a cast that causes warnings on 64-bit machines. > > If you are ok, I will pick this. how about? > I am OK with that. thanks! Regards,

Re: [U-Boot] [PATCH] ARM: sun7i: dts: add support for Sinovoip/Bananapi BPI-R1

2016-10-10 Thread Hans de Goede
Hi Stephen, First of all sorry for not responding sooner, I know there have been a few versions since this one. But AFAICT those don't address the get the dt accepted into the kernel thing first, which really needs to be addressed before this can be merged, see my comments below. On 03-10-16

[U-Boot] Please pull u-boot-sunxi master

2016-10-10 Thread Hans de Goede
Hi Tom, Here is a small pull-req for v2016.11, consisting of 2 small DRAM handling bug-fixes. 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

[U-Boot] [PATCH] armv8:ls1012a: Update bootargs for fast-boot

2016-10-10 Thread Pratiyush Srivastava
Add optimization parameters like "quiet" in bootargs to reduce the system boot time Signed-off-by: Pratiyush Mohan Srivastava Signed-off-by: Harninder Rai --- include/configs/ls1012a_common.h | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH 9/9] armv8: ls1046a: Enable PCIe support

2016-10-10 Thread Minghuan Lian
Signed-off-by: Minghuan Lian --- include/configs/ls1046a_common.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h index 7c5e635..f8f5ee2 100644 --- a/include/configs/ls1046a_common.h

[U-Boot] [PATCH 1/9] dm: pci: return the real controller in pci_bus_to_hose()

2016-10-10 Thread Minghuan Lian
for the legacy PCI driver, the function pci_bus_to_hose() returns the real PCIe controller. To keep consistency, this function is changed to return the PCIe controller pointer of the root bus instead of the current PCIe bus. Signed-off-by: Minghuan Lian ---

[U-Boot] [PATCH 6/9] armv8: ls1046a: add PCIe dts node

2016-10-10 Thread Minghuan Lian
Signed-off-by: Minghuan Lian --- arch/arm/dts/fsl-ls1046a.dtsi | 49 +++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arch/arm/dts/fsl-ls1046a.dtsi index 87dd997..5d30112 100644 ---

Re: [U-Boot] [PATCH v2 2/2] mmc: sdhci: use the generic error number

2016-10-10 Thread Jaehoon Chung
On 09/27/2016 09:33 AM, Simon Glass wrote: > On 25 September 2016 at 17:10, Jaehoon Chung wrote: >> Use the generic error number instead of meaningless value. >> >> Signed-off-by: Jaehoon Chung >> --- >> Changelog for V2: >> - Fix the

Re: [U-Boot] [PATCH 1/2] mmc: sdhci: use the host version value in sdhci_setup_cfg

2016-10-10 Thread Jaehoon Chung
On 09/27/2016 09:33 AM, Simon Glass wrote: > On 23 September 2016 at 04:14, Jaehoon Chung wrote: >> "host->version" isn't a SoC specific value. >> It doesn't need to get in each SoC drivers. >> >> Signed-off-by: Jaehoon Chung >> --- >>

Re: [U-Boot] [PATCH] mmc: dw_mmc: remove the unnecessary arguments for dwmci_setup_cfg

2016-10-10 Thread Jaehoon Chung
On 09/27/2016 09:33 AM, Simon Glass wrote: > On 23 September 2016 at 04:13, Jaehoon Chung wrote: >> Some arguments don't need to pass to dwmci_setup_cfg. >> They are already included in dwmci_host structure. >> >> Signed-off-by: Jaehoon Chung >>

Re: [U-Boot] [PATCH v2] mmc: s5p_sdhci: support the Driver model for Exynos

2016-10-10 Thread Jaehoon Chung
On 09/27/2016 09:33 AM, Simon Glass wrote: > On 9 September 2016 at 03:23, Jaehoon Chung wrote: >> This patch support the driver model for s5p_sdhci controller. >> To support the legacy model, maintained the existing code. >> >> Note: If use the Driver Model, it needs to

Re: [U-Boot] [PATCH 1/9] dm: pci: return the real controller in pci_bus_to_hose()

2016-10-10 Thread Bin Meng
+Simon Hi Minghuan, On Mon, Oct 10, 2016 at 4:47 PM, Minghuan Lian wrote: > for the legacy PCI driver, the function pci_bus_to_hose() returns > the real PCIe controller. To keep consistency, this function is > changed to return the PCIe controller pointer of the root bus

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:

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

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:

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

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 ++- >>

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

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,

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,

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

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

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

[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 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

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:

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 >>

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

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:

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’: >

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!

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

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

  1   2   >