Re: [U-Boot] [PATCH 0/3] usb: host/gadget: Miscellaneous fixes

2015-08-10 Thread Lukasz Majewski
Hi Kishon, > This patch series is split from [1] to contain only the usb > host/gadget fixes. > > [1] -> > http://permalink.gmane.org/gmane.comp.boot-loaders.u-boot/229188 > > Kishon Vijay Abraham I (3): > usb: gadget: ether: Perform board initialization from ethernet > gadget driver > usb:

Re: [U-Boot] [PATCH 3/3] usb: gadget: ether: populate _reset_ callback

2015-08-10 Thread Lukasz Majewski
Hi Marek, > On Monday, August 10, 2015 at 01:15:51 PM, Kishon Vijay Abraham I > wrote: > > populate _reset_ callback to the USB ethernet gadget since UDC core > > expects every gadget driver to have the reset callback. This > > shouldn't be needed once the ethernet gadget driver is adapted to > >

Re: [U-Boot] [PATCH v2 5/5] x86: Switch to using generic global_data setup

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 10:44 AM, Simon Glass wrote: > There is quite a bit of assembler code that can be removed if we use the > generic global_data setup. Less arch-specific code makes it easier to add > new features and maintain the start-up code. > > Drop the unneeded code and adjust the hooks

Re: [U-Boot] [PATCH v2 3/5] Allow arch-specific setting of global_data in board_init_f_mem()

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 10:44 AM, Simon Glass wrote: > At present we have a simple assignment to gd. With some archs this is > implemented as a register or through some other means; a simple assignment > does not suit in all cases. > > Change this to a function and add documentation to describe ho

Re: [U-Boot] [PATCH v2 2/5] Align global_data to a 16-byte boundary

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 10:44 AM, Simon Glass wrote: > Some archs like to have larger alignment for their global data. Use 16 bytes > which suits all current archs. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Correct logic to round down instead of up > > common/board_f.c

[U-Boot] [PATCH 2/3] arm, imx6: add aristainetos 2b board version

2015-08-10 Thread Heiko Schocher
there is a 2b board version of the aristainetos2 board. Differences to the v2: - spi cs for the nor flash and display controller changed - some pinmux changes - LED gpio settings changed Signed-off-by: Heiko Schocher --- arch/arm/Kconfig | 4 +++ board/aristainetos/Kcon

[U-Boot] [PATCH 1/3] arm, imx6: aristainetos board updates

2015-08-10 Thread Heiko Schocher
some small updates for the aristainetos boards: - fix display timings for the aristainetos board - fix pinmux for the aristainetos board - fix pinmux for the aristainetos2 board - fix default environment Signed-off-by: Heiko Schocher --- board/aristainetos/aristainetos-v2.c | 1 - board/aris

[U-Boot] [PATCH 0/3] arm, imx6: aristainetos board updates

2015-08-10 Thread Heiko Schocher
This patchserie updates the aristainetos board: - some small fixes for the aristainetos and aristainetos2 board - there is a new hardware version for the aristaineos2 board, called 2b, add it - as the display driver is on the 2b version on another spi chipselect, make this configurable in the

[U-Boot] [PATCH 3/3] video, lg4573: make spi bus and cs configurable

2015-08-10 Thread Heiko Schocher
make the spi bus and the spi chipselect configurable for the lg4573 driver. Use it on the aristainetos boards. Signed-off-by: Heiko Schocher --- drivers/video/lg4573.c | 3 ++- include/configs/aristainetos2.h | 2 ++ include/configs/aristainetos2b.h | 2 ++ 3 files changed, 6 inserti

Re: [U-Boot] [PATCH v3 3/3] x86: Show the un-relocated IP address in exceptions

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 12:02 PM, Simon Glass wrote: > When trying to figure out where an exception has occured, the relocated > address is not a lot of help. Its value depends on various factors. Show > the un-relocated IP as well. This can be looked up in System.map directly. > > Signed-off-by:

Re: [U-Boot] [PATCH v3 09/10] x86: Add a simple interrupt script to the README

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass wrote: > It is a bit tedious to figure out the interrupt configuration for a new > x86 platform. Add a script which can do this, based on the output of > 'pci long'. This may be helpful in some cases. > > Signed-off-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH v3 2/3] x86: Convert minnowmax to use CONFIG_DM_NET

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 12:02 PM, Simon Glass wrote: > Move to driver model for networking on minnowmax. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Use savedefconfig to tidy up the ordering > > Changes in v2: None > > board/intel/minnowmax/minnowmax.c | 6 -- > configs/minno

Re: [U-Boot] [PATCH v3 1/3] x86: Convert minnowmax to use CONFIG_DM_USB

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 12:02 PM, Simon Glass wrote: > Move to driver model for USB on minnowmax. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Use savedefconfig to tidy up the ordering > > Changes in v2: None > > configs/minnowmax_defconfig | 9 + > 1 file changed, 5 inser

Re: [U-Boot] [PATCH v3 08/10] x86: baytrail: Tidy up interrupt and FSP init

