[U-Boot] [PATCH] zynqmp: mp: Simplify set_r5_start handling

2015-07-22 Thread Michal Simek
Pass directly boot_addr which is LOVEC (0) or HIVEC (0x). No reason to use magic values 0 and 1. Signed-off-by: Michal Simek --- arch/arm/cpu/armv8/zynqmp/mp.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/cpu/armv8/zynqmp/mp.c b/arch/arm/cpu/armv8/z

[U-Boot] [PATCH] usb: ehci-marvell: Drop wrl accessor function

2015-07-22 Thread Stefan Roese
This patch removes the wrl accessor function from the Marvell EHCI driver by replacing it with the writel function. Signed-off-by: Stefan Roese Cc: Marek Vasut --- drivers/usb/host/ehci-marvell.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/dr

[U-Boot] [PATCH v3 1/7] x86: mpspec: Allow platform to determine how PIRQ is connected to I/O APIC

2015-07-22 Thread Bin Meng
Currently during writing MP table I/O interrupt assignment entry, we assume the PIRQ is directly mapped to I/O APIC INTPIN#16-23, which however is not always the case on some platforms. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: - Drop patches that are

[U-Boot] [PATCH v3 2/7] x86: mpspec: Move writing ISA interrupt entry after PCI

2015-07-22 Thread Bin Meng
On some platforms the I/O APIC interrupt pin#0-15 may be connected to platform pci devices' interrupt pin. In such cases the legacy ISA IRQ is not available so we should not write ISA interrupt entry if it is already occupied. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: Non

[U-Boot] [PATCH v3 0/7] x86: Add MP table support to QEMU

2015-07-22 Thread Bin Meng
This patch series mainly add MP support to QEMU as well as some other necessary fixes for x86. Verified by booting Linux kernel on QEMU i440FX and Q35, and make sure I/O APIC interrupt is being used by the kernel with the help of MP table provided by U-Boot. This series is the prerequisite for th

[U-Boot] [PATCH v3 3/7] x86: qemu: Enable I/O APIC chip select on PIIX3

2015-07-22 Thread Bin Meng
The PIIX3 chipset does not integrate an I/O APIC, instead it supports connecting to an external I/O APIC which needs to be enabled manually. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/qemu/pci.c | 7 ++- arch/x86/in

[U-Boot] [PATCH v3 4/7] x86: Allow cpu-x86 driver to be probed for UP

2015-07-22 Thread Bin Meng
Currently cpu-x86 driver is probed only for SMP. We add the same support for UP when there is only one cpu node in the deive tree. Signed-off-by: Bin Meng --- Changes in v3: - Remove the call to device_probe() - Add a comment to explain why return value is not checked Changes in v2: - New patc

[U-Boot] [PATCH v3 6/7] x86: qemu: Turn on PCIe ECAM address range decoding on Q35

2015-07-22 Thread Bin Meng
Turn on PCIe ECAM address range decoding on Q35. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/qemu/pci.c | 4 arch/x86/include/asm/arch-qemu/qemu.h | 4 2 files changed, 8 insertions(+) diff --git a/arch/x86/c

[U-Boot] [PATCH v3 5/7] x86: qemu: Enable writing MP table

2015-07-22 Thread Bin Meng
Enable writing MP table for QEMU boads (i440fx and q35). Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: - Drop QEMU mp_init patch - Change /cpus node to include just one cpu arch/x86/cpu/qemu/pci.c | 34 +++--- arch/x

[U-Boot] [PATCH v3 7/7] x86: Reserve PCIe ECAM address range in the E820 table

2015-07-22 Thread Bin Meng
We should mark PCIe ECAM address range in the E820 table as reserved otherwise kernel will not attempt to use ECAM. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: - New patch to reserve PCIe ECAM address range in the E820 table arch/x86/Kconfig

Re: [U-Boot] [PATCH v2] usb: CONFIG_USB_FASTBOOT prefix replacement for consistency

2015-07-22 Thread Paul Kocialkowski
Le lundi 20 juillet 2015 à 14:57 +0200, Lukasz Majewski a écrit : > Hi Paul, > > > FASTBOOT is defined both by CONFIG_USB_FUNCTION_FASTBOOT AND > > CONFIG_CMD_FASTBOOT, so it doesn't make much sense to have a > > CONFIG_USB_FASTBOOT prefix for fastboot-specific options, especially > > given that o

Re: [U-Boot] [PATCH] usb: ehci-marvell: Drop wrl accessor function

2015-07-22 Thread Marek Vasut
On Wednesday, July 22, 2015 at 10:01:30 AM, Stefan Roese wrote: > This patch removes the wrl accessor function from the Marvell EHCI > driver by replacing it with the writel function. > > Signed-off-by: Stefan Roese > Cc: Marek Vasut Applied, thanks! Best regards, Marek Vasut _

Re: [U-Boot] [PATCHv4 0/3] drivers/ddr/altera: Add the DDR controller driver for SoCFPGA

2015-07-22 Thread Dinh Nguyen
On 7/20/15 2:40 PM, Marek Vasut wrote: > On Monday, July 20, 2015 at 09:31:39 PM, Dinh Nguyen wrote: > [...] > Hi, > > yeah, I have some insane amount of cleanup patches and fixes already. I > will post them once I'm done. What I am sorely missing is the UniPHY > register inte

