Re: [U-Boot] [PATCH 1/2] ARMv7: Factor out reusable timer_wait from sunxi/psci.S

2015-05-13 Thread Wang Dongsheng
> -Original Message- > From: Chen-Yu Tsai [mailto:w...@csie.org] > Sent: Wednesday, May 13, 2015 2:26 PM > To: Wang Dongsheng-B40534 > Cc: Sun York-R58495; Ian Campbell; Hans De Goede; Albert ARIBAUD; Wang Huan- > B18965; J. Kiszka; U-Boot Mailing List; Marc Zyngier > Subject: Re: [U-Boot

[U-Boot] [PATCH v2] mpc85xx/T1040D4RDB: Disable all CPLD interrupts, except QSGMI1 and QSGMI2

2015-05-13 Thread Codrin Ciubotariu
By default, CPLD used by Freescale's T1040D4RDB has all the interrupt sources enabled. If the interrupt line is enabled in the OS and one of these sources rises the interrupt without having a driver to handle it, then the board will get an interrupt storm. This patch masks all the interrupts avail

Re: [U-Boot] [PATCH 0/7] avr32: remove non-generic boards

2015-05-13 Thread Andreas Bießmann
Hi Waldemar, On 05/11/2015 01:32 PM, Waldemar Brodkorb wrote: > Hi, > Andreas Bießmann wrote, > >> Hi Hans-Christian, >> >> On 05/11/2015 01:19 PM, Hans-Christian Egtvedt wrote: >>> Around Mon 11 May 2015 13:07:22 +0200 or thereabout, Andreas Bießmann wrote: Andreas Bießmann (7): avr

Re: [U-Boot] [PATCH v7 07/17] ARM: Put target PC for PSCI CPU_ON on per-CPU stack

2015-05-13 Thread Wang Dongsheng
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Jan Kiszka > Sent: Tuesday, April 21, 2015 1:19 PM > To: U-Boot Mailing List; Tom Rini > Cc: Marc Zyngier; Tom Warren; Paul Walmsley; Ian Campbell; Thierry Reding > Subject: [U-Boot] [PATCH v7 07/17] AR

Re: [U-Boot] mxs: Possible in bug in mxs_enable_4p2_dcdc_input

2015-05-13 Thread Marek Vasut
On Wednesday, May 13, 2015 at 08:02:21 AM, Stefan Wahren wrote: > Hi, Hi, > during the study of DC-DC handling in u-boot i noticed a possible bug. > > In case the DC-DC is already enabled the function returns without > reenabling brown out detection. I don't think that's okay. > A possible fix w

Re: [U-Boot] Booting mx28 from battery

2015-05-13 Thread Marek Vasut
On Wednesday, May 13, 2015 at 05:10:39 AM, Fabio Estevam wrote: > Hi, Hi, > Has anyone tested booting U-boot on mx28 powered by a battery only? Yes, some time ago I tested this mode of operation on the M28EVK. It ought to work, so give it a whirl. It was before Graeme did his hacking on the powe

Re: [U-Boot] [PATCH v7 07/17] ARM: Put target PC for PSCI CPU_ON on per-CPU stack

2015-05-13 Thread Jan Kiszka
On 2015-05-13 09:21, Wang Dongsheng wrote: > > >> -Original Message- >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Jan Kiszka >> Sent: Tuesday, April 21, 2015 1:19 PM >> To: U-Boot Mailing List; Tom Rini >> Cc: Marc Zyngier; Tom Warren; Paul Walmsley; Ian Campbell; Th

Re: [U-Boot] Patch to enable LEDs on sunxi/Cubietruck

2015-05-13 Thread Prof. Dr. Gundolf Kiefer
Dear Hans, dear developers, thank you for the quick reply. Actually, this was the first time I ever looked into the U-Boot code and I was (and am) not aware of the DT support status in U-Boot. So, please apologize that using CONFIG_SYS_EXTRA_OPTIONS is probably not the best solution. Maybe, the f

Re: [U-Boot] [PATCH v7 07/17] ARM: Put target PC for PSCI CPU_ON on per-CPU stack

2015-05-13 Thread Wang Dongsheng
> -Original Message- > From: Jan Kiszka [mailto:jan.kis...@siemens.com] > Sent: Wednesday, May 13, 2015 3:31 PM > To: Wang Dongsheng-B40534; U-Boot Mailing List; Tom Rini > Cc: Marc Zyngier; Tom Warren; Paul Walmsley; Ian Campbell; Thierry Reding > Subject: Re: [U-Boot] [PATCH v7 07/17] A

Re: [U-Boot] [PATCH] arm, imx6: add support for aristainetos2 board

2015-05-13 Thread Anatolij Gustschin
Hi Heiko, On Fri, 08 May 2015 14:02:29 +0200 Heiko Schocher wrote: > added Anatolij to cc for the rotate logo question ... > > Am 08.05.2015 13:19, schrieb Stefano Babic: > > Hi Heiko, > > > > On 12/04/2015 10:24, Heiko Schocher wrote: > >> add support for imx6dl based aristainetos2 board > >

Re: [U-Boot] [PATCH 01/24] usb: add device connection/disconnection detection

2015-05-13 Thread Simon Glass
On 4 May 2015 at 11:30, Simon Glass wrote: > > From: Vincent Palatin > > Provide a function to detect USB device insertion/removal in order to > avoid having to do USB enumeration in a tight loop when trying to detect > peripheral hotplugging. > > Signed-off-by: Vincent Palatin > > Reviewed-by:

Re: [U-Boot] [PATCH v1 0/3] New tag for Flattened Image Trees (FIT) - Booting Xen from a FIT.

2015-05-13 Thread Simon Glass
Hi, On 11 May 2015 at 12:03, Karl Apsite wrote: > > The FIT config now supports a tag named "loadables:" which is a > comma separated list. Users can add any number of images to the list, > and u-boot will move the selected binaries to their listed > load_addresses. This allows u-boot to boot xe

Re: [U-Boot] mxs: Possible in bug in mxs_enable_4p2_dcdc_input

2015-05-13 Thread Stefan Wahren
Hi Marek, Am 13.05.2015 um 09:13 schrieb Marek Vasut: > On Wednesday, May 13, 2015 at 08:02:21 AM, Stefan Wahren wrote: >> Hi, > Hi, > >> during the study of DC-DC handling in u-boot i noticed a possible bug. >> >> In case the DC-DC is already enabled the function returns without >> reenabling bro

[U-Boot] mxs: Possible in bug in mxs_enable_4p2_dcdc_input

2015-05-13 Thread Stefan Wahren
Hi, during the study of DC-DC handling in u-boot i noticed a possible bug. In case the DC-DC is already enabled the function returns without reenabling brown out detection. I don't think that's okay. A possible fix would be to do the check if DC-DC is already enabled before disabling brown out de

Re: [U-Boot] [PATCH] ARC: change the default CROSS_COMPILE for ARC

2015-05-13 Thread Alexey Brodkin
Hello Masahiro-san, On Mon, 2015-05-11 at 19:42 +0900, Masahiro Yamada wrote: > As doc/README.ARC says, pre-build ARC toolchains are available at > the Synopsys GitHub page. > > The bin files are prefixed with arc(eb)-buildroot-linux- for earlier > releases, but with arc(eb)-snps-linux- for the l

[U-Boot] [PATCH v2] arc: use more universal prefix for default CROSS_COMPILE

2015-05-13 Thread Masahiro Yamada
As doc/README.ARC says, pre-build ARC toolchains are available at the Synopsys GitHub page. The bin files are prefixed with arc(eb)-buildroot-linux- for earlier releases, but with arc(eb)-snps-linux- for the latest releases. The symbolic links prefixed with arc(eb)-linux- are also available for a

Re: [U-Boot] [PATCH] ARC: change the default CROSS_COMPILE for ARC

2015-05-13 Thread Masahiro Yamada
Hi Alexey, 2015-05-13 18:36 GMT+09:00 Alexey Brodkin : > Hello Masahiro-san, > > On Mon, 2015-05-11 at 19:42 +0900, Masahiro Yamada wrote: >> As doc/README.ARC says, pre-build ARC toolchains are available at >> the Synopsys GitHub page. >> >> The bin files are prefixed with arc(eb)-buildroot-linux

Re: [U-Boot] [PATCH v2] arc: use more universal prefix for default CROSS_COMPILE

2015-05-13 Thread Alexey Brodkin
Hello Masahiro-san, On Wed, 2015-05-13 at 18:49 +0900, Masahiro Yamada wrote: > As doc/README.ARC says, pre-build ARC toolchains are available at > the Synopsys GitHub page. > > The bin files are prefixed with arc(eb)-buildroot-linux- for earlier > releases, but with arc(eb)-snps-linux- for the l

[U-Boot] [PATCH] arc: remove dummy target

2015-05-13 Thread Alexey Brodkin
TARGET_DUMMY was introduced to resolve the same problem as commit "arch: Make board selection choices optional" http://git.denx.de/?p=u-boot.git;a=commit;h=a26cd04920dc069fd6e91abb785426cf6c29f45f Latter implementation is much cleaner and appropriate. And anyways TARGET_DUMMY is no longer require

Re: [U-Boot] [PATCH 1/6] usb: dwc2: Add support for v3 snpsid value

2015-05-13 Thread Peter Griffin
Hi Marek, On Tue, 12 May 2015, Marek Vasut wrote: > On Tuesday, May 12, 2015 at 03:38:27 PM, Peter Griffin wrote: > > This has been tested to the extent that I can enumerate > > a asix usb networking adapter and boot a kernel over usb > > on the 96boards hikey u-boot port I'm currently doing. > >

Re: [U-Boot] [U-Boot,1/3] ARM: at91: remove non-generic boards

2015-05-13 Thread Andreas Bießmann
Dear Masahiro Yamada, Masahiro Yamada writes: >Remove board support for afeb9260, tny_a9260, and sbc35_a9g20. > >They have not been converted into Generic Board yet. >See doc/README.generic-board for details. > >Signed-off-by: Masahiro Yamada >Cc: Sergey Lapin >Cc: Albin Tonnerre >Cc: Andreas

Re: [U-Boot] ARM: at91: trival: fix typo for the nand partition name

2015-05-13 Thread Andreas Bießmann
Dear "Wu, Josh", Josh Wu writes: >We should use 'env' to present environment instead of 'evn' > >Signed-off-by: Josh Wu >--- > > include/configs/at91-sama5_common.h | 2 +- > include/configs/at91sam9rlek.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) applied to u-boot-atmel/mas

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

