Re: [U-Boot] [PATCH 1/3] dm: dts: ls2085a: Bring in ls2085a dts files from linux kernel

2015-07-07 Thread Wang Haikun
On 6/26/2015 7:53 PM, Haikun Wang wrote: > From: Haikun Wang > > Bring in required device tree files for ls2085a from Linux. > These are initially unchanged and have a number of pieces not needed by > U-Boot. Hi Simon, I got below comment when review this patch internal. Please help me confirm.

Re: [U-Boot] hang: ARM64/Relocating u-boot from u-boot

2015-07-07 Thread Albert ARIBAUD
Hello Wolfgang, On Wed, 08 Jul 2015 00:36:52 +0200, Wolfgang Denk wrote: > Dear Jagan, > > In message > you > wrote: > > > > I'm running u-boot from u-boot prompt, just like a standalone > > application with CONFIG_SYS_TEXT_BASE address. > ... (note: the board here identifies itself as "ARM

Re: [U-Boot] [PATCH 2/8] net: asix: fix operation without eeprom

2015-07-07 Thread Marcel Ziswiler
Hi Joe On 8 July 2015 05:55:28 CEST, Joe Hershberger wrote: >Definitely use checkpatch.pl on this series. Yeah, it's been late and I somehow forgot about it. I already run v2 about to be posted through it now. > I recommend patman. So far I have not used that one yet but thanks for the tip.

Re: [U-Boot] [PATCH 1/3] arm: baltos: enable CMD_NET and FIT support in defconfig

2015-07-07 Thread Yegor Yefremov
On Wed, Jul 8, 2015 at 12:54 AM, Simon Glass wrote: > On 6 July 2015 at 09:28, Yegor Yefremov wrote: >> Signed-off-by: Yegor Yefremov >> --- >> configs/am335x_baltos_defconfig | 4 ++-- >> include/configs/baltos.h| 2 -- >> 2 files changed, 2 insertions(+), 4 deletions(-) > > Reviewed-b

[U-Boot] [RFC PATCH v1] mips: Use unsigned int when reading c0 registers

2015-07-07 Thread Chris Packham
In commit a18a477 (MIPS: use common code from lib/time.c) MIPS platforms started using common the common timer functions which are based around the fact that many platforms have a 32-bit free running counter register that can be used see commit 8dfafdd (Introduce common timer functions). Even MIPS

[U-Boot] [RFC PATCH v1 0/1] MIPS64 timer bug

2015-07-07 Thread Chris Packham
Hi, We found this on a custom MIPS64 based board. Basically we were seeing udelay and friends do odd things occasionally. The problem appears to be when we read the c0 32-bit counter sometimes we get unexpected values when this is returned as an unsigned long on a 64-bit system. I've written a lit

Re: [U-Boot] [RFC PATCH 02/12] linux_compat: remove cpu_relax() define

2015-07-07 Thread Masahiro Yamada
2015-07-08 14:01 GMT+09:00 Heiko Schocher : > Hello Masahiro, > > > Am 08.07.2015 um 06:29 schrieb Masahiro Yamada: >> >> The macro cpu_relax() is defined by several headers in different >> ways. >> >> arch/{arm,avr32,mips}/include/asm/processor.h defines it as follows: >>#define cpu_relax() b

[U-Boot] [PATCH 1/2] x86: Display correct CS/EIP/EFLAGS when there is an error code

2015-07-07 Thread Bin Meng
Some exceptions cause an error code to be saved on the current stack after the EIP value. We should extract CS/EIP/EFLAGS from different position on the stack based on the exception number. Signed-off-by: Bin Meng --- arch/x86/cpu/interrupts.c | 29 - arch/x86/in

[U-Boot] [PATCH 2/2] x86: Simplify architecture defined exception handling in irq_llsr()

2015-07-07 Thread Bin Meng
Instead of using switch..case for architecture defined exceptions, simply unify the handling by printing a message of exception name, followed by registers dump then halt the CPU. With this unification, it also fixes the wrong exception numbers for #MF/#AC/#MC/#XM which should be 16/17/18/19 not 1

Re: [U-Boot] [RFC PATCH 10/12] linux_compat: introduce GFP_DMA flag for kmalloc()

2015-07-07 Thread Masahiro Yamada
Hi Heiko, 2015-07-08 14:10 GMT+09:00 Heiko Schocher : > Hello Masahiro, > > Am 08.07.2015 um 06:29 schrieb Masahiro Yamada: >> >> It does not seem efficient to always return cache-aligned memory. >> Return aligned memory only when GFP_DMA flag is given. >> >> My main motivation for this commit is

Re: [U-Boot] [RFC PATCH 11/12] dm: refactor device_probe() and device_remove() with devm_kzalloc()

2015-07-07 Thread Heiko Schocher
Hello Masahiro, Am 08.07.2015 um 06:29 schrieb Masahiro Yamada: The memory is automatically released on driver removal, so we do not need to do so explicitly in device_free(). The helper function alloc_priv() is no longer needed because devm_kzalloc() now understands the GFP_DMA flag. Signed-o

Re: [U-Boot] [RFC PATCH 10/12] linux_compat: introduce GFP_DMA flag for kmalloc()

2015-07-07 Thread Heiko Schocher
Hello Masahiro, Am 08.07.2015 um 06:29 schrieb Masahiro Yamada: It does not seem efficient to always return cache-aligned memory. Return aligned memory only when GFP_DMA flag is given. My main motivation for this commit is to refactor device_probe() and device_free() in the next commit. DM_FLA