[U-Boot] [PATCH 01/12] usb: USB_ARCH_HAS_HCD Kconfig option removal

2015-07-22 Thread Paul Kocialkowski
The USB_ARCH_HAS_HCD currently serves no purpose and adds some confusion to the required Kconfig options that are required to have USB support. Dropping it makes things easier and doesn't break anything, since it was unused anyways. Signed-off-by: Paul Kocialkowski --- drivers/usb/Kconfig | 4 -

[U-Boot] [PATCH 02/12] usb: Generic USB Kconfig option, that fits both host and gadget

2015-07-22 Thread Paul Kocialkowski
There is no particular reason why the USB Kconfig option should be specific to host mode. In prevision of adding MUSB host and gadget to Kconfig, this moves the title and help message of the USB Kconfig option to a more generic format. Signed-off-by: Paul Kocialkowski --- drivers/usb/Kconfig | 8

[U-Boot] [PATCH 05/12] usb: USB comments in Kconfig for better separation

2015-07-22 Thread Paul Kocialkowski
Adding comments to the usb Kconfig allows for a better separation and more readability in generated configs and in menuconfig. Signed-off-by: Paul Kocialkowski --- drivers/usb/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 5503e

[U-Boot] [PATCH 03/12] usb: musb-new: CONFIG_MUSB prefix replacement with CONFIG_USB_MUSB

2015-07-22 Thread Paul Kocialkowski
USB-related options are usually prefixed with CONFIG_USB and platform-specific adaptation for the MUSB controller already have a CONFIG_USB_MUSB prefix, so this switches all MUSB-related options to a CONFIG_USB_MUSB prefix, for consistency. Signed-off-by: Paul Kocialkowski --- arch/arm/cpu/armv7

[U-Boot] [PATCH 06/12] usb: USB_MUSB_SUNXI move to musb-new Kconfig

2015-07-22 Thread Paul Kocialkowski
Now that the musb-new driver has a Kconfig, we can move Kconfig options to enable controllers to it, so that it's easier in e.g. menuconfig. Signed-off-by: Paul Kocialkowski --- board/sunxi/Kconfig | 9 - drivers/usb/musb-new/Kconfig | 14 ++ 2 files changed, 14 ins

[U-Boot] [PATCH 04/12] usb: musb-new: Kconfig support for USB_MUSB_HOST and USB_MUSB_GADGET

2015-07-22 Thread Paul Kocialkowski
Having MUSB_HOST and MUSB_GADGET in Kconfig allows more flexibility with regard to what Kconfig options to enable, such as USB_STORAGE or USB_KEYBOARD. Signed-off-by: Paul Kocialkowski --- drivers/usb/Kconfig | 2 ++ drivers/usb/musb-new/Kconfig | 14 ++ 2 files changed, 16

[U-Boot] [PATCH 11/12] musb: sunxi: Force EP0 on re-enable

2015-07-22 Thread Paul Kocialkowski
From: Maxime Ripard Currently, the second use of a gadget will fail, while the first one works. Forcing the EP0 at every enable fix this issue. Signed-off-by: Maxime Ripard --- drivers/usb/musb-new/sunxi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/musb-new/sunxi.c b/d

[U-Boot] [PATCH 09/12] sunxi: Kconfig defaults for USB

2015-07-22 Thread Paul Kocialkowski
USB_STORAGE and USB_KEYBOARD should only be selected when either USB_EHCI_HCD or USB_MUSB_HOST is set. In addition, the musb controller should automatically be selected when either USB_MUSB_HOST or USB_MUSB_GADGET is selected, not the other way round. Signed-off-by: Paul Kocialkowski --- board/s

[U-Boot] [PATCH 07/12] usb: USB_KEYBOARD move to usb Kconfig

2015-07-22 Thread Paul Kocialkowski
The USB_KEYBOARD Kconfig is not specific to sunxi, so we can move it to the common USB Kconfig. Signed-off-by: Paul Kocialkowski --- board/sunxi/Kconfig | 5 - drivers/usb/Kconfig | 6 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kco

[U-Boot] [PATCH 08/12] sunxi: USB EHCI Kconfig option instead of config define

2015-07-22 Thread Paul Kocialkowski
This makes sunxi boards use the USB_EHCI_HCD Kconfig option instead of defining USB_EHCI as a config define. This allows for more flexibility in enabling the controller and handling other Kconfig that may depend on USB EHCI. Signed-off-by: Paul Kocialkowski --- configs/A10-OLinuXino-Lime_defconf

[U-Boot] [PATCH 10/12] sunxi: config update to stick with Kconfig changes

2015-07-22 Thread Paul Kocialkowski
Now that some things were updated in Kconfig, they should be reflected on the sunxi-common config too. Signed-off-by: Paul Kocialkowski --- include/configs/sunxi-common.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/configs/sunxi-common.h b/include/configs/

[U-Boot] [PATCH 12/12] sunxi: MUSB gadget config provisions, with fastboot and USB mass storage support

2015-07-22 Thread Paul Kocialkowski
This adds some config options to the sunxi-common config to enable the USB download gadget and the fastboot and USB mass storage functions. Signed-off-by: Paul Kocialkowski --- include/configs/sunxi-common.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/incl

