[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 s...@chromium.org --- Changes in v2: - Correct logic to round down instead of up common/board_f.c | 1 + include/asm-generic/global_data.h | 2

[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

[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

[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 s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2:

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 s...@chromium.org wrote: Hi Bin, On 7 August 2015 at 18:47, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 3:26 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 7 August 2015 at 03:28, Bin Meng

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 ma...@denx.de 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

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 s...@chromium.org wrote: Hi Bin, On 2 August 2015 at 17:35, Simon Glass s...@chromium.org wrote: On 2 August 2015 at 15:24, Simon Glass s...@chromium.org wrote: On 27 July 2015 at 01:33, Bin Meng bmeng...@gmail.com wrote: On some

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 bmeng...@gmail.com wrote: Hi Simon, On Mon, Aug 10, 2015 at 11:48 PM, Simon Glass s...@chromium.org wrote: Hi Bin, On 7 August 2015 at 18:47, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 3:26 AM, Simon Glass

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 and...@bradfordembedded.com wrote: Hi Bin, On 08/09 10:52, Bin Meng wrote: Hi Andrew, On Sun, Aug 9, 2015 at 9:08 AM, Andrew Bradford and...@bradfordembedded.com wrote: Hi Simon, On 08/08 10:18, Simon Glass wrote: Hi,

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 s...@chromium.org 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

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

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 kis...@ti.com Reviewed-by: Tom Rini

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.

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 kis...@ti.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description:

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,12 @@

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

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 rog...@ti.com Cc: Tero Kristo t-kri...@ti.com Cc: Nishanth Menon n...@ti.com

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 rog...@ti.com Cc: Tero Kristo t-kri...@ti.com Cc: Nishanth Menon n...@ti.com

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 kis...@ti.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc

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

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

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

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 kis...@ti.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description:

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.

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

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 Vijay

[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 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 joe.hershber...@gmail.com wrote: Hi Simon, On Tue, Jun 23, 2015 at 4:39 PM, Simon Glass s...@chromium.org wrote:

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 peng@freescale.com 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

[U-Boot] [PATCH] driver: net: ldpaa_eth: Get MAC address from env variable

2015-08-10 Thread Prabhakar Kushwaha
Currently ldpaa ethernet driver rely on DPL file to statically configure mac address for the DPNIs. It is not a correct approach. Add support of reading MAC address for env variable and configure same in DPAA driver. Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com ---

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

2015-08-10 Thread Marek Vasut
On Monday, August 10, 2015 at 08:00:25 AM, Kishon Vijay Abraham I wrote: Hi, On Friday 07 August 2015 03:58 AM, Marek Vasut wrote: On Thursday, August 06, 2015 at 06:16:05 PM, Kishon Vijay Abraham I wrote: xhci omap driver has board_usb_init in xhci_hcd_init but doesn't have the

Re: [U-Boot] [PATCH v6 1/5] dma: lpc32xx: add DMA driver

2015-08-10 Thread Marek Vasut
On Monday, August 10, 2015 at 02:16:31 PM, slemieux.t...@gmail.com wrote: From: Sylvain Lemieux slemi...@tycoint.com Incorporate DMA driver from legacy LPCLinux NXP BSP. The files taken from the legacy patch are: - lpc32xx DMA driver - lpc3250 header file DMA registers definition. The

Re: [U-Boot] [PATCH v6 5/5] usb: lpc32xx: add host USB driver

2015-08-10 Thread Marek Vasut
On Monday, August 10, 2015 at 02:16:34 PM, slemieux.t...@gmail.com wrote: From: Sylvain Lemieux slemi...@tycoint.com Incorporate USB driver from legacy LPCLinux NXP BSP. The files taken from the legacy patch are: - lpc32xx USB driver - lpc3250 header file USB registers definition. The

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

2015-08-10 Thread Marek Vasut
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 use the composite driver.

[U-Boot] [PATCH 2/4] imx: mx31 use new formula for get_cpu_rev

2015-08-10 Thread Peng Fan
Use new formula for get_cpu_rev, since we need to use this formula to do runtime check for all i.MXes. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de --- arch/arm/cpu/arm1136/mx31/generic.c| 2 +- arch/arm/include/asm/arch-mx31/sys_proto.h | 2 ++ 2 files

[U-Boot] [PATCH 1/4] imx: add cpu type for i.MX2 and i.MX3

2015-08-10 Thread Peng Fan
Add cpu types for i.MX2/3. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic sba...@denx.de --- arch/arm/include/asm/arch-imx/cpu.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include/asm/arch-imx/cpu.h index

[U-Boot] [PATCH 4/4] imx-common: consolidate macros and prototypes into sys_proto.h

2015-08-10 Thread Peng Fan
Move most macro definitions and prototypes into arch/arm/include/asm/imx-common/sys_proto.h to avoid duplicated function prototypes and marco definitions for different i.MX SoCs. This patch do not remove the sys_proto.h for different i.MX SoCs, because we need to modify lots of driver code and

[U-Boot] [PATCH 3/4] imx: mxs: reimplement get_cpu_rev

2015-08-10 Thread Peng Fan
Rewrite get_cpu_rev, from static const char *get_cpu_rev(void) to u32 get_cpu_rev(void). To align with get_cpu_rev of other i.MXes. Also write get_imx_type to replace get_cpu_type, since we have macro named get_cpu_type. Signed-off-by: Peng Fan peng@freescale.com Cc: Stefano Babic

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 00:18, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org wrote: Use savedefconfig to get this file into the correct order. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Rebase to

Re: [U-Boot] [PATCH] video: vesa: Correct a typo in the Kconfig VESA mode string

2015-08-10 Thread Simon Glass
On 10 August 2015 at 00:26, Bin Meng bmeng...@gmail.com wrote: There is one typo in the VESA mode 105h string. Correct it. Signed-off-by: Bin Meng bmeng...@gmail.com --- drivers/video/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH v2 1/9] dm: pci: Provide friendly config access functions

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 00:18, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org 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

Re: [U-Boot] [PATCH v2 2/9] dm: pci: Add a way to iterate through all PCI devices

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 00:18, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org wrote: These functions allow iteration through all PCI devices including bridges. The children of each PCI bus are returned in turn. This can be

Re: [U-Boot] [PATCH 2/2] Tegra: PLL: use per-SoC pllinfo table instead of PLL_DIVM/N/P, etc.

2015-08-10 Thread Simon Glass
Hi, On 29 July 2015 at 14:13, Tom Warren twar...@nvidia.com wrote: Added PLL variables (dividers mask/shift, lock enable/detect, etc.) to new pllinfo struct for each Soc/PLL. PLLA/C/D/E/M/P/U/X. Used pllinfo struct in all clock functions, validated on T210. Should be equivalent to prior code

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

2015-08-10 Thread Simon Glass
Hi Bin, On 10 August 2015 at 00:19, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Sat, Aug 8, 2015 at 10:27 PM, Simon Glass s...@chromium.org wrote: Set up interrupts correctly so that Linux can use all devices. Use savedefconfig to regenerate the defconfig file. Signed-off-by: Simon

Re: [U-Boot] [PATCH v2] dm: serial: Add a REQUIRE_SERIAL_CONSOLE option for boards with no serial port

2015-08-10 Thread Simon Glass
On 8 August 2015 at 09:45, Hans de Goede hdego...@redhat.com wrote: Currently the serial code assumes that there is always at least one serial port (and panics / crashes due to null pointer dereferences when there is none). This makes it impossible to use u-boot on boards where there is no

Re: [U-Boot] [PATCH] x86: Set APs' req_seq to the reg number from device tree

2015-08-10 Thread Simon Glass
On 10 August 2015 at 00:58, Bin Meng bmeng...@gmail.com wrote: Multiple APs are brought up simultaneously and they may get the same seq num in the uclass_resolve_seq() during device_probe(). To avoid this, set req_seq to the reg number in the device tree in advance. Signed-off-by: Bin Meng

[U-Boot] [PATCH v3 05/10] x86: Split out fsp_init_phase_pci() code into a new function

2015-08-10 Thread Simon Glass
This code may be useful for boards that use driver model for PCI. Note: It would be better to have driver model automatically call this function somehow. However for now it is probably safer to have it under board control. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng

[U-Boot] [PATCH v3 06/10] x86: Allow pirq_init() to return an error

2015-08-10 Thread Simon Glass
This function can fail. In this case we should return the error rather than swallowing it. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v3: None Changes in v2: - Add new patch to allow pirq_init() to return an error

[U-Boot] [PATCH v3 00/10] x86: minnowmax: Add interrupt support

2015-08-10 Thread Simon Glass
This series brings in interrupt support for Minnowmax, so that PCI interrupts are correctly set up for Linux. It also includes a few small improvements to FSP support. Changes in v3: - Drop the inner while() loop in skip_to_next_device() - it isn't needed - Drop unnecessary blank lines - Add PCIe

[U-Boot] [PATCH v3 04/10] x86: Tidy up the PIRQ routing code a little

2015-08-10 Thread Simon Glass
This code could use a little tightening up. There is some repetition and an odd use of fdtdec_get_int_array(). Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com Tested-by: Bin Meng bmeng...@gmail.com --- Changes in v3: None Changes in v2: - Fix handling of

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

2015-08-10 Thread Simon Glass
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 s...@chromium.org --- Changes in v3: None Changes in v2: - Correct 'Driver

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

2015-08-10 Thread Simon Glass
Use savedefconfig to get this file into the correct order. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Rebase to mainline configs/efi-x86_defconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/efi-x86_defconfig

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

2015-08-10 Thread Simon Glass
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 s...@chromium.org --- Changes in v3: - Drop the inner while() loop

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

2015-08-10 Thread Simon Glass
Set up interrupts correctly so that Linux can use all devices. Use savedefconfig to regenerate the defconfig file. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Drop unnecessary blank lines - Add PCIe root ports from bayleybay Changes in v2: - Use pirq_init() instead of

[U-Boot] [PATCH v3 10/10] x86: baytrail: Support running as an EFI payload

2015-08-10 Thread Simon Glass
We should not fiddle with interrupts or the FSP when running as an EFI payload. Detect this and skip this code. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v3: None Changes in v2: - Add new patch to support running as an EFI payload

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

2015-08-10 Thread Simon Glass
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 s...@chromium.org --- Changes in v3: - Add new patch to add a simple interrupt

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

2015-08-10 Thread Simon Glass
We should signal to the FSP that PCI enumeration is complete. Perform this task in a suitable place. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Drop interrupt.h header include Changes in v2: - Add new patch to tidy up interrupt and FSP init

Re: [U-Boot] [PATCH v3 11/16] net/eth.c: Add function to validate a MAC address

2015-08-10 Thread Codrin Constantin Ciubotariu
Hi York, I didn't know that SPL uses net/eth.c . Could you please suggest a place for eth_validate_ethaddr_str()? Thanks and best regards, Codrin -Original Message- From: Sun York-R58495 Sent: Saturday, August 08, 2015 3:31 AM To: Ciubotariu Codrin Constantin-B43658;

[U-Boot] [PATCH v2 4/4] at91, taurus, smartweb: add dfu support

2015-08-10 Thread Heiko Schocher
[root@pollux dfu-util]# ./src/dfu-util -l dfu-util 0.8 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2014 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to dfu-u...@lists.gnumonks.org Found DFU:

[U-Boot] [PATCH v2 0/4] add dfu support for at91 sam9260 based boards

2015-08-10 Thread Heiko Schocher
add dfu supprt for at91 sam9260 based boards. The USB gadget driver is ported from linux: b2ba27a5c56ff: usb: gadget: at91_udc: move prepare clk into process context it drops a lot of checkpatch warnings/errors: checkpatch.pl found 12 error(s), 31 warning(s), 43 checks(s) but for further

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

2015-08-10 Thread Bin Meng
Hi Simon, On Sat, Aug 8, 2015 at 10:27 PM, Simon Glass s...@chromium.org wrote: Set up interrupts correctly so that Linux can use all devices. Use savedefconfig to regenerate the defconfig file. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Use pirq_init() instead of

Re: [U-Boot] [PATCH v2 5/9] x86: Split out fsp_init_phase_pci() code into a new function

2015-08-10 Thread Bin Meng
On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org wrote: This code may be useful for boards that use driver model for PCI. Note: It would be better to have driver model automatically call this function somehow. However for now it is probably safer to have it under board control.

Re: [U-Boot] [PATCH v2 4/9] x86: Tidy up the PIRQ routing code a little

2015-08-10 Thread Bin Meng
On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org wrote: This code could use a little tightening up. There is some repetition and an odd use of fdtdec_get_int_array(). Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Fix handling of duplicate entries

Re: [U-Boot] [PATCH v2 6/9] x86: Allow pirq_init() to return an error

2015-08-10 Thread Bin Meng
On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org wrote: This function can fail. In this case we should return the error rather than swallowing it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to allow pirq_init() to return an error

Re: [U-Boot] [PATCH v2 8/9] x86: baytrail: Tidy up interrupt and FSP init

2015-08-10 Thread Bin Meng
Hi Simon, On Sat, Aug 8, 2015 at 10:27 PM, Simon Glass s...@chromium.org wrote: We should signal to the FSP that PCI enumeration is complete. Perform this task in a suitable place. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to tidy up interrupt and FSP

Re: [U-Boot] [PATCH v2 9/9] x86: baytrail: Support running as an EFI payload

2015-08-10 Thread Bin Meng
On Sat, Aug 8, 2015 at 10:27 PM, Simon Glass s...@chromium.org wrote: We should not fiddle with interrupts or the FSP when running as an EFI payload. Detect this and skip this code. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to support running as an EFI

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

2015-08-10 Thread Bin Meng
Hi Simon, On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org wrote: Use savedefconfig to get this file into the correct order. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Rebase to mainline configs/efi-x86_defconfig | 10 +- 1 file changed, 5

Re: [U-Boot] [PATCH v2 2/9] dm: pci: Add a way to iterate through all PCI devices

2015-08-10 Thread Bin Meng
Hi Simon, On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org 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.

[U-Boot] [PATCH v2 3/4] usb: gadget: at91_udc: add at91_udc into U-Boot

2015-08-10 Thread Heiko Schocher
add U-Boot specific changes to the at91_udc linux driver, so it works with U-Boot. Signed-off-by: Heiko Schocher h...@denx.de --- Changes in v2: - new in version 2, contains U-Boot changes drivers/usb/gadget/Makefile | 1 + drivers/usb/gadget/at91_udc.c | 485

[U-Boot] [PATCH v2 2/4] usb: gadget: at91_udc: port linux driver at91_udc

2015-08-10 Thread Heiko Schocher
port at91_udc driver from linux: original commit Message: commit b2ba27a5c56ff7204d8a8684893d64d4afe2cee5 Author: Ronald Wahl ronald.w...@raritan.com Date: Wed Nov 19 16:37:27 2014 +0100 usb: gadget: at91_udc: move prepare clk into process context Commit

[U-Boot] [PATCH v2 1/4] ARM: at91: add cpu.h

2015-08-10 Thread Heiko Schocher
add cpu.h from linux: 7538ec7d1e5: ARM: at91: remove no-MMU at91x40 support so it is easier to port linux code, which is based on it. Signed-off-by: Heiko Schocher h...@denx.de --- Changes in v2: None arch/arm/mach-at91/include/mach/cpu.h | 149 ++ 1 file

Re: [U-Boot] [u-boot-release] [PATCH] driver: misc: debug server: Update Error message

2015-08-10 Thread Sharma Bhupesh
Hi Prabhakar, Thanks for the patch. A few nitpicks. Otherwise: Reviewed-by: Bhupesh Sharma bhupesh.sha...@freescale.com From: u-boot-release-boun...@linux.freescale.net [mailto:u-boot-release- boun...@linux.freescale.net] On Behalf Of Prabhakar Kushwaha Sent: Sunday, August 09, 2015 8:53

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

2015-08-10 Thread Kishon Vijay Abraham I
Hi, On Friday 07 August 2015 03:58 AM, Marek Vasut wrote: On Thursday, August 06, 2015 at 06:16:05 PM, 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

Re: [U-Boot] [PATCH v2 1/9] dm: pci: Provide friendly config access functions

2015-08-10 Thread Bin Meng
Hi Simon, On Sat, Aug 8, 2015 at 10:26 PM, Simon Glass s...@chromium.org 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:

[U-Boot] [PATCH] video: vesa: Correct a typo in the Kconfig VESA mode string

2015-08-10 Thread Bin Meng
There is one typo in the VESA mode 105h string. Correct it. Signed-off-by: Bin Meng bmeng...@gmail.com --- drivers/video/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 9ae23e8..e56e20c 100644 ---

[U-Boot] [PATCH] x86: Set APs' req_seq to the reg number from device tree

2015-08-10 Thread Bin Meng
Multiple APs are brought up simultaneously and they may get the same seq num in the uclass_resolve_seq() during device_probe(). To avoid this, set req_seq to the reg number in the device tree in advance. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/mp_init.c | 7 +++ 1 file

[U-Boot] [PATCH] ARM: Allwinner: H3 SoC: Boot Allwinner H3 device in HYP mode.

2015-08-10 Thread bharat gohil
Hi All, I working on porting Xen to Orange Pi mini 2(Allwinner H3) board. When I try to boot xen on it, Shows following message. - UART enabled - - CPU booting - - Xen must be entered in NS Hyp mode - - Boot failed - I assume that all allwinner core enable(start from internal ROM firmware) in

Re: [U-Boot] [PATCH v2] Makefile: Use correct timezone for U_BOOT_TZ

2015-08-10 Thread Chris Packham
Hi Tom, On Sat, Aug 1, 2015 at 9:43 PM, Chris Packham judge.pack...@gmail.com wrote: When building with SOURCE_DATE_EPOCH the timezone is in UTC. When building normally the timezone is taken from the build machine's locale setting. Signed-off-by: Chris Packham judge.pack...@gmail.com

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

2015-08-10 Thread Simon Glass
Hi Bin, On 2 August 2015 at 17:35, Simon Glass s...@chromium.org wrote: On 2 August 2015 at 15:24, Simon Glass s...@chromium.org wrote: On 27 July 2015 at 01:33, Bin Meng bmeng...@gmail.com wrote: On some platforms pci devices behind bridge need to be probed (eg: a pci uart on recent x86

[U-Boot] [PATCH] tegra: Correct logic for reading pll_misc in clock_start_pll()

2015-08-10 Thread Simon Glass
The logic for simple PLLs on T124 was broken by this commit: 722e000c Tegra: PLL: use per-SoC pllinfo table instead of PLL_DIVM/N/P, etc. Correct it by reading from the same pll_misc register that it writes to and adding an entry for the DP PLL. Signed-off-by: Simon Glass s...@chromium.org

Re: [U-Boot] [PATCH v6 5/5] usb: lpc32xx: add host USB driver

2015-08-10 Thread LEMIEUX, SYLVAIN
-Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: 10-Aug-15 8:24 AM To: slemieux.t...@gmail.com Cc: u-boot@lists.denx.de; scottw...@freescale.com; v...@mleia.com; albert.u.b...@aribaud.net; LEMIEUX, SYLVAIN Subject: Re: [PATCH v6 5/5] usb: lpc32xx: add host USB

Re: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver

2015-08-10 Thread Simon Glass
Hi Marek, On 2 August 2015 at 17:52, Simon Glass s...@chromium.org wrote: On 2 August 2015 at 17:15, Marek Vasut ma...@denx.de wrote: Add Kconfig entries for the simple-bus driver, both for U-Boot and for SPL. The simple-bus is enabled by default in U-Boot and disabled by default in SPL to

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

2015-08-10 Thread Simon Glass
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 type (2015-08-08 14:14:30 +0200) are available in the git repository at:

Re: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver

2015-08-10 Thread Marek Vasut
On Monday, August 10, 2015 at 03:39:33 PM, Simon Glass wrote: Hi Marek, Hi Simon, On 2 August 2015 at 17:52, Simon Glass s...@chromium.org wrote: On 2 August 2015 at 17:15, Marek Vasut ma...@denx.de wrote: Add Kconfig entries for the simple-bus driver, both for U-Boot and for SPL. The

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

2015-08-10 Thread Kishon Vijay Abraham I
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. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Acked-by: Marek Vasut ma...@denx.de

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

2015-08-10 Thread Kishon Vijay Abraham I
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 Vijay Abraham I kis...@ti.com Acked-by: Marek Vasut ma...@denx.de ---

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

2015-08-10 Thread Kishon Vijay Abraham I
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: host: xhci-omap: invoke

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

2015-08-10 Thread Kishon Vijay Abraham I
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. Fix it here by adding 'usb stop' command in usbboot env. Signed-off-by: Kishon

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

2015-08-10 Thread Kishon Vijay Abraham I
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-off-by: Kishon Vijay Abraham I kis...@ti.com ---

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

2015-08-10 Thread Kishon Vijay Abraham I
Add do_disable_clocks() to disable clock domains and module clocks. These clocks are enabled using do_enable_clocks(). Cc: Roger Quadros rog...@ti.com Cc: Tero Kristo t-kri...@ti.com Cc: Nishanth Menon n...@ti.com Signed-off-by: Kishon Vijay Abraham I kis...@ti.com ---

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

2015-08-10 Thread Kishon Vijay Abraham I
Add do_disable_clocks() to disable clock domains and module clocks. These clocks are enabled using do_enable_clocks(). Cc: Roger Quadros rog...@ti.com Cc: Tero Kristo t-kri...@ti.com Cc: Nishanth Menon n...@ti.com Signed-off-by: Kishon Vijay Abraham I kis...@ti.com ---

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

2015-08-10 Thread Kishon Vijay Abraham I
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 kis...@ti.com --- board/ti/am43xx/board.c |2 ++ board/ti/beagle_x15/board.c |4 board/ti/dra7xx/evm.c

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

2015-08-10 Thread Kishon Vijay Abraham I
Added functions to enable and disable USB clocks which can be invoked during USB init and USB exit respectively. Cc: Roger Quadros rog...@ti.com Cc: Tero Kristo t-kri...@ti.com Cc: Nishanth Menon n...@ti.com Signed-off-by: Kishon Vijay Abraham I kis...@ti.com ---

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

2015-08-10 Thread Kishon Vijay Abraham I
Added functions to enable and disable USB clocks which can be invoked during USB init and USB exit respectively. Cc: Roger Quadros rog...@ti.com Cc: Tero Kristo t-kri...@ti.com Cc: Nishanth Menon n...@ti.com Signed-off-by: Kishon Vijay Abraham I kis...@ti.com ---

[U-Boot] [PATCH 0/6] ti: dwc3: Enable USB clocks on-demand

2015-08-10 Thread Kishon Vijay Abraham I
Patch series adds APIs to enable/disable USB clocks and then uses these APIs to enable clocks when dwc3 is used and disable clocks when it is inactive. This patch series is split from [1] to contain only enabling and disabling clocks. [1] -

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

2015-08-10 Thread Andrew Bradford
Hi Bin, On 08/09 10:52, Bin Meng wrote: Hi Andrew, On Sun, Aug 9, 2015 at 9:08 AM, Andrew Bradford and...@bradfordembedded.com wrote: Hi Simon, On 08/08 10:18, Simon Glass wrote: Hi, On 7 August 2015 at 06:44, Bin Meng bmeng...@gmail.com wrote: On Fri, Aug 7, 2015 at 8:36 PM,

[U-Boot] [PATCH v6 3/5] nand: lpc32xx: add ECC layout for small page NAND

2015-08-10 Thread slemieux . tyco
From: Sylvain Lemieux slemi...@tycoint.com Incorporate ECC layout for small page NAND from legacy LPCLinux NXP BSP. The code taken from the legacy patch is: - lpc32xx SLC NAND driver (ECC layout for small page) This layout is matching the lpc32xx NAND SLC Kernel driver:

[U-Boot] [PATCH v6 5/5] usb: lpc32xx: add host USB driver

2015-08-10 Thread slemieux . tyco
From: Sylvain Lemieux slemi...@tycoint.com Incorporate USB driver from legacy LPCLinux NXP BSP. The files taken from the legacy patch are: - lpc32xx USB driver - lpc3250 header file USB registers definition. The legacy driver was updated and clean-up as part of the integration with the latest

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

2015-08-10 Thread slemieux . tyco
From: Sylvain Lemieux slemi...@tycoint.com Incorporate NAND SLC hardware ECC support from legacy LPCLinux NXP BSP. The code taken from the legacy patch is: - lpc32xx SLC NAND driver (hardware ECC support) - lpc3250 header file missing SLC NAND registers definition The legacy driver code was

<    1   2   3   >