Re: [U-Boot] [PATCH] nios2: convert cache flush to use dm cpu data

2015-10-09 Thread Thomas Chou
Hi Marek, On 10/10/2015 01:55 PM, Thomas Chou wrote: Hi Marek, On 10/09/2015 10:42 PM, Marek Vasut wrote: In nios2, we don't skip the flushing when the inputs are not aligned like that of arm926ejs. We always flush all cache lines in the range, even if a single byte to flush is in request. So

Re: [U-Boot] [PATCH] nios2: convert cache flush to use dm cpu data

2015-10-09 Thread Thomas Chou
Hi Marek, On 10/09/2015 10:42 PM, Marek Vasut wrote: In nios2, we don't skip the flushing when the inputs are not aligned like that of arm926ejs. We always flush all cache lines in the range, even if a single byte to flush is in request. So the inputs are rounded to get the lower and upper cache

Re: [U-Boot] [PATCH v3] nios2: convert dma_alloc_coherent to use memalign

2015-10-09 Thread Thomas Chou
Hi Marek, On 10/09/2015 10:49 PM, Marek Vasut wrote: + *handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, len); This still modifies the handle in both cases (failure and success). We really want to modify external variables in case of failure, no? The *handle return a DMA address, an

Re: [U-Boot] [PATCH 2/2] x86: Add SMBIOS table support

2015-10-09 Thread Simon Glass
Hi Bin, On 10 October 2015 at 04:38, Bin Meng wrote: > Hi Simon, > > On Fri, Oct 9, 2015 at 9:02 PM, Simon Glass wrote: >> Hi Bin, >> >> On 9 October 2015 at 11:17, Bin Meng wrote: >>> System Management BIOS (SMBIOS) is a specification for how >>> motherboard and system vendors present manageme

Re: [U-Boot] [PATCH 2/2] x86: Add SMBIOS table support

2015-10-09 Thread Bin Meng
Hi Simon, On Fri, Oct 9, 2015 at 9:02 PM, Simon Glass wrote: > Hi Bin, > > On 9 October 2015 at 11:17, Bin Meng wrote: >> System Management BIOS (SMBIOS) is a specification for how >> motherboard and system vendors present management information >> about their products in a standard format by ex

Re: [U-Boot] [PATCH 3/3] x86: Added support for Advantech SOM-6896

2015-10-09 Thread Bin Meng
Hi George, Sorry, one more nits below. On Sat, Oct 10, 2015 at 5:54 AM, George McCollister wrote: > Advantech SOM-6896 is a Broadwell U based COM Express Compact Module > Type 6. This patch adds support for it as a coreboot payload. > > On board SATA and SPI are functional. On board Ethernet isn

Re: [U-Boot] [PATCH 1/3] x86: pci: Add PCI IDs for Wildcat Point

2015-10-09 Thread Bin Meng
Hi George, On Sat, Oct 10, 2015 at 5:54 AM, George McCollister wrote: > Signed-off-by: George McCollister Could you please include a simple sentence as the commit message? Other than this, Reviewed-by: Bin Meng > --- > include/pci_ids.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --

Re: [U-Boot] [PATCH 3/3] x86: Added support for Advantech SOM-6896

2015-10-09 Thread Bin Meng
Hi George, On Sat, Oct 10, 2015 at 5:54 AM, George McCollister wrote: > Advantech SOM-6896 is a Broadwell U based COM Express Compact Module > Type 6. This patch adds support for it as a coreboot payload. > > On board SATA and SPI are functional. On board Ethernet isn't functional > but since it'

Re: [U-Boot] [PATCH 2/3] x86: spi: Add support for Wildcat Point

2015-10-09 Thread Bin Meng
On Sat, Oct 10, 2015 at 5:54 AM, George McCollister wrote: > Add the Wildcat Point ID so Broadwell U based boards can use SPI. > > Signed-off-by: George McCollister > --- > drivers/spi/ich.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/spi/ich.c b/drivers/sp

[U-Boot] [PATCH 2/3] x86: spi: Add support for Wildcat Point

2015-10-09 Thread George McCollister
Add the Wildcat Point ID so Broadwell U based boards can use SPI. Signed-off-by: George McCollister --- drivers/spi/ich.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 2e388e7..be4c0a3 100644 --- a/drivers/spi/ich.c +++ b/driver

[U-Boot] [PATCH 3/3] x86: Added support for Advantech SOM-6896

2015-10-09 Thread George McCollister
Advantech SOM-6896 is a Broadwell U based COM Express Compact Module Type 6. This patch adds support for it as a coreboot payload. On board SATA and SPI are functional. On board Ethernet isn't functional but since it's optional and ties up a PCIe x4 that is otherwise brought out, this isn't a conc

[U-Boot] [PATCH 1/3] x86: pci: Add PCI IDs for Wildcat Point

2015-10-09 Thread George McCollister
Signed-off-by: George McCollister --- include/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pci_ids.h b/include/pci_ids.h index 49f7d7d..17a01a0 100644 --- a/include/pci_ids.h +++ b/include/pci_ids.h @@ -3022,6 +3022,8 @@ #define PCI_DEVICE_ID_INTEL_IXP28000x9004 #

[U-Boot] [PATCH] vf610twr: Fix typo in DRAM init

2015-10-09 Thread Anthony Felice
This commit fixes a typo in vf610twr DRAM init that was causing a hang in U-Boot for the Vybrid Tower. This typo was introduced in commit 3f353cecc (vf610: refactor DDRMC code). Signed-off-by: Anthony Felice --- board/freescale/vf610twr/vf610twr.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

Re: [U-Boot] [PATCH] Tegra210: add QSPI driver