Re: [U-Boot] [PATCHv4 0/3] drivers/ddr/altera: Add the DDR controller driver for SoCFPGA

2015-07-22 Thread Marek Vasut
On Wednesday, July 22, 2015 at 10:27:10 AM, Dinh Nguyen wrote: > On 7/20/15 2:40 PM, Marek Vasut wrote: > > On Monday, July 20, 2015 at 09:31:39 PM, Dinh Nguyen wrote: > > [...] > > > > Hi, > > > > yeah, I have some insane amount of cleanup patches and fixes already. > > I will po

Re: [U-Boot] USB and unbinding

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 05:48, Simon Glass wrote: Hi Hans, On 21 July 2015 at 13:52, Hans de Goede wrote: Hi, On 07/20/2015 05:49 PM, Simon Glass wrote: Hi Hans, On 20 July 2015 at 09:31, Hans de Goede wrote: Hi, On 20-07-15 04:23, Simon Glass wrote: Hi Hans, I've been thinking about the

Re: [U-Boot] [PATCH 06/12] usb: USB_MUSB_SUNXI move to musb-new Kconfig

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: Now that the musb-new driver has a Kconfig, we can move Kconfig options to enable controllers to it, so that it's easier in e.g. menuconfig. Signed-off-by: Paul Kocialkowski --- board/sunxi/Kconfig | 9 - drivers/usb/musb-new

[U-Boot] [PATCH v3] patman: add distutils based installer

2015-07-22 Thread Chris Packham
To make it easier to use patman on other projects add a distutils style installer. Now patman can be installed with cd u-boot/tools/patman && python setup.py install There are also the usual distutils options for creating source/binary distributions of patman. Tested-by: Simon Glass Signed-of