2015-05-13 Thread Andreas Bießmann
Hi Tom, please pull the following changes into u-boot/master. The following changes since commit bd328eb38274ffaf04caaa8a6ecc09b7e19a650e: Clean all defconfigs with savedefconfig (2015-05-12 18:10:26 -0400) are available in the git repository at: git://git.denx.de/u-boot-atmel.git master

[U-Boot] [PATCH V2 03/13] dm: pmic: code cleanup of PMIC uclass driver

2015-05-13 Thread Przemyslaw Marczak
The cleanup includes: - pmic.h - fix mistakes in a few comments - pmic operations: value 'reg_count' - redefine as function call - fix function name: pmic_bind_childs() -> pmic_bind_children() - pmic_bind_children: change the 'while' loop with the 'for' - add implementation of pmic_reg_count() meth

[U-Boot] [PATCH V2 01/13] odroid: dts: add 'voltage-regulators' description to max77686 node

2015-05-13 Thread Przemyslaw Marczak
Adding regulators subnode to fdt max77686 node, allows properly init regulators by the max77686 regulator driver. This enables the complete functionality of the regulator command. Signed-off-by: Przemyslaw Marczak Acked-by: Simon Glass --- arch/arm/dts/exynos4412-odroid.dts | 253 ++

[U-Boot] [PATCH V2 04/13] dm: regulator: uclass driver code cleanup