Re: [U-Boot] [RFC PATCH 06/12] devres: introduce Devres (Managed Device Resource) framework

2015-07-07 Thread Heiko Schocher
Hello Masahiro, Am 08.07.2015 um 06:29 schrieb Masahiro Yamada: In U-Boot's driver model, memory is basically allocated and freed in the core framework. So, low level drivers generally only have to specify the size of needed memory with .priv_auto_alloc_size, .platdata_auto_alloc_size, etc. Ne

[U-Boot] [PATCH v3 2/2] pci: Disable expansion ROM address decoding when signature check fails

2015-07-07 Thread Bin Meng
We should not leave the expansion ROM address window open when there is not a valid ROM. Suggested-by: Matt Porter Signed-off-by: Bin Meng --- I did not update pci_rom_probe() to handle the header type1 ROM address, as I think pci_rom_probe() is a static routine which is only used for VGA ROM o

[U-Boot] [PATCH v3 1/2] pci: Configure expansion ROM during auto config process

2015-07-07 Thread Bin Meng
Currently PCI expansion ROM address is assigned by a call to pciauto_setup_rom() outside of the pci auto config process. This does not work when expansion ROM is on a device behind PCI bridge where bridge's memory limit register was already programmed to a value that does not cover the newly assign

Re: [U-Boot] [PATCH 1/1] net: lpc32xx: improve download rate in RMII phy mode