Re: [U-Boot] [PATCH 07/12] usb: USB_KEYBOARD move to usb Kconfig

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: The USB_KEYBOARD Kconfig is not specific to sunxi, so we can move it to the common USB Kconfig. Signed-off-by: Paul Kocialkowski --- board/sunxi/Kconfig | 5 - drivers/usb/Kconfig | 6 ++ 2 files changed, 6 insertions(+), 5 deletions(

Re: [U-Boot] [PATCH 08/12] sunxi: USB EHCI Kconfig option instead of config define

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: This makes sunxi boards use the USB_EHCI_HCD Kconfig option instead of defining USB_EHCI as a config define. This allows for more flexibility in enabling the controller and handling other Kconfig that may depend on USB EHCI. Signed-off-by: Paul Ko

Re: [U-Boot] [PATCH 10/12] sunxi: config update to stick with Kconfig changes

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: Now that some things were updated in Kconfig, they should be reflected on the sunxi-common config too. Signed-off-by: Paul Kocialkowski Ack. Regards, Hans --- include/configs/sunxi-common.h | 8 +++- 1 file changed, 3 insertions(+),

Re: [U-Boot] [PATCH 11/12] musb: sunxi: Force EP0 on re-enable

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: From: Maxime Ripard Currently, the second use of a gadget will fail, while the first one works. Forcing the EP0 at every enable fix this issue. Signed-off-by: Maxime Ripard Acked-by: Hans de Goede Regards, Hans --- drivers/usb/musb-ne

Re: [U-Boot] [PATCH 12/12] sunxi: MUSB gadget config provisions, with fastboot and USB mass storage support

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: This adds some config options to the sunxi-common config to enable the USB download gadget and the fastboot and USB mass storage functions. Signed-off-by: Paul Kocialkowski Acked-by: Hans de Goede Regards, Hans --- include/configs/sunx

Re: [U-Boot] [PATCH 09/12] sunxi: Kconfig defaults for USB

2015-07-22 Thread Hans de Goede
Hi, On 22-07-15 10:45, Paul Kocialkowski wrote: USB_STORAGE and USB_KEYBOARD should only be selected when either USB_EHCI_HCD or USB_MUSB_HOST is set. In addition, the musb controller should automatically be selected when either USB_MUSB_HOST or USB_MUSB_GADGET is selected, not the other way rou

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

2015-07-22 Thread Andrew Bradford
Hi Simon, On 07/21 14:17, Simon Glass wrote: > Hi Andrew, > > On 10 July 2015 at 12:24, Andrew Bradford wrote: > > Hi Simon, > > > > On 07/10 06:53, Simon Glass wrote: > >> Hi, > >> > >> On 8 July 2015 at 05:30, Andrew Bradford > >> wrote: > >> > Hi Bin, > >> > > >> > On 07/08 11:18, Bin Meng

Re: [U-Boot] [PATCH v2 1/3] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-22 Thread Piotr Zierhoffer
Hi Boris, thanks for your review. I have applied most of your comments, but I have few remarks and questions. 2015-07-20 18:13 GMT+02:00 Boris Brezillon : >> + page = real_addr / CONFIG_SYS_NAND_BLOCK_SIZE; >> + column = real_addr % CONFIG_SYS_NAND_BLOCK_SIZE; >> + >> + if (syndrome)

Re: [U-Boot] [PATCH] keystone2: add high memory test

2015-07-22 Thread Vitaly Andrianov
On 07/21/2015 05:28 PM, Tom Rini wrote: On Wed, Jul 08, 2015 at 11:51:39AM -0400, Vitaly Andrianov wrote: Keystone2 SOC physical DDR3 address range is outside the first 4GB and cannot be entirely accessible without MMU enabled. Only first 2GB of the physical memory have 32-bits aliased addres

Re: [U-Boot] [PATCH v2 1/3] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-22 Thread Boris Brezillon
Hi Piotr, On Wed, 22 Jul 2015 13:27:37 +0200 Piotr Zierhoffer wrote: > Hi Boris, > > thanks for your review. I have applied most of your comments, but I > have few remarks and questions. > > 2015-07-20 18:13 GMT+02:00 Boris Brezillon > : > >> + page = real_addr / CONFIG_SYS_NAND_BLOCK_SIZ

Re: [U-Boot] [PATCHv4 0/3] drivers/ddr/altera: Add the DDR controller driver for SoCFPGA

2015-07-22 Thread Dinh Nguyen
On 7/22/15 4:00 AM, Marek Vasut wrote: > On Wednesday, July 22, 2015 at 10:27:10 AM, Dinh Nguyen wrote: >> On 7/20/15 2:40 PM, Marek Vasut wrote: >>> On Monday, July 20, 2015 at 09:31:39 PM, Dinh Nguyen wrote: >>> [...] >>> >>> Hi, >>> >>> yeah, I have some insane amount of cleanup pa

Re: [U-Boot] [PATCHv4 0/3] drivers/ddr/altera: Add the DDR controller driver for SoCFPGA

2015-07-22 Thread Marek Vasut
On Wednesday, July 22, 2015 at 02:57:49 PM, Dinh Nguyen wrote: > On 7/22/15 4:00 AM, Marek Vasut wrote: > > On Wednesday, July 22, 2015 at 10:27:10 AM, Dinh Nguyen wrote: > >> On 7/20/15 2:40 PM, Marek Vasut wrote: > >>> On Monday, July 20, 2015 at 09:31:39 PM, Dinh Nguyen wrote: > >>> [...] > >>>

Re: [U-Boot] [PATCH v3 4/7] x86: Allow cpu-x86 driver to be probed for UP

2015-07-22 Thread Simon Glass
On 22 July 2015 at 02:21, Bin Meng wrote: > Currently cpu-x86 driver is probed only for SMP. We add the same > support for UP when there is only one cpu node in the deive tree. > > Signed-off-by: Bin Meng > > --- > > Changes in v3: > - Remove the call to device_probe() > - Add a comment to explai

Re: [U-Boot] [PATCH v2 1/3] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-22 Thread Piotr Zierhoffer
Hello 2015-07-22 13:53 GMT+02:00 Boris Brezillon : >> >> I'd suggest removing the comment and making the following options >> configurable, with the default values as provided, in Kconfig: >> CONFIG_NAND_PAGE_SIZE 0x2000 >> CONFIG_NAND_ECC_PAGE_SIZE 0x400 >> CONFIG_NAND_SUNXI_ECC_STRENGTH 40 >> CO

Re: [U-Boot] [PATCH] board: ks2: README: fix typos

2015-07-22 Thread Murali Karicheri
On 07/16/2015 11:14 AM, Nishanth Menon wrote: Fix up a few typos in documentation. Signed-off-by: Nishanth Menon --- board/ti/ks2_evm/README | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/ti/ks2_evm/README b/board/ti/ks2_evm/README index 9ee90a4f9d03..6586faba32e

Re: [U-Boot] [PATCH 1/4] gpio: UniPhier: add driver for UniPhier GPIO controller

2015-07-22 Thread Simon Glass
Hi Masahiro, On 21 July 2015 at 21:46, Simon Glass wrote: > Hi Masahiro, > > On 21 July 2015 at 12:19, Masahiro Yamada > wrote: >> Hi Simon, >> >> >> 2015-07-18 23:36 GMT+09:00 Simon Glass : >>> Hi Masahiro, >>> >>> On 13 July 2015 at 02:29, Masahiro Yamada >>> wrote: This GPIO controlle

Re: [U-Boot] [RFC PATCH 1/7] pinctrl: add pinctrl framework

2015-07-22 Thread Simon Glass
Hi Masahiro, On 18 July 2015 at 08:37, Simon Glass wrote: > Hi Masahiro, > > On 15 July 2015 at 02:16, Masahiro Yamada > wrote: >> Now, a simple pinctrl patch is being proposed by Simon. >> http://patchwork.ozlabs.org/patch/487801/ >> >> In the design above, as you see, the uclass is just like

Re: [U-Boot] [PATCH 04/12] usb: musb-new: Kconfig support for USB_MUSB_HOST and USB_MUSB_GADGET

2015-07-22 Thread Marek Vasut
On Wednesday, July 22, 2015 at 10:45:27 AM, Paul Kocialkowski wrote: > Having MUSB_HOST and MUSB_GADGET in Kconfig allows more flexibility with > regard to what Kconfig options to enable, such as USB_STORAGE or > USB_KEYBOARD. > > Signed-off-by: Paul Kocialkowski Acked-by: Marek Vasut Best reg

Re: [U-Boot] [PATCH 02/12] usb: Generic USB Kconfig option, that fits both host and gadget

2015-07-22 Thread Marek Vasut
On Wednesday, July 22, 2015 at 10:45:25 AM, Paul Kocialkowski wrote: > There is no particular reason why the USB Kconfig option should be specific > to host mode. In prevision of adding MUSB host and gadget to Kconfig, this > moves the title and help message of the USB Kconfig option to a more > ge

Re: [U-Boot] [PATCH 01/12] usb: USB_ARCH_HAS_HCD Kconfig option removal

2015-07-22 Thread Marek Vasut
On Wednesday, July 22, 2015 at 10:45:24 AM, Paul Kocialkowski wrote: > The USB_ARCH_HAS_HCD currently serves no purpose and adds some confusion to > the required Kconfig options that are required to have USB support. > > Dropping it makes things easier and doesn't break anything, since it was > un

Re: [U-Boot] [PATCH 05/12] usb: USB comments in Kconfig for better separation

2015-07-22 Thread Marek Vasut
On Wednesday, July 22, 2015 at 10:45:28 AM, Paul Kocialkowski wrote: > Adding comments to the usb Kconfig allows for a better separation and more > readability in generated configs and in menuconfig. > > Signed-off-by: Paul Kocialkowski Acked-by: Marek Vasut Best regards, Marek Vasut _

Re: [U-Boot] [PATCH 03/12] usb: musb-new: CONFIG_MUSB prefix replacement with CONFIG_USB_MUSB

2015-07-22 Thread Marek Vasut
On Wednesday, July 22, 2015 at 10:45:26 AM, Paul Kocialkowski wrote: > USB-related options are usually prefixed with CONFIG_USB and > platform-specific adaptation for the MUSB controller already have a > CONFIG_USB_MUSB prefix, so this switches all MUSB-related options to a > CONFIG_USB_MUSB prefix

Re: [U-Boot] [PATCH] RFC: dm: Add pointer checking for allocated data

2015-07-22 Thread Simon Glass
+Masahiro and Albert Hi Joe, On 15 July 2015 at 11:41, Joe Hershberger wrote: > Hi Simon, > > On Thu, Jul 9, 2015 at 9:15 AM, Simon Glass wrote: >> With driver model drivers can have things stored in several places. There is >> driver-private data, then the uclass can attach things to a device.

Re: [U-Boot] [PATCH 1/3] ARM: at91: add cpu.h

2015-07-22 Thread Alexandre Belloni
Hi, On 15/06/2015 at 14:42:59 +0200, Heiko Schocher wrote : > 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. > That file doesn't exist anymore, see f56d8f7c29320abe6f923fa1b3cb7adcc3252a24 and I thin

Re: [U-Boot] [PATCH V3 4/8] configs: ti_armv7_keystone2: start using armv7_common

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: Try to maintain as much commonality by conditionally including stuff in armv7_common as necessary and removing the common defines from keystone2 header. /* U-Boot Build Configuration */ #define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is a 2nd

Re: [U-Boot] [PATCH V3 8/8] configs: keystone2: remove distro specific ramdisk name

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: u-boot should support multiple distros as necessary. So, DONOT hardcode distro specific image name in package. Instead we use a generic ramdisk.gz as image name which can be modified by distro specific logic. Signed-off-by: Nishanth Menon --- New pa

Re: [U-Boot] [PATCH V3 6/8] ti_armv7_keystone2: switch to using kernel zImage

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: Switch to using zImage instead of uImage. and while at it, start using bootz as default. While at it, get rid of BOOTIMAGE define and start using Linux upstream dtb file names. Signed-off-by: Nishanth Menon --- New patch. include/configs/k2e_evm.

Re: [U-Boot] [PATCH V3 7/8] configs: k2*_evm: rename skernel binary names to generated file names

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: using http://git.ti.com/keystone-linux/boot-monitor/trees/master as reference (tag K2_BM_15.07) the generated files do not have evm extensions by default. So dont use -evm extension. Signed-off-by: Nishanth Menon --- New patch include/configs/k2e

Re: [U-Boot] [PATCH V3 5/8] configs: ti_armv7_keystone2: switch addresses to generic addresses

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: Use the defaults defined in DEFAULT_LINUX_BOOT_ENV Signed-off-by: Nishanth Menon --- new patch based on review comments on https://patchwork.ozlabs.org/patch/496823/ include/configs/ti_armv7_keystone2.h | 22 +- 1 file change

Re: [U-Boot] [PATCH V3 3/8] configs: rename ks2_evm into ti_armv7_keystone2

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: rename the keystone2 common header into an keystone2 architecture specific header which can then reuse the common ti_armv7 config headers. Acked-by: Vitaly Andrianov Acked-By: Murali Karicheri Signed-off-by: Nishanth Menon --- V3: picked up acks,

Re: [U-Boot] [PATCH V3 3/8] configs: rename ks2_evm into ti_armv7_keystone2

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: rename the keystone2 common header into an keystone2 architecture specific header which can then reuse the common ti_armv7 config headers. Acked-by: Vitaly Andrianov Acked-By: Murali Karicheri Signed-off-by: Nishanth Menon --- V3: picked up acks,

Re: [U-Boot] [PATCH V3 4/8] configs: ti_armv7_keystone2: start using armv7_common

2015-07-22 Thread Tom Rini
On Wed, Jul 22, 2015 at 11:19:29AM -0400, Murali Karicheri wrote: > On 07/18/2015 12:40 PM, Nishanth Menon wrote: > >Try to maintain as much commonality by conditionally including stuff > >in armv7_common as necessary and removing the common defines from > >keystone2 header. > > > > > /* U-Boot B

Re: [U-Boot] [PATCH V3 8/8] configs: keystone2: remove distro specific ramdisk name

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:36AM -0500, Nishanth Menon wrote: > u-boot should support multiple distros as necessary. So, DONOT hardcode > distro specific image name in package. Instead we use a generic > ramdisk.gz as image name which can be modified by distro specific logic. > > Signed-off-by:

Re: [U-Boot] [PATCH V3 8/8] configs: keystone2: remove distro specific ramdisk name

2015-07-22 Thread Nishanth Menon
On Wed, Jul 22, 2015 at 10:32 AM, Tom Rini wrote: > > Instead of trying to whack this stuff to be more generic lets just punt > on it and drop when moving to config_distro_bootcmd.h OK. will do so. -- --- Regards, Nishanth Menon ___ U-Boot mailing list

Re: [U-Boot] [PATCH V3 2/8] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:30AM -0500, Nishanth Menon wrote: > CONFIG_LINUX_BOOT_PARAM_ADDR is not a valid configuration option. Do > just like what the rest of the world does. > > Acked-by: Vitaly Andrianov > Acked-By: Murali Karicheri > Signed-off-by: Nishanth Menon Reviewed-by: Tom Rini

Re: [U-Boot] [PATCH V3 5/8] configs: ti_armv7_keystone2: switch addresses to generic addresses

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:33AM -0500, Nishanth Menon wrote: > Use the defaults defined in DEFAULT_LINUX_BOOT_ENV > > Signed-off-by: Nishanth Menon Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing li

Re: [U-Boot] [PATCH V3 7/8] configs: k2*_evm: rename skernel binary names to generated file names

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:35AM -0500, Nishanth Menon wrote: > using http://git.ti.com/keystone-linux/boot-monitor/trees/master as > reference (tag K2_BM_15.07) the generated files do not have evm > extensions by default. So dont use -evm extension. > > Signed-off-by: Nishanth Menon Reviewed

Re: [U-Boot] [PATCH V3 1/8] configs: split ti_armv7_common into a omap generic header

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:29AM -0500, Nishanth Menon wrote: > TI armv7 based SoCs are based on two architectures - one based on OMAP > generation architecture and others based on Keystone architecture. > > Many of the options are architecture specific, however a lot are common > with v7 archi

Re: [U-Boot] [PATCH V3 3/8] configs: rename ks2_evm into ti_armv7_keystone2

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:31AM -0500, Nishanth Menon wrote: > rename the keystone2 common header into an keystone2 architecture > specific header which can then reuse the common ti_armv7 config headers. > > Acked-by: Vitaly Andrianov > Acked-By: Murali Karicheri > Signed-off-by: Nishanth Me

Re: [U-Boot] [PATCH V3 6/8] ti_armv7_keystone2: switch to using kernel zImage

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:34AM -0500, Nishanth Menon wrote: > Switch to using zImage instead of uImage. and while at it, start using > bootz as default. While at it, get rid of BOOTIMAGE define and start > using Linux upstream dtb file names. > > Signed-off-by: Nishanth Menon Reviewed-by: T

[U-Boot] [PATCH 01/19] ARM: zynq: DT: Use the right names for nodes

2015-07-22 Thread Michal Simek
Based on SPEC you right names with addresses. Signed-off-by: Michal Simek --- Sync with the kernel --- arch/arm/dts/zynq-7000.dtsi | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi index 92071598

[U-Boot] [PATCH 02/19] ARM: zynq: DT: Add missing nodes to DTSI

2015-07-22 Thread Michal Simek
Add ADC, CAN, GPIO, MC, DMA, DEVCFG, USB, Watchdog IPs to DTSI. Signed-off-by: Michal Simek --- Sync with the kernel. --- arch/arm/dts/zynq-7000.dtsi | 100 1 file changed, 100 insertions(+) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/z

[U-Boot] [PATCH 03/19] ARM: zynq: DT: Add a fixed regulator for CPU voltage

2015-07-22 Thread Michal Simek
To silence the warning cpufreq_cpu0: failed to get cpu0 regulator: -19 from the cpufreq driver regarding a missing regulator, add a fixed regulator to the DT. Zynq does not support voltage scaling and the CPU rail should always be supplied with 1 V, hence it is added in the SOC-level dtsi. Sign

[U-Boot] [PATCH 05/19] ARM: zynq: DT: Remove 222 MHz OPP

2015-07-22 Thread Michal Simek
Due to dependencies between timer and CPU frequency, only changes by powers of two are allowed. The clocksource driver prevents other changes, but with cpufreq and its governors it can result in being spammed with error messages constantly. Hence, remove the 222 MHz OPP. Signed-off-by: Soren Brink

[U-Boot] [PATCH 06/19] spi: Fix zynq SPI binding

2015-07-22 Thread Michal Simek
Zynq is using Cadence IP where binding is documented in the Linux kernel and there is no reason to use different binding. Synchronize it. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-7000.dtsi | 4 ++-- doc/device-tree-bindings/spi/spi-zynq.txt | 35 +

[U-Boot] [PATCH 04/19] ARM: zynq: DT: Migrate UART to Cadence binding

2015-07-22 Thread Michal Simek
The Zynq UART is Cadence IP and the driver has been renamed accordingly. Migrate the DT to use the new binding for the UART driver. Signed-off-by: Soren Brinkmann Acked-by: Peter Crosthwaite Acked-by: Rob Herring Tested-by: Michal Simek Signed-off-by: Michal Simek --- Mainline sync --- ar

[U-Boot] [PATCH 07/19] ARM: zynq: DT: Fix GEM register area size

2015-07-22 Thread Michal Simek
The size of the GEM's register area is only 0x1000 bytes. Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- Sync from the kernel --- arch/arm/dts/zynq-7000.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq

[U-Boot] [PATCH 08/19] ARM: zynq: DT: Use the zynq binding with macb

2015-07-22 Thread Michal Simek
Use the new zynq binding for macb ethernet, since it will disable half duplex gigabit like the Zynq TRM says to do. Also allow the compatible cadence gem binding that won't disable half duplex but works otherwise. Signed-off-by: Nathan Sullivan Acked-by: Sören Brinkmann Signed-off-by: Michal Sim

[U-Boot] [PATCH 10/19] ARM: zynq: DT: Cleanup address-cells and size-cells

2015-07-22 Thread Michal Simek
Remove unneeded address-cells form intc node because it is already setup in parent node. Add missing address-cells and size-cells to eth node to be shared for every platform DTSes. Signed-off-by: Michal Simek --- Sync with mainline. --- arch/arm/dts/zynq-7000.dtsi | 5 - 1 file changed, 4

[U-Boot] [PATCH 14/19] ARM: zynq: DT: Update years in copyright

2015-07-22 Thread Michal Simek
Trivial. Signed-off-by: Michal Simek --- DTSI are coming from the same source that's why I have synced years according the Linux kernel. --- arch/arm/dts/zynq-7000.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi

[U-Boot] [PATCH 16/19] ARM: zynq: DT: Add missing interrupt for L2 pl310

2015-07-22 Thread Michal Simek
Add pl310 interrupt to the Zynq devicetree. Signed-off-by: Alex Wilson Signed-off-by: Michal Simek --- arch/arm/dts/zynq-7000.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi index 095c0f67e167..0b62cb093658 100644 --- a/arch/ar

[U-Boot] [PATCH 12/19] ARM: zynq: DT: Add reference to bus node

2015-07-22 Thread Michal Simek
For adding OCM memory in platform DTS is necessary to have reference to amba bus. Signed-off-by: Michal Simek --- Sync with mainline. --- arch/arm/dts/zynq-7000.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi in

[U-Boot] [PATCH 15/19] ARM: zynq: DT: Get rid of ps-clk-frequency

2015-07-22 Thread Michal Simek
ps-clk-frequency is platform specific setting and shouldn't be the part of DTSI. Signed-off-by: Michal Simek --- Sync with mainline. --- arch/arm/dts/zynq-7000.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi index a1de993b9812..

[U-Boot] [PATCH 13/19] ARM: zynq: DT: Sync zc702/zc706/zed/zybo DT with kernel

2015-07-22 Thread Michal Simek
Syncup with the latest DT from the Linux kernel. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-zc702.dts | 351 +++- arch/arm/dts/zynq-zc706.dts | 293 +++- arch/arm/dts/zynq-zed.dts | 46 +- arch/arm/dts/zynq-zy

[U-Boot] [PATCH 11/19] ARM: zynq: DT: Add pinctrl node

2015-07-22 Thread Michal Simek
Add pinctrl node to DTSI. Signed-off-by: Michal Simek --- Sync with mainline. --- arch/arm/dts/zynq-7000.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi index 276aa75097fc..109b7dc4dbe9 100644 --- a/arch/

[U-Boot] [PATCH 18/19] ARM: zynq: DT: Update zc770 dtses

2015-07-22 Thread Michal Simek
Platform DTSes are missing content needed for platform to be able to use OF binding and DM. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-zc770-xm010.dts | 75 --- arch/arm/dts/zynq-zc770-xm012.dts | 51 +++--- arch/arm/dts/zynq-zc770-

[U-Boot] [PATCH 1/2] zynqmp: mp: Simplify set_r5_start handling

2015-07-22 Thread Michal Simek
Pass directly boot_addr which is LOVEC (0) or HIVEC (0x). No reason to use magic values 0 and 1. Signed-off-by: Michal Simek --- arch/arm/cpu/armv8/zynqmp/mp.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/cpu/armv8/zynqmp/mp.c b/arch/arm/cpu/armv8/z

[U-Boot] [PATCH 2/2] zynqmp: Add support for IP detection via SLCR

2015-07-22 Thread Michal Simek
SLCR can be used for IP configuration setting. Add SLCR skeleton to enable run time checking. Signed-off-by: Michal Simek --- arch/arm/cpu/armv8/zynqmp/Makefile | 1 + arch/arm/cpu/armv8/zynqmp/slcr.c| 63 + arch/arm/include/asm/arch-zynqmp/hard

[U-Boot] [PATCH 19/19] ARM: zynq: Add support for zc770-xm011

2015-07-22 Thread Michal Simek
Add xm011 DTS file and related configs and configurations. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 1 + arch/arm/dts/zynq-zc770-xm011.dts | 65 ++ configs/zynq_zc770_xm011_defconfig | 13 include/configs/zynq_zc770.h

[U-Boot] [PATCH 17/19] ARM: zynq: DT: Add zc702 pushbuttons to DT as gpio-keys

2015-07-22 Thread Michal Simek
Adds the two MIO connected pushbuttons on the zc702 board to the devicetree as a single multi-key device for us with the gpio-keys driver. Signed-off-by: Ezra Savard Signed-off-by: Michal Simek --- arch/arm/dts/zynq-zc702.dts | 21 + 1 file changed, 21 insertions(+) diff -

[U-Boot] [PATCH 0/8] ARM: keystone2: Clocls and PLLs cleanup

2015-07-22 Thread Lokesh Vutla
This seires does a several bunch of cleanups for clock and PLL related definitions. This helps a lot in adding data for new Keystone2 SoCs. And also adds support for CPU detection. This is based on Nishanth's config cleanup series: https://www.mail-archive.com/u-boot%40lists.denx.de/msg177822.html

[U-Boot] [PATCH 1/8] ARM: keystone2: Cleanup SoC detection

2015-07-22 Thread Lokesh Vutla
Add proper register definition for JTAG ID and cleanup cpu_is_* functions. Signed-off-by: Lokesh Vutla --- arch/arm/mach-keystone/include/mach/hardware.h | 42 -- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-keystone/include/mach/hardware.

[U-Boot] [PATCH 3/8] ARM: keystone2: Cleanup PLL init code

2015-07-22 Thread Lokesh Vutla
There are two types of PLL for all keystone platforms: Main PLL, Secondary PLL. Instead of duplicating the same definition for each secondary PLL, have a common function which does initialization for both PLLs. And also add proper register definitions. Signed-off-by: Lokesh Vutla --- arch/arm/ma

[U-Boot] [PATCH 2/8] ARM: keystone2: Enable CONFIG_DISPLAY_CPUINFO

2015-07-22 Thread Lokesh Vutla
Add print_cpuinfo() function and enable CONFIG_DISPLAY_CPUINFO for keystone platforms, so that cpu info can be displayed during boot. Signed-off-by: Lokesh Vutla --- arch/arm/mach-keystone/init.c| 24 include/configs/ti_armv7_keystone2.h | 1 + 2 files changed,

[U-Boot] [PATCH 6/8] ARM: keystone2: Cleanup init_pll definition

2015-07-22 Thread Lokesh Vutla
This is just a cosmetic change that makes the calling of pll init code looks much cleaner. Signed-off-by: Lokesh Vutla --- arch/arm/mach-keystone/clock.c | 12 ++--- arch/arm/mach-keystone/include/mach/clock.h | 3 ++- board/ti/ks2_evm/board_k2e.c| 33 ++

[U-Boot] [PATCH 5/8] ARM: keystone2: Use common structure for PLLs

2015-07-22 Thread Lokesh Vutla
Register Base addresses are same for PLLs in all keystone platforms. If a PLL is not available, the corresponding register addresses are marked as reserved. Hence use a common definition. Signed-off-by: Lokesh Vutla --- arch/arm/mach-keystone/clock-k2e.c | 6 -- arch/arm/ma

[U-Boot] [PATCH 4/8] ARM: keystone2: Fix dev and arm speed detection

2015-07-22 Thread Lokesh Vutla
As per the Documentation for K2HK[1], K2L[2], K2E[3], the definition of DEVSPEED register is same, only the supporting speeds are different. Hence use the same speed definition for all platforms, and read the DEVSPEED register to detect the supporting max speed. [1] http://www.ti.com/lit/ds/symlin

[U-Boot] [PATCH 8/8] ARM: keystone2: Use common definition for clk_get_rate

2015-07-22 Thread Lokesh Vutla
Since all the clocks are defined common, and has the same logic to get the frequencies, use a common definition for for clk_get_rate(). Signed-off-by: Lokesh Vutla --- arch/arm/mach-keystone/Makefile | 3 - arch/arm/mach-keystone/clock-k2e.c | 95 ---

[U-Boot] [PATCH 7/8] ARM: keystone2: Remove unsed external clocks

2015-07-22 Thread Lokesh Vutla
Remove unused external clocks and make a common definition for all keystone platforms. Signed-off-by: Lokesh Vutla --- arch/arm/mach-keystone/clock-k2e.c | 2 +- arch/arm/mach-keystone/clock-k2l.c | 2 +- arch/arm/mach-keystone/include/mach/clock-k2e.h | 15 ---

[U-Boot] [PATCH 09/19] ARM: zynq: DT: Clean up timer device tree nodes

2015-07-22 Thread Michal Simek
Separate IRQ cells from each other for easier reading. Signed-off-by: Michal Simek --- Sync with mainline kernel --- arch/arm/dts/zynq-7000.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi index 383ddd674b08.

Re: [U-Boot] [PATCH 0/8] ARM: keystone2: Clocls and PLLs cleanup

2015-07-22 Thread Lokesh Vutla
Hi, On Wednesday 22 July 2015 09:09 PM, Lokesh Vutla wrote: This seires does a several bunch of cleanups for clock and PLL related definitions. This helps a lot in adding data for new Keystone2 SoCs. And also adds support for CPU detection. Sorry about the typo in $subject. Will update it after

  1   2   3   >