2015-05-13 Thread Przemyslaw Marczak
This cleanup includes: - remove of the preprocessor macros which pointed to long name functions - update of the names of some regulator uclass driver functions - cleanup of the function regulator_autoset() - reword of some comments of regulator uclass header file - regulator_get_by_platname: check

[U-Boot] [PATCH V2 00/13] PMIC/REGULATOR cleanup and Sandbox tests

2015-05-13 Thread Przemyslaw Marczak
Hello Simon, This patchset fixes the build issues. It changes the last three top commits of u-boot-dm/next. So it is rebased onto: 4e9a6eb dm: board:samsung: power_init_board: add requirement of CONFIG_DM_PMIC The rebased version, can be fetched from: https://github.com/bobenstein/u-boot.git bran

[U-Boot] [PATCH V2 02/13] odroid: enable driver model pmic/regulator API and MAX77686 drivers

2015-05-13 Thread Przemyslaw Marczak
This change enables the configs required to init and setup max77686 regulator driver, using the new driver model pmic and regulator API. And also changes the old pmic framework calls to the new ones. This commits enables: - CONFIG_ERRNO_STR - CONFIG_DM_PMIC - CONFIG_DM_PMIC_CMD - CONFIG_DM_PMIC_MA

[U-Boot] [PATCH V2 10/13] test: dm: add sandbox PMIC framework tests

2015-05-13 Thread Przemyslaw Marczak
This change adds new file to sandbox driver model test environment. The file is: test/dm/power.c, and it includes tests for PMIC framework, which includes PMIC uclass and REGULATOR uclass. All tests are based od Sandbox PMIC emulated device. Some test constants for this device are defined in the h

[U-Boot] [PATCH V2 05/13] common: cmd pmic: command cleanup

2015-05-13 Thread Przemyslaw Marczak
This commit cleanups the use of function: failed(). The new function name is: failure(), and it is used for print errno and the errno-related message only. The second change is choosing PMIC device by it's name, instead of seq number. Thanks to this change, for set the current device, call of pmic

[U-Boot] [PATCH V2 08/13] sandbox: i2c: search child emul dev and check its uclass id

2015-05-13 Thread Przemyslaw Marczak
The function get_emul() in sandbox i2c bus driver, always returns first child as i2c emul device. This may only work for i2c devices with a single child, which is an only i2c emul device. In case when i2c device has more than one child (e.g. PMIC), and one is i2c emul, then the function should sea

[U-Boot] [PATCH V2 06/13] common: cmd regulator: command cleanup

2015-05-13 Thread Przemyslaw Marczak
This commit cleanups the regulator command. The first change, is adjusting "regulator dev" command to use "regulator-name" constraint, for setting the operating device. Thanks to this, the regulator_get() function is removed. This also updates do_list() function, with loop over uclass_find_* funct

[U-Boot] [PATCH V2 09/13] sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator

2015-05-13 Thread Przemyslaw Marczak
This commit adds emulation of sandbox PMIC device, which includes: - PMIC I2C emulation driver - PMIC I/O driver (UCLASS_PMIC) - PMIC regulator driver (UCLASS_REGULATOR) The sandbox PMIC has 12 significant registers and 4 as padding to 16 bytes, which allows using 'i2c md' command with the default

[U-Boot] [PATCH V2 07/13] doc: driver-model: pmic-framework.txt - cleanup

2015-05-13 Thread Przemyslaw Marczak
This commit cleanups the PMIC framework documentation. Signed-off-by: Przemyslaw Marczak Acked-by: Simon Glass Tested on sandbox: Tested-by: Simon Glass --- Changes V2: - none --- doc/driver-model/pmic-framework.txt | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) d

[U-Boot] [PATCH V2 11/13] test: dm: test.dts - move to sandbox dts directory

2015-05-13 Thread Przemyslaw Marczak
The file test.dts from driver model test directory, was compiled by call dtc in script: test/dm/test-dm.sh. This doesn't allow for including of dtsi files and using of C preprocessor routines in this dts file. Since the mentioned script builds U-Boot before tests, then moving the test.dts file in

[U-Boot] [PATCH V2 13/13] sandbox: defconfig: enable support of sandbox PMIC drivers