2015-07-07 Thread Vladimir Zapolskiy
Hi Sylvain, On 07.07.2015 22:13, LEMIEUX, SYLVAIN wrote: > This is a minor update to LPC32xx MAC driver patch that add support for the > RMII phy mode. > > In the legacy BSP from NXP, in RMII phy mode, an extra 10ms delay was present > after the release of the soft reset. > > In my tests (conn

Re: [U-Boot] [RFC PATCH 04/12] linux_compat: handle __GFP_ZERO in kmalloc()

2015-07-07 Thread Heiko Schocher
Hello Masahiro, Am 08.07.2015 um 06:29 schrieb Masahiro Yamada: Currently, kzalloc() returns zero-filled memory, while kmalloc() simply ignores the second argument and never fills the memory area with zeros. I want kmalloc(size, __GFP_ZERO) to behave as kzalloc() does, which will make it easier

Re: [U-Boot] [RFC PATCH 02/12] linux_compat: remove cpu_relax() define

2015-07-07 Thread Heiko Schocher
Hello Masahiro, Am 08.07.2015 um 06:29 schrieb Masahiro Yamada: The macro cpu_relax() is defined by several headers in different ways. arch/{arm,avr32,mips}/include/asm/processor.h defines it as follows: #define cpu_relax() barrier() On the other hand, include/linux/compat.h defines it as

Re: [U-Boot] [RFC PATCH 03/12] linux_compat: move vzalloc() to header file as an inline function

2015-07-07 Thread Heiko Schocher
Hello Masahiro, Am 08.07.2015 um 06:29 schrieb Masahiro Yamada: The vzalloc(size) is equivalent to kzalloc(size, 0). Move it to include/linux/compat.h as an inline function in order to avoid the function call overhead. Signed-off-by: Masahiro Yamada --- include/linux/compat.h | 6 --

Re: [U-Boot] [RFC PATCH 01/12] x86: delete unneeded declarations of disable_irq() and enable_irq()

2015-07-07 Thread Bin Meng
On Wed, Jul 8, 2015 at 12:29 PM, Masahiro Yamada wrote: > These two declarations in arch/x86/include/asm/interrupt.h conflict > with ones in include/linux/compat.h, so x86 boards cannot include > . > > The comment /* arch/x86/lib/interrupts.c */ is bogus now, and we do > not see any definitions of

Re: [U-Boot] [PATCH 05/18] dm: pci: Add support for PCI driver matching

2015-07-07 Thread Joe Hershberger
Hi Simon, On Mon, Jul 6, 2015 at 5:47 PM, Simon Glass wrote: > At present all PCI devices must be present in the device tree in order to > be used. Many or most PCI devices don't require any configuration other than > that which is done automatically by U-Boot. It is inefficent to add a node > wi

Re: [U-Boot] [PATCH 2/2] blackfin: Fix build regression due to image size

2015-07-07 Thread Joe Hershberger
Hi Tom, On Mon, Jun 22, 2015 at 5:57 PM, Joe Hershberger wrote: > bf533-stamp, bf538f-ezkit, and cm-bf548 are very space limited. > > This was introduced by: > 6e0d26c0502e (net: Handle ethaddr changes as an env callback) > by enabling CONFIG_REGEX, which is too big for these boards. > > This pat

Re: [U-Boot] [PATCH 1/2] Allow CONFIG_REGEX to be disabled when CONFIG_NET

2015-07-07 Thread Joe Hershberger
Hi Tom, On Mon, Jun 22, 2015 at 5:57 PM, Joe Hershberger wrote: > Instead of selecting REGEX when NET is enabled, make it the default, but > allow boards that are tiny to disable it and lose functionality on all > but the first Ethernet adapter. > > cm-bf548, bf538f-ezkit, and bf533-stamp need th

[U-Boot] [RFC PATCH 04/12] linux_compat: handle __GFP_ZERO in kmalloc()

2015-07-07 Thread Masahiro Yamada
Currently, kzalloc() returns zero-filled memory, while kmalloc() simply ignores the second argument and never fills the memory area with zeros. I want kmalloc(size, __GFP_ZERO) to behave as kzalloc() does, which will make it easier to add more memory allocator variants. With the introduction of _

[U-Boot] [RFC PATCH 10/12] linux_compat: introduce GFP_DMA flag for kmalloc()

2015-07-07 Thread Masahiro Yamada
It does not seem efficient to always return cache-aligned memory. Return aligned memory only when GFP_DMA flag is given. My main motivation for this commit is to refactor device_probe() and device_free() in the next commit. DM_FLAG_ALLOC_PRIV_DMA should be handled more easily. Signed-off-by: Mas

[U-Boot] [RFC PATCH 02/12] linux_compat: remove cpu_relax() define

2015-07-07 Thread Masahiro Yamada
The macro cpu_relax() is defined by several headers in different ways. arch/{arm,avr32,mips}/include/asm/processor.h defines it as follows: #define cpu_relax() barrier() On the other hand, include/linux/compat.h defines it as follows: #define cpu_relax() do {} while (0) If both headers are

[U-Boot] [RFC PATCH 03/12] linux_compat: move vzalloc() to header file as an inline function

2015-07-07 Thread Masahiro Yamada
The vzalloc(size) is equivalent to kzalloc(size, 0). Move it to include/linux/compat.h as an inline function in order to avoid the function call overhead. Signed-off-by: Masahiro Yamada --- include/linux/compat.h | 6 -- lib/linux_compat.c | 5 - 2 files changed, 4 insertions(+), 7

[U-Boot] [RFC PATCH 08/12] dm: refactor device_bind() and device_unbind() with devm_kzalloc()

2015-07-07 Thread Masahiro Yamada
With devm_kzalloc(), device_unbind() and the failure path in device_bind() can be much cleaner. We no longer need such flags as DM_FLAG_ALLOC_PDATA etc. because we do not have to remember if the memory has been really allocated. The memory is freed free when the device is unbind. Signed-off-by:

[U-Boot] [RFC PATCH 12/12] devres: add debug command to dump devres

2015-07-07 Thread Masahiro Yamada
This new command can dump all device resources associated to each device. The fields in every line shows: - The address of the resource - The size of the resource - The name of the release function - The stage in which the resource has been acquired (BIND/PROBE) The output looks like this

[U-Boot] [RFC PATCH 06/12] devres: introduce Devres (Managed Device Resource) framework

2015-07-07 Thread Masahiro Yamada
In U-Boot's driver model, memory is basically allocated and freed in the core framework. So, low level drivers generally only have to specify the size of needed memory with .priv_auto_alloc_size, .platdata_auto_alloc_size, etc. Nevertheless, some drivers still need to allocate memory on their own

[U-Boot] [RFC PATCH 11/12] dm: refactor device_probe() and device_remove() with devm_kzalloc()

2015-07-07 Thread Masahiro Yamada
The memory is automatically released on driver removal, so we do not need to do so explicitly in device_free(). The helper function alloc_priv() is no longer needed because devm_kzalloc() now understands the GFP_DMA flag. Signed-off-by: Masahiro Yamada --- drivers/core/device-remove.c | 23 ---

[U-Boot] [RFC PATCH 05/12] dm: add DM_FLAG_BOUND flag

2015-07-07 Thread Masahiro Yamada
Currently, we only have DM_FLAG_ACTIVATED to indicate the device status, but we still cannot know in which stage is in progress, binding or probing. This commit introduces a new flag, DM_FLAG_BOUND, which is set when the device is really bound, and cleared when it is unbound. Signed-off-by: Masah

[U-Boot] [RFC PATCH 07/12] devres: add devm_kmalloc() and friends (managed memory allocation)

2015-07-07 Thread Masahiro Yamada
devm_kmalloc() is identical to kmalloc() except that the memory allocated with it is managed and will be automatically released when the device is removed/unbound. Likewise for the other variants. Signed-off-by: Masahiro Yamada --- drivers/core/devres.c | 21 + include/dm/d

[U-Boot] [RFC PATCH 09/12] dm: merge fail_alloc labels

2015-07-07 Thread Masahiro Yamada
A little more clean up made possible by devm_kzalloc(). Signed-off-by: Masahiro Yamada --- drivers/core/device.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/core/device.c b/drivers/core/device.c index f024aa2..25b9b63 100644 --- a/drivers/core/device.c

[U-Boot] [RFC PATCH 01/12] x86: delete unneeded declarations of disable_irq() and enable_irq()

2015-07-07 Thread Masahiro Yamada
These two declarations in arch/x86/include/asm/interrupt.h conflict with ones in include/linux/compat.h, so x86 boards cannot include . The comment /* arch/x86/lib/interrupts.c */ is bogus now, and we do not see any definitions of disable_irq() and enable_irq() in there. Signed-off-by: Masahiro Y

[U-Boot] [RFC PATCH 00/12] Devres (Managed Device Resource) for U-Boot

2015-07-07 Thread Masahiro Yamada
Please refer to the commit message of 06/12 for what this series wants to do. Masahiro Yamada (12): x86: delete unneeded declarations of disable_irq() and enable_irq() linux_compat: remove cpu_relax() define linux_compat: move vzalloc() to header file as an inline function linux_compat:

Re: [U-Boot] [PATCH 10/13][v4] driver/ldpaa_eth: Retry enqueue if portal was busy

2015-07-07 Thread Joe Hershberger
Hi Prabhakar, On Thu, Jul 2, 2015 at 12:59 AM, Prabhakar Kushwaha wrote: > Do not immediately return if the enqueue function returns -EBUSY; re-try > mulitple times. > > if timeout occures, release the buffer. > > Signed-off-by: Prabhakar Kushwaha > --- Acked-by: Joe Hershberger __

Re: [U-Boot] [PATCH 06/13][v4] drivers: fsl-mc: Return error for major version mismatch

2015-07-07 Thread Joe Hershberger
Hi Prabhakar, On Thu, Jul 2, 2015 at 12:59 AM, Prabhakar Kushwaha wrote: > Management complex major version should match to the firmware present in > flash. > > Return error during mismatch of major version. > > Signed-off-by: Prabhakar Kushwaha > --- Acked-by: Joe Hershberger ___

[U-Boot] [PATCH 05/20] dm: usb: Add driver-model support to dwc2

2015-07-07 Thread Simon Glass
Add driver model support to this driver so it can be used with the new USB stack. Signed-off-by: Simon Glass --- drivers/usb/host/dwc2.c | 97 + 1 file changed, 97 insertions(+) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index

[U-Boot] [PATCH 00/20] arm: rpi: Enable USB and Ethernet driver model Raspberry Pi

2015-07-07 Thread Simon Glass
Raspberry Pi uses a DWC2 USB controller and a SMSC USB Ethernet adaptor. Neither of these currently support driver model. This series does the following: - Move Raspberry Pi to use device tree control (u-boot-dtb.bin instead of u-boot.bin) - Remove GPIO platform data (now uses device tree) -

Re: [U-Boot] [PATCH 01/20] dm: net: Support usbethaddr environment variable

2015-07-07 Thread Joe Hershberger
Hi Simon, On Tue, Jul 7, 2015 at 9:53 PM, Simon Glass wrote: > For USB Ethernet devices we need to use the usbethaddr environment variable > (instead of ethaddr) the Ethernet hardware address. Add this to the uclass > so that it happens automatically. I have always thought that this approach of

Re: [U-Boot] [PATCH] net/designware: revert MAC-address setup on init

2015-07-07 Thread Joe Hershberger
Hi Bin, On Tue, Jul 7, 2015 at 10:46 PM, Bin Meng wrote: > Hi Joe, > > On Tue, Jul 7, 2015 at 5:55 AM, Joe Hershberger > wrote: >> Hey Tom, >> >> On Wed, Jul 1, 2015 at 5:02 PM, Tom Rini wrote: >>> On Wed, Jul 01, 2015 at 10:26:21AM -0500, Joe Hershberger wrote: Hi Alexey, On Wed

Re: [U-Boot] [PATCH] net: designware: Program MAC address to hardware after soft reset

2015-07-07 Thread Bin Meng
+Tom On Mon, Jun 15, 2015 at 11:43 PM, Joe Hershberger wrote: > Hi Bin, > > On Mon, Jun 15, 2015 at 5:40 AM, Bin Meng wrote: >> commit f566c99 "net: Update hardware MAC address if it changes in env" >> removes writing MAC address to designware controller after soft reset. >> This makes designwar

Re: [U-Boot] [PATCH 2/8] net: asix: fix operation without eeprom

2015-07-07 Thread Joe Hershberger
Hi Marcel, On Wed, Jul 1, 2015 at 6:04 PM, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This patch fixes operation of our on-board AX88772B chip without EEPROM > but with a ethaddr coming from the regular U-Boot environment. This is > a forward port of some remaining parts initially implem

Re: [U-Boot] [PATCH] net/designware: revert MAC-address setup on init

2015-07-07 Thread Bin Meng
Hi Joe, On Tue, Jul 7, 2015 at 5:55 AM, Joe Hershberger wrote: > Hey Tom, > > On Wed, Jul 1, 2015 at 5:02 PM, Tom Rini wrote: >> On Wed, Jul 01, 2015 at 10:26:21AM -0500, Joe Hershberger wrote: >>> Hi Alexey, >>> >>> On Wed, Jul 1, 2015 at 9:25 AM, Alexey Brodkin >>> wrote: >>> > Hi Tom, Joe, >

Re: [U-Boot] [PATCH 01/11 v2] drivers/net/vsc9953: Cleanup patch

2015-07-07 Thread Joe Hershberger
Hi Codrin, On Thu, Jul 2, 2015 at 9:32 AM, Codrin Constantin Ciubotariu wrote: > Hi Joe, > >> > -#define CONFIG_VSC9953_PORT_ENA0x3a00 >> >> Why is this value changing? Was it just wrong before? > Sorry, I missed this comment. Yes, the correct value that only enables the > po

Re: [U-Boot] [PATCH 07/11 v2] drivers/net/vsc9953: Add commands to manipulate the FDB for VSC9953

2015-07-07 Thread Joe Hershberger
Hi Codrin, On Thu, Jul 2, 2015 at 3:44 AM, Codrin Constantin Ciubotariu wrote: > Hi Joe, > >> -Original Message- >> From: Joe Hershberger [mailto:joe.hershber...@gmail.com] >> Sent: Wednesday, July 01, 2015 1:50 AM >> To: Ciubotariu Codrin Constantin-B43658 >> Cc: u-boot; Joe Hershberger;

Re: [U-Boot] [PATCH v2] x86: baytrail: Configure FSP UPD from device tree

2015-07-07 Thread Bin Meng
Hi Andrew, On Wed, Jul 8, 2015 at 3:16 AM, wrote: > From: Andrew Bradford > > Allow for configuration of FSP UPD from the device tree which will > override any settings which the FSP was built with itself if the device > tree settings exist, otherwise simply trust the FSP's defaults. > > Modifi

Re: [U-Boot] [PATCH v2 3/6] drivers: block: Remove the ata_piix driver

2015-07-07 Thread Bin Meng
Hi Simon, On Tue, May 19, 2015 at 5:39 AM, Simon Glass wrote: > On 15 May 2015 at 19:33, Bin Meng wrote: >> This driver was originally added to support the native IDE mode for >> Intel chipset, however it has some bugs like not supporting ATAPI >> devices, endianness issue, or even broken build

[U-Boot] [PATCH 19/20] arm: rpi: Move to driver model for USB

2015-07-07 Thread Simon Glass
Start using driver model for USB on the Raspberry Pi. The dwc2 supports this now so this is just a config change. Signed-off-by: Simon Glass --- configs/rpi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig index 94e298b..f2e8ab1 10064

[U-Boot] [PATCH 18/20] arm: rpi: Drop the GPIO platform data

2015-07-07 Thread Simon Glass
We can rely on the device tree to provide the GPIO information. Signed-off-by: Simon Glass --- arch/arm/mach-bcm283x/include/mach/gpio.h | 2 -- board/raspberrypi/rpi/rpi.c | 9 - drivers/gpio/bcm2835_gpio.c | 20 include/configs/rpi-co

[U-Boot] [PATCH 20/20] arm: rpi: Use driver model for Ethernet

2015-07-07 Thread Simon Glass
Enable CONFIG_DM_ETH so that driver model is used for the USB Ethernet device. Signed-off-by: Simon Glass --- configs/rpi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig index f2e8ab1..df2dcee 100644 --- a/configs/rpi_defconfig +++ b/c

[U-Boot] [PATCH 16/20] arm: rpi: Enable device tree control for Rasberry Pi

2015-07-07 Thread Simon Glass
Enable device tree control so that we can use driver model fully and avoid using platform data. Signed-off-by: Simon Glass --- configs/rpi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig index fc1aef3..94e298b 100644 --- a/configs/rp

[U-Boot] [PATCH 08/20] net: smsc95xx: Correct the error numbers

2015-07-07 Thread Simon Glass
Instead of returning -1 on error, we should use a proper error number. Fix the code to conform to this. Signed-off-by: Simon Glass --- drivers/usb/eth/smsc95xx.c | 48 +- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/drivers/usb/eth/

[U-Boot] [PATCH 15/20] arm: rpi: Device tree modifications for U-Boot

2015-07-07 Thread Simon Glass
This updates the device tree from the kernel version to something suitable for U-Boot: - Add stdout-path alias for console - Mark the /soc node to be available pre-relocation so that the early serial console works (we need the 'ranges' property to be available) Signed-off-by: Simon Glass --- a

[U-Boot] [PATCH 11/20] dm: serial: Update binding for PL01x serial UART

2015-07-07 Thread Simon Glass
This binding differs from that of Linux. Update it and change existing users. Signed-off-by: Simon Glass --- arch/arm/dts/stv0991.dts | 2 +- doc/device-tree-bindings/serial/pl011.txt | 53 +++ doc/device-tree-bindings/serial/pl01x.txt | 7 dr

[U-Boot] [PATCH 17/20] arm: rpi: Drop the UART console platform data

2015-07-07 Thread Simon Glass
We can rely on the device tree to provide the UART information. Signed-off-by: Simon Glass --- board/raspberrypi/rpi/rpi.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 96fe870..7de1921 100644 --- a/board/rasp

[U-Boot] [PATCH 13/20] arm: rpi: Define CONFIG_TFTP_TSIZE to show tftp size info

2015-07-07 Thread Simon Glass
This shows a proper progress display and the total amount of data transferred. Enable it for Raspberry Pi. Signed-off-by: Simon Glass --- include/configs/rpi-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/rpi-common.h b/include/configs/rpi-common.h index b54cf8b..b

[U-Boot] [PATCH 14/20] arm: rpi: Bring in kernel device tree files

2015-07-07 Thread Simon Glass
Bring in the device tree files from Linux v4.1. Signed-off-by: Simon Glass --- arch/arm/dts/Makefile | 2 + arch/arm/dts/bcm2835-rpi-b.dts| 23 arch/arm/dts/bcm2835-rpi.dtsi | 51 + arch/arm/dts/bcm2835.dtsi | 192

[U-Boot] [PATCH 12/20] dm: Support address translation for simple-bus

2015-07-07 Thread Simon Glass
The 'ranges' property can be used to specify a translation from the system address to the bus address. Add support for this using the dev_get_addr() function, which devices should use to find their address. Signed-off-by: Simon Glass --- drivers/core/device.c| 17 +++-- driv

[U-Boot] [PATCH 07/20] net: smsc95xx: Rename AX_RX_URB_SIZE to RX_URB_SIZE

2015-07-07 Thread Simon Glass
The AX_ prefix comes from the Asix driver. Since this is not that, we should avoid this confusing prefix. Signed-off-by: Simon Glass --- drivers/usb/eth/smsc95xx.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95x

[U-Boot] [PATCH 09/20] net: smsc95xx: Prepare for conversion to driver model

2015-07-07 Thread Simon Glass
At present struct eth_device is passed around all over the place. This does not exist with driver model. Add explicit arguments instead, so that with driver model we can pass the correct things. Signed-off-by: Simon Glass --- drivers/usb/eth/smsc95xx.c | 270 +---

[U-Boot] [PATCH 04/20] dm: usb: Prepare dwc2 driver for driver-model conversion

2015-07-07 Thread Simon Glass
Put all global data in a structure and move (what will be) common code into common functions. This will make the driver-model conversion much easier. Signed-off-by: Simon Glass --- drivers/usb/host/dwc2.c | 150 1 file changed, 100 insertions(+),

[U-Boot] [PATCH 10/20] net: smsc95xx: Add driver-model support

2015-07-07 Thread Simon Glass
Add support for driver model, so that CONFIG_DM_ETH can be defined and used with this driver. Signed-off-by: Simon Glass --- drivers/usb/eth/smsc95xx.c | 142 + 1 file changed, 142 insertions(+) diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/e

[U-Boot] [PATCH 03/20] dm: usb: Add an errno.h header to usb_ether.c

2015-07-07 Thread Simon Glass
This is required on some platforms, so add it. Signed-off-by: Simon Glass --- drivers/usb/eth/usb_ether.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c index 137eac7..110808d 100644 --- a/drivers/usb/eth/usb_ether.c +++ b/drivers/u

[U-Boot] [PATCH 06/20] net: smsc95xx: Sort the include files

2015-07-07 Thread Simon Glass
Tidy up the include file order before adding more. Signed-off-by: Simon Glass --- drivers/usb/eth/smsc95xx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c index a7e50d6..8ebe4d6 100644 --- a/drivers/usb/eth/smsc9

[U-Boot] [PATCH 01/20] dm: net: Support usbethaddr environment variable

2015-07-07 Thread Simon Glass
For USB Ethernet devices we need to use the usbethaddr environment variable (instead of ethaddr) the Ethernet hardware address. Add this to the uclass so that it happens automatically. Signed-off-by: Simon Glass --- net/eth.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --g

[U-Boot] [PATCH 02/20] dm: usb: Allow USB Ethernet whenever CONFIG_DM_ETH is not defined

2015-07-07 Thread Simon Glass
We can support USB Ethernet regardless of the setting of CONFIG_DM_USB. Update the code to reflect this. Signed-off-by: Simon Glass --- common/cmd_usb.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/cmd_usb.c b/common/cmd_usb.c index b385743..bc45c48 100644 --

Re: [U-Boot] [PATCH v2] ahci: Fix compiling warnings under 64bit platforms

2015-07-07 Thread Yuantian Tang
> -Original Message- > From: Albert ARIBAUD [mailto:albert.u.b...@aribaud.net] > Sent: Tuesday, July 07, 2015 7:20 PM > To: Tang Yuantian-B29983 > Cc: tr...@konsulko.com; Xie Shaohui-B21989; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH v2] ahci: Fix compiling warnings under 64bit >