2015-08-10 Thread Bin Meng
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass wrote: > We should signal to the FSP that PCI enumeration is complete. Perform this > task in a suitable place. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Drop interrupt.h header include > > Changes in v2: > - Add new patch to tidy up

Re: [U-Boot] [PATCH v3 07/10] x86: minnowmax: Define and enable interrupt setup

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass wrote: > Set up interrupts correctly so that Linux can use all devices. Use > savedefconfig to regenerate the defconfig file. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Drop unnecessary blank lines > - Add PCIe root ports fr

Re: [U-Boot] [PATCH v3 03/10] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Bin Meng
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass wrote: > Use savedefconfig to get this file into the correct order. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: > - Rebase to mainline > > configs/efi-x86_defconfig | 10 +- > 1 file changed, 5 insertions(+),

[U-Boot] [PATCH] fs-test.sh: minor fixes

2015-08-10 Thread Stephen Warren
- Re-direct stderr into the log files, so any errors U-Boot emits are visible in the logs. This is relevant if the "reset" shell command attempts to report that it's not supported on the sandbox board. - Fix test_fs_nonfs() to name the files it created differently for each invocation. Otherwi

Re: [U-Boot] [PATCH v2 3/9] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 22:03, Bin Meng wrote: > Hi Simon, > > On Tue, Aug 11, 2015 at 11:55 AM, Simon Glass wrote: >> Hi Bin, >> >> On 10 August 2015 at 21:53, Bin Meng wrote: >>> Hi Simon, >>> >>> On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass wrote: Hi Bin, On 10 August 20

Re: [U-Boot] [PATCH v3 04/11] arm: rpi: Device tree modifications for U-Boot

2015-08-10 Thread Stephen Warren
On 08/10/2015 10:17 PM, Simon Glass wrote: > Hi Stephen, > > On 10 August 2015 at 22:00, Stephen Warren wrote: >> On 08/07/2015 07:42 AM, Simon Glass wrote: >>> This updates the device tree from the kernel version to something suitable >>> for U-Boot: >>> >>> - Add stdout-path alias for console >

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

2015-08-10 Thread Stephen Warren
On 08/10/2015 10:11 PM, Simon Glass wrote: > HI Stephen, > > On 10 August 2015 at 21:57, Stephen Warren wrote: >> On 08/07/2015 07:42 AM, Simon Glass wrote: >>> This binding differs from that of Linux. Update it and change existing >>> users. >> >> Is that meant to imply that this patch fixes the

Re: [U-Boot] [PATCH v3 04/11] arm: rpi: Device tree modifications for U-Boot

2015-08-10 Thread Simon Glass
Hi Stephen, On 10 August 2015 at 22:00, Stephen Warren wrote: > On 08/07/2015 07:42 AM, Simon Glass wrote: >> 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

Re: [U-Boot] debugging malloc heap corruption on 2015.04

2015-08-10 Thread Chris Packham
On Tue, Aug 11, 2015 at 11:56 AM, Chris Packham wrote: > Hi All, > > I've migrate a custom armv7 board from v2015.01 to v2015.04. One issue > I've just started seeing is an odd hang _sometimes_ when booting > automatically. The issue doesn't (seem to) happen when the boot > process is interrupted

Re: [U-Boot] [PATCH v3 02/10] dm: pci: Add a way to iterate through all PCI devices

2015-08-10 Thread Bin Meng
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass wrote: > These functions allow iteration through all PCI devices including bridges. > The children of each PCI bus are returned in turn. This can be useful for > configuring, checking or enumerating all the devices. > > Signed-off-by: Simon Glass > ---

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

2015-08-10 Thread Simon Glass
HI Stephen, On 10 August 2015 at 21:57, Stephen Warren wrote: > On 08/07/2015 07:42 AM, Simon Glass wrote: >> This binding differs from that of Linux. Update it and change existing >> users. > > Is that meant to imply that this patch fixes the copy of the binding doc > in U-Boot so it does match

Re: [U-Boot] [PATCH v3 01/10] dm: pci: Provide friendly config access functions

2015-08-10 Thread Bin Meng
On Mon, Aug 10, 2015 at 9:05 PM, Simon Glass wrote: > At present there are no PCI functions which allow access to PCI > configuration using a struct udevice. This is a sad situation for driver > model as it makes use of PCI harder. Add these functions. > > Signed-off-by: Simon Glass > --- > > Cha

Re: [U-Boot] [PATCH 0/9] Replace the FAT filesystem code

2015-08-10 Thread Stephen Warren
On 08/07/2015 09:09 PM, Stephen Warren wrote: > The existing FAT filesystem implementation in U-Boot has some bugs that > are tricky to fix cleanly without significant rework of the code. For > example, see: > > http://lists.denx.de/pipermail/u-boot/2015-July/221054.html > [PATCH] fat: handle path

Re: [U-Boot] [PATCH v2 3/9] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 11:55 AM, Simon Glass wrote: > Hi Bin, > > On 10 August 2015 at 21:53, Bin Meng wrote: >> Hi Simon, >> >> On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass wrote: >>> Hi Bin, >>> >>> On 10 August 2015 at 00:18, Bin Meng wrote: Hi Simon, On Sat, Aug 8