2015-05-13 Thread Przemyslaw Marczak
This commit enables: - emulated i2c PMIC driver - sandbox PMIC I/O driver - sandbox PMIC's regulator driver Signed-off-by: Przemyslaw Marczak Acked-by: Simon Glass Tested on sandbox: Tested-by: Simon Glass --- Changes V2: - none --- configs/sandbox_defconfig | 7 +++ 1 file changed, 7 inse

[U-Boot] [PATCH V2 12/13] sandbox: dts: add sandbox_pmic.dtsi and include it to sandbox.dts and test.dts

2015-05-13 Thread Przemyslaw Marczak
This commit adds dtsi file for Sandbox PMIC. It fully describes the PMIC by: - i2c emul node - with a default settings of 16 registers - 2x buck regulator nodes - 2x ldo regulator nodes The default register settings are set with preprocessor macros: - VAL2REG(min[uV/uA], step[uV/uA], val[uV/uA]) -

[U-Boot] [PATCH] net: phy: Add support for all targets which requires MANUAL_RELOC

2015-05-13 Thread Michal Simek
Targets with CONFIG_NEEDS_MANUAL_RELOC do not use REL/RELA relocation (mostly only GOT) where functions aray are not updated. This patch is fixing function pointers passed to phy_register function. This patch was tested on Microblaze architecture. Signed-off-by: Michal Simek --- drivers/net/phy

Re: [U-Boot] [PATCH 2/6] dm: gpio: hi6220: Add a hi6220 GPIO driver model driver.

2015-05-13 Thread Peter Griffin
Hi Marek, Thanks for reviewing. > > > This patch adds support for the GPIO perif found on hi6220 > > SoC. > > > > Signed-off-by: Peter Griffin > > --- > > arch/arm/include/asm/arch-armv8/gpio.h | 47 + > > drivers/gpio/Makefile | 2 + > > drivers/gpio/hi6220_

Re: [U-Boot] [PATCH 5/6] mmc: hi6220_dw_mmc: Add hi6220 glue code for dw_mmc controller.

2015-05-13 Thread Peter Griffin
Hi Marek, On Tue, 12 May 2015, Marek Vasut wrote: > On Tuesday, May 12, 2015 at 03:38:31 PM, Peter Griffin wrote: > > This patch adds the glue code for hi6220 SoC which has 2x synopsis > > dw_mmc controllers. This will be used by the hikey board support > > in subsequent patches. > > > > Signed-

Re: [U-Boot] [PATCH v5 15/15] sunxi: ohci: Add ohci usb host controller support

2015-05-13 Thread Hans de Goede
Hi, On 13-05-15 00:39, Simon Glass wrote: Hi Hans, On 12 May 2015 at 01:23, Hans de Goede wrote: Hi Simon, On 12-05-15 00:37, Simon Glass wrote: On 10 May 2015 at 06:10, Hans de Goede wrote: This commit adds support for the OHCI companion controller, which makes usb-1 devices directly

[U-Boot] [PATCH v2 4/4] sunxi: Change usb-kbd interrupt polling to use an usb interrupt queue

2015-05-13 Thread Hans de Goede
Now that the ohci code supports usb interrupt queues we can switch (back) to using an usb interrupt queue for usb-kbd interrupt polling. This greatly reduces u-boot's latency when dealing with usb keyboards. Signed-off-by: Hans de Goede Acked-by: Ian Campbell Reviewed-by: Marek Vasut --- Change

[U-Boot] [PATCH v2 3/4] usb: ohci: Add support for interrupt queues

2015-05-13 Thread Hans de Goede
Add support for interrupt queues to the ohci hcd code, bringing it inline with the ehci and musb-new(host) code. Signed-off-by: Hans de Goede Reviewed-by: Marek Vasut --- Changes in v2: -Fix building of non DM_USB configs --- drivers/usb/host/ohci-hcd.c | 132 +++

[U-Boot] [PATCH v2 1/4] usb: ohci: Do not reuse ed for interrupt endpoints of different devices

2015-05-13 Thread Hans de Goede
When submitting interrupt packets to an endpoint we only link in the ed once to avoid some races surrounding unlinking of periodic endpoints, but we share one ohci_device struct / one set of ed-s for all devices, which means that if we have an interrupt endpoint at endpoint 1 with one device, and a

[U-Boot] [PATCH v2 2/4] usb: ohci: Add an ohci_alloc_urb() function

2015-05-13 Thread Hans de Goede
Add an ohci_alloc_urb() function, this is a preparation patch for adding interrupt queue support. Signed-off-by: Hans de Goede Reviewed-by: Marek Vasut --- drivers/usb/host/ohci-hcd.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/drivers/us

Re: [U-Boot] [PATCH] usb: kbd: Fix key repeat not always using

2015-05-13 Thread Hans de Goede
Hi, On 12-05-15 21:30, Marek Vasut wrote: On Tuesday, May 12, 2015 at 06:58:23 PM, Hans de Goede wrote: The usb-kbd key repeat code assumes that reports get repeated every 40 ms, this is never true when using CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP, and does not always works for CONFIG_SYS_USB

[U-Boot] [PATCH v2] usb: kbd: Fix key repeat not always using

2015-05-13 Thread Hans de Goede
The usb-kbd key repeat code assumes that reports get repeated every 40 ms, this is never true when using CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP, and does not always works for CONFIG_SYS_USB_EVENT_POLL and CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE since not all usb keyboards honor the usb_set_idle()

