Re: [U-Boot] usb flash boot on am335x machines

2015-01-26 Thread matti kaasinen
2015-01-26 17:46 GMT+02:00 Jon Cormier : > 26.1.8.6 Thanks Jon! My interpretation from codes was pretty much what you described that USB boot really was "modified network boot". I'm not too sure that this was HW restriction (=CPU) but merely u-boot boot strategy decision as am335x does have boo

Re: [U-Boot] [PATCH] patman: Make dry-run output match real functionality

2015-01-26 Thread Simon Glass
Hi Peter, On 26 January 2015 at 10:42, Peter Tyser wrote: > When run with the --dry-run argument patman prints out information > showing what it would do. This information currently doesn't line up > with what patman/git send-email really do. Some basic examples: > - If an email address is addr

[U-Boot] [PATCH v4 3/4] dm: i2c: Add two more I2C init functions to the compatibility layer

2015-01-26 Thread Simon Glass
These functions are useful in case the board calls them. Also fix a missing parameter caused by applying the wrong patch (actually I failed to send v2 and applied v1 by mistake). Signed-off-by: Simon Glass --- Changes in v4: - Bring in the correct patch version drivers/i2c/i2c-uclass-compat.c

[U-Boot] [PATCH v4 2/4] dm: exynos: dts: Set the offset length for cros_ec

2015-01-26 Thread Simon Glass
The EC has no concept of offset, so use a value of 0. Signed-off-by: Simon Glass --- Changes in v4: None arch/arm/dts/exynos5250-snow.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/exynos5250-snow.dts b/arch/arm/dts/exynos5250-snow.dts index 649e4bd..7d8be69 100644 --- a/

[U-Boot] [PATCH v4 1/4] dm: i2c: dts: Support an offset-len device tree property

2015-01-26 Thread Simon Glass
Since U-Boot can support different offset lengths (0-4 bytes), add a device tree property to specify this. This avoids hard-coding it in the driver. Signed-off-by: Simon Glass --- Changes in v4: None doc/device-tree-bindings/i2c/i2c.txt | 28 drivers/i2c/i2c-uclass

[U-Boot] [PATCH v4 4/4] dm: cros_ec: Convert cros_ec_i2c over to driver model

2015-01-26 Thread Simon Glass
Move this driver to use driver model and update the snow configuration to match. Signed-off-by: Simon Glass --- Changes in v4: - Add patches to support offset length in device tree - Rebase on top of exynos I2C series drivers/misc/cros_ec_i2c.c | 82

[U-Boot] [PATCH v4 0/4] dm: i2c: Convert cros_ec_i2c over to driver model

2015-01-26 Thread Simon Glass
This series sits on top of Przemyslaw's recent driver model conversion for Exynos. It changes the cros_ec_i2c driver to use driver model. Also a new device tree property is added to support offset length, a U-Boot I2C concept but a feature of the hardware. Changes in v4: - Bring in the correct pa