Re: [U-Boot] [PATCH 07/55] exynos: i2c: Correct bug in pinmux selection

2015-07-07 Thread Simon Glass
Hi Minkyu, On 6 July 2015 at 19:36, Minkyu Kang wrote: > Dear Simon, > > On 07/07/15 00:27, Simon Glass wrote: >> Hi Minkyu, Przemyslaw, >> >> On 5 July 2015 at 00:15, Heiko Schocher wrote: >>> Hello Simon, >>> >>> Am 03.07.2015 um 02:15 schrieb Simon Glass: When driver model is not us

[U-Boot] Hardware hashing on unsigned fitImage nodes.

2015-07-07 Thread Andre Wolokita
Hi Simon, Hopefully you're the right person to be contacting about this; if not, please point me in the right direction. We've recently had a contractor write a hash driver for our crypto accelerator, intended to accelerate fitImage verification. They noticed that the hardware hashing API woul

Re: [U-Boot] [PATCH v2 1/1] ARM: DRA72x: fix io delay calibration for ethernet

2015-07-07 Thread Tom Rini
On Mon, Jun 22, 2015 at 02:43:10PM +0530, Mugunthan V N wrote: > we currently use in-development IODelay values for DRA72x which are > proposed in the data sheet, however, DRA72x EVM uses DP83865 ethernet > Phy over RGMII. The PHY characteristics and routing choices made on > the EVM, make the cur