[U-Boot] [PATCH v3 3/3] x86: Show the un-relocated IP address in exceptions

2015-08-10 Thread Simon Glass
When trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v3: - Repla

[U-Boot] [PATCH v3 2/3] x86: Convert minnowmax to use CONFIG_DM_NET

2015-08-10 Thread Simon Glass
Move to driver model for networking on minnowmax. Signed-off-by: Simon Glass --- Changes in v3: - Use savedefconfig to tidy up the ordering Changes in v2: None board/intel/minnowmax/minnowmax.c | 6 -- configs/minnowmax_defconfig | 1 + 2 files changed, 1 insertion(+), 6 deletions(-

[U-Boot] [PATCH v3 1/3] x86: Convert minnowmax to use CONFIG_DM_USB

2015-08-10 Thread Simon Glass
Move to driver model for USB on minnowmax. Signed-off-by: Simon Glass --- Changes in v3: - Use savedefconfig to tidy up the ordering Changes in v2: None configs/minnowmax_defconfig | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configs/minnowmax_defconfig b/confi

Re: [U-Boot] [PATCH v3 04/11] arm: rpi: Device tree modifications for U-Boot

2015-08-10 Thread Stephen Warren
On 08/07/2015 07:42 AM, Simon Glass wrote: > 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' propert

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:45, Bin Meng wrote: > Hi Simon, > > On Tue, Aug 11, 2015 at 11:15 AM, Simon Glass wrote: >> Hi Bin, >> >> On 10 August 2015 at 21:05, Bin Meng wrote: >>> Hi Simon, >>> >>> On Tue, Aug 11, 2015 at 10:51 AM, Simon Glass wrote: Hi Bin, On 10 August 2

Re: [U-Boot] [PATCH v3 02/11] arm: rpi: Define CONFIG_TFTP_TSIZE to show tftp size info

2015-08-10 Thread Stephen Warren
On 08/07/2015 07:42 AM, Simon Glass wrote: > This shows a proper progress display and the total amount of data > transferred. Enable it for Raspberry Pi. Acked-by: Stephen Warren ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/

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

2015-08-10 Thread Stephen Warren
On 08/07/2015 07:42 AM, Simon Glass wrote: > This binding differs from that of Linux. Update it and change existing > users. Is that meant to imply that this patch fixes the copy of the binding doc in U-Boot so it does match the kernel's copy? > Changes in v3: > - Rename binding file to pl01x.txt

Re: [U-Boot] [PATCH v2 7/9] x86: minnowmax: Define and enable interrupt setup

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass wrote: > Hi Bin, > > On 10 August 2015 at 00:19, Bin Meng wrote: >> Hi Simon, >> >> On Sat, Aug 8, 2015 at 10:27 PM, Simon Glass wrote: >>> Set up interrupts correctly so that Linux can use all devices. Use >>> savedefconfig to regenerate t

Re: [U-Boot] [PATCH v2 3/9] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:53, Bin Meng wrote: > Hi Simon, > > On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass wrote: >> Hi Bin, >> >> On 10 August 2015 at 00:18, Bin Meng wrote: >>> Hi Simon, >>> >>> On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass wrote: Use savedefconfig to get this file

Re: [U-Boot] [PATCH v2 3/9] x86: Re-order efi-x86_defconfig

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 8:58 PM, Simon Glass wrote: > Hi Bin, > > On 10 August 2015 at 00:18, Bin Meng wrote: >> Hi Simon, >> >> On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass wrote: >>> Use savedefconfig to get this file into the correct order. >>> >>> Signed-off-by: Simon Glass >>> -

Re: [U-Boot] [PATCH v3 06/11] arm: rpi: Enable device tree control for Rasberry Pi

2015-08-10 Thread Stephen Warren
On 08/07/2015 07:42 AM, Simon Glass wrote: > Enable device tree control so that we can use driver model fully and avoid > using platform data. I'm still not convinced about this change. Re: the commit message about: What about the driver model is not being fully used without DT? Overall: What ad

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 11:15 AM, Simon Glass wrote: > Hi Bin, > > On 10 August 2015 at 21:05, Bin Meng wrote: >> Hi Simon, >> >> On Tue, Aug 11, 2015 at 10:51 AM, Simon Glass wrote: >>> Hi Bin, >>> >>> On 10 August 2015 at 20:45, Bin Meng wrote: Hi Simon, On Mon, Aug

Re: [U-Boot] [PATCH 08/18] sandbox: Use the reset driver to handle reset

2015-08-10 Thread Simon Glass
Hi Stephen, On 10 August 2015 at 21:35, Stephen Warren wrote: > On 07/17/2015 05:58 PM, Simon Glass wrote: >> On 6 July 2015 at 12:54, Simon Glass wrote: >>> Move sandbox over to use the reset uclass for reset, instead of a direct >>> call to do_reset(). This allows us to add tests. >>> >>> Sign

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

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:31, Bin Meng wrote: > Hi Simon, > > On Tue, Aug 11, 2015 at 11:24 AM, Simon Glass wrote: >> Hi Bin, >> >> On 10 August 2015 at 21:17, Bin Meng wrote: >>> Hi Simon, >>> >>> On Tue, Aug 11, 2015 at 11:07 AM, Simon Glass wrote: Hi Bin, On 10 August 2

Re: [U-Boot] [PATCH 08/18] sandbox: Use the reset driver to handle reset

2015-08-10 Thread Stephen Warren
On 07/17/2015 05:58 PM, Simon Glass wrote: > On 6 July 2015 at 12:54, Simon Glass wrote: >> Move sandbox over to use the reset uclass for reset, instead of a direct >> call to do_reset(). This allows us to add tests. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/sandbox/cpu/cpu.c

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

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 11:24 AM, Simon Glass wrote: > Hi Bin, > > On 10 August 2015 at 21:17, Bin Meng wrote: >> Hi Simon, >> >> On Tue, Aug 11, 2015 at 11:07 AM, Simon Glass wrote: >>> Hi Bin, >>> >>> On 10 August 2015 at 20:53, Bin Meng wrote: Hi Andrew, On Mon, Aug

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

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:17, Bin Meng wrote: > Hi Simon, > > On Tue, Aug 11, 2015 at 11:07 AM, Simon Glass wrote: >> Hi Bin, >> >> On 10 August 2015 at 20:53, Bin Meng wrote: >>> Hi Andrew, >>> >>> On Mon, Aug 10, 2015 at 7:32 PM, Andrew Bradford >>> wrote: Hi Bin, On 08/

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

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 11:07 AM, Simon Glass wrote: > Hi Bin, > > On 10 August 2015 at 20:53, Bin Meng wrote: >> Hi Andrew, >> >> On Mon, Aug 10, 2015 at 7:32 PM, Andrew Bradford >> wrote: >>> Hi Bin, >>> >>> On 08/09 10:52, Bin Meng wrote: Hi Andrew, On Sun, Aug 9, 20

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 21:05, Bin Meng wrote: > Hi Simon, > > On Tue, Aug 11, 2015 at 10:51 AM, Simon Glass wrote: >> Hi Bin, >> >> On 10 August 2015 at 20:45, Bin Meng wrote: >>> Hi Simon, >>> >>> On Mon, Aug 10, 2015 at 11:48 PM, Simon Glass wrote: Hi Bin, On 7 August 20

Re: [U-Boot] [PATCH] Revert "dm: pci: Allow scan bridge child devices before relocation"

2015-08-10 Thread Bin Meng
On Tue, Aug 11, 2015 at 10:54 AM, Simon Glass wrote: > This reverts commit df189d9ba3f8fd1bc67e3c0c3c4ace16cd065ee1. > > Unfortunately this commit breaks chromebook_link because it adds lots of PCI > devices > before relocation and there is not enough pre-reloc malloc() memory. > > Rathar then in

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

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 20:53, Bin Meng wrote: > Hi Andrew, > > On Mon, Aug 10, 2015 at 7:32 PM, Andrew Bradford > wrote: >> Hi Bin, >> >> On 08/09 10:52, Bin Meng wrote: >>> Hi Andrew, >>> >>> On Sun, Aug 9, 2015 at 9:08 AM, Andrew Bradford >>> wrote: >>> > Hi Simon, >>> > >>> > On 08/08

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Bin Meng
Hi Simon, On Tue, Aug 11, 2015 at 10:51 AM, Simon Glass wrote: > Hi Bin, > > On 10 August 2015 at 20:45, Bin Meng wrote: >> Hi Simon, >> >> On Mon, Aug 10, 2015 at 11:48 PM, Simon Glass wrote: >>> Hi Bin, >>> >>> On 7 August 2015 at 18:47, Bin Meng wrote: Hi Simon, On Sat, Aug 8

Re: [U-Boot] [PATCH] arm: mxs: Fix mkimage invocation

2015-08-10 Thread Simon Glass
Hi Marek, On 10 August 2015 at 20:56, Marek Vasut wrote: > On Tuesday, August 11, 2015 at 04:47:33 AM, Simon Glass wrote: >> Hi Marek, > > Hi Simon, > >> Reviewed-by: Simon Glass >> >> Sorry for the breakage. I had an weird issue with my original patch on >> the boards you mention and started ch

Re: [U-Boot] [PATCH] arm: mxs: Fix mkimage invocation

2015-08-10 Thread Marek Vasut
On Tuesday, August 11, 2015 at 04:47:33 AM, Simon Glass wrote: > Hi Marek, Hi Simon, > Reviewed-by: Simon Glass > > Sorry for the breakage. I had an weird issue with my original patch on > the boards you mention and started chasing it down. But then I forgot > about it and for some reason did n

[U-Boot] [PATCH] Revert "dm: pci: Allow scan bridge child devices before relocation"

2015-08-10 Thread Simon Glass
This reverts commit df189d9ba3f8fd1bc67e3c0c3c4ace16cd065ee1. Unfortunately this commit breaks chromebook_link because it adds lots of PCI devices before relocation and there is not enough pre-reloc malloc() memory. Rathar then increase this memory, revert for now until we figure this out. Sign

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

2015-08-10 Thread Bin Meng
Hi Andrew, On Mon, Aug 10, 2015 at 7:32 PM, Andrew Bradford wrote: > Hi Bin, > > On 08/09 10:52, Bin Meng wrote: >> Hi Andrew, >> >> On Sun, Aug 9, 2015 at 9:08 AM, Andrew Bradford >> wrote: >> > Hi Simon, >> > >> > On 08/08 10:18, Simon Glass wrote: >> >> Hi, >> >> >> >> On 7 August 2015 at 06:

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 20:45, Bin Meng wrote: > Hi Simon, > > On Mon, Aug 10, 2015 at 11:48 PM, Simon Glass wrote: >> Hi Bin, >> >> On 7 August 2015 at 18:47, Bin Meng wrote: >>> Hi Simon, >>> >>> On Sat, Aug 8, 2015 at 3:26 AM, Simon Glass wrote: Hi Bin, On 7 August 2015

Re: [U-Boot] [PATCH 1/5] dm: pci: Allow scan bridge child devices before relocation

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 9:08 PM, Simon Glass wrote: > Hi Bin, > > On 2 August 2015 at 17:35, Simon Glass wrote: >> On 2 August 2015 at 15:24, Simon Glass wrote: >>> On 27 July 2015 at 01:33, Bin Meng wrote: On some platforms pci devices behind bridge need to be probed (eg:

Re: [U-Boot] [PATCH] arm: mxs: Fix mkimage invocation

2015-08-10 Thread Simon Glass
Hi Marek, On 10 August 2015 at 19:08, Marek Vasut wrote: > Remove this ad-hoc mkimage invocation in MXS Makefile and replace > it with the standard mkimage rule instead. > > This patch fixes recent build issues introduced by the patch > 92a655c mkimage: Set up a file size parameter and keep it up

Re: [U-Boot] [PATCH 1/4] x86: microcode-tool: Write pure data to the dtsi file

2015-08-10 Thread Bin Meng
Hi Simon, On Mon, Aug 10, 2015 at 11:48 PM, Simon Glass wrote: > Hi Bin, > > On 7 August 2015 at 18:47, Bin Meng wrote: >> Hi Simon, >> >> On Sat, Aug 8, 2015 at 3:26 AM, Simon Glass wrote: >>> Hi Bin, >>> >>> On 7 August 2015 at 03:28, Bin Meng wrote: Currently the microcode-tool writes

[U-Boot] [PATCH v2 5/5] x86: Switch to using generic global_data setup

2015-08-10 Thread Simon Glass
There is quite a bit of assembler code that can be removed if we use the generic global_data setup. Less arch-specific code makes it easier to add new features and maintain the start-up code. Drop the unneeded code and adjust the hooks in board_f.c to cope. Signed-off-by: Simon Glass --- Change

[U-Boot] [PATCH v2 3/5] Allow arch-specific setting of global_data in board_init_f_mem()

2015-08-10 Thread Simon Glass
At present we have a simple assignment to gd. With some archs this is implemented as a register or through some other means; a simple assignment does not suit in all cases. Change this to a function and add documentation to describe how this all works. Signed-off-by: Simon Glass Reviewed-by: Yor

[U-Boot] [PATCH v2 1/5] x86: Remove init_gd() function

2015-08-10 Thread Simon Glass
This is declared but no-longer exists. Drop it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/include/asm/u-boot-x86.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/u-boot-x86.h b/arch/x86/include/asm/u-boot-x86.h index 4dae365..1

[U-Boot] [PATCH v2 4/5] x86: Move the GDT into global_data

2015-08-10 Thread Simon Glass
Rather than keeping track of the Global Descriptor Table in its own memory we may as well put it in global_data with everything else. As a first step, stop using the separately allocated GDT. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/cpu.c

[U-Boot] [PATCH v2 2/5] Align global_data to a 16-byte boundary

2015-08-10 Thread Simon Glass
Some archs like to have larger alignment for their global data. Use 16 bytes which suits all current archs. Signed-off-by: Simon Glass --- Changes in v2: - Correct logic to round down instead of up common/board_f.c | 1 + include/asm-generic/global_data.h | 2 +- 2 files chang

[U-Boot] [PATCH v2 0/5] x86: Move x86 to use board_init_f_mem() instead of assembler

2015-08-10 Thread Simon Glass
Much of the early-init assembler on x86 can be removed if we use the new board_init_f_mem() function. At present only PowerPC uses it, but we should try to move more archs over. This has been contemplated for a while but it is time to take the plunge. Changes in v2: - Correct logic to round down

Re: [U-Boot] [PATCH v3 15/15] imx: mx6ul_14x14_evk add basic board support

2015-08-10 Thread Peng Fan
Hi Fabio, On Mon, Aug 10, 2015 at 01:22:49PM -0300, Fabio Estevam wrote: >Hi Peng, > >On Mon, Jul 20, 2015 at 8:28 AM, Peng Fan wrote: >> 1. Add USDHC, I2C, UART, 74LV, USB, QSPI support. >> 2. Support SPL >> 3. CONFIG_MX6UL_14X14_EVK_EMMC_REWORK is introduced, this board default >>supports sd

Re: [U-Boot] [PATCH v3 50/54] mkimage: Set up a file size parameter and keep it updated

2015-08-10 Thread Marek Vasut
On Tuesday, August 11, 2015 at 01:43:05 AM, Marek Vasut wrote: > On Saturday, July 18, 2015 at 01:58:09 AM, Simon Glass wrote: > > On 25 June 2015 at 16:51, Joe Hershberger wrote: > > > Hi Simon, > > > > > > On Tue, Jun 23, 2015 at 4:39 PM, Simon Glass wrote: > > >> Some functions called by mkim

[U-Boot] [PATCH] arm: mxs: Fix mkimage invocation

2015-08-10 Thread Marek Vasut
Remove this ad-hoc mkimage invocation in MXS Makefile and replace it with the standard mkimage rule instead. This patch fixes recent build issues introduced by the patch 92a655c mkimage: Set up a file size parameter and keep it updated These build issues could be triggered by building for example

Re: [U-Boot] [PATCH 2/6] ARM: OMAP5: Add functions to enable and disable USB clocks

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:58:34PM +0530, Kishon Vijay Abraham I wrote: > diff --git a/arch/arm/include/asm/omap_common.h > b/arch/arm/include/asm/omap_common.h > index 224fbf0..527e143 100644 > --- a/arch/arm/include/asm/omap_common.h > +++ b/arch/arm/include/asm/omap_common.h > @@ -587,6 +587,1

Re: [U-Boot] [PATCH 4/6] ARM: AM43xx: Add functions to enable and disable USB clocks

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:58:36PM +0530, Kishon Vijay Abraham I wrote: > diff --git a/arch/arm/include/asm/arch-am33xx/sys_proto.h > b/arch/arm/include/asm/arch-am33xx/sys_proto.h > index 91b614a..275cf7b 100644 > --- a/arch/arm/include/asm/arch-am33xx/sys_proto.h > +++ b/arch/arm/include/asm/ar

Re: [U-Boot] [PATCH 3/6] ARM: AM43xx: Add support for disabling clocks in uboot

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:58:35PM +0530, Kishon Vijay Abraham I wrote: > Add do_disable_clocks() to disable clock domains and module clocks. > These clocks are enabled using do_enable_clocks(). > > Cc: Roger Quadros > Cc: Tero Kristo > Cc: Nishanth Menon > Signed-off-by: Kishon Vijay Abraham

Re: [U-Boot] [PATCH 5/6] board: ti: invoke clock API to enable and disable clocks

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:58:37PM +0530, Kishon Vijay Abraham I wrote: > invoke enable_usb_clocks during board_usb_init and disable_usb_clocks > during board_usb_exit to enable and disable clocks respectively. > > Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Tom Rini -- Tom signatur

Re: [U-Boot] [PATCH 6/6] ARM: OMAP5/AM43xx: remove enabling USB clocks from enable_basic_clocks()

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:58:38PM +0530, Kishon Vijay Abraham I wrote: > Now that we have separate function to enable USB clocks, remove > enabling USB clocks from enable_basic_clocks(). Now board_usb_init() > should take care to invoke enable_usb_clocks() for enabling > USB clocks. > > Signed-o

Re: [U-Boot] [PATCH 4/5] board: ti: remove duplicate initialization of vbus_id_status

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:52:57PM +0530, Kishon Vijay Abraham I wrote: > vbus_id_status is initialized in board_usb_init. So remove it > while creating dwc3_device objects. > > Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 5/5] include: configs: am43xx_evm: add 'usb stop' in usbboot env

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:52:58PM +0530, Kishon Vijay Abraham I wrote: > The usbboot environment variable has 'usb start' command but > doesn't have the corresponding 'usb stop' command. This breaks > usb peripheral mode if tried after 'run usbboot' fails to load > the images in usb host mode. >

Re: [U-Boot] [PATCH 3/5] TI PHY: Add support to control 2nd USB PHY in DRA7xx/AM57xx

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:52:56PM +0530, Kishon Vijay Abraham I wrote: > Added support to power on/power off the second USB PHY present in > DRA7xx and AM57xx. > > Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH 1/6] ARM: OMAP5: Add support for disabling clocks in uboot

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:58:33PM +0530, Kishon Vijay Abraham I wrote: > Add do_disable_clocks() to disable clock domains and module clocks. > These clocks are enabled using do_enable_clocks(). > > Cc: Roger Quadros > Cc: Tero Kristo > Cc: Nishanth Menon > Signed-off-by: Kishon Vijay Abraham