[U-Boot] [PATCH v1 1/3] add boot_get_loadables() to load listed images

2015-05-13 Thread Karl Apsite
From: Karl Apsite Added a trimmed down instance of boot_get_() to satisfy the minimum requierments of the added feature. The function follows the normal patterns set by other boot_get's, which should make it a bit easier to combine them all together into one boot_get_image() function in a later

[U-Boot] [PATCH v1 0/3] New tag for Flattened Image Trees (FIT) - Booting Xen from a FIT.

2015-05-13 Thread Karl Apsite
The FIT config now supports a tag named "loadables:" which is a comma separated list. Users can add any number of images to the list, and u-boot will move the selected binaries to their listed load_addresses. This allows u-boot to boot xen from using an FIT configuration. Xen expects a kernel to

[U-Boot] [PATCH v1 3/3] Remove the bootm_find_other() wrapper

2015-05-13 Thread Karl Apsite
The bootm_find_other() function was only called once, and ran a quick check before it called bootm_find_images(). This wrapper function was removed by moving the conditional to do_bootm_states (where find_other was being called) and calling bootm_find_images directly. Signed-off-by: Karl Apsite -

[U-Boot] [PATCH v1 2/3] Combine bootm_find_ functions together

2015-05-13 Thread Karl Apsite
bootm_find_ramdisk_fdt() renamed to bootm_find_images() for readability. The function bootm_find_ramdisk_fdt() appears to be a simple wrapper for bootm_find_ramdisk(), bootm_find_fdt(), and now bootm_find_loadables(). I didn't see any other callers entering a bootm_find, so removing the wrapper, a

[U-Boot] [PATCH v2 0/9] Collected fixes and improvements

2015-05-13 Thread Simon Glass
This series contains a hodge-podge of minor fixes and improvements in various areas. They were found while adjusting mainline Nyan-big to work with Chrome OS verified boot. Rather than send a large number of individual patches I decide to collect them into a series. They should all be independent

[U-Boot] [PATCH v2 7/9] tegra124: Implement spl_was_boot_source()

2015-05-13 Thread Simon Glass
Add an implementation of this function for Tegra. Signed-off-by: Simon Glass --- Changes in v2: - Rename constant to UBOOT_NOT_LOADED_FROM_SPL arch/arm/mach-tegra/board.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach-tegra/board.c b/arch/arm/mach-tegra/boa

[U-Boot] [PATCH v2 4/9] sandbox: Add an implementation for cleanup_before_linux_select()

2015-05-13 Thread Simon Glass
Support this function so we can use Chrome OS verified boot with sandbox. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/cpu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index b6aae37..2c36f4b 100644 --- a/arch/

[U-Boot] [PATCH v2 8/9] tegra: nyan-big: Allow TPM on I2C

2015-05-13 Thread Simon Glass
Enable the I2C3 pins so that the TPM can be used. Note: There is an DP change also, caused by running board-to-uboot.py script in the latest tegra-pinmux-script tree. Signed-off-by: Simon Glass --- Changes in v2: - Use tegra-pinmux-scripts to update the pinmux board/nvidia/nyan-big/pinmux-con

[U-Boot] [PATCH v2 3/9] arm: Allow cleanup_before_linux() without disabling caches

2015-05-13 Thread Simon Glass
This function is used before jumping to U-Boot, but in that case we don't always want to disable caches. Signed-off-by: Simon Glass Signed-off-by: Vadim Bendebury --- Changes in v2: None arch/arm/cpu/armv7/cpu.c | 47 +-- include/common.h |

[U-Boot] [PATCH v2 9/9] tegra124: Expand SPL space by 8KB

2015-05-13 Thread Simon Glass
We are getting very close to running out of space in SPL, and with the currently Chrome OS gcc 4.9 we exceed the limit. Add a litle more space. Signed-off-by: Simon Glass --- Changes in v2: - Drop applied patches from the series include/configs/tegra124-common.h | 2 +- 1 file changed, 1 inser

[U-Boot] [PATCH v2 1/9] dm: usb: Implement usb_detect_change() for driver model

2015-05-13 Thread Simon Glass
Support this function with driver model also (CONFIG_DM_USB). Signed-off-by: Simon Glass --- Changes in v2: - Fix use of 'hub' instead of 'dev' in usb_detect_change() drivers/usb/host/usb-uclass.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/

[U-Boot] [PATCH v2 6/9] lcd: Support colour lookup table on 16bpp display in BMP images

2015-05-13 Thread Simon Glass
For 16-bit-per-pixel displays it is useful to support 8 bit-per-pixel images to reduce image size. Add support for this when drawing BMP images. Signed-off-by: Simon Glass --- Changes in v2: None common/lcd.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH v2 5/9] Remove typedefs from bmp_layout.h

2015-05-13 Thread Simon Glass
We try to avoid typedefs and these ones are easy enough to remove. Before changing this header in the next patch, remove the typedefs. Signed-off-by: Simon Glass Suggested-by: Joe Hershberger --- Changes in v2: - Add new patch to remove typedefs from bmp_layout.h common/cmd_bmp.c|

[U-Boot] [PATCH v2 2/9] arm: spl: Add an API to detect when U-Boot is started from SPL

2015-05-13 Thread Simon Glass
For secure boot systems it is common to have a read-only U-Boot which starts the machine and jumps to a read-write U-Boot for actual booting the OS. This allows the read-write U-Boot to be upgraded without risk of permanently bricking the machine. In the event that the read-write U-Boot is corrupte