Re: [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode

2015-01-26 Thread York Sun
Minghuan, On 01/26/2015 09:12 PM, Lian Minghuan-B31939 wrote: > Hi York, > > We can not use phys_addr_t and phys_size_t here. > > If CONFIG_PHYS_64BIT is defined and uboot is compiled as 32bit like > PowerPC64 arch, > phys_addr_t and phys_size_t will be defined as 64bit, but the pointer is >

Re: [U-Boot] [PATCH v2 10/10] exynos5: enable dm i2c

2015-01-26 Thread Simon Glass
On 26 January 2015 at 08:21, Przemyslaw Marczak wrote: > This patch enables CONFIG_DM_I2C and also CONFIG_DM_I2C_COMPAT. > The last one should be removed when all the i2c peripheral > drivers will use dm i2c framework. > > Signed-off-by: Przemyslaw Marczak > Cc: Akshay Saraswat > Cc: Minkyu Kang

Re: [U-Boot] [PATCH v2 07/10] dm: i2c: s3c24x0: adjust to dm-i2c api

2015-01-26 Thread Simon Glass
Hi Przemyslaw, On 26 January 2015 at 08:21, Przemyslaw Marczak wrote: > This commit adjusts the s3c24x0 driver to new i2c api > based on driver-model. The driver supports standard > and high-speed i2c as previous. > > Tested on Trats2, Odroid U3, Arndale, Odroid XU3 > > Signed-off-by: Przemyslaw

Re: [U-Boot] [PATCH 03/18] smdk5250: config: enable max77686 driver support

2015-01-26 Thread Simon Glass
On 8 January 2015 at 04:33, Przemyslaw Marczak wrote: > This commit enable support for the above driver, > which was disabled in common config. > > Signed-off-by: Przemyslaw Marczak > Cc: Simon Glass > Cc: Minkyu Kang > --- > include/configs/smdk5250.h | 2 ++ > 1 file changed, 2 insertions(+)

Re: [U-Boot] [PATCH 06/18] exynos5: pinmux: check flag for i2c config

2015-01-26 Thread Simon Glass
Hi Przemyslaw, On 8 January 2015 at 04:33, Przemyslaw Marczak wrote: > Some versions of Exynos5 supports High-Speed I2C, > on few interfaces, this change allows support this. > > Signed-off-by: Przemyslaw Marczak > Cc: Simon Glass > Cc: Akshay Saraswat > Cc: Minkyu Kang > --- > arch/arm/cpu/

Re: [U-Boot] [PATCH v2 08/10] odroid u3: dts: add missing i2c aliases

2015-01-26 Thread Simon Glass
On 26 January 2015 at 08:21, Przemyslaw Marczak wrote: > This change fixes i2c bus numbering for Odroid U3. > > Signed-off-by: Przemyslaw Marczak > Cc: Minkyu Kang > > --- > Changes v2: > - new patch > --- > arch/arm/dts/exynos4412-odroid.dts | 7 +++ > 1 file changed, 7 insertions(+) Acke

Re: [U-Boot] [PATCH v2 09/10] odroid u3: enable dm i2c support

2015-01-26 Thread Simon Glass
On 26 January 2015 at 08:21, Przemyslaw Marczak wrote: > This patch enables CONFIG_DM_I2C and also CONFIG_DM_I2C_COMPAT. > The last one should be removed when the dm pmic framework will > be finished. > > Signed-off-by: Przemyslaw Marczak > Cc: Minkyu Kang > > --- > Changes v2: > - new patch > -

Re: [U-Boot] [PATCH 05/18] arndale: dts: add missing i2c aliases

2015-01-26 Thread Simon Glass
On 8 January 2015 at 04:33, Przemyslaw Marczak wrote: > Without this alias setting, the seq numbers > of the i2c devices are wrong. > > Signed-off-by: Przemyslaw Marczak > Cc: Simon Glass > Cc: Minkyu Kang > --- > arch/arm/dts/exynos5250-arndale.dts | 8 > 1 file changed, 8 insertions

Re: [U-Boot] [PATCH 04/18] exynos4: dts: add missing i2c properties

2015-01-26 Thread Simon Glass
On 8 January 2015 at 04:33, Przemyslaw Marczak wrote: > This patch modify i2c nodes in exynos4.dtsi with: > - adding proper interrupts arrays for each i2c node, > which allows to decode periph id > - add reg address for each i2c node for i2c driver internal use > > Signed-off-by: Przemyslaw Marc

Re: [U-Boot] [PATCH 02/18] exynos5250: config: disable max77686 driver

2015-01-26 Thread Simon Glass
On 8 January 2015 at 04:33, Przemyslaw Marczak wrote: > This PMIC is not common for all Exynos5250 > based boards, so should be romoved from > common config. > > Signed-off-by: Przemyslaw Marczak > Cc: Simon Glass > Cc: Minkyu Kang > --- > include/configs/exynos5250-common.h | 3 --- > 1 file

Re: [U-Boot] [PATCH 01/18] arndale: config: disable max77686 support

2015-01-26 Thread Simon Glass
On 8 January 2015 at 04:33, Przemyslaw Marczak wrote: > There is no MAX77686 pmic on this board, > so the driver support should be removed. > > Signed-off-by: Przemyslaw Marczak > Cc: Minkyu Kang > --- > include/configs/arndale.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include

Re: [U-Boot] [PATCH] drivers/net/e1000.c: fix compile warning under 64bit mode

2015-01-26 Thread Lian Minghuan-B31939
Hi York, We can not use phys_addr_t and phys_size_t here. If CONFIG_PHYS_64BIT is defined and uboot is compiled as 32bit like PowerPC64 arch, phys_addr_t and phys_size_t will be defined as 64bit, but the pointer is still 32bit size. we could not convert directly between phys_addr_t and a poi

[U-Boot] [PATCH] net: configure DWMAC DMA by default AXI burst length

2015-01-26 Thread sonic.adi
From: Sonic Zhang Board can define its own AXI burst length to improve DWMAC DMA performance. Signed-off-by: Sonic Zhang --- drivers/net/designware.c |2 ++ drivers/net/designware.h |5 + 2 files changed, 7 insertions(+) diff --git a/drivers/net/designware.c b/drivers/net/designw

[U-Boot] [PATCH v5 2/3] pmic:pfuze implement pmic_mode_init

2015-01-26 Thread Peng Fan
This patch is to implement pmic_mode_init function, and add prototype in header file. This function is to set switching mode for pmic buck regulators to improve system efficiency. Mode: OFF: The regulator is switched off and the output voltage is discharged. PFM: In this mode, the regulator is al

[U-Boot] [PATCH v5 3/3] imx:mx6 set normal APS and standby PFM mode

2015-01-26 Thread Peng Fan
To normal mode, use APS switching mode. To standy mode, use PFM switching mode. Signed-off-by: Peng Fan Acked-by: Przemyslaw Marczak --- Changes v5: Add Acked-by: Przemyslaw Marczak Changes v4: none Changes v3: Following Fabio's comments, correct return value Changes v2: none board/fr

[U-Boot] [PATCH v5 0/3] pmic:pfuze support buck regulator mode switch

2015-01-26 Thread Peng Fan
This patch set is to support buck regulator can working in different switching modes. To improve system efficiency the buck regulators can operate in different switching modes. patch 1/3 is to add related bit definitions and registers. patch 2/3 is to implement the switching mode init function. pa

[U-Boot] [PATCH v5 1/3] pmic:pfuz100 add switch mode and more registers

2015-01-26 Thread Peng Fan
Add more pfuze register offset. And switch mode definition. Add a macro SWITCH_SIZE Signed-off-by: Peng Fan Acked-by: Przemyslaw Marczak Reviewed-by: Stefano Babic --- Changes v5: add "Acked-by: Przemyslaw Marczak " and "Reviewed-by: Stefano Babic " define a SWITCH_SIZE macro to replace

Re: [U-Boot] [PATCH 1/5] nand: Use common read function instead of verify_buf()

2015-01-26 Thread Scott Wood
On Mon, 2015-01-26 at 17:17 -0600, Peter Tyser wrote: > On Mon, 2015-01-26 at 16:33 -0600, Scott Wood wrote: > > On Mon, 2015-01-26 at 16:24 -0600, Peter Tyser wrote: > > > The driver-specific verify_buf() function can be replaced with the > > > standard read_page_raw() function to verify writes.

[U-Boot] [PATCH 10/23] x86: bootstage: Add time measurement for vesa start-up

2015-01-26 Thread Simon Glass
Since we must run a PCI BIOS ROM, and this can take a calamitous amount of time, measure it using bootstage. Signed-off-by: Simon Glass --- drivers/video/vesa_fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/vesa_fb.c b/drivers/video/vesa_fb.c index 9164f8d..47f824a 1006

[U-Boot] [PATCH 11/23] x86: Move common FSP code into a common location

2015-01-26 Thread Simon Glass
Signed-off-by: Simon Glass --- arch/x86/cpu/queensbay/Makefile| 2 +- arch/x86/cpu/queensbay/fsp_configs.c | 2 +- arch/x86/cpu/queensbay/tnc.c | 2 +- arch/x86/cpu/queensbay/tnc_dram.c

[U-Boot] [PATCH 13/23] x86: Make CAR and DRAM FSP code common

2015-01-26 Thread Simon Glass
For now this code seems to be the same for all FSP platforms. Make it common until we see what differences are required. Signed-off-by: Simon Glass --- arch/x86/cpu/queensbay/Makefile | 2 +- arch/x86/lib/fsp/Makefile | 2 ++ arch/x86/{c

[U-Boot] [PATCH v2 2/3] serial: ns16550: Add access functions that don't need platdata

2015-01-26 Thread Simon Glass
For the debug UART we need to be able to provide any parameters before driver model is set up. Add parameters to the low-level access functions to make this possible. Signed-off-by: Simon Glass --- Changes in v2: None drivers/serial/ns16550.c | 48 ++

[U-Boot] [PATCH v2 0/3] Add generic early debug UART feature

2015-01-26 Thread Simon Glass
This series adds debug UART infrastructure which can in principle be used on any architecture. It works best with those that don't need a stack to call functions (e.g. ARM, PowerPC). This came up in a discussion on the mailing list here: https://patchwork.ozlabs.org/patch/384613/ My concerns

[U-Boot] [PATCH v2 1/3] serial: Support an early UART for debugging

2015-01-26 Thread Simon Glass
This came up in a discussion on the mailing list here: https://patchwork.ozlabs.org/patch/384613/ My concerns at the time were: - it doesn't need to be written in assembler - it doesn't need to be ARM-specific This patch provides a possible alternative. It works by allowing any serial driver to

[U-Boot] [PATCH v2 3/3] serial: ns16550: Support debug UART

2015-01-26 Thread Simon Glass
Add debug UART functions to permit ns16550 to provide an early debug UART. Try to avoid using the stack so that this can be called from assembler before a stack is set up (at least on ARM and PowerPC). Signed-off-by: Simon Glass --- Changes in v2: - Split series out on its own - Add x86 support

[U-Boot] [PATCH 22/23] x86: Add some documentation on how to port U-Boot on x86

2015-01-26 Thread Simon Glass
Some information has been gleaned on tools and procedures for porting U-Boot to different x86 platforms. Add a few notes to start things off. Signed-off-by: Simon Glass --- doc/README.x86 | 63 ++ 1 file changed, 63 insertions(+) diff --g

[U-Boot] [PATCH 09/23] x86: video: Allow video ROM execution to fall back to the other method

2015-01-26 Thread Simon Glass
If the BIOS emulator is not available, allow use of native execution if available, and vice versa. This can be controlled by the caller. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/gma.c | 3 ++- drivers/pci/pci_rom.c| 32 +--- drivers/video/vesa_f

[U-Boot] [PATCH 18/23] x86: Allow a UART to be set up before the FSP is ready

2015-01-26 Thread Simon Glass
Since the FSP is a black box it helps to have some sort of debugging available to check its inputs. If the debug UART is in use, set it up after CAR is available. Signed-off-by: Simon Glass --- arch/x86/include/asm/u-boot-x86.h | 3 +++ arch/x86/lib/fsp/fsp_support.c| 4 2 files change

[U-Boot] [PATCH 19/23] x86: spi: Support ValleyView in ICH SPI driver

2015-01-26 Thread Simon Glass
The base address is found in a different way and the protection bit is also in a different place. Otherwise it is very similar. Signed-off-by: Simon Glass --- drivers/spi/ich.c | 56 --- drivers/spi/ich.h | 11 ++- 2 files changed, 47

[U-Boot] [PATCH 07/23] x86: Add an option to enabling building a ROM file

2015-01-26 Thread Simon Glass
Rather than requiring the Makefile to be modified, provide a build option to enable the ROM to be built. We cannot do this by default since it requires binary blobs. Without these the build will fail. Signed-off-by: Simon Glass --- Makefile | 5 +++-- doc/README.x86 | 10 ++ 2 f

[U-Boot] [PATCH 14/23] x86: Move common FSP functions into a common file

2015-01-26 Thread Simon Glass
Since these board functions seem to be the same for all boards which use FSP, move them into a common file. We can adjust this later if future FSPs need more flexibility. Signed-off-by: Simon Glass --- arch/x86/cpu/queensbay/tnc.c | 27 arch/x86/cpu/queensbay/tnc_pci.c | 15 -

[U-Boot] [PATCH 12/23] x86: Adjust the FSP types slightly

2015-01-26 Thread Simon Glass
To avoid casts, find_fsp_header() should return a pointer. Add asmlinkage to two API functions which use that convention. UPD_TERMINATOR is common so move it into a common file. Signed-off-by: Simon Glass --- arch/x86/include/asm/arch-queensbay/fsp/fsp_vpd.h | 2 -- arch/x86/include/asm/fsp/fsp

[U-Boot] [PATCH 08/23] x86: Make MMCONF_BASE_ADDRESS common across x86

2015-01-26 Thread Simon Glass
This setting will be used by more than just ivybridge so make it common. Signed-off-by: Simon Glass --- arch/x86/Kconfig | 12 board/google/chromebook_link/Kconfig | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86

[U-Boot] [PATCH 21/23] x86: Enable bootstage features

2015-01-26 Thread Simon Glass
Allow measuring of boot time using bootstage. Signed-off-by: Simon Glass --- include/configs/x86-common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h index ecedfc3..66d4894 100644 --- a/include/configs/x86-common.h +++ b/inc

[U-Boot] [PATCH 20/23] scsi: bootstage: Measure time taken to scan the bus

2015-01-26 Thread Simon Glass
On some hardware this time can be significant. Add bootstage support for measuring this. The result can be obtained using 'bootstage report' or passed on to the Linux via the device tree. Signed-off-by: Simon Glass --- common/cmd_scsi.c | 2 ++ include/bootstage.h | 1 + 2 files changed, 3 in

[U-Boot] [PATCH 17/23] x86: Define cache line size

2015-01-26 Thread Simon Glass
This avoids a warning in the Realtek Ethernet driver. The value may not matter on x86. Signed-off-by: Simon Glass --- arch/x86/include/asm/cache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/cache.h b/arch/x86/include/asm/cache.h index 508b63f..fff1edd 100644 ---

[U-Boot] [PATCH 02/23] pci: Add a function to find a device by class

2015-01-26 Thread Simon Glass
There is an existing function prototype in the header file but it is not implemented. Implement something similar. Signed-off-by: Simon Glass --- drivers/pci/pci.c | 38 ++ include/pci.h | 3 +-- 2 files changed, 39 insertions(+), 2 deletions(-) diff --

[U-Boot] [PATCH 03/23] x86: pci: Add PCI IDs for Minnowboard Max

2015-01-26 Thread Simon Glass
This board includes a few IDs we have not seen before. Signed-off-by: Simon Glass --- include/pci_ids.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/pci_ids.h b/include/pci_ids.h index 26f4748..1012abe 100644 --- a/include/pci_ids.h +++ b/include/pci_ids.h @@ -1346,6 +1346,7

[U-Boot] [PATCH 06/23] usb: pci: Add XHCI driver for PCI

2015-01-26 Thread Simon Glass
Add a driver which locates the available XHCI controllers on the PCI bus and makes them available. Signed-off-by: Simon Glass --- drivers/usb/host/Makefile | 1 + drivers/usb/host/xhci-pci.c | 60 + 2 files changed, 61 insertions(+) create mode 10

[U-Boot] [PATCH 16/23] x86: Allow FSP Kconfig settings for all x86

2015-01-26 Thread Simon Glass
While queensbay is the first chip with these settings, others will want to use them too. Make them common. Signed-off-by: Simon Glass --- arch/x86/Kconfig | 38 ++ arch/x86/cpu/queensbay/Kconfig | 38 -- 2 fil

[U-Boot] [PATCH 05/23] usb: pci: Use pci_find_class() to find the device

2015-01-26 Thread Simon Glass
Use the new utility function instead of local code. Signed-off-by: Simon Glass --- drivers/usb/host/ehci-pci.c | 53 + 1 file changed, 1 insertion(+), 52 deletions(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 991b19

[U-Boot] [PATCH 04/23] x86: video: Enable video for Minnowboard Max

2015-01-26 Thread Simon Glass
This board uses a new PCI ID. Signed-off-by: Simon Glass --- drivers/video/vesa_fb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/vesa_fb.c b/drivers/video/vesa_fb.c index 3dacafd..3a0fea2 100644 --- a/drivers/video/vesa_fb.c +++ b/drivers/video/vesa_fb.c @@ -23,6 +23,7 @@

[U-Boot] [PATCH 01/23] x86: Enhance the microcode tool to support header files as input

2015-01-26 Thread Simon Glass
Sometimes microcode is delivered as a header file. Allow the tool to support this as well as collecting multiple microcode blocks into a single update. Signed-off-by: Simon Glass --- tools/microcode-tool.py | 90 ++--- 1 file changed, 70 insertions(+)

[U-Boot] [PATCH 15/23] x86: Remove unnecessary casts and fix comment typos

2015-01-26 Thread Simon Glass
Tidy up the FSP support code a little. Signed-off-by: Simon Glass --- arch/x86/lib/fsp/fsp_support.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp/fsp_support.c index bf37807..8b639f7 100644 --- a/arch/x86/lib/fs

[U-Boot] [PATCH 0/23] x86: Add bare support for Intel Minnowboard Max

2015-01-26 Thread Simon Glass
This series adds support for the Intel Minnowboard Max (called Minnowmax for short). Along the way a few refactors and additions are made: - The Intel Firmware Support Package support is moved from queensbay to a common location - PCI support for XHCI is added - A few tweaks are made to the PCI su

Re: [U-Boot] [PATCH v3 24/26] dm: cros_ec: Move cros_ec_i2c over to driver model

2015-01-26 Thread Simon Glass
On 26 January 2015 at 13:14, Simon Glass wrote: > On 25 January 2015 at 08:27, Simon Glass wrote: >> Update the driver model support, and remove the old code. Change snow to >> use this new support. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: None >> Changes in v2: >> - Add patc

Re: [U-Boot] [PATCH 1/5] nand: Use common read function instead of verify_buf()

2015-01-26 Thread Peter Tyser
On Mon, 2015-01-26 at 16:33 -0600, Scott Wood wrote: > On Mon, 2015-01-26 at 16:24 -0600, Peter Tyser wrote: > > The driver-specific verify_buf() function can be replaced with the > > standard read_page_raw() function to verify writes. This will > > allow > > verify_buf() to be removed from indi

Re: [U-Boot] [PATCH 1/5] nand: Use common read function instead of verify_buf()

2015-01-26 Thread Scott Wood
On Mon, 2015-01-26 at 16:24 -0600, Peter Tyser wrote: > The driver-specific verify_buf() function can be replaced with the > standard read_page_raw() function to verify writes. This will allow > verify_buf() to be removed from individual drivers. verify_buf() is no > longer supported in mainline

Re: [U-Boot] [PATCH] sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

2015-01-26 Thread Adam Sampson
Hi Christophe, On Mon, Jan 26, 2015 at 07:15:20AM -0800, christophe.le.rou...@gmail.com wrote: > > +CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPH(2),USB_EHCI" > > What do you think about adding "RGMII" in the CONFIG_SYS_EXTRA_OPTIONS > like other gigabit A20 board ? Go

[U-Boot] [PATCH v7] Export redesign

2015-01-26 Thread Simon Glass
From: Martin Dorwig this is an atempt to make the export of functions typesafe. I replaced the jumptable void ** by a struct (jt_funcs) with function pointers. The EXPORT_FUNC macro now has 3 fixed parameters and one variadic parameter The first is the name of the exported function, the rest of t

[U-Boot] [PATCH v2] sunxi: Add Linksprite_pcDuino3_Nano board / defconfig

2015-01-26 Thread Adam Sampson
This is a low-cost Allwinner A20 board with Arduino-style GPIO headers; it features 1G RAM, 4G NAND flash, 1 micro-SD, 2 USB sockets, 1 micro USB socket for OTG and another for power in, HDMI, SATA, 5V power for SATA devices, gigabit Ethernet, an IR receiver, 3.5mm audio out and a MIPI camera conne

[U-Boot] [PATCH 3/5] mtd: nand: Remove nand_verify_buf() function

2015-01-26 Thread Peter Tyser
The nand_verify_buf() function is no longer used, so remove it. This function has been removed in mainline Linux for a long time, so it brings U-Boot's NAND implementation a bit closer to its source. Signed-off-by: Peter Tyser --- board/prodrive/alpr/nand.c | 16 - board/socr

[U-Boot] [PATCH 2/5] mtd: davinci_nand: Use common read function instead of verify_buf()

2015-01-26 Thread Peter Tyser
The driver-specific verify_buf() function can be replaced with the standard read_page_raw() function to verify writes. This will allow verify_buf() to be removed. verify_buf() is no longer supported in mainline Linux, so it is a pain to continue supporting. Signed-off-by: Peter Tyser --- I don'

[U-Boot] [PATCH 4/5] mtd: nand: Use ECC for NAND write verification

2015-01-26 Thread Peter Tyser
From: Joe Schaack Modify the nand_write_page() function to use ECC when appropriate to verify writes. Previously if a single bit error occured and software ECC was used the write verification would report a failure. However, the write really did succeed, since ECC can handle the error. The iss

[U-Boot] [PATCH 5/5] mtd: davinci nand: Use ECC for NAND write verification

2015-01-26 Thread Peter Tyser
From: Joe Schaack Modify the nand_davinci_write_page() function to use ECC when appropriate to verify writes. Previously if a single bit error occured and software ECC was used the write verification would report a failure. However, the write really did succeed, since ECC can handle the error.

[U-Boot] [PATCH 1/5] nand: Use common read function instead of verify_buf()

2015-01-26 Thread Peter Tyser
The driver-specific verify_buf() function can be replaced with the standard read_page_raw() function to verify writes. This will allow verify_buf() to be removed from individual drivers. verify_buf() is no longer supported in mainline Linux, so it is a pain to continue supporting. Signed-off-by:

[U-Boot] [PATCH 2/2] fastboot: add support for "oem format" command

2015-01-26 Thread Rob Herring
Add "oem format" command to write partition table. This relies on the env variable partitions to contain the list of partitions as required by the gpt command. Note that this does not erase any data other than the partition table. Signed-off-by: Rob Herring --- drivers/usb/gadget/f_fastboot.c |

[U-Boot] [PATCH 0/2] Fastboot OEM commands

2015-01-26 Thread Rob Herring
This series adds fastboot oem sub-command infrastructure and support for "oem format" command which partitions and formats the storage device. The partition layout is set within the u-boot env and is implemented using the "gpt write" command. Rob Michael Scott (1): fastboot: add "fastboot oe

[U-Boot] [PATCH 1/2] fastboot: add "fastboot oem" command support

2015-01-26 Thread Rob Herring
From: Michael Scott Add code stub to handle "fastboot oem __" command. As unlock is a common fastboot command, distinguish that it is not implemented. Signed-off-by: Michael Scott Signed-off-by: Rob Herring --- drivers/usb/gadget/f_fastboot.c | 15 +++ 1 file changed, 15 insertion

[U-Boot] [PATCH] fastboot: Add USB cable detect check

2015-01-26 Thread Rob Herring
Add a check for USB cable attached and only enter fastboot when a cable is attached. Signed-off-by: Rob Herring --- common/cmd_fastboot.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c index b72f4f3..346ab80 100644 --- a/common/cmd_fastboo

[U-Boot] [PATCH v6] Export redesign

2015-01-26 Thread Simon Glass
From: Martin Dorwig this is an atempt to make the export of functions typesafe. I replaced the jumptable void ** by a struct (jt_funcs) with function pointers. The EXPORT_FUNC macro now has 3 fixed parameters and one variadic parameter The first is the name of the exported function, the rest of t

Re: [U-Boot] m68k: Build problems on some boards

2015-01-26 Thread Angelo Dureghello
Dear Masahiro, On 15/12/2014 17:46, Masahiro YAMADA wrote: Hi Angelo, 2014-12-02 18:22 GMT+09:00 Angelo Dureghello : And thanks to your post i have also seen now how to build all the m68k boards in the correct way. So the tool chain you posted gives no warnings and so it is the recommended

Re: [U-Boot] [PATCH v5] Export redesign

2015-01-26 Thread Simon Glass
Hi Wolfgang, On 26 January 2015 at 11:55, Wolfgang Denk wrote: > Dear Simon, > > In message > you > wrote: >> >> > Is this a 100% binary compatible change? If not, should we not also >> > increment XF_VERSION ? >> >> If a board has move to driver model and doesn't use >> CONFIG_DM_I2C_COMPAT

Re: [U-Boot] [PATCH v3 25/26] dm: cros_ec_spi: Remove old pre-driver-model code

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > This is no-longer needed since all platforms use SPI for cros_ec. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: > - Add patches to tidy up cros_ec using new I2C/SPI features > > drivers/misc/cros_ec_spi.c | 51 > +

Re: [U-Boot] [PATCH v3 26/26] dm: Update documentation for new bus features

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > Now that we have new bus features, update README.txt and the SPI docs to > explain these. > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: > - Drop RFC prefix since this series has been properly tested now > - Update com

Re: [U-Boot] [PATCH v3 24/26] dm: cros_ec: Move cros_ec_i2c over to driver model

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > Update the driver model support, and remove the old code. Change snow to > use this new support. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: > - Add patches to tidy up cros_ec using new I2C/SPI features > > drive

Re: [U-Boot] [PATCH v3 23/26] dm: cros_ec: Don't require protocol 3 support

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > I2C is now deprecated on ARM platforms and there are no devices that use it > with the v3 protocol. We can't require v3 support if we want to support I2C. > Adjust the error handling to suit. > > Signed-off-by: Simon Glass > --- > > Changes in v3:

Re: [U-Boot] [PATCH v3 22/26] dm: core: Ignore disabled devices when binding

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > We don't want to bind devices which should never be used. > > Signed-off-by: Simon Glass > Reviewed-by: Masahiro Yamada > --- > > Changes in v3: None > Changes in v2: > - Add patches to tidy up cros_ec using new I2C/SPI features > > drivers/core

Re: [U-Boot] [PATCH v3 21/26] dm: exynos: Drop unused COMPAT features for SPI

2015-01-26 Thread Simon Glass
On 25 January 2015 at 23:53, Minkyu Kang wrote: > On 26/01/15 00:27, Simon Glass wrote: >> This has moved to driver model so we don't need the fdtdec support. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: None >> Changes in v2: None >> >> include/fdtdec.h | 1 - >> lib/fdtdec.c

Re: [U-Boot] [PATCH v3 18/26] dm: spi: Move slave details to child platdata

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > At present we go through various contortions to store the SPI slave's chip > select in its private data. This only exists when the slave is active so > must be set up when it is probed. Until the device is probed we don't > actually know what chip

Re: [U-Boot] [PATCH v3 20/26] dm: tegra: Drop unused COMPAT features for I2C, SPI

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > These have moved to driver model so we don't need the fdtdec support. > > Signed-off-by: Simon Glass Applied to -u-boot-dm ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listi

Re: [U-Boot] [PATCH v3 19/26] dm: i2c: Move slave details to child platdata

2015-01-26 Thread Simon Glass
On 25 January 2015 at 19:05, Masahiro Yamada wrote: > > On Sun, 25 Jan 2015 08:27:13 -0700 > Simon Glass wrote: > >> At present we go through various contortions to store the I2C's chip >> address in its private data. This only exists when the chip is active so >> must be set up when it is probed

Re: [U-Boot] [PATCH v3 15/26] dm: sandbox: sf: Tidy up the error handling in sandbox_sf_probe()

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > Use a single exit point when we have an error and add debugging there. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > drivers/mtd/spi/sandbox.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-)

Re: [U-Boot] [PATCH v3 16/26] dm: core: Allow uclass to set up a device's child before it is probed

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > Some buses need to set up their devices before they can be used. This setup > may well be common to all buses in a particular uclass. Support a common > pre-probe method for the uclass, called before any bus devices are probed. > > Signed-off-by: S

Re: [U-Boot] [PATCH v3 17/26] dm: spi: Set up the spi_slave device pointer in child_pre_probe()

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > At present we use struct spi_slave as our device pointer in a lot of places > to avoid changing the old SPI API. At some point this will go away. > > But for now, it is better if the SPI uclass sets up this pointer, rather > than relying on passing

Re: [U-Boot] [PATCH v3 14/26] dm: core: Allow the uclass to set up a device's child after binding

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > For buses, after a child is bound, allow the uclass to perform some > processing. This can be used to figure out the address of the child (e.g. > the chip select for SPI slaves) so that it is ready to be probed. > > This avoids bus drivers having t

Re: [U-Boot] [PATCH v3 13/26] dm: spi: Move the per-child data size to the uclass

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > This is common to all SPI drivers and specifies a structure used by the > uclass. It makes more sense to define it in the uclass. > > Reviewed-by: Masahiro Yamada > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None >

Re: [U-Boot] [PATCH v3 12/26] dm: core: Allow uclasses to specify private data for a device's children

2015-01-26 Thread Simon Glass
On 25 January 2015 at 19:00, Masahiro Yamada wrote: > > On Sun, 25 Jan 2015 08:27:06 -0700 > Simon Glass wrote: > >> In many cases the per-child private data for a device's children is defined >> by the uclass rather than the individual driver. For example, a SPI bus >> needs to store information

Re: [U-Boot] [PATCH v3 08/26] dm: core: Allow uclasses to specify platdata for a device's children

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > In many cases the child platform data for a device's children is defined by > the uclass rather than the individual devices. For example, a SPI bus needs > to know the chip select and speed for each of its children. It makes sense > to allow this i

Re: [U-Boot] [PATCH v3 09/26] dm: core: Add a post_bind method for parents

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > Allow parent drivers to be called when a new child is bound to them. This > allows a bus to set up information it needs for that child. > > Signed-off-by: Simon Glass > Reviewed-by: Masahiro Yamada > --- > > Changes in v3: None > Changes in v2: N

Re: [U-Boot] [PATCH v3 10/26] dm: core: Add a function to get a device's uclass ID

2015-01-26 Thread Simon Glass
On 25 January 2015 at 18:58, Masahiro Yamada wrote: > > On Sun, 25 Jan 2015 08:27:04 -0700 > Simon Glass wrote: > >> This is useful to check which uclass a device is in. >> >> Signed-off-by: Simon Glass > > > Reviewed-by: Masahiro Yamada > Applied to -u-boot-dm

Re: [U-Boot] [PATCH v3 11/26] dm: core: Add a flag to control sequence numbering

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:27, Simon Glass wrote: > At present we try to use the 'reg' property and device tree aliases to give > devices a sequence number. The 'reg' property is often actually a memory > address, so the sequence numbers thus-obtained are not useful. It would be > better if the devi

Re: [U-Boot] [PATCH v3 07/26] dm: core: Allow parents to have platform data for their children

2015-01-26 Thread Simon Glass
On 25 January 2015 at 18:56, Masahiro Yamada wrote: > > On Sun, 25 Jan 2015 08:27:01 -0700 > Simon Glass wrote: > >> For buses it is common for parents to need to know the address of the child >> on the bus, the bus speed to use for that child, and other information. This >> can be provided in pl

Re: [U-Boot] [PATCH v3 06/26] dm: core: Allocate platform data when binding a device

2015-01-26 Thread Simon Glass
On 25 January 2015 at 18:57, Masahiro Yamada wrote: > > On Sun, 25 Jan 2015 08:27:00 -0700 > Simon Glass wrote: > >> When using allocated platform data, allocate it when we bind the device. >> This makes it possible to fill in this information before the device is >> probed. >> >> This fits with

Re: [U-Boot] [PATCH v3 05/26] dm: core: Tidy up error handling in device_bind()

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:26, Simon Glass wrote: > Make the error handling more standard to make it easier to build on top of > it. Also correct a bug in the error path where there is no parent. > > Signed-off-by: Simon Glass > Reviewed-by: Masahiro Yamada > --- > > Changes in v3: None > Changes

Re: [U-Boot] [PATCH v3 03/26] dm: core: Improve comments for uclass_first/next_device()

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:26, Simon Glass wrote: > Mention that the devices are probed ready for use. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > include/dm/uclass.h | 4 > 1 file changed, 4 insertions(+) Applied to -u-boot-dm _

Re: [U-Boot] [PATCH v3 04/26] dm: core: Set device tree node for root device

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:26, Simon Glass wrote: > The root device corresponds to the root device tree node, so set this up. > Also add a few notes to the documentation. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > doc/driver-model/README.txt | 4 >

Re: [U-Boot] [PATCH v3 02/26] dm: Don't run tests if U-Boot cannot be built

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:26, Simon Glass wrote: > There is no point in running the tests if U-Boot cannot be built. Abort in > this case. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > test/dm/test-dm.sh | 9 +++-- > 1 file changed, 7 insertions(+), 2

Re: [U-Boot] [PATCH v3 01/26] dm: i2c: Provide an offset length parameter where needed

2015-01-26 Thread Simon Glass
On 25 January 2015 at 08:26, Simon Glass wrote: > Rather than assuming that the chip offset length is 1, allow it to be > provided. This allows chips that don't use the default offset length to > be used (at present they are only supported by the command line 'i2c' > command which sets the offset

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

2015-01-26 Thread Simon Glass
Hi Tom, The following changes since commit 37b608a52dcb13312a4f7ccea199cd6bac76d298: powerpc: remove icecube_5200, Lite5200, cpci5200, mecp5200, pf5200 (2015-01-23 16:56:09 -0500) are available in the git repository at: http://git.denx.de/u-boot-x86.git for you to fetch changes up to e43ad

Re: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-26 Thread Hans de Goede
Hi, On 26-01-15 16:18, Tom Rini wrote: On Fri, Jan 23, 2015 at 09:54:12AM +0100, Hans de Goede wrote: Hi, On 22-01-15 22:03, Tom Rini wrote: On Thu, Jan 22, 2015 at 08:10:06PM +0100, Hans de Goede wrote: Hi, On 22-01-15 17:20, Tom Rini wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans

Re: [U-Boot] [PATCH v5] Export redesign

2015-01-26 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > > Is this a 100% binary compatible change? If not, should we not also > > increment XF_VERSION ? > > If a board has move to driver model and doesn't use > CONFIG_DM_I2C_COMPAT (and this should ideally not be used) then the > I2C functions are not present.

[U-Boot] Writing u-boot to NAND from U-Boot results in "ecc unrecoverable error"

2015-01-26 Thread Adam Lee
Hello everyone, I have a Gumstix Overo (OMAP3) COM here that I am evaluating BCH8 ECC scheme on boot-loader (2014.10) and the kernel (3.17.7). Traditionally the board has been configured with 1 bit HAM, as are other OMAP3 boards. I have these changes in my board config: +#define CONFIG_BCH +#def

  1   2   >