2015-10-09 Thread Stephen Warren
On 10/09/2015 12:20 PM, Tom Warren wrote: From: Yen Lin Tested on P2571 board with Winbond SPI ROM. sf probe 2:0 to see SPI chip. Flashed U-Boot image to SPI, rebooted, read back data to RAM with sf read, then verified crc against original binary file. board/nvidia/p2571/pinmux-config-p25

Re: [U-Boot] [PATCH] Tegra210: add QSPI driver

2015-10-09 Thread Tom Warren
Forgot Jagan -Original Message- From: Tom Warren Sent: Friday, October 09, 2015 11:16 AM To: u-boot@lists.denx.de Cc: Stephen Warren ; tomcwarren3...@gmail.com; Yen Lin ; Tom Warren Subject: [PATCH] Tegra210: add QSPI driver From: Yen Lin Tested on P2571 board with Winbond SPI ROM. s

[U-Boot] [PATCH] Tegra210: add QSPI driver

2015-10-09 Thread Tom Warren
From: Yen Lin Tested on P2571 board with Winbond SPI ROM. sf probe 2:0 to see SPI chip. Flashed U-Boot image to SPI, rebooted, read back data to RAM with sf read, then verified crc against original binary file. Author:Yen Lin Signed-off-by: Yen Lin Signed-off-by: Tom Warren --- board/nvi

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

2015-10-09 Thread Michal Simek
Hi Tom, On 10/09/2015 03:54 PM, Tom Rini wrote: > On Fri, Oct 09, 2015 at 03:47:59PM +0200, Michal Simek wrote: >> Hi Jagan, >> >> On 09/30/2015 12:23 AM, Michal Simek wrote: >>> On 09/29/2015 11:13 PM, Jagan Teki wrote: On 21 September 2015 at 23:56, Jagan Teki wrote: > Hi Michal, >

Re: [U-Boot] mx6qp sabreauto hangs after saveenv/reset

2015-10-09 Thread Nitin Garg
On 10/09/2015 09:59 AM, Fabio Estevam wrote: > Hi Peng, > > On Thu, Oct 8, 2015 at 11:12 PM, Peng Fan wrote: > >> Whether plugging nand chip into the socket or without nand chip, the board >> reboot >> well in my side. I did not do stress test, only do a few test, and each time >> 'reset', it c

[U-Boot] [PATCH v4 10/10] vexpress64: juno: use /dev/sda2

2015-10-09 Thread Ryan Harkin
This patch changes the default "root=" parameter to "/dev/sda2". Many linux based distros use /dev/sda1 for their boot partition; this is often not a rootfs that can be used by the "root=" parameter. Linaro images use /dev/sda1 as a boot partition, although this of a different nature to a distro

[U-Boot] [PATCH v4 09/10] vexpress64: juno: add alternate kernel and device tree filenames

2015-10-09 Thread Ryan Harkin
The latest Juno firmware stores the files in NOR flash as "norkern" for kernel binary, "board.dtb" for the device tree binary. The "old" firmware used the name "Image" for the kernel binary and "juno" for the device tree binary. Rather than just change the default U-Boot configuration to use the

[U-Boot] [PATCH v4 06/10] common/armflash: add command to check if image exists

2015-10-09 Thread Ryan Harkin
Add a command to the ARM flash support to check if an image exists or not. If the image is found, it will return CMD_RET_SUCCESS, else CMD_RET_FAILURE. This allows hush scripts to conditionally load images. A simple example: if afs exists ${kernel_name}; then echo found; else echo \ not found;

[U-Boot] [PATCH v4 08/10] vexpress64: juno: add optional initrd

2015-10-09 Thread Ryan Harkin
Some OS images require an initrd on Juno. If the file ramdisk.img exists in NOR flash, then we load it and pass the address to the kernel. Otherwise, we pass the "-" parameter as before. Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij --- include/configs/vexpress_aemv8a.h | 9 -

[U-Boot] [PATCH v4 02/10] vexpress64: Kconfig: tidy up

2015-10-09 Thread Ryan Harkin
The FVP and Juno settings were identical, but duplicated, so I removed the duplication with this patch. Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij --- board/armltd/vexpress64/Kconfig | 17 - 1 file changed, 17 deletions(-) diff --git a/board/armltd/vexpress64/Kconfig

[U-Boot] [PATCH v4 01/10] vexpress64: fix checkpatch warnings

2015-10-09 Thread Ryan Harkin
This patch fixes a couple of checkpatch warnings on the vexpress64 config. Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij --- include/configs/vexpress_aemv8a.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/configs/vexpress_aemv8a.h b/include/configs/v

[U-Boot] [PATCH v4 03/10] vexpress64: increase max gunzip size

2015-10-09 Thread Ryan Harkin
vexpress64 kernels are usually over 8 MBytes in length, so setting the max uImage length to 64 Mbytes should give us plenty of scope for expansion. I mostly chose this length to match other board configs that use "(64 << 20)". Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij --- include/c

[U-Boot] [PATCH v4 04/10] vexpress64: fvp dram: add DRAM configuration

2015-10-09 Thread Ryan Harkin
Create an additional FVP configuration to boot images pre-loaded into DRAM. Sometimes it's preferential to boot the model by loading the files directly into DRAM via model parameters, rather than using SemiHosting. An example of model parmaters that are used to pre-load the files into DRAM: -

[U-Boot] [PATCH v4 05/10] vexpress64: juno: add androidboot.hardware=juno

2015-10-09 Thread Ryan Harkin
Linaro's Juno Android builds requires the androidboot.hardware parameter be set to a know board name. Non-Android kernels ignore this extra parameter because they don't contain code to parse it. Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij --- include/configs/vexpress_aemv8a.h | 1 +