Re: [U-Boot] [PATCH v2 1/1] ARM: DRA72x: fix io delay calibration for ethernet

2015-07-07 Thread Tom Rini
On Tue, Jul 07, 2015 at 08:14:13PM +0530, Mugunthan V N wrote: > On Monday 22 June 2015 02:43 PM, Mugunthan V N wrote: > > we currently use in-development IODelay values for DRA72x which are > > proposed in the data sheet, however, DRA72x EVM uses DP83865 ethernet > > Phy over RGMII. The PHY charac

Re: [U-Boot] Pull request (updated): u-boot-arm/master

2015-07-07 Thread Tom Rini
On Tue, Jul 07, 2015 at 02:26:38PM +0200, Albert ARIBAUD wrote: > Hello, > > The following changes since commit 9c6b05cb724e18d1db3f9e1a75b2272572f06fbd: > > Prepare v2015.07-rc3 (2015-06-29 17:22:01 -0400) > > are available in the git repository at: > > git://git.denx.de/u-boot-arm master

Re: [U-Boot] [PATCH v3 8/8] x86: Add binary blob checksums for Minnowboard MAX

2015-07-07 Thread Simon Glass
On 5 July 2015 at 21:23, Bin Meng wrote: > On Sat, Jul 4, 2015 at 8:28 AM, Simon Glass wrote: >> To try to reduce the pain of confusion of binary blobs, add MD5 checksums >> for the current versions. This may worsen the situation as new versions >> appear, but it should still be possible to obtai