Re: [U-Boot] Booting mx28 from battery

2015-05-13 Thread Fabio Estevam
Hi Marek, On Wed, May 13, 2015 at 4:14 AM, Marek Vasut wrote: > On Wednesday, May 13, 2015 at 05:10:39 AM, Fabio Estevam wrote: >> Hi, > > Hi, > >> Has anyone tested booting U-boot on mx28 powered by a battery only? > > Yes, some time ago I tested this mode of operation on the M28EVK. > It ought

Re: [U-Boot] [PATCH 18/20] Add Chrome OS config header

2015-05-13 Thread Simon Glass
Hi Stephen, On 25 February 2015 at 16:28, Stephen Warren wrote: > > On 02/17/2015 03:29 PM, Simon Glass wrote: >> >> From: Doug Anderson >> >> This header includes useful scripts which can be used with any board that >> can boot Chrome OS. >> >> In particular, 'run nvboot' will boot a board with

[U-Boot] [PATCH v2 00/16] tegra: Expand Nyan-big support

2015-05-13 Thread Simon Glass
This series expands Nyan-big support: - Enable Chrome OS EC, so that the keyboard works - Add some extra clock and pre-kernel init required for reliable operation - Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easily Still missing are audio and USB.

Re: [U-Boot] Patch to enable LEDs on sunxi/Cubietruck

2015-05-13 Thread Simon Glass
Hi Hans, On 12 May 2015 at 09:15, Hans de Goede wrote: > Hi, > > On 05/12/2015 03:39 PM, Prof. Dr. Gundolf Kiefer wrote: >> >> Dear developers, >> >> the attached patch adds LED support for the Cubietruck board. >> >> I found that the support for the onboard leds is missing for >> sunxi-based boa

[U-Boot] [PATCH v2 01/16] tegra: cros_ec: Add tegra support for Chrome OS EC

2015-05-13 Thread Simon Glass
This requires a change to stdin to include the 'cros-ec-keyb' input device. Put this in the common file, enabled by the relevant CONFIG. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/tegra-common-post.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --g

[U-Boot] [PATCH v2 07/16] tegra: Introduce SRAM repair on tegra124

2015-05-13 Thread Simon Glass
This is required in order to avoid instability when running from caches after the kernel starts. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-tegra124/flow.h | 12 arch/arm/mach-tegra/powergate.c | 20 +++- 2 files changed,

[U-Boot] [PATCH v2 06/16] tegra: clock: Adjust PLL access to avoid a warning

2015-05-13 Thread Simon Glass
A harmless but confusing warning is displayed when looking up the DisplayPort PLL. Correct this. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-tegra/clock.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach

[U-Boot] [PATCH v2 15/16] tegra: Replace 'Norrin' with 'Nyan-big' and fix typo

2015-05-13 Thread Simon Glass
With the rename the MAINTAINER file was not updated. Fix it and the 'Chrombook' typo in Kconfig. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-tegra/tegra124/Kconfig | 2 +- board/nvidia/nyan-big/MAINTAINERS| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -

[U-Boot] [PATCH v2 04/16] tegra: spi: Support slow SPI rates

2015-05-13 Thread Simon Glass
Use the oscillator as the source clock when we cannot achieve a low-enough speed with the peripheral clock. This happens when we request 3MHz on a SPI clock, for example. Signed-off-by: Simon Glass --- Changes in v2: None drivers/spi/tegra114_spi.c | 18 +++--- 1 file changed, 15 i

[U-Boot] [PATCH v2 03/16] dm: tegra: cros_ec: Enable Chrome OS EC on Nyan-big

2015-05-13 Thread Simon Glass
Enable the EC and keyboard, using the SPI bus. The EC driver requires a particular format and a deactivation delay. Also U-Boot does not support interrupts. For now, adjust the device tree to comply. At some point we should tidy this up to support interrupts and make tegra and exynos use the same

[U-Boot] [PATCH v2 13/16] Add Chrome OS config header

2015-05-13 Thread Simon Glass
From: Doug Anderson This header includes useful scripts which can be used with any board that can boot Chrome OS. In particular, 'run nvboot' will boot a board without verified boot enabled. Signed-off-by: Doug Anderson Signed-off-by: Simon Glass --- Changes in v2: - Use existing __stringify

[U-Boot] [PATCH v2 09/16] tegra: Increase maximum arguments to 32

2015-05-13 Thread Simon Glass
When setting up large environment variables we can exceed 16 arguemnts. Increase this to avoid problems. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/tegra-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/tegra-common.h b/includ

[U-Boot] [PATCH v2 02/16] tegra: spi: Drop the claim_bus() method to correct delays