Re: [U-Boot] [PATCH 1/5] usb: dwc3: dwc3-omap: Use the clear register inorder to clear the interrupts

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:52:54PM +0530, Kishon Vijay Abraham I wrote: > Writing "0x00" to the USBOTGSS_IRQENABLE_SET_MISC and > USBOTGSS_IRQENABLE_SET_0 doesn't disable the interrupts. Used > USBOTGSS_IRQENABLE_CLR_MISC and USBOTGSS_IRQENABLE_CLR_0 instead. > > Signed-off-by: Kishon Vijay Abrah

Re: [U-Boot] [PATCH 3/3] usb: gadget: ether: populate _reset_ callback

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:45:51PM +0530, Kishon Vijay Abraham I wrote: > populate _reset_ callback to the USB ethernet gadget since UDC core > expects every gadget driver to have the reset callback. This shouldn't > be needed once the ethernet gadget driver is adapted to use the > composite drive

Re: [U-Boot] [PATCH 2/5] ARM: DRA7: Enable clocks for USB OTGSS2 and USB PHY2

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:52:55PM +0530, Kishon Vijay Abraham I wrote: > Enabled clocks for the second dwc3 controller and second USB PHY present in > DRA7. > > Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 2/3] usb: host: xhci-omap: invoke board_usb_cleanup in xhci_hcd_stop

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:45:50PM +0530, Kishon Vijay Abraham I wrote: > xhci omap driver has board_usb_init in xhci_hcd_init but doesn't have > the corresponding cleanup function in xhci_hcd_stop. > > Fix it here by invoking board_usb_cleanup() in xhci_hcd_stop(). > > Signed-off-by: Kishon Vij