Re: [U-Boot] [PATCH] tools: ifdtool: Write correct offset on 32-bit machine

2015-07-07 Thread Simon Glass
On 6 July 2015 at 10:39, Simon Glass wrote: > On 6 July 2015 at 01:57, Bin Meng wrote: >> On 32-bit machine strtol() returns LONG_MAX which is 0x7fff, >> which is wrong for u-boot.rom components like u-boot-x86-16bit.bin. >> Change to use strtoll() so that it works on both 32-bit and 64-bit >

Re: [U-Boot] [PATCH v3 6/8] dm: x86: minnowmax: Move PCI to use driver model

2015-07-07 Thread Simon Glass
On 3 July 2015 at 18:28, Simon Glass wrote: > Adjust minnowmax to use driver model for PCI. This requires adding a device > tree node to specify the ranges, removing the board-specific PCI code and > ensuring that the host bridge is configured. > > Reviewed-by: Bin Meng > Signed-off-by: Simon Gla

Re: [U-Boot] [PATCH v3 7/8] dm: x86: baytrail: Correct PCI region 3 when driver model is used

2015-07-07 Thread Simon Glass
On 5 July 2015 at 21:22, Bin Meng wrote: > On Sat, Jul 4, 2015 at 8:28 AM, Simon Glass wrote: >> Commit afbbd413a fixed this for non-driver-model. Make sure that the driver >> model code handles this also. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: >> - Drop the patch to board_