2015-05-13 Thread Simon Glass
At present the driver does not properly honour the requested SPI CS deactivation delay since the SPI bus is changed in the claim_bus() method. Everything the claim_bus() method does can be done when the device is probed (setting the speed and mode) and at the start of a new transfer (where the fif

[U-Boot] [PATCH v2 16/16] tegra: config: nyan-big: Add options required by Chrome OS boot

2015-05-13 Thread Simon Glass
We need to match the device tree in the FIT with the U-Boot model so we can automatically select the right device tree. Also adjust the load address so that the device tree is not in the way when a zImage kernel tries to extract itself. Signed-off-by: Simon Glass --- Changes in v2: - Drop tegra

Re: [U-Boot] [PATCH v2 8/9] tegra: nyan-big: Allow TPM on I2C

2015-05-13 Thread Stephen Warren
On 05/13/2015 07:02 AM, Simon Glass wrote: Enable the I2C3 pins so that the TPM can be used. Note: There is an DP change also, caused by running board-to-uboot.py script in the latest tegra-pinmux-script tree. I didn't get the patch for tegra-pinmux-scripts. What was the send time/date and pa

[U-Boot] [PATCH v2 05/16] tegra: clock: Support enabling external clocks

2015-05-13 Thread Simon Glass
Add a simple function to enable external clocks. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-tegra/clock.h | 8 arch/arm/mach-tegra/clock.c | 17 + 2 files changed, 25 insertions(+) diff --git a/arch/arm/include/asm/arch-t

[U-Boot] [PATCH v2 10/16] tegra: lcd: Tidy up clock init

2015-05-13 Thread Simon Glass
Use the correct function for clock init. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/tegra124/tegra124-lcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/tegra124/tegra124-lcd.c b/drivers/video/tegra124/tegra124-lcd.c index 2733590.

Re: [U-Boot] [PATCH 20/20] tegra: config: nyan-big: Add options required by Chrome OS boot

2015-05-13 Thread Simon Glass
Hi Stephen, On 25 February 2015 at 16:31, Stephen Warren wrote: > On 02/17/2015 03:29 PM, Simon Glass wrote: >> >> We need to match the device tree in the FIT with the U-Boot model so we >> can automatically select the right device tree. Also adjust the load >> address >> so that the device tree

Re: [U-Boot] [PATCH v2 8/9] tegra: nyan-big: Allow TPM on I2C

2015-05-13 Thread Simon Glass
Hi Stephen, On 13 May 2015 at 07:53, Stephen Warren wrote: > On 05/13/2015 07:02 AM, Simon Glass wrote: >> >> Enable the I2C3 pins so that the TPM can be used. >> >> Note: There is an DP change also, caused by running board-to-uboot.py >> script in the latest tegra-pinmux-script tree. > > > I did

[U-Boot] [PATCH v2 08/16] tegra: Add missing tegra124 peripherals

2015-05-13 Thread Simon Glass
There are some missing entries in the tables. Add them. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 ++-- arch/arm/mach-tegra/tegra124/clock.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --gi

[U-Boot] [PATCH v2 14/16] tegra: config: Allow Chrome OS environment settings to be included

2015-05-13 Thread Simon Glass
Bring these in if they are provided by the board. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/tegra-common-post.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h index 2d

[U-Boot] [PATCH v2 12/16] tegra: nyan-big: Add additional clock and kernel init

2015-05-13 Thread Simon Glass
We need to turn on all audio-related clocks for the Chrome OS kernel to boot. Otherwise it will hang when trying to enable audio. Also for Linux set up graphics driver video protection. Signed-off-by: Simon Glass --- Changes in v2: - Remove unnecessary ODMDATA mangling board/nvidia/nyan-big/n

[U-Boot] [PATCH v2 11/16] tegra: Allow board-specific init

2015-05-13 Thread Simon Glass
Add a hook to allows boards to add their own init to board_init(). Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-tegra/sys_proto.h | 7 +++ board/nvidia/common/board.c | 8 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH] serial: stm32: Automatically generate CR when LF is observed

2015-05-13 Thread Daniel Thompson
On 12/05/15 22:56, Tom Rini wrote: On Tue, May 12, 2015 at 10:35:55PM +0200, Kamil Lulko wrote: Strange, this was already posted by Kunhua Huang - then reverted in commit 698a12bef9e782dcd99c555a739c16eec8669f14. Anyway, yes this carriage return should be added there. I simply forgot it since I

Re: [U-Boot] [PATCH v2 8/9] tegra: nyan-big: Allow TPM on I2C

2015-05-13 Thread Stephen Warren
On 05/13/2015 07:57 AM, Simon Glass wrote: Hi Stephen, On 13 May 2015 at 07:53, Stephen Warren wrote: On 05/13/2015 07:02 AM, Simon Glass wrote: Enable the I2C3 pins so that the TPM can be used. Note: There is an DP change also, caused by running board-to-uboot.py script in the latest tegra

[U-Boot] [PATCH 1/2] sunxi: Fix dram initialization not working on some a33 devices

2015-05-13 Thread Hans de Goede
When porting the allwinner dram init code to u-boot we missed some code setting an extra bit when doing auto dram config. This commits add this bit, fixing dram init not working on the ga10h 10" a33 tablet which I'm bringing up atm. Signed-off-by: Hans de Goede --- arch/arm/cpu/armv7/sunxi/dram

[U-Boot] [PATCH 2/2] sunxi: Make dram odt-en configurable through Kconfig for A33 based boards

2015-05-13 Thread Hans de Goede
Some A33 based boards use odt, while others do not, so make this configurable. Signed-off-by: Hans de Goede --- arch/arm/cpu/armv7/sunxi/dram_sun8i_a33.c | 3 +-- board/sunxi/Kconfig | 8 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/a

Re: [U-Boot] [PATCH V3] i2c: mxc: refactor i2c driver and support dm

2015-05-13 Thread Simon Glass
Hi, On 12 May 2015 at 19:09, Fan Peng wrote: > Hi, > > Is there any further comments? Or this patch will be applied? This gives build errors for me: 02: i2c: mxc: refactor i2c driver and support dm arm: + nitrogen6dl2g mx53smd ls1021atwr_nor_SECURE_BOOT tqma6s_mba6_spi apf27 mx6sxsabr