Re: [U-Boot] [PATCH 1/3] usb: gadget: ether: Perform board initialization from ethernet gadget driver

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 04:45:49PM +0530, Kishon Vijay Abraham I wrote: > Ethernet gadget driver can be used both by both SPL and u-boot. Since > usb_eth_init() is the entry point for ethernet gadget driver, perform > board initialization there. Also perform the cleanup in usb_eth_halt. > > Signe

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

2015-08-10 Thread Tom Rini
On Sat, Aug 08, 2015 at 05:42:17PM +0200, Hans de Goede wrote: > Hi Tom, > > Here is the second sunxi pull-req for v2015.10, highlights: > > -SPL nand support > -Composite video out support > -Misc fixes / defconfig improvements > > The following changes since commit ae27120c31d58b8bb694d9155bc

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

2015-08-10 Thread Tom Rini
On Mon, Aug 10, 2015 at 07:42:02AM -0600, Simon Glass wrote: > Hi Tom, > > Just one patch but it has been hanging around for a while so let's get it in. > > > The following changes since commit bd48c0617b5c7212e5bf22169e716da878842da4: > > arm: socfpga: misc: Add support for printing FPGA ty

[U-Boot] debugging malloc heap corruption on 2015.04

2015-08-10 Thread Chris Packham
Hi All, I've migrate a custom armv7 board from v2015.01 to v2015.04. One issue I've just started seeing is an odd hang _sometimes_ when booting automatically. The issue doesn't (seem to) happen when the boot process is interrupted and I run the "boot" command. I can also make the problem appear or