Re: [U-Boot] [PATCH v3 3/8] dm: spi: Enable environment for minnowmax

2015-07-07 Thread Simon Glass
On 3 July 2015 at 18:28, Simon Glass wrote: > Enable a SPI environment and store it in a suitable place. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > Reviewed-by: Jagan Teki > --- > > Changes in v3: None > Changes in v2: None > > include/configs/minnowmax.h | 5 ++--- > 1 file chan

Re: [U-Boot] [PATCH v3 5/8] x86: pci: Tidy up the generic x86 PCI driver

2015-07-07 Thread Simon Glass
On 5 July 2015 at 21:20, Bin Meng wrote: > On Sat, Jul 4, 2015 at 8:28 AM, Simon Glass wrote: >> This driver should use the x86 PCI configuration functions. Also adjust its >> compatible string to something generic (i.e. without a vendor name). >> >> Signed-off-by: Simon Glass >> --- >> >> Chang

Re: [U-Boot] [PATCH v3 4/8] x86: Add ROM image description for minnowmax

2015-07-07 Thread Simon Glass
On 3 July 2015 at 18:28, Simon Glass wrote: > The layout of the ROM is a bit hard to discover by reading the code. Add > a table to make it easier. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: None > Changes in v2: > - Fix typos in README.x86 > > doc/README.x8

Re: [U-Boot] [PATCH v2 10/11] x86: crownbay: Enable graphics support

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > Enable graphics support on Intel Crown Bay board With the help of > vgabios for Intel TunnelCreek IGD. Tested with an external LVDS > panel connected to X4 connector and SDVO adapter connected to X9 > connector on the board. > > Signed-off-by: Jian Luo >

Re: [U-Boot] [PATCH v3 1/8] dm: spi: Correct status register access width

2015-07-07 Thread Simon Glass
On 3 July 2015 at 18:28, Simon Glass wrote: > The status register on ICH9 is a single byte, so use byte access when > writing to it, to avoid updating the control register also. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > Reviewed-by: Jagan Teki > --- > > Changes in v3: None > Chan

Re: [U-Boot] [PATCH v2 09/11] x86: Remove MARK_GRAPHICS_MEM_WRCOMB

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > MARK_GRAPHICS_MEM_WRCOMB is not referenced anywhere in the code, > hence remove it. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/Kconfig | 8 > board/google/chromebook_lin

Re: [U-Boot] [PATCH v3 2/8] dm: spi: Correct BIOS protection logic for ICH9

2015-07-07 Thread Simon Glass
On 6 July 2015 at 10:45, Andrew Bradford wrote: > On 07/03 18:28, Simon Glass wrote: >> The logic is incorrect and currently has no effect. Fix it so that we can >> write to SPI flash, since by default it is write-protected. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v3: >> - Correc

Re: [U-Boot] [PATCH v2 11/11] x86: Configure VESA parameters before loading Linux kernel

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > Store VESA parameters to Linux setup header so that vesafb driver > in the kernel could work. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > Tested-by: Jian Luo > > --- > > Changes in v2: None > > arch/x86/include/asm/zimage.h | 1 + > arch/x8

Re: [U-Boot] [PATCH v2 05/11] x86: Setup fixed range MTRRs for legacy regions

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > We should setup fixed range MTRRs for some legacy regions like VGA > RAM and PCI ROM areas as uncacheable. Note FSP may setup these to > other cache settings, but we can override this in x86_cpu_init_f(). > > Signed-off-by: Bin Meng > Acked-by: Simon Gla

Re: [U-Boot] [PATCH v2 04/11] video: Add 32-bit color depth support for VBE

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > From: Jian Luo > > The TunnelCreek IGD VBE reports 32-bit color depth regardless 24-bit > color depth is configured. Since 24-bit mode already uses 4 bytes > internally, it should be OK to just add this option in switch case. > > Signed-off-by: Jian Luo

