[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

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

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

[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

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

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

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

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

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

[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

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

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

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 1/3] ARmv7: Add a soc_init hook to start.S

2015-01-26 Thread Albert ARIBAUD
Hello Tom, On Thu, 22 Jan 2015 11:20:58 -0500, Tom Rini wrote: > On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: > > > On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the > > icache, etc. Add a soc_init hook with a weak default which just calls > > cpu_init

[U-Boot] [GIT PULL] Zynq SoC changes v2

2015-01-26 Thread Michal Simek
Hi Tom, here is the second pull request for Zynq. I have tested all patches by buildman(log below) with a kernel toolchain [u-boot]$ arm-unknown-linux-gnueabi-gcc --version arm-unknown-linux-gnueabi-gcc (GCC) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. I have put together that config

Re: [U-Boot] [PATCH 2/4] usb: add 'bcm_udc_otg' support

2015-01-26 Thread Lukasz Majewski
Hi Marek, > On Saturday, January 24, 2015 at 12:48:15 AM, Steve Rae wrote: > > On 15-01-21 11:05 PM, Marek Vasut wrote: > > > On Tuesday, January 20, 2015 at 11:42:08 PM, Steve Rae wrote: > > >> Implement the UDC support for the USB OTG interface. > > >> > > >> Signed-off-by: Steve Rae > > >> --

Re: [U-Boot] [PATCH 15/19] dm: powerpc: ppc4xx: Move glacier to use driver model for serial

2015-01-26 Thread Stefan Roese
Hi Simon, finally I'm testing your patchset. Again sorry for the big delay here. On 15.12.2014 15:19, Simon Glass wrote: > Adjust Kconfig to default to driver model for glacier, canyonlands and > arches. > > Signed-off-by: Simon Glass > --- > > board/amcc/canyonlands/Kconfig | 9 + >

Re: [U-Boot] [PATCH 15/19] dm: powerpc: ppc4xx: Move glacier to use driver model for serial

2015-01-26 Thread Stefan Roese
On 26.01.2015 10:23, Stefan Roese wrote: diff --git a/board/amcc/canyonlands/Kconfig b/board/amcc/canyonlands/Kconfig index 0fc6877..cbc5ff9 100644 --- a/board/amcc/canyonlands/Kconfig +++ b/board/amcc/canyonlands/Kconfig @@ -29,4 +29,13 @@ config ARCHES endchoice +config DM + default

Re: [U-Boot] [RFC] m68k: generic board

2015-01-26 Thread Huan Wang
Hi, Tom, > On Thu, Jan 15, 2015 at 04:08:40PM +0100, Angelo Dureghello wrote: > > Dear all, > > > > i would like to post a patch with the m68k generic board support, > > tested and working here, but of course not tested for all the other > > m68k boards except mine. > > > > My coldfire board is th

Re: [U-Boot] [RFC PATCH 14/21] ARM: at91: move SoC headers to mach-at91/include/mach

2015-01-26 Thread Andreas Bießmann
Dear Masahiro Yamada, On 01/25/2015 07:11 AM, Masahiro Yamada wrote: > Move arch/arm/include/asm/arch-at91/* > -> arch/arm/mach-at91/include/mach/* > > Signed-off-by: Masahiro Yamada > Cc: Andreas Bießmann Acked-by: Andreas Bießmann I wonder if we should move arch/arm/cpu/at91-common with

[U-Boot] [PULL] u-boot-atmel/master -> u-boot/master

2015-01-26 Thread Andreas Bießmann
The following changes since commit ab77f24119e80257de4ab017b877f92f96980562: Merge branch 'master' of git://git.denx.de/u-boot-ti (2015-01-16 10:25:01 -0500) are available in the git repository at: git://git.denx.de/u-boot-atmel.git master for you to fetch changes up to 52305a829cd927aca2

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 09:09, Albert ARIBAUD wrote: Hello Tom, On Thu, 22 Jan 2015 11:20:58 -0500, Tom Rini wrote: On Wed, Jan 21, 2015 at 09:03:25PM +0100, Hans de Goede wrote: On some SoCs / ARMv7 CPU cores we need to do some setup before enabling the icache, etc. Add a soc_init hook with a weak

Re: [U-Boot] [PATCH v4 2/2] fastboot: handle flash write to GPT partitions

2015-01-26 Thread Lukasz Majewski
Hi Rob, > On Fri, Dec 12, 2014 at 5:51 PM, Steve Rae wrote: > > Implement a feature to allow fastboot to write the downloaded image > > to the space reserved for the Protective MBR and the Primary GUID > > Partition Table. > > Additionally, prepare and write the Backup GUID Partition Table. > >

Re: [U-Boot] u-boot tools and build system

2015-01-26 Thread Otavio Salvador
On Thu, Jan 22, 2015 at 11:11 AM, Raphael Philipe wrote: > Thank you Wolfgang, > > For the especific case of the env tool, One can build it to run on the > host to produce a environment variables binary file for the target > (This can be used while building some image to be written in a sd > card,

Re: [U-Boot] [PATCH 2/4] usb: add 'bcm_udc_otg' support

2015-01-26 Thread Marek Vasut
On Monday, January 26, 2015 at 09:38:28 AM, Lukasz Majewski wrote: > Hi Marek, Hi! [...] > > No, unless there's a convincing technical argument that the currently > > mainline DWC2 gadget driver (the s3c one) can absolutelly not be used > > for the broadcom SoC, I want to avoid having two driver

Re: [U-Boot] SPI driver convert to Driver Model

2015-01-26 Thread Simon Glass
Hi, On 25 January 2015 at 20:44, haikun.w...@freescale.com wrote: > Hi, > > My driver should support ls1021aqds, ls1021atwr, mcf5445x, mcf5227x, mcf52x2. Please avoid top-posting. The first one at least supports generic board. It doesn't look like mcf5445x does though, so you should move that o

Re: [U-Boot] [PATCH 2/4] usb: add 'bcm_udc_otg' support

2015-01-26 Thread Lukasz Majewski
Hi Marek, > On Monday, January 26, 2015 at 09:38:28 AM, Lukasz Majewski wrote: > > Hi Marek, > > Hi! > > [...] > > > > No, unless there's a convincing technical argument that the > > > currently mainline DWC2 gadget driver (the s3c one) can > > > absolutelly not be used for the broadcom SoC, I

Re: [U-Boot] [RFC PATCH 03/21] ARM: at91: collect SoC sources into mach-at91

2015-01-26 Thread Andreas Bießmann
Dear Masahiro Yamada, On 01/25/2015 07:11 AM, Masahiro Yamada wrote: > This commit moves source files as follows: > > arch/arm/cpu/arm920t/at91/* -> arch/arm/mach-at91/arm920t/* > arch/arm/cpu/arm926ejs/at91/* -> arch/arm/mach-at91/arm926ejs/* > arch/arm/cpu/armv7/at91/* -> arch/arm/m

Re: [U-Boot] [RFC PATCH 07/21] ARM: kirkwood: move SOC sources to mach-kirkwood

2015-01-26 Thread Stefan Roese
On 25.01.2015 07:11, Masahiro Yamada wrote: Move arch/arm/cpu/arm926ejs/kirkwood/* -> arch/arm/mach-kirkwood/* Note: Perhaps, can we merge arch/arm/mach-kirkwood and arch/arm/mvebu-common into arch/arm/mach-mvebu, like Linux? Yes. This might need a bit work but definitely should be done. A

Re: [U-Boot] [RFC PATCH 01/21] ARM: at91: move board select menu and common settings

2015-01-26 Thread Andreas Bießmann
On 01/25/2015 07:11 AM, Masahiro Yamada wrote: > The board select menu in arch/arm/Kconfig is still big. > To slim down it, this commit moves AT91 boards to > arch/arm/mach-at91/Kconfig. > Also, consolidate "config SYS_SOC" in each board Kconfig. > > The Kconfig files under board/ directory were m

[U-Boot] Dallas 1-wire support in u-boot

2015-01-26 Thread Andrea Scian
Dear u-boot developers, I'm looking for support of 1-wire protocol in this bootloader, without luck up until now I already search list archive with gmane and found only this old reference http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/117292 I also found some board implementation, no

Re: [U-Boot] [PATCH 12/19] powerpc: ppc4xx: Use CONFIG_OF_CONTROL for canyonlands boards

2015-01-26 Thread Stefan Roese
On 15.12.2014 15:19, Simon Glass wrote: Enable CONFIG_OF_CONTROL so that U-Boot on these three boards uses a device tree for its configuration. Signed-off-by: Simon Glass This need further work on the ppc4xx platforms to get it booting from flash. As now the dtb is appended to the "normal" U

[U-Boot] [PATCH] fix ARM DCC support for ARMv7 based cores (e.g. CortexA)

2015-01-26 Thread Alexander Merkle
Signed-off-by: Alexander Merkle --- drivers/serial/arm_dcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index 5dfb02f..e37 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -29,9 +29,9 @@

[U-Boot] [PATCH 0/1] fix ARM DCC support for ARMv7 based cores (e.g. CortexA)

2015-01-26 Thread Alexander Merkle
arm_dcc.c supported ARMv4 (ARM7) to ARMv6 (ARM11) correctly. All recent CortexA/ARMv7 based cores share the mrc/mcr coprocessor calls of ARMv6. Due to the missing #ifdef the ARM7/ARMv4 calls are used as soon as CONFIG_CPU_V7 is defined. This results in an undefined instruction exception. Alexand

Re: [U-Boot] [PATCH 12/19] powerpc: ppc4xx: Use CONFIG_OF_CONTROL for canyonlands boards

2015-01-26 Thread Simon Glass
Hi Stefan, On 26 January 2015 at 06:17, Stefan Roese wrote: > On 15.12.2014 15:19, Simon Glass wrote: >> >> Enable CONFIG_OF_CONTROL so that U-Boot on these three boards uses a >> device >> tree for its configuration. >> >> Signed-off-by: Simon Glass > > > This need further work on the ppc4xx pl

Re: [U-Boot] [PATCH 15/19] dm: powerpc: ppc4xx: Move glacier to use driver model for serial

2015-01-26 Thread Simon Glass
Hi Stefan, On 26 January 2015 at 02:35, Stefan Roese wrote: > On 26.01.2015 10:23, Stefan Roese wrote: >>> >>> diff --git a/board/amcc/canyonlands/Kconfig >>> b/board/amcc/canyonlands/Kconfig >>> index 0fc6877..cbc5ff9 100644 >>> --- a/board/amcc/canyonlands/Kconfig >>> +++ b/board/amcc/canyonlan

[U-Boot] [PATCH 4/4] powerpc: ppc4xx: Enable CONFIG_DISPLAY_BOARDINFO

2015-01-26 Thread Stefan Roese
This also displays the "Board:" line in the bootup text with the generic board support code. Signed-off-by: Stefan Roese Cc: Simon Glass --- board/amcc/canyonlands/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/board/amcc/canyonlands/Kconfig b/board/amcc/canyonlands/Kconfig ind

[U-Boot] [PATCH 3/4] powerpc: ppc4xx: Add defaults for DT based booting to really work

2015-01-26 Thread Stefan Roese
These additional nodes need to be provided to get U-Boot to boot correctly on the Canyonlands / Glacier board: - chosen path to the console-uart - reg-shift set to 0 in the uart device nodes Signed-off-by: Stefan Roese Cc: Simon Glass --- arch/powerpc/dts/canyonlands.dts | 6 ++ arch/power

[U-Boot] [PATCH 1/4] powerpc: ppc4xx: Add missing type for SYS_MALLOC_F_LEN in Kconfig

2015-01-26 Thread Stefan Roese
Otherwise this symbol will not be created in the .config. Signed-off-by: Stefan Roese Cc: Simon Glass --- board/amcc/canyonlands/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/board/amcc/canyonlands/Kconfig b/board/amcc/canyonlands/Kconfig index bfdf17a..97df3f8 100644 --- a/board/

[U-Boot] [PATCH 2/4] powerpc: ppc4xx: Change from OF_SEPARATE to OF_EMBED

2015-01-26 Thread Stefan Roese
This is necessary, as ppc4xx has the reset vector located at the end of the U-Boot image. This needs to be flashed to the end of the NOR flash. Adding the dtb to the main U-Boot image will break booting on ppc4xx. This patch now embeds the dtb in the U-Boot image instead. Signed-off-by: Stefan Roe

Re: [U-Boot] [PATCH v3 4/4] dm:gpio:mxc add DT support

2015-01-26 Thread Simon Glass
Hi Peng, On 24 January 2015 at 07:34, Peng Fan wrote: > Hi Simon, > > > On 1/23/2015 5:26 AM, Simon Glass wrote: >> >> Hi Peng, >> >> On 21 January 2015 at 04:09, Peng Fan wrote: >>> >>> This patch add DT support for mxc gpio driver. >>> >>> There are one place using CONFIG_OF_CONTROL macro. >>>

Re: [U-Boot] [PATCH 15/19] dm: powerpc: ppc4xx: Move glacier to use driver model for serial

2015-01-26 Thread Stefan Roese
Hi Simon, On 26.01.2015 14:33, Simon Glass wrote: Hmmm. This does not seem to work. With your patch series applied on current top-of-tree I get this error (for glacier_ramboot or canyonlands): $ make -s -j10 board/amcc/canyonlands/Kconfig:38:warning: config symbol defined without type drivers/s

Re: [U-Boot] [PATCH 01/10][v6] rsa: Split the rsa-verify to separate the modular exponentiation

2015-01-26 Thread Simon Glass
On 23 January 2015 at 03:31, Ruchika Gupta wrote: > Public exponentiation which is required in rsa verify functionality is > tightly integrated with verification code in rsa_verify.c. The patch > splits the file into twp separating the modular exponentiation. > > 1. rsa-verify.c > - The file parse

Re: [U-Boot] [PATCH 06/10][v6] DM: crypto/fsl - Add Freescale rsa DM driver

2015-01-26 Thread Simon Glass
On 23 January 2015 at 03:31, Ruchika Gupta wrote: > Driver added for RSA Modular Exponentiation using Freescale Hardware > Accelerator CAAM. The driver uses UCLASS_MOD_EXP > > Signed-off-by: Ruchika Gupta > CC: Simon Glass > --- > Changes in v6: > No Changes > > Changes in v5: > Reverted mod_exp

Re: [U-Boot] [PATCH 03/10][v6] DM: crypto/rsa_mod_exp: Add rsa Modular Exponentiation DM driver

2015-01-26 Thread Simon Glass
Hi Ruchika, On 23 January 2015 at 03:31, Ruchika Gupta wrote: > Add a new rsa uclass for performing modular exponentiation and implement > the software driver basing on this uclass. > > Signed-off-by: Ruchika Gupta > CC: Simon Glass > --- > Changes in v6: > No Changes > > Changes in v5: > Chang

Re: [U-Boot] [PATCH 12/19] powerpc: ppc4xx: Use CONFIG_OF_CONTROL for canyonlands boards

2015-01-26 Thread Bin Meng
Hi Simon, On Mon, Jan 26, 2015 at 9:31 PM, Simon Glass wrote: > Hi Stefan, > > On 26 January 2015 at 06:17, Stefan Roese wrote: >> On 15.12.2014 15:19, Simon Glass wrote: >>> >>> Enable CONFIG_OF_CONTROL so that U-Boot on these three boards uses a >>> device >>> tree for its configuration. >>> >

Re: [U-Boot] [PATCH 09/10][v6] Use hash.c in mkimage

2015-01-26 Thread Simon Glass
On 23 January 2015 at 03:31, Ruchika Gupta wrote: > Signed-off-by: Ruchika Gupta > CC: Simon Glass > --- > Changes in v6: > Fixed compilation error in this file for tools when FIT_SIGNATURE not enabled > > Changes in v5: > New patch based on WIP patch by Simon. > > common/hash.c | 81 > ++

Re: [U-Boot] [PATCH 10/10][v6] rsa: Use checksum algorithms from struct hash_algo

2015-01-26 Thread Simon Glass
On 23 January 2015 at 03:31, Ruchika Gupta wrote: > Currently the hash functions used in RSA are called directly from the sha1 > and sha256 libraries. Change the RSA checksum library to use the progressive > hash API's registered with struct hash_algo. This will allow the checksum > library to use

Re: [U-Boot] [PATCH 08/10][v6] hash: Add function to find hash_algo struct with progressive hash

2015-01-26 Thread Simon Glass
On 23 January 2015 at 03:31, Ruchika Gupta wrote: > The hash_algo structure has some implementations in which progressive hash > API's are not defined. These are basically the hardware based implementations > of SHA. An API is added to find the algo which has progressive hash API's > defined. This

Re: [U-Boot] [PATCH 05/10][v6] lib/rsa: Modify rsa to use DM driver

2015-01-26 Thread Simon Glass
On 23 January 2015 at 03:31, Ruchika Gupta wrote: > Modify rsa_verify to use the rsa driver of DM library .The tools > will continue to use the same RSA sw library. > > CONFIG_RSA is now dependent on CONFIG_DM. All configurations which > enable FIT based signatures have been modified to enable CON

Re: [U-Boot] [PATCH 07/10][v6] lib/rsa: Add Kconfig for devices supporting RSA Modular Exponentiation

2015-01-26 Thread Simon Glass
On 23 January 2015 at 03:31, Ruchika Gupta wrote: > Kconfig option added for devices which support RSA Verification. > 1. RSA_SOFTWARE_EXP > Enables driver for supporting RSA Modular Exponentiation in Software > 2. RSA_FREESCALE_EXP > Enables driver for supporting RSA Modular Exponentiation using

Re: [U-Boot] [PATCH 03/10][v6] DM: crypto/rsa_mod_exp: Add rsa Modular Exponentiation DM driver

2015-01-26 Thread Simon Glass
Hi Ruchika, On 26 January 2015 at 06:39, Simon Glass wrote: > Hi Ruchika, > > On 23 January 2015 at 03:31, Ruchika Gupta > wrote: >> Add a new rsa uclass for performing modular exponentiation and implement >> the software driver basing on this uclass. >> >> Signed-off-by: Ruchika Gupta >> CC:

[U-Boot] [PATCH v5] 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] [PATCH v5] Export redesign

2015-01-26 Thread Wolfgang Denk
Dear Simon, In message <1422279795-3052-1-git-send-email-...@chromium.org> you wrote: > 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

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

2015-01-26 Thread Hans de Goede
Hi, On 25-01-15 16:24, Adam Sampson wrote: 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 rec

  1   2   >