Re: [U-Boot] [PATCH v6 2/5] nand: lpc32xx: add hardware ECC support

2015-08-10 Thread Vladimir Zapolskiy
On 10.08.2015 21:40, LEMIEUX, SYLVAIN wrote: > >> -Original Message- >> From: Vladimir Zapolskiy [mailto:v...@mleia.com] >> >> Hi Sylvain, >> >> On 10.08.2015 15:16, slemieux.t...@gmail.com wrote: >>> From: Sylvain Lemieux >>> >>> Incorporate NAND SLC hardware ECC support from legacy >>>

Re: [U-Boot] [PATCH v3 50/54] mkimage: Set up a file size parameter and keep it updated

2015-08-10 Thread Marek Vasut
On Saturday, July 18, 2015 at 01:58:09 AM, Simon Glass wrote: > On 25 June 2015 at 16:51, Joe Hershberger wrote: > > Hi Simon, > > > > On Tue, Jun 23, 2015 at 4:39 PM, Simon Glass wrote: > >> Some functions called by mkimage would like to know the output file > >> size. Initially this is the sam

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-08-10 Thread Scott Wood
On Mon, 2015-08-10 at 09:17 +0800, Peng Fan wrote: > Hi Scott, > > Do you have plan to pick the 3 patches? > > https://patchwork.ozlabs.org/patch/498050/ > https://patchwork.ozlabs.org/patch/498049/ > https://patchwork.ozlabs.org/patch/498048/ Yes. -Scott __