Re: [U-Boot] [PATCH v2 2/7] moveconfig: Add a mapping for the arc cross-compiler

2015-05-13 Thread Joe Hershberger
Hi Masahiro-san, On Tue, May 12, 2015 at 9:14 PM, Masahiro Yamada wrote: > Hi Joe. > > 2015-05-12 2:23 GMT+09:00 Joe Hershberger : >> The arc architecture is supported by U-Boot, so add a mapping here >> for it as well. >> >> Signed-off-by: Joe Hershberger >> --- >> >> Changes in v2: None >> >>

Re: [U-Boot] [PATCH] arc: remove dummy target

2015-05-13 Thread Joe Hershberger
Hi Alexey, On Wed, May 13, 2015 at 5:50 AM, Alexey Brodkin wrote: > TARGET_DUMMY was introduced to resolve the same problem as commit > "arch: Make board selection choices optional" > http://git.denx.de/?p=u-boot.git;a=commit;h=a26cd04920dc069fd6e91abb785426cf6c29f45f > > Latter implementation is

Re: [U-Boot] [PATCH] net: phy: Add support for all targets which requires MANUAL_RELOC

2015-05-13 Thread Joe Hershberger
Hi Michal, On Wed, May 13, 2015 at 6:40 AM, Michal Simek wrote: > Targets with CONFIG_NEEDS_MANUAL_RELOC do not use REL/RELA > relocation (mostly only GOT) where functions aray are not > updated. This patch is fixing function pointers passed to phy_register > function. > This patch was tested on

Re: [U-Boot] [PATCH v2 5/9] Remove typedefs from bmp_layout.h

2015-05-13 Thread Joe Hershberger
Hi Simon, On Wed, May 13, 2015 at 8:02 AM, Simon Glass wrote: > We try to avoid typedefs and these ones are easy enough to remove. Before > changing this header in the next patch, remove the typedefs. > > Signed-off-by: Simon Glass > Suggested-by: Joe Hershberger > --- Acked-by: Joe Hershberge

Re: [U-Boot] [PATCH] arc: remove dummy target

2015-05-13 Thread Alexey Brodkin
On Wed, 2015-05-13 at 13:50 +0300, Alexey Brodkin wrote: > TARGET_DUMMY was introduced to resolve the same problem as commit > "arch: Make board selection choices optional" > http://git.denx.de/?p=u-boot.git;a=commit;h=a26cd04920dc069fd6e91abb785426cf6c29f45f > > Latter implementation is much clea

[U-Boot] please pull u-boot-arc master

2015-05-13 Thread Alexey Brodkin
Hi Tom, The following changes since commit bd328eb38274ffaf04caaa8a6ecc09b7e19a650e: Clean all defconfigs with savedefconfig (2015-05-12 18:10:26 -0400) are available in the git repository at: git://git.denx.de/u-boot-arc.git for you to fetch changes up to 4e31e5676f0158119783def2ab9851b6

Re: [U-Boot] Pull request: u-boot-tegra/master

2015-05-13 Thread Tom Warren
Sorry, Masahiro. Missed that one. I'll apply it and send a new PR if everything builds OK. Tom - note that I screwed up and didn't push my rebase of u-boot-tegra/master against u-boot/master (it's still rebased against ARM/master). I'll fix that before the next PR later today, so you can ignore th

Re: [U-Boot] [PATCH] nand: mxs_nand_spl: support use of env in SPL

2015-05-13 Thread Tim Harvey
On Fri, May 8, 2015 at 2:39 PM, Tim Harvey wrote: > in order to use env in the SPL (CONFIG_SPL_ENV_SUPPORT) nand_info, > mtd_block_isbad, and mtd_read must be available. > > Signed-off-by: Tim Harvey > --- > drivers/mtd/nand/mxs_nand_spl.c | 112 > ++-- > 1 f

Re: [U-Boot] [PATCH v2] armv8: caches: Added routine to set non cacheable region

2015-05-13 Thread Mark Rutland
On Tue, May 12, 2015 at 04:46:49AM +0100, Siva Durga Prasad Paladugu wrote: > Hi Mark, > > > > -Original Message- > > From: Mark Rutland [mailto:mark.rutl...@arm.com] > > Sent: Wednesday, April 29, 2015 10:00 PM > > To: Michal Simek > > Cc: u-boot@lists.denx.de; Albert Aribaud; Marek Vasu

Re: [U-Boot] [PATCH v2 1/4] usb: ohci: Do not reuse ed for interrupt endpoints of different devices

2015-05-13 Thread Simon Glass
On 13 May 2015 at 06:42, Hans de Goede wrote: > When submitting interrupt packets to an endpoint we only link in the ed > once to avoid some races surrounding unlinking of periodic endpoints, > but we share one ohci_device struct / one set of ed-s for all devices, > which means that if we have an

Re: [U-Boot] [PATCH v2 2/4] usb: ohci: Add an ohci_alloc_urb() function

2015-05-13 Thread Simon Glass
On 13 May 2015 at 06:42, Hans de Goede wrote: > Add an ohci_alloc_urb() function, this is a preparation patch for adding > interrupt queue support. > > Signed-off-by: Hans de Goede > Reviewed-by: Marek Vasut > --- > drivers/usb/host/ohci-hcd.c | 31 +++ > 1 file chan

  1   2   >