Re: [U-Boot] [PATCH v2 07/11] x86: cmd_mtrr: Improve MTRR list information

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > Print the meaningful base address and mask of an MTRR range without showing > the memory type encoding or valid bit. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/lib/cmd_mtrr.c | 3 ++- > 1 file changed

Re: [U-Boot] [PATCH v2 06/11] x86: queensbay: Change CPU_ADDR_BITS to 32

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > Per CPUID:8008h result, the maximum physical address bits of > TunnelCreek processor is 32 instead of default 36. This will fix > the incorrect decoding of MTRR range mask. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass > --- > > Changes in v2:

Re: [U-Boot] [PATCH v2 08/11] x86: Move VGA option rom macros to Kconfig

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > Move X86_OPTION_ROM_FILE & X86_OPTION_ROM_ADDR to arch/x86/Kconfig > and rename them to VGA_BIOS_FILE & VGA_BIOS_ADDR which depend on > HAVE_VGA_BIOS. The new names are consistent with other x86 binary > blob options like HAVE_FSP/FSP_FILE/FSP_ADDR. > > S

Re: [U-Boot] [PATCH 1/3] arm: baltos: enable CMD_NET and FIT support in defconfig

2015-07-07 Thread Simon Glass
On 6 July 2015 at 09:28, Yegor Yefremov wrote: > Signed-off-by: Yegor Yefremov > --- > configs/am335x_baltos_defconfig | 4 ++-- > include/configs/baltos.h| 2 -- > 2 files changed, 2 insertions(+), 4 deletions(-) Reviewed-by: Simon Glass But please remember to add a commit message wi

Re: [U-Boot] [PATCH v2 03/11] x86: bios: Allow pci config read/write to host bridge in int1a_handler

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > From: Jian Luo > > We should allow pci config read/write to host bridge (b.d.f = 0.0.0) > in the int1a_handler() which is a valid pci device. > > Signed-off-by: Jian Luo > Signed-off-by: Bin Meng > Acked-by: Simon Glass > --- > > Changes in v2: None >

Re: [U-Boot] [PATCH v2 01/11] video: vesa_fb: Look up VGA device by class instead of id

2015-07-07 Thread Simon Glass
On 6 July 2015 at 02:31, Bin Meng wrote: > Per PCI spec, VGA device reports its class as standard 03h in > its configuration space, so we can use it to determine if we need > run option rom instead of testing the supported vendor/device ids. > > Signed-off-by: Bin Meng > Acked-by: Simon Glass

Re: [U-Boot] hang: ARM64/Relocating u-boot from u-boot

2015-07-07 Thread Wolfgang Denk
Dear Jagan, In message you wrote: > > I'm running u-boot from u-boot prompt, just like a standalone > application with CONFIG_SYS_TEXT_BASE address. ... > Has any one tried the same before, please let me know for any inputs? Actually this is even a FAQ: http://www.denx.de/wiki/view/DULG/CanUB

[U-Boot] hang: ARM64/Relocating u-boot from u-boot

2015-07-07 Thread Jagan Teki
Hi All, I'm running u-boot from u-boot prompt, just like a standalone application with CONFIG_SYS_TEXT_BASE address. Cache were turned off #define CONFIG_SYS_DCACHE_OFF #define CONFIG_SYS_ICACHE_OFF Log: u-boot# tftp 0x0 u-boot.bin u-boot# go 0x0 ## Starting application at 0x ... U-Boo

Re: [U-Boot] [PATCH v2 3/4] usb: gadget: bcm_udc_otg files

2015-07-07 Thread Steve Rae
Hi, Lukasz On 15-07-07 06:33 AM, Lukasz Majewski wrote: Hi Steve, From: "JD (Jiandong) Zheng" Add the required files for the Broadcom UDC OTG interface. Signed-off-by: Steve Rae --- Changes in v2: None arch/arm/include/asm/arch-bcm281xx/sysmap.h | 7 drivers/usb/gadget/bcm_udc_o

Re: [U-Boot] [PATCH] imx: imximage: add new CHECK/CLR BIT command

2015-07-07 Thread Nitin Garg
On 06/30/2015 03:02 AM, Peng Fan wrote: > Hi Stefano, > > On Sun, Jun 28, 2015 at 01:00:07PM +0200, Stefano Babic wrote: >> Hi Peng, >> >> On 14/06/2015 11:38, Peng Fan wrote: >>> Since rom code supports the following commands, add new commands support in >>> imximage. >>> >> >> It is better to ex

Re: [U-Boot] [PATCH v2 2/4] usb: s3c-otg: support 8-bit interface

2015-07-07 Thread Steve Rae
On 15-07-07 06:27 AM, Lukasz Majewski wrote: Hi Steve, Signed-off-by: Steve Rae --- Changes in v2: None drivers/usb/gadget/s3c_udc_otg.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/gadget/s3c_udc_otg.c b/drivers/usb/gadget/s3c_udc_otg.c index 7a2d1e7..2e3b4f7 100

[U-Boot] [PATCH 1/1] net: lpc32xx: improve download rate in RMII phy mode

2015-07-07 Thread LEMIEUX, SYLVAIN
This is a minor update to LPC32xx MAC driver patch that add support for the RMII phy mode. In the legacy BSP from NXP, in RMII phy mode, an extra 10ms delay was present after the release of the soft reset. In my tests (connected using RMII phy mode to a Micrel KSZ8031RNL), the download rate wa

  1   2   >