[U-Boot] [PATCH 4/8] arm: socfpga: Remove CV-specific parts from AV-SoCDK

2015-08-10 Thread Marek Vasut
Just remove the CycloneV specific parts from the ArriaV SoCDK board and they are no longer needed now. Signed-off-by: Marek Vasut --- board/altera/arria5-socdk/qts/iocsr_config.c | 652 - board/altera/arria5-socdk/qts/iocsr_config.h | 9 - board/altera/arria5-so

[U-Boot] [PATCH 7/8] arm: socfpga: Switch to filtered QTS files

2015-08-10 Thread Marek Vasut
Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga/wrap_iocsr_config.c | 7 +- arch/arm/mach-socfpga/wrap_pinmux_config.c | 23 +- arch/arm/mach-socfpga/wrap_sdram_config.c | 8 +- board/altera/arria5-socdk/qts/iocsr_config.c | 693 boar

[U-Boot] [PATCH 8/8] arm: socfpga: Make the pinmux table const u8

2015-08-10 Thread Marek Vasut
Now that we're actually converting the QTS-generated header files, we can even adjust their data types. A good candidate for this is the pinmux table, where each entry can have value in the range of 0..3, but each element is declared as unsigned long. By changing the type to u8, we can save over 60

[U-Boot] [PATCH 2/8] arm: socfpga: Unbind CPU type from board type