[U-Boot] [PATCH v4 07/10] common/armflash: load_image returns success or failure

2015-10-09 Thread Ryan Harkin
Change the load_image so that it returns success or failure of the command (using CMD_RET_SUCCESS or CMD_RET_FAILURE). This way, hush scripts can optionally load different files depending upon the system configuration. A simple example: if afs load ${kernel_name} ${kernel_addr}; then echo loaded

[U-Boot] [PATCH v4 00/10] vexpress64 FVP and Juno configuration updates

2015-10-09 Thread Ryan Harkin
This patch series updates the default configuration of the vexpress64 FVP and Juno platforms to allow it to work on a variety of setups without modification by the user. A propsed change to use a script from NOR as recommended by Liviu Dudau has not been included in this series to limit churn and

[U-Boot] [PATCH] sunxi: Add a bootcmd_old to the default environment to boot old kernels

2015-10-09 Thread Hans de Goede
Add a bootcmd_old value to the default environment when building with CONFIG_OLD_SUNXI_KERNEL_COMPAT, this way people who occasionally want to boot an old kernel can do so by simply typing "run bootcmd_old" rather then needing to have 2 separe setups / sdcards for old and new kernels. Signed-off-b

Re: [U-Boot] Inconsistencies in commands regarding load_addr

2015-10-09 Thread Stephen Warren
On 10/09/2015 02:28 AM, Benoît Thébaudeau wrote: Dear Wolfgang, On 08/10/2015 23:29, Wolfgang Denk wrote: Dear Stephen, In message <56167db6.3000...@wwwdotorg.org> you wrote: What's the expected correct behavior here? After successful loading the data to memory, load_addr should be set co

Re: [U-Boot] mx6qp sabreauto hangs after saveenv/reset

2015-10-09 Thread Fabio Estevam
On Fri, Oct 9, 2015 at 12:08 PM, Nitin Garg wrote: > There is a jumper (J2) to change it to standalone. > Mine works without baseboard and 5V supply. Excellent, will give this a try when I am back to the office on Tuesday. Thanks ___ U-Boot mailing li

Re: [U-Boot] mx6qp sabreauto hangs after saveenv/reset

2015-10-09 Thread Fabio Estevam
Hi Peng, On Thu, Oct 8, 2015 at 11:12 PM, Peng Fan wrote: > Whether plugging nand chip into the socket or without nand chip, the board > reboot > well in my side. I did not do stress test, only do a few test, and each time > 'reset', it can boot fine. Thanks for testing it. Maybe it is an iss

Re: [U-Boot] Inconsistencies in commands regarding load_addr

2015-10-09 Thread Wolfgang Denk
Dear Benoît, In message <5617c8b9.30...@wsystem.com> you wrote: > > Currently, it's all mixed up between CONFIG_SYS_LOAD_ADDR, the loadaddr > environment variable and the load_addr global C variable. > > The 1st issue is that loadaddr and load_addr currently diverge if the user > changes loadadd

Re: [U-Boot] [PATCH 3/7] sunxi: power: Unify axp pmic function names

2015-10-09 Thread Chen-Yu Tsai
Hi, On Fri, Oct 9, 2015 at 8:41 PM, Ian Campbell wrote: > On Fri, 2015-10-09 at 13:24 +0200, Hans de Goede wrote: >> Hi, >> >> On 09-10-15 10:31, Ian Campbell wrote: >> > On Sat, 2015-10-03 at 22:16 +0200, Hans de Goede wrote: >> > > Hi, >> > > >> > > On 03-10-15 16:32, Chen-Yu Tsai wrote: >> > >

Re: [U-Boot] [PATCH v3] nios2: convert dma_alloc_coherent to use memalign

2015-10-09 Thread Marek Vasut
On Friday, October 09, 2015 at 01:31:02 PM, Thomas Chou wrote: > Convert dma_alloc_coherent to use memalign. > > Signed-off-by: Thomas Chou > --- > v2 > use memalign. > v3 > check memalign() return for out of memory. > > arch/nios2/include/asm/dma-mapping.h | 23 ++- > 1

Re: [U-Boot] [PATCH v2] nios2: convert copy_exception_trampoline to use dm cpu data

2015-10-09 Thread Marek Vasut
On Friday, October 09, 2015 at 10:45:56 AM, Thomas Chou wrote: > Hi Ley Foon, > > On 10/09/2015 10:51 AM, Ley Foon Tan wrote: > >> +static void copy_exception_trampoline(void) > >> +{ > >> + extern int _except_start, _except_end; > > > > Can we use void* for _except_start and _except_end? >

Re: [U-Boot] [PATCH] nios2: convert cache flush to use dm cpu data

2015-10-09 Thread Marek Vasut
On Friday, October 09, 2015 at 10:00:26 AM, Thomas Chou wrote: > Hi Marek, > > On 10/09/2015 10:49 AM, Ley Foon Tan wrote: > >> Is this an attempt at poor-mans' rounding ? I think you want to implment > >> something like arch/arm/cpu/arm926ejs/cache.c check_cache_range() and > >> NOT do any roundi

Re: [U-Boot] [PATCH] nios2: convert cache flush to use dm cpu data

2015-10-09 Thread Marek Vasut
On Friday, October 09, 2015 at 04:49:03 AM, Ley Foon Tan wrote: > On Fri, Oct 9, 2015 at 5:39 AM, Marek Vasut wrote: > >> + > >> +DECLARE_GLOBAL_DATA_PTR; > >> + > >> +static void __flush_dcache_all(unsigned long start, unsigned long end) > >> +{ > >> + unsigned long addr; > >> + > >> + st

Re: [U-Boot] [PATCH v2] nios2: set default cache configuration in start.S

2015-10-09 Thread Marek Vasut
On Friday, October 09, 2015 at 02:11:48 PM, Thomas Chou wrote: > Set default icache and dcache configuration for start.S. > > We want to remove the CONFIG_SYS_{I,D}CACHE_SIZE... > configuration macros. As we are just barely starting from > reset, there is no luxury of device tree. > > We will set

Re: [U-Boot] [PATCH] nios2: set default cache configuration in start.S

2015-10-09 Thread Marek Vasut
On Friday, October 09, 2015 at 11:03:36 AM, Thomas Chou wrote: > Hi Marek, Hi, > On 10/09/2015 05:14 AM, Marek Vasut wrote: > > Did I miss the DT part somewhere or is that not part of this patch ? > > As we are just barely starting from reset, there is no luxury of DT. > After this, DT will be u

Re: [U-Boot] [PATCH 3/7] sunxi: power: Unify axp pmic function names

2015-10-09 Thread Ian Campbell
On Fri, 2015-10-09 at 15:44 +0200, Hans de Goede wrote: > > In which case what we would want is a set of choice options for primary and > > a separate set choice options for secondary (with a none option too in this > > case) and there would be no duplication of any specific AXPxxx option > > betw

Re: [U-Boot] Inconsistencies in commands regarding load_addr

2015-10-09 Thread Benoît Thébaudeau
Dear Wolfgang, On 09/10/2015 15:18, Wolfgang Denk wrote: > Regarding the "load address" topic, be careful, as there has always > been a lot of confusion (due to unfortunate historic choice of names). > There is the "load address" as part of the image formates (uImage, FIT > image), which means the

Re: [U-Boot] Please pull ARC fixes

2015-10-09 Thread Tom Rini
On Wed, Oct 07, 2015 at 03:18:12PM +, Alexey Brodkin wrote: > Hi Tom, > > The following changes since commit 996ec1dcc58a34b53891acde0ec5df9141b5fcc2: > > Merge branch 'master' of git://git.denx.de/u-boot-fdt (2015-10-03 10:48:06 > -0400) > > are available in the git repository at: > >

Re: [U-Boot] Please pull u-boot-x86

2015-10-09 Thread Tom Rini
On Thu, Oct 08, 2015 at 10:46:08PM +0100, Simon Glass wrote: > Hi Tom, > > The following changes since commit 996ec1dcc58a34b53891acde0ec5df9141b5fcc2: > > Merge branch 'master' of git://git.denx.de/u-boot-fdt (2015-10-03 > 10:48:06 -0400) > > are available in the git repository at: > > gi

Re: [U-Boot] Please pull u-boot-dm

2015-10-09 Thread Tom Rini
On Tue, Oct 06, 2015 at 01:31:00PM +0100, Simon Glass wrote: > Hi Tom, > > This fixes the driver model tests including the sandbox reset command. > > > The following changes since commit 996ec1dcc58a34b53891acde0ec5df9141b5fcc2: > > Merge branch 'master' of git://git.denx.de/u-boot-fdt (2015

Re: [U-Boot] Please pull u-boot-rockchip.git

2015-10-09 Thread Tom Rini
On Sat, Oct 03, 2015 at 06:18:44PM +0100, Simon Glass wrote: > Hi Tom, > > A few final bug fixes. > > > The following changes since commit 996ec1dcc58a34b53891acde0ec5df9141b5fcc2: > > Merge branch 'master' of git://git.denx.de/u-boot-fdt (2015-10-03 > 10:48:06 -0400) > > are available in t

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

2015-10-09 Thread Tom Rini
On Fri, Oct 09, 2015 at 03:47:59PM +0200, Michal Simek wrote: > Hi Jagan, > > On 09/30/2015 12:23 AM, Michal Simek wrote: > > On 09/29/2015 11:13 PM, Jagan Teki wrote: > >> On 21 September 2015 at 23:56, Jagan Teki wrote: > >>> Hi Michal, > >>> > >>> On 19 September 2015 at 06:38, Michal Simek

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

2015-10-09 Thread Michal Simek
Hi Jagan, On 09/30/2015 12:23 AM, Michal Simek wrote: > On 09/29/2015 11:13 PM, Jagan Teki wrote: >> On 21 September 2015 at 23:56, Jagan Teki wrote: >>> Hi Michal, >>> >>> On 19 September 2015 at 06:38, Michal Simek wrote: On 09/19/2015 02:55 AM, Michal Simek wrote: > On 09/16/2015 09:

Re: [U-Boot] [PATCH] cmd_pci: Check for VendorID earlier

2015-10-09 Thread Simon Glass
Hi Fabio, On 9 October 2015 at 14:36, Fabio Estevam wrote: > On Fri, Oct 9, 2015 at 10:31 AM, Simon Glass wrote: > >> If you look down one more level, these end up calling >> imx_pcie_read_config() which calls imx_pcie_addr_valid(): >> >> static int imx_pcie_addr_valid(pci_dev_t d) >> { >>if

Re: [U-Boot] [PATCH 3/7] sunxi: power: Unify axp pmic function names

2015-10-09 Thread Hans de Goede
Hi, On 09-10-15 14:41, Ian Campbell wrote: On Fri, 2015-10-09 at 13:24 +0200, Hans de Goede wrote: Hi, On 09-10-15 10:31, Ian Campbell wrote: On Sat, 2015-10-03 at 22:16 +0200, Hans de Goede wrote: Hi, On 03-10-15 16:32, Chen-Yu Tsai wrote: On Sat, Oct 3, 2015 at 10:26 PM, Hans de Goede

Re: [U-Boot] [PATCH] nios2: zap cache status enable and disable functions

2015-10-09 Thread Marek Vasut
On Friday, October 09, 2015 at 05:32:47 AM, Thomas Chou wrote: > As the icache and dcache of nios2 are always enabled, the > cmd_cache is no of use and the cache status, enable and > disable functions can be removed. This is no good, I want to be able to enable/disable caches to look for DMA-relat

Re: [U-Boot] [PATCH] nios2: zap initdram

2015-10-09 Thread Marek Vasut
On Friday, October 09, 2015 at 09:10:21 AM, Thomas Chou wrote: > Zap initdram(), as it is not used. > > Signed-off-by: Thomas Chou Acked-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailm

Re: [U-Boot] [PATCH 05/10] net: designware: Add a post-started hook

2015-10-09 Thread Joe Hershberger
Hi Bin, On Wed, Oct 7, 2015 at 4:45 AM, Bin Meng wrote: > Hi, > > On Tue, Oct 6, 2015 at 12:39 AM, Joe Hershberger > wrote: >> Hi Sjoerd, >> >> On Mon, Oct 5, 2015 at 3:55 AM, Sjoerd Simons >> wrote: >>> >>> On Sat, 2015-10-03 at 15:30 +0100, Simon Glass wrote: >>> > Hi Sjoerd, >>> >>> > > sta

Re: [U-Boot] [PATCH] cmd_pci: Check for VendorID earlier

2015-10-09 Thread Fabio Estevam
On Fri, Oct 9, 2015 at 10:31 AM, Simon Glass wrote: > If you look down one more level, these end up calling > imx_pcie_read_config() which calls imx_pcie_addr_valid(): > > static int imx_pcie_addr_valid(pci_dev_t d) > { >if ((PCI_BUS(d) == 0) && (PCI_DEV(d) > 1)) > return -EINVAL; >

Re: [U-Boot] [PATCH] cmd_pci: Check for VendorID earlier

2015-10-09 Thread Simon Glass
Hi Fabio, On 9 October 2015 at 14:22, Fabio Estevam wrote: > Hi Simon, > > On Fri, Oct 9, 2015 at 10:01 AM, Simon Glass wrote: > >> I'm just surprised that it is failing when there is nothing there. I >> think it should succeed (and read 0x). >> >> What board is this? Can you find the code t

Re: [U-Boot] [PATCH] dm: implement a cfi flash uclass

2015-10-09 Thread Thomas Chou
Hi Simon, On 10/09/2015 05:36 PM, Simon Glass wrote: Can you create a sandbox driver for this so you can add a test? Yes. I will add a sandbox driver and test later. @@ -348,6 +349,8 @@ static int initr_flash(void) /* update start of FLASH memory*/ #ifdef CONFIG_SYS_FLASH_BASE

Re: [U-Boot] U-Boot version issue

2015-10-09 Thread Michal Simek
Hi, On 10/09/2015 03:02 PM, Simon Glass wrote: > +Marcel who is the maintainer Marcel? :-) > > Hi, > > On 8 October 2015 at 14:56, ba_f wrote: >> >> Hello, >> >> >> i have an issue with different U-Boot versions, and i have no clue what's >> the problem. >> Maybe someone's got an idea? >> >>

Re: [U-Boot] [PATCH] cmd_pci: Check for VendorID earlier

2015-10-09 Thread Fabio Estevam
Hi Simon, On Fri, Oct 9, 2015 at 10:01 AM, Simon Glass wrote: > I'm just surprised that it is failing when there is nothing there. I > think it should succeed (and read 0x). > > What board is this? Can you find the code that is returning this > error? It may be a call to pci_set_ops() which

[U-Boot] [PATCH 1/2] vexpress64: Juno: Declare all 8GB of RAM and make them visible to the kernel.

2015-10-09 Thread Liviu Dudau
Juno comes with 8GB RAM, but U-Boot only passes 2GB to the kernel. Declare a secondary memory bank and set the sizes correctly. Signed-off-by: Liviu Dudau --- board/armltd/vexpress64/vexpress64.c | 8 include/configs/vexpress_aemv8a.h| 4 +++- 2 files changed, 11 insertions(+), 1 de

[U-Boot] [PATCH 2/2] vexpress64: Juno: Add initialisation code for Juno R1 PCIe host bridge.

2015-10-09 Thread Liviu Dudau
Juno R1 has an XpressRICH3 PCIe host bridge that needs to be initialised in order for the Linux kernel to be able to enumerate the bus. Add support code here that enables the host bridge, trains the links and sets up the Address Translation Tables. Signed-off-by: Liviu Dudau --- board/armltd/vex

[U-Boot] How to make a bootable NAND for A20-OLinuXino-LIME

2015-10-09 Thread Laurent HUBERT
Hello, I am trying to make a bootable NAND for A20-OLinuXino-LIME. My understanding is that there is not yet support for this card. Is it exact ? When will it be available ? If it is possible now, do you have instructions on how to build u-boot-sunxi for A20-OLinuXino-LIME ? I found that t

[U-Boot] [PATCH 0/2] vexpress64: Juno: Add support for PCIe on Juno

2015-10-09 Thread Liviu Dudau
Hello, This patchset enables PCIe for ARM's Juno boards and configures the host bridge's address translation block. This enables the Linux kernel to boot on Juno r1 using just a device tree and the generic host bridge driver. No support has been added at this phase for the SATA or Ethernet device

Re: [U-Boot] Inconsistencies in commands regarding load_addr

2015-10-09 Thread Wolfgang Denk
Dear Benoît Thébaudeau, In message <56177ac8.1020...@wsystem.com> you wrote: > > I'm not certain that this would be the least astonishing behavior. When I read > the documentation, I rather expect the loadaddr environment variable to be > used > whenever the address is omitted in a command invoc

Re: [U-Boot] [PATCH v6 1/3] dm: implement a Timer uclass

2015-10-09 Thread Thomas Chou
Hi Bin, On 10/09/2015 06:46 PM, Bin Meng wrote: But in v7, it is gd->dm_timer. I think it should be gd->timer? I think it is only CONFIG_DM_TIMER, that Simon suggested to change. In the gd structure, I keep it neighbor to dm_root. In the initr_dm(), they are set to NULL similarly. So I would

Re: [U-Boot] SPL and DM on ZYNQ

2015-10-09 Thread Hannes Schmelzer
Hi, Hi Simon, many thanks for reply. () maybe there is yet another switch, which needs to be turned on. Subject of suspicion is currently "support simple-bus driver in SPL". But if i compile with this option, boot ends up with: U-Boot SPL 2015.10-rc4-00101-gb6dcb3f-dirty (Oct 08 2015

Re: [U-Boot] SPL and DM on ZYNQ

2015-10-09 Thread Simon Glass
Hi, On 9 October 2015 at 08:04, Hannes Schmelzer wrote: > >> I've now branched from u-boot-dm.git/zynq-working2 and then merged >> u-boot-spi/master into it. >> >> After a few merge conflicts i'am able to build u-boot and boot it from SD >> with working DM support during SPL and QSPI support. >>

Re: [U-Boot] U-Boot version issue

2015-10-09 Thread Simon Glass
+Marcel who is the maintainer Hi, On 8 October 2015 at 14:56, ba_f wrote: > > Hello, > > > i have an issue with different U-Boot versions, and i have no clue what's > the problem. > Maybe someone's got an idea? > > Working on Xilinx' ARM Platform i use U-Boot version > u-boot-xlnx-xilinx-v14.6.0

Re: [U-Boot] [PATCH 2/2] x86: Add SMBIOS table support

2015-10-09 Thread Simon Glass
Hi Bin, On 9 October 2015 at 11:17, Bin Meng wrote: > System Management BIOS (SMBIOS) is a specification for how > motherboard and system vendors present management information > about their products in a standard format by extending the BIOS > interface on Intel architecture systems. As of today

Re: [U-Boot] [PATCH 01/10] rockchip: rk3288: Add pinctrl support for the gmac ethernet interface

2015-10-09 Thread Simon Glass
Hi Sjoerd, On 9 October 2015 at 10:51, Sjoerd Simons wrote: > On Fri, 2015-10-09 at 10:36 +0100, Simon Glass wrote: >> Hi Sjoerd, >> >> On 5 October 2015 at 10:04, Sjoerd Simons < >> sjoerd.sim...@collabora.co.uk> wrote: >> > On Sat, 2015-10-03 at 15:29 +0100, Simon Glass wrote: >> > > > On 1 Oct

Re: [U-Boot] [PATCH 1/2] Makefile: Generate U_BOOT_DMI_DATE for SMBIOS

2015-10-09 Thread Simon Glass
On 9 October 2015 at 11:17, Bin Meng wrote: > Add U_BOOT_DMI_DATE (format mm/dd/) generation to be used by > SMBIOS tables, as required by SMBIOS spec 3.0 [1]. See chapter 7.1, > BIOS information structure offset 08h for details. > > [1] > http://www.dmtf.org/sites/default/files/standards/doc

Re: [U-Boot] [PATCH] cmd_pci: Check for VendorID earlier

2015-10-09 Thread Simon Glass
Hi Fabio, On 9 October 2015 at 13:52, Fabio Estevam wrote: > On Fri, Oct 9, 2015 at 6:36 AM, Simon Glass wrote: > >> This seems really odd to me. Why would pci_read_config_word() return >> an error if there is no device there? Is that the real bug here? > > Looks like the expected behaviour: It

[U-Boot] [PATCH v2] nios2: convert cache flush to use dm cpu data

2015-10-09 Thread Thomas Chou
Convert cache flush to use dm cpu data. The original cache flush functions are written in assembly and use CONFIG_SYS_{I,D}CACHE_SIZE... macros. It is difficult to convert to use cache configuration in dm cpu data which is extracted from device tree. The cacheflush.c of Linux nios2 arch uses cpui

Re: [U-Boot] [PATCH] cmd_pci: Check for VendorID earlier

2015-10-09 Thread Fabio Estevam
On Fri, Oct 9, 2015 at 6:36 AM, Simon Glass wrote: > This seems really odd to me. Why would pci_read_config_word() return > an error if there is no device there? Is that the real bug here? Looks like the expected behaviour: It tried to scan all the PCI elements in the bus and it failed to read w

Re: [U-Boot] [PATCH 3/7] sunxi: power: Unify axp pmic function names

2015-10-09 Thread Ian Campbell
On Fri, 2015-10-09 at 13:24 +0200, Hans de Goede wrote: > Hi, > > On 09-10-15 10:31, Ian Campbell wrote: > > On Sat, 2015-10-03 at 22:16 +0200, Hans de Goede wrote: > > > Hi, > > > > > > On 03-10-15 16:32, Chen-Yu Tsai wrote: > > > > On Sat, Oct 3, 2015 at 10:26 PM, Hans de Goede > > > > > > > >

Re: [U-Boot] [RFC] odroid DTB support

2015-10-09 Thread Guillaume Gardet
Le 09/10/2015 14:23, Przemyslaw Marczak a écrit : Hello Guillaume, On 10/09/2015 02:11 PM, Guillaume Gardet wrote: Hi Przemyslaw, I would like to add DTB support for odroid board to be able to boot upstream kernel easily. I see 2 ways to do it: * Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG sup

Re: [U-Boot] Porting UBI fixes (specially fastmap's) to U-Boot

2015-10-09 Thread Heiko Schocher
Hello Ezequiel, Am 09.10.2015 um 06:01 schrieb Heiko Schocher: Hello Ezequiel, Am 08.10.2015 um 17:54 schrieb Ezequiel Garcia: Heiko, On 8 October 2015 at 11:54, Heiko Schocher wrote: [..] Currently I have a (with warnings) compiled U-Boot with ubi/ubifs with linux 4.2 base ... now testing

[U-Boot] [PATCH V3 2/2] odroid: Add boot script (boot.scr) support

2015-10-09 Thread Guillaume GARDET
Add boot script (boot.scr) support. If no boot script are found, it boots as usual. Signed-off-by: Guillaume GARDET Cc: Przemyslaw Marczak Cc: Minkyu Kang --- include/configs/odroid.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/configs/odroid.h b/inc

[U-Boot] [PATCH V3 1/2] odroid: replace 'fatload' with 'load' to be able to use EXT* partitions

2015-10-09 Thread Guillaume GARDET
Replace 'fatload' command by 'load', to be able to use EXT* partitions while keeping FAT partition compatibility. Signed-off-by: Guillaume GARDET Cc: Przemyslaw Marczak Cc: Minkyu Kang --- include/configs/odroid.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inclu

[U-Boot] [PATCH V3 0/2] *Enhance Odroid board

2015-10-09 Thread Guillaume GARDET
Those 2 patches enhances Odroid board support. * First patch replace 'fatload' command by 'load', to be able to use EXT* partitions while keeping FAT partition compatibility. * Second patch adds boot script (boot.scr) support. If no boot script are found, it boots as usual. Changes in V3: * Uses

Re: [U-Boot] [RFC] odroid DTB support

2015-10-09 Thread Przemyslaw Marczak
Hello Guillaume, On 10/09/2015 02:11 PM, Guillaume Gardet wrote: Hi Przemyslaw, I would like to add DTB support for odroid board to be able to boot upstream kernel easily. I see 2 ways to do it: * Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support to set 'board_rev' and 'board_name' env vars. Th

Re: [U-Boot] [PATCH V2 2/2] odroid: Add boot script (boot.scr) support

2015-10-09 Thread Przemyslaw Marczak
Hello, On 10/09/2015 01:59 PM, Guillaume Gardet wrote: Le 09/10/2015 12:24, Przemyslaw Marczak a écrit : Hello Guillaume, On 10/05/2015 11:07 AM, Guillaume GARDET wrote: Add boot script (boot.scr) support. If no boot script are found, it boots as usual. Signed-off-by: Guillaume GARDET Cc:

[U-Boot] [RFC] odroid DTB support

2015-10-09 Thread Guillaume Gardet
Hi Przemyslaw, I would like to add DTB support for odroid board to be able to boot upstream kernel easily. I see 2 ways to do it: * Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdt

[U-Boot] [PATCH v2] nios2: set default cache configuration in start.S

2015-10-09 Thread Thomas Chou
Set default icache and dcache configuration for start.S. We want to remove the CONFIG_SYS_{I,D}CACHE_SIZE... configuration macros. As we are just barely starting from reset, there is no luxury of device tree. We will set some maximum cache configuration so that it will work for most configuration

Re: [U-Boot] [PATCH V2 2/2] odroid: Add boot script (boot.scr) support

2015-10-09 Thread Guillaume Gardet
Le 09/10/2015 12:24, Przemyslaw Marczak a écrit : Hello Guillaume, On 10/05/2015 11:07 AM, Guillaume GARDET wrote: Add boot script (boot.scr) support. If no boot script are found, it boots as usual. Signed-off-by: Guillaume GARDET Cc: Przemyslaw Marczak Cc: Minkyu Kang --- include/conf

[U-Boot] [PATCH] nios2: export fdt_blob to the environment variable

2015-10-09 Thread Thomas Chou
Export fdt_blob to the environment variable. So that we may use it to boot Linux. Signed-off-by: Thomas Chou --- arch/nios2/lib/Makefile | 1 + arch/nios2/lib/misc.c | 16 include/configs/nios2-generic.h | 1 + 3 files changed, 18 insertions(+) create mode 1

Re: [U-Boot] [PATCH v2] nios2: convert dma_alloc_coherent to use memalign

2015-10-09 Thread Thomas Chou
Hi Marek, I look into the code again. I think it is the memalign() that might fail due to out of memory. While the ioremap() of nios2 won't fail. So I added a check on memalign() return. Please see v3. Best regards, Thomas ___ U-Boot mailing list U-

[U-Boot] [PATCH v3] nios2: convert dma_alloc_coherent to use memalign

2015-10-09 Thread Thomas Chou
Convert dma_alloc_coherent to use memalign. Signed-off-by: Thomas Chou --- v2 use memalign. v3 check memalign() return for out of memory. arch/nios2/include/asm/dma-mapping.h | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/arch/nios2/include/asm

Re: [U-Boot] [PATCH 3/7] sunxi: power: Unify axp pmic function names

2015-10-09 Thread Hans de Goede
Hi, On 09-10-15 10:31, Ian Campbell wrote: On Sat, 2015-10-03 at 22:16 +0200, Hans de Goede wrote: Hi, On 03-10-15 16:32, Chen-Yu Tsai wrote: On Sat, Oct 3, 2015 at 10:26 PM, Hans de Goede wrote: Stop prefixing the axp functions for setting voltages, etc. with the model number, there ever i

Re: [U-Boot] [PATCH 1/7] sunxi: Kconfig-ify CONFIG_AXP152_POWER and _AXP209_POWER

2015-10-09 Thread Hans de Goede
Hi, On 09-10-15 08:49, Ian Campbell wrote: On Sat, 2015-10-03 at 16:26 +0200, Hans de Goede wrote: Note that sun5i boards can have either an AXP209 or an AXP152 pmic, Is it actually xor? I think so given that you later on unify the names such that they cannot be compiled in at the same time.

Re: [U-Boot] [PATCH 1/2] x86: gpio: Make x86-pinctrl subnode of ich6-gpio

2015-10-09 Thread Simon Glass
+Masahiro Hi George, On 8 October 2015 at 20:44, George McCollister wrote: > On Thu, Oct 8, 2015 at 12:43 PM, Simon Glass wrote: >> Hi George, >> >> On 7 October 2015 at 16:29, George McCollister >> wrote: >>> Instead of having x86-pinctrl work separately from ich6-gpio have it >>> work undern

Re: [U-Boot] [PATCH v6 1/3] dm: implement a Timer uclass

2015-10-09 Thread Bin Meng
Hi Thomas, On Fri, Oct 9, 2015 at 6:44 PM, Thomas Chou wrote: > Hi Simon, > > On 10/09/2015 05:36 PM, Simon Glass wrote: >>> >>> v6 >>>rename to CONFIG_TIMER as Simon suggested. >> >> >> But note you have changed this too broadly - 'TIMER' appears in >> several places where it should be 'time

Re: [U-Boot] [PATCH v6 1/3] dm: implement a Timer uclass

2015-10-09 Thread Thomas Chou
Hi Simon, On 10/09/2015 05:36 PM, Simon Glass wrote: v6 rename to CONFIG_TIMER as Simon suggested. But note you have changed this too broadly - 'TIMER' appears in several places where it should be 'timer'. Sorry, I made a mistake in the string replacement. Please see v7. Best regards, Th

Re: [U-Boot] [PATCH V2 2/2] odroid: Add boot script (boot.scr) support

2015-10-09 Thread Przemyslaw Marczak
Hello Guillaume, On 10/05/2015 11:07 AM, Guillaume GARDET wrote: Add boot script (boot.scr) support. If no boot script are found, it boots as usual. Signed-off-by: Guillaume GARDET Cc: Przemyslaw Marczak Cc: Minkyu Kang --- include/configs/odroid.h | 9 + 1 file changed, 9 insert

Re: [U-Boot] [PATCH V2 2/2] odroid: Add boot script (boot.scr) support

2015-10-09 Thread Przemyslaw Marczak
Hi Sjoerd, On 10/05/2015 11:13 AM, Sjoerd Simons wrote: On Mon, 2015-10-05 at 11:07 +0200, Guillaume GARDET wrote: Add boot script (boot.scr) support. If no boot script are found, it boots as usual. Instead of extending the specialized boot script, it would belovely to see the odroid board sw

[U-Boot] [PATCH 1/2] Makefile: Generate U_BOOT_DMI_DATE for SMBIOS

2015-10-09 Thread Bin Meng
Add U_BOOT_DMI_DATE (format mm/dd/) generation to be used by SMBIOS tables, as required by SMBIOS spec 3.0 [1]. See chapter 7.1, BIOS information structure offset 08h for details. [1] http://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.0.0.pdf Signed-off-by: Bin Meng ---

[U-Boot] [PATCH 2/2] x86: Add SMBIOS table support

2015-10-09 Thread Bin Meng
System Management BIOS (SMBIOS) is a specification for how motherboard and system vendors present management information about their products in a standard format by extending the BIOS interface on Intel architecture systems. As of today the latest spec is 3.0 and can be downloaded from DMTF websit

Re: [U-Boot] [PATCH 01/10] rockchip: rk3288: Add pinctrl support for the gmac ethernet interface

2015-10-09 Thread Sjoerd Simons
On Fri, 2015-10-09 at 10:36 +0100, Simon Glass wrote: > Hi Sjoerd, > > On 5 October 2015 at 10:04, Sjoerd Simons < > sjoerd.sim...@collabora.co.uk> wrote: > > On Sat, 2015-10-03 at 15:29 +0100, Simon Glass wrote: > > > > On 1 October 2015 at 10:48, Sjoerd Simons < > > > > sjoerd.sim...@collabora.c

Re: [U-Boot] [PATCH 1/2] Kconfig: add CONFIG_BOOTDELAY

2015-10-09 Thread Simon Glass
Hi Igor, On 8 October 2015 at 20:10, Igor Grinberg wrote: > Add CONFIG_BOOTDELAY to the Kconfig. > Default it to 3 seconds according to the majority of configs. > > Signed-off-by: Igor Grinberg > Cc: Simon Glass > Cc: Masahiro Yamada > --- > common/Kconfig | 10 ++ > 1 file changed, 1

Re: [U-Boot] [PATCH 01/10] rockchip: rk3288: Add pinctrl support for the gmac ethernet interface

2015-10-09 Thread Simon Glass
Hi Sjoerd, On 5 October 2015 at 10:04, Sjoerd Simons wrote: > On Sat, 2015-10-03 at 15:29 +0100, Simon Glass wrote: >> > On 1 October 2015 at 10:48, Sjoerd Simons < >> > sjoerd.sim...@collabora.co.uk> wrote:Add support for the gmac >> > ethernet interface to pinctrl. This hardcodes > >> > the set

  1   2   >