2015-08-10 Thread Marek Vasut
The CONFIG_TARGET_SOCFPGA_CYCLONE5 and CONFIG_TARGET_SOCFPGA_ARRIA5 selected both a board and a CPU. This is not correct as these macros are supposed to select only board. All would be good, if QTS-generated header files didn't check for these macros exactly to determine if the platform is Cyclone

[U-Boot] [PATCH 6/8] arm: socfpga: Add qts-filter.sh script

2015-08-10 Thread Marek Vasut
Add script which loads the QTS-generated sources and headers and converts them into sensible format which can be used with much more easy in mainline U-Boot. The script also filters out macros which makes no sense anymore, so they don't pollute namespace and waste space. Signed-off-by: Marek Vasut

[U-Boot] [PATCH 0/8] arm: socfpga: Board cleanup

2015-08-10 Thread Marek Vasut
This series cleans up the QTS-generated header files and cleans up the SoCDK support such that they fit into the framework just like any other SoCFPGA boards. Marek Vasut (8): arm: socfpga: Move wrappers into platform directory arm: socfpga: Unbind CPU type from board type arm: socfpga: Spli

[U-Boot] [PATCH 3/8] arm: socfpga: Split Altera socfpga into AV and CV SoCDK

2015-08-10 Thread Marek Vasut
The board/altera/socfpga directory is not a generic SoCFPGA machine anymore, but instead it represents the Altera SoCDK board. To make matters more complicated, it represents both CycloneV and ArriaV variant. On the other hand, nowadays, the content of this board directory is mostly comprised of Q

[U-Boot] [PATCH 1/8] arm: socfpga: Move wrappers into platform directory

2015-08-10 Thread Marek Vasut
Move the wrappers for QTS-generated files into platform directory out of the board directory. The trick here is to add -I to CFLAGS such that it points to the board directory in source tree and thus the qts/ directory there is still reachable. Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga

[U-Boot] [PATCH 5/8] arm: socfpga: Remove AV-specific parts from CV-SoCDK

2015-08-10 Thread Marek Vasut
Just remove the ArriaV specific parts from the CycloneV SoCDK board and they are no longer needed now. Signed-off-by: Marek Vasut --- board/altera/cyclone5-socdk/qts/iocsr_config.c | 688 - board/altera/cyclone5-socdk/qts/iocsr_config.h | 9 - board/altera/cyclone5-

[U-Boot] [PATCH] arm: socfpga: Do not enable gmac1 in Cyclone V dtsi

2015-08-10 Thread Marek Vasut
The GMAC which is enabled is purely board property, so do not enable arbitrary GMAC in DT include files. Same goes for PHY mode, which is again a board property. The CycloneV SoCDK does this correctly, but SoCrates doesn't. This bug never manifested itself though, since all the boards ever used the

[U-Boot] [PATCH] arm: socfpga: Make the DT mmc node consistent

2015-08-10 Thread Marek Vasut
The socfpga_cyclone5.dtsi has an mmc0 node, socrates has mmc node. This makes aliases not very usable, so make everything into mmc0. Moreover, zap the useless mmc alias while at this. Signed-off-by: Marek Vasut --- arch/arm/dts/socfpga.dtsi | 3 +-- arch/arm/dts/socfpga_cyclone5

[U-Boot] [PATCH] arm: socfpga: Fix delay in clock manager

2015-08-10 Thread Marek Vasut
This code claims it needs to wait 7us, yet it uses get_timer() function which operates with millisecond granularity. Use timer_get_us() instead, which operates with microsecond granularity. Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga/clock_manager.c | 12 +--- 1 file changed, 5

[U-Boot] [PATCH] arm: socfpga: Fix delay in freeze controller

2015-08-10 Thread Marek Vasut
Based on observation, this udelay(20) was apparently too high and caused subsequent failure to calibrate DDR when U-Boot was compiled with certain toolchains. Lowering this delay fixed the problem. Instead of permanently lowering the delay, calculate the correct delay based on the original comment

[U-Boot] [PATCH 2/2] ddr: altera: Repair uninited variable

2015-08-10 Thread Marek Vasut
Fix the following problem: drivers/ddr/altera/sequencer.c: In function 'sdram_calibration_full': drivers/ddr/altera/sequencer.c:1943:25: warning: 'found_failing_read' may be used uninitialized in this function [-Wmaybe-uninitialized] if (found_passing_read && found_failing_read)

  1   2   3   >