[U-Boot] [PATCH v2] MIPS: initialize board_init_f() argument to zero.

2016-01-21 Thread Purna Chandra Mandal
Argument boot_flags of board_init_f() should be set to 0 as $a0 may be utilized in lowlevel_init() or mips_cache_reset() or previous stage boot-loader. Signed-off-by: Purna Chandra Mandal --- Changes in v2: - add comment in same line as of the asm instruction - add

Re: [U-Boot] [PATCH v2 14/14] dm: video: test: Test that bitmap display works correctly

2016-01-21 Thread Simon Glass
On 18 January 2016 at 19:52, Simon Glass wrote: > Add a test for the 'bmp' command. Test both the uncompressed and compressed > versions of the file, since they use different code paths. > > Signed-off-by: Simon Glass > Acked-by: Anatolij Gustschin

Re: [U-Boot] [PATCH v2 13/14] dm: video: test: Add tests for rotated consoles

2016-01-21 Thread Simon Glass
On 18 January 2016 at 19:52, Simon Glass wrote: > Test that text is displayed correctly when the console is rotated. > > Signed-off-by: Simon Glass > Acked-by: Anatolij Gustschin > --- > > Changes in v2: None > > configs/sandbox_defconfig |

Re: [U-Boot] Please pull from u-boot-i2c

2016-01-21 Thread Tom Rini
On Thu, Jan 21, 2016 at 07:39:07AM +0100, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c.git > > The following changes since commit 57e5ecaf755d5301cd33683788e4b8432938bbbe: > > iocon / bamboo: Drop CONFIG_SYS_LONGHELP (2016-01-20 15:25:00 -0500) > > are available in the

Re: [U-Boot] [PATCH 01/19] video: Add stb TrueType font renderer

2016-01-21 Thread Måns Rullgård
Tom Rini writes: >> > style does not comply with U-Boot but I think it is best to leave alone to >> > permit the source to be synced later if needed. >> > >> > The only change is to fix a reference to fabs() which should route through >> > a macro to allow U-Boot to provide

Re: [U-Boot] FPGA detection failure on Cyclone V soc development kit

2016-01-21 Thread Tom Rini
On Wed, Jan 20, 2016 at 08:31:30PM +, Måns Rullgård wrote: > I'm having a problem with u-boot 2016.01 failing to detect the FPGA on > my Altera Cyclone V SoC Development Kit. On startup, it simply prints > "FPGA: Not Altera chip ID" (the ID having been read as all-zero). No > amount of

Re: [U-Boot] FPGA detection failure on Cyclone V soc development kit

2016-01-21 Thread Marek Vasut
On Thursday, January 21, 2016 at 05:20:33 PM, Måns Rullgård wrote: > Tom Rini writes: > > On Wed, Jan 20, 2016 at 08:31:30PM +, Måns Rullgård wrote: > >> I'm having a problem with u-boot 2016.01 failing to detect the FPGA on > >> my Altera Cyclone V SoC Development Kit.

Re: [U-Boot] [PATCH 06/14] efi_loader: Add runtime services

2016-01-21 Thread Leif Lindholm
On Fri, Jan 15, 2016 at 06:06:12AM +0100, Alexander Graf wrote: > After booting has finished, EFI allows firmware to still interact with the OS > using the "runtime services". These callbacks live in a separate address > space, > since they are available long after U-Boot has been overwritten by

Re: [U-Boot] [PATCH 01/19] video: Add stb TrueType font renderer

2016-01-21 Thread Tom Rini
> > style does not comply with U-Boot but I think it is best to leave alone to > > permit the source to be synced later if needed. > > > > The only change is to fix a reference to fabs() which should route through > > a macro to allow U-Boot to provide its own version. > > This seems to be using

Re: [U-Boot] FPGA detection failure on Cyclone V soc development kit

2016-01-21 Thread Måns Rullgård
Tom Rini writes: > On Wed, Jan 20, 2016 at 08:31:30PM +, Måns Rullgård wrote: > >> I'm having a problem with u-boot 2016.01 failing to detect the FPGA on >> my Altera Cyclone V SoC Development Kit. On startup, it simply prints >> "FPGA: Not Altera chip ID" (the ID having

Re: [U-Boot] [PATCH] ARMv8:ls2-2080a: Implement core ERRATA 829520, 833471

2016-01-21 Thread york sun
On 01/21/2016 07:44 AM, Ashish Kumar wrote: >> a/include/configs/ls2080a_common.h b/include/configs/ls2080a_common.h >> index a503934..9ab5d97 100644 >> --- a/include/configs/ls2080a_common.h >> +++ b/include/configs/ls2080a_common.h >> @@ -18,6 +18,8 @@ >> /* Errata fixes */ >> #define

Re: [U-Boot] [PATCH v2] board/t4240rdb: VID support

2016-01-21 Thread york sun
On 01/20/2016 11:31 PM, ying.zh...@freescale.com wrote: > From: Ying Zhang > > The fuse status register provides the values from on-chip > voltage ID efuses programmed at the factory. > These values define the voltage requirements for > the chip. u-boot reads FUSESR and

Re: [U-Boot] Uboot send pull request

2016-01-21 Thread Tom Rini
On Thu, Jan 21, 2016 at 02:48:11PM +0800, ub...@andestech.com wrote: > Hi Tom, > > Please pull the following patch from u-boot-nds32 into your tree. > Thanks! > > The following changes since commit 077678eb0c226e52a1f90edabd3369ab26065b32: > > Merge git://git.denx.de/u-boot-dm (2016-01-12

Re: [U-Boot] [RFC PATCH 6/6] clk: add fixed rate clock driver

2016-01-21 Thread Masahiro Yamada
2016-01-20 13:35 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 18 January 2016 at 22:15, Masahiro Yamada > wrote: >> 2015-12-28 23:20 GMT+09:00 Simon Glass : >>> Hi Masahiro, >>> >>> On 18 December 2015 at 04:15, Masahiro Yamada

Re: [U-Boot] [PATCH v2] MIPS: initialize board_init_f() argument to zero.

2016-01-21 Thread Daniel Schwierzeck
Am 21.01.2016 um 15:32 schrieb Purna Chandra Mandal: > Argument boot_flags of board_init_f() should be set to 0 as > $a0 may be utilized in lowlevel_init() or mips_cache_reset() > or previous stage boot-loader. > > Signed-off-by: Purna Chandra Mandal > > --- > >

[U-Boot] [PATCH] MIPS: start.S: fix and optimize instructions

2016-01-21 Thread Daniel Schwierzeck
Fix 32 vs 64 bit load/store instructions. Access CP0_WATCHHI as 32 Bit register. Use 64 Bit register access for clearing gd_data and copying U-Boot. Signed-off-by: Daniel Schwierzeck --- arch/mips/cpu/start.S | 22 +++--- 1 file changed, 11

Re: [U-Boot] [PATCH v2 0/4] Add LPDDR3 support for A83T

2016-01-21 Thread Hans de Goede
Hi, On 01/11/2016 06:20 PM, Vishnu Patekar wrote: This adds LPDDR3 support for A83T and support for Banana Pi M3 which has LPDDR3. These patches are based on u-boot-sunxi next branch. These patches tesed on Banana-pi M3. DCDC5 voltage is kept as 1.2V changes from v1 -> v2 1. introduce

Re: [U-Boot] [PATCH 8/8] test/py: add DFU test

2016-01-21 Thread Stephen Warren
On 01/21/2016 03:50 AM, Lukasz Majewski wrote: Hi Stephen, From: Stephen Warren Add a test of DFU functionality to the Python test suite. The test starts DFU in U-Boot, waits for USB device enumeration on the host, executes dfu-util multiple times to test various transfer

Re: [U-Boot] [PATCH 1/4] sunxi: Support Secure Memory Touch Arbiter (SMTA) in sun8i H3

2016-01-21 Thread Hans de Goede
Hi, On 01/06/2016 08:13 AM, Chen-Yu Tsai wrote: Secure Memory Touch Arbiter is the same thing as the TrustZone Protection Controller found on A31/A31s. Access to many peripherals on the H3 can be controlled by the SMTA, and the settings default to secure access only. This patch supports the

Re: [U-Boot] [PATCH 0/4] sunxi: PSCI support for H3

2016-01-21 Thread Hans de Goede
Hi, On 01/06/2016 08:13 AM, Chen-Yu Tsai wrote: Hi everyone, This series enables PSCI support for the H3. Like other Allwinner SoCs, the implementation only supports PSCI 0.1, specifically only secondary CPU boot/hotplug. Patch 1 supports the SMTA (previously called TZPC) TrustZone hardware

Re: [U-Boot] [PATCH] igep00x0: enable CONFIG_CMD_SETEXPR

2016-01-21 Thread Ladislav Michl
On Thu, Jan 21, 2016 at 02:11:13PM -0500, Tom Rini wrote: > On Thu, Jan 21, 2016 at 11:35:01AM +0100, Ladislav Michl wrote: > > > Enable CONFIG_CMD_SETEXPR, useful when passing initramfs end address: > > $ fatload mmc 0:1 $rdaddr root.cpio.gz > > $ setexpr rdendaddr $rdaddr + $filesize > > $ fdt

Re: [U-Boot] [PATCH] igep00x0: enable CONFIG_CMD_SETEXPR

2016-01-21 Thread Ladislav Michl
On Thu, Jan 21, 2016 at 08:56:15PM +0100, Ladislav Michl wrote: > On Thu, Jan 21, 2016 at 02:11:13PM -0500, Tom Rini wrote: [...] > > OK, but why do that instead of 'bootz $loadaddr $rdaddr $fdtaddr' ? > > => bootz $loadaddr $rdaddr $fdtaddr > Wrong Ramdisk Image Format > Ramdisk image is corrupt

Re: [U-Boot] [PATCH] ARMv8:ls2-2080a: Implement core ERRATA 829520, 833471

2016-01-21 Thread Ashish Kumar
Please see inline Regards Ashish -Original Message- From: york sun [mailto:york@nxp.com] Sent: Tuesday, January 19, 2016 10:34 PM To: Ashish Kumar ; u-boot@lists.denx.de Subject: Re: [PATCH] ARMv8:ls2-2080a: Implement core ERRATA 829520, 833471 On

Re: [U-Boot] [PATCH v5 2/2] usb: eth: add Realtek RTL8152B/RTL8153 DRIVER

2016-01-21 Thread Anand Moon
Hi Marek, On 21 January 2016 at 02:04, Marek Vasut wrote: > On Wednesday, January 20, 2016 at 09:10:07 PM, Anand Moon wrote: >> Hi Ted / Marek / Stephen, >> >> On 20 January 2016 at 22:22, Stephen Warren wrote: >> > On 01/19/2016 11:24 PM, Ted Chen wrote:

[U-Boot] [PATCH v4 3/3] armv8/ls1043aqds: Add lpuart support

2016-01-21 Thread Wenbin Song
Add lpuart support using the driver model. Signed-off-by: Wenbin Song --- Changes in v4: - No change --- arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-ls1043a-qds-lpuart.dts | 16 ++ arch/arm/dts/fsl-ls1043a-qds.dtsi | 4 +++

Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on T4080

2016-01-21 Thread Yangbo Lu
> -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Tuesday, January 19, 2016 11:59 PM > To: Yangbo Lu > Cc: york sun; Andy Fleming; U-Boot list > Subject: Re: [U-Boot] [v2] mmc: fsl_esdhc: fix mmc read/write error on > T4080 > > On Mon, Jan 18, 2016 at 07:18:59AM

[U-Boot] [PATCH v4 2/3] armv8/ls1043aqds: Spilt off board device tree

2016-01-21 Thread Wenbin Song
Move new /chosen node out of the board device tree. Signed-off-by: Wenbin Song --- Changes in v4: - No change --- arch/arm/dts/Makefile| 2 +- arch/arm/dts/fsl-ls1043a-qds-duart.dts | 16

[U-Boot] [PATCH v4 1/3] armv8/ls1043aqds: Select lpuart pins of various muxes

2016-01-21 Thread Wenbin Song
From: Shaohui Xie Set Board Configuration Register to select the lpuart pins of various muxes. Signed-off-by: Shaohui Xie Signed-off-by: Mingkai Hu --- Changes in v4: - remove the blank line and ending period -

[U-Boot] [PATCHv2 3/3] ARMv8/ls1043ardb: Integrate FSL PPA

2016-01-21 Thread Zhiqiang Hou
From: Hou Zhiqiang Signed-off-by: Hou Zhiqiang --- V2 - No change. board/freescale/ls1043ardb/ls1043ardb.c | 11 +++ include/configs/ls1043ardb.h| 9 + 2 files changed, 20 insertions(+) diff --git

[U-Boot] [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA support

2016-01-21 Thread Zhiqiang Hou
From: Hou Zhiqiang The FSL Primary Protected Application (PPA) is a software component loaded during boot which runs in TrustZone and remains resident after boot. Signed-off-by: Hou Zhiqiang --- Tested on LS1043A RDB board V2: - Added

[U-Boot] [PATCHv2 1/3] armv8: fsl-layerscape: add i/d-cache enable function to enable_caches

2016-01-21 Thread Zhiqiang Hou
From: Hou Zhiqiang This function assume that the d-cache and MMU has been enabled earlier, so it just created MMU table in main memory. But the assumption is not always correct, for example, the early setup is done in EL3, while enable_caches() is called when the PE

[U-Boot] [PATCHv2 1/3] armv8: fsl-layerscape: add i/d-cache enable function to enable_caches

2016-01-21 Thread Zhiqiang Hou
From: Hou Zhiqiang This function assume that the d-cache and MMU has been enabled earlier, so it just created MMU table in main memory. But the assumption is not always correct, for example, the early setup is done in EL3, while enable_caches() is called when the PE

[U-Boot] [v3] mmc: fsl_esdhc: set Abort command type for CMD12

2016-01-21 Thread Yangbo Lu
According to SD spec, CMD12, CMD52 for writing I/O abort in CCCR need to be set an Abort command type when they are sent. So, we remove all chip-specific #ifdefs and make it available for all platforms. Signed-off-by: Yangbo Lu --- Changes for v2: - Removed fix for

Re: [U-Boot] [PATCH v2 5/7] enable chain of trust for ARM platforms

2016-01-21 Thread york sun
On 01/17/2016 01:42 AM, Aneesh Bansal wrote: > Chain of Trust is enabled for ARM platforms (LS1021 and LS1043). > In board_late_init(), fsl_setenv_chain_of_trust() is called which > will perform the following: > - If boot mode is non-secure, return (No Change) > - If boot mode is secure, set the

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-21 Thread Scott Wood
On 01/20/2016 09:43 PM, Gong Qianyu wrote: > From: Gong Qianyu > > In current driver everytime we memcpy 4 bytes to the dest memory > regardless of the remaining length. > This patch adds checking the remaining length before memcpy. > If the length is shorter than 4

[U-Boot] [PATCH] fix lcd testpattern in 16bit mode

2016-01-21 Thread Andreas Neubacher
The testpattern of the lcd was only working in 8bit mode(2x3 tiles in different colors). With this patch now 8bit and 16bit is supported. In 16bit mode there are 2x4 tiles in different colors. The number of LCD-colors is defined in the include/configs/.h br, Andy From

Re: [U-Boot] [Patch V5 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-21 Thread Scott Wood
On 01/20/2016 09:42 PM, Gong Qianyu wrote: > From: Gong Qianyu > > This patch fixes the following compile warning: > drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': > drivers/spi/fsl_qspi.c:937:15: > warning: cast to pointer from integer of different size >

[U-Boot] [PATCH 1/2] test/py: move find_ram_base() into u_boot_utils

2016-01-21 Thread Stephen Warren
From: Stephen Warren find_ram_base() is a shared utility function, not a core part of the U-Boot console interaction. Signed-off-by: Stephen Warren --- These two patches depend on my previous series starting with: test/py: fix timeout to be absolute

[U-Boot] [PATCH 2/2] test/py: add a networking test

2016-01-21 Thread Stephen Warren
From: Stephen Warren This tests: - dhcp (if indicated by boardenv file). - Static IP network setup (if provided by boardenv file). - Ping. - TFTP get. Signed-off-by: Stephen Warren --- test/py/tests/test_net.py | 153

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

2016-01-21 Thread Tom Rini
On Thu, Jan 21, 2016 at 08:30:36AM -0700, Simon Glass wrote: > Hi Tom, > > This includes the lpuart and TI driver-model model conversion, clock > improvements, the new Python-based test infrastructure and a > video/console uclass initially implemented for sandbox. > > > The following changes

[U-Boot] [PATCH] pci: restore initialization for DM_PCI

2016-01-21 Thread Stephen Warren
From: Stephen Warren PCI controllers should be enumerated at startup so that PCI devices such as Ethernet controllers are available at startup. Fix board_init_r() not to skip calling pci_init() when CONFIG_DM_PCI is defined, and provide an implementation of pci_init() for the

[U-Boot] [PATCH v2 2/3] tpm: st33zp24: Add tpm st33zp24 support with i2c

2016-01-21 Thread Christophe Ricard
Add support for TPM ST33ZP24 family with i2c. For i2c we are relying only on DM_I2C. Reviewed-by: Simon Glass Signed-off-by: Christophe Ricard --- Changes in v2: - Adding Reviewed-by: Simon Glass README | 7 +

[U-Boot] [PATCH v2 1/3] tpm: Rename tpm_tis_infineon.h to tpm_tis.h and move infineon specific stuff in tpm_infineon.c

2016-01-21 Thread Christophe Ricard
I2C protocol is not standardize for TPM 1.2. TIS prococol is define by the Trusted Computing Group and potentially available on several TPMs. tpm_tis_infineon.h header is not generic enough. Rename tpm_tis_infineon.h to tpm_tis.h and move infineon specific defines/variables to tpm_tis_infineon.c

[U-Boot] [PATCH v2 0/3] Add support for st33zp24 i2c and spi TPMs

2016-01-21 Thread Christophe Ricard
Hi Simon, After a first tentative in August 2015: http://lists.denx.de/pipermail/u-boot/2015-August/222596.html I finally found some spare time for a new round to send a new version patch version bringing support for ST33ZP24 TPM 1.2 with i2c and spi support. I have been able to follow all

[U-Boot] [PATCH v2 2/2] tpm: tpm_tis_lpc: fix typo

2016-01-21 Thread Christophe Ricard
TPM_TIS_LPC is connected to the LPC bus, not I2C. Reviewed-by: Simon Glass Signed-off-by: Christophe Ricard --- Changes in v2: - Adding Reviewed-by: Simon Glass drivers/tpm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH v2 0/2] TPM minor fixes

2016-01-21 Thread Christophe Ricard
Hi Simon, Please find in this serie one bug fix and a typo cleanup. This series is only adding mention to your review Best Regards Christophe Changes in v2: - Adding Reviewed-by: Simon Glass Christophe Ricard (2): tpm: Fix fault in case CONFIG_DM_TPM is set without any

[U-Boot] [PATCH v2 1/2] tpm: Fix fault in case CONFIG_DM_TPM is set without any TPM

2016-01-21 Thread Christophe Ricard
In case CONFIG_DM_TPM was set without any TPM chipset configured a fault was generated (NULL pointer access). Reviewed-by: Simon Glass Signed-off-by: Christophe Ricard --- Changes in v2: - Adding Reviewed-by: Simon Glass

[U-Boot] [PATCH v2 3/3] tpm: st33zp24: Add tpm st33zp24 spi support

2016-01-21 Thread Christophe Ricard
Add support for TPM ST33ZP24 spi. The ST33ZP24 does have a spi interface. The transport protocol is proprietary. For spi we are relying only on DM_SPI. Reviewed-by: Simon Glass Signed-off-by: Christophe Ricard --- Changes in v2: - Adding

Re: [U-Boot] [PATCH 8/9] ARM: ARMv7: PSCI: ls102xa: add psci functions implemention

2016-01-21 Thread Scott Wood
On Tue, 2016-01-19 at 06:28 +, Dongsheng Wang wrote: > Hi Scott, > > > On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > > > From: Wang Dongsheng > > > > > > Based on PSCI v1.0, implement interface for ls102xa SoC: > > > psci_version, > > > psci_features, >

Re: [U-Boot] [PATCH 2/2] armv8/fsl-layerscape: fdt: add fixup for fman

2016-01-21 Thread Scott Wood
On 01/21/2016 01:09 AM, Gong Qianyu wrote: > 1.Add fixup for fman clock. > 2.Add fdt_fixup_fman_firmware() to insert the Fman ucode firmware into > the device tree. > > Signed-off-by: Gong Qianyu > --- > arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 121 >

Re: [U-Boot] [Patch V3 3/3] armv8/ls1043aqds: add QSPI boot support

2016-01-21 Thread Scott Wood
On Thu, 2016-01-14 at 04:26 +, Qianyu Gong wrote: > > -Original Message- > > From: Scott Wood [mailto:o...@buserror.net] > > Sent: Thursday, January 14, 2016 8:21 AM > > To: Qianyu Gong ; u-boot@lists.denx.de > > Cc: b07...@freescale.com; b48...@freescale.com; > >

Re: [U-Boot] [PATCH] board: ls2085aqds: Update kernel_size env variable

2016-01-21 Thread Scott Wood
On Thu, 2016-01-14 at 18:06 +, york sun wrote: > On 01/05/2016 09:00 PM, Prabhakar Kushwaha wrote: > > kernel_size env variable is defined as 0x2800, it is beyond NOR > > flash. > > > > Update kernel_size with 40MB kernel size. > > > > Signed-off-by: Prabhakar Kushwaha

[U-Boot] [PATCH v9 03/49] dm: pmic: Add 'reg status' to show all regulators

2016-01-21 Thread Simon Glass
It is convenient to be able to see the status of all regulators in a list. Add this feature to the 'reg status' command. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None common/cmd_regulator.c | 66 ++ 1

[U-Boot] [PATCH v9 02/49] dm: pinctrl: Add a function to parse PIN_CONFIG flags

2016-01-21 Thread Simon Glass
Add a function which produces a flags word from a few common PIN_CONFIG settings. This is useful for simple pinctrl drivers that don't need to worry about drive strength, etc. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None

[U-Boot] [PATCH v9 01/49] dm: core: Don't set pinctrl for pinctrl devices

2016-01-21 Thread Simon Glass
There is sort-of race condition when a pinctrl device is probed. The pinctrl function is called which may end up using the same device as is being probed. This results in operations being used before the device is actually probed. For now, disallow pinctrl operations on pinctrl devices while

[U-Boot] [PATCH v9 18/49] rockchip: i2c: Update the driver to use the new clock ID

2016-01-21 Thread Simon Glass
We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: - Update call to clk_get_by_index() drivers/i2c/rk_i2c.c | 38 ++ 1 file changed, 22 insertions(+),

[U-Boot] [PATCH v9 13/49] rockchip: jerry: Disable pmic-int-1 setup to avoid a hang

2016-01-21 Thread Simon Glass
This hangs when activated (by probing the PMIC). Disable it for now until we understand the root cause. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None arch/arm/dts/rk3288-veyron.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 17/37] rockchip: video: Add a video-output driver

2016-01-21 Thread Simon Glass
Some rockchip SoCs include video output (VOP). Add a driver to support this. It can output via a display driver (UCLASS_DISPLAY) and currently HDMI and eDP are supported. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-rockchip/vop_rk3288.h |

[U-Boot] [PATCH v2 18/37] rockchip: Don't skip low-level init

2016-01-21 Thread Simon Glass
At present the low-level init is skipped on rockchip. Among other things this means that the instruction cache is left disabled. Fix this. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/board.c| 4

[U-Boot] [PATCH v2 13/37] rockchip: Rename the CRU_MODE_CON fields

2016-01-21 Thread Simon Glass
These should match the datasheet naming. Adjust them. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-rockchip/cru_rk3288.h | 58 - drivers/clk/clk_rk3288.c| 39 - 2 files changed,

[U-Boot] [PATCH v2 22/37] rockchip: sdram: Tidy up a few comments

2016-01-21 Thread Simon Glass
Fix spaces in two comments in this file. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288/sdram_rk3288.c

[U-Boot] [PATCH v9 49/49] rockchip: jerry: Enable the Chrome OS EC

2016-01-21 Thread Simon Glass
Turn on the EC and enable the keyboard. Signed-off-by: Simon Glass --- Changes in v9: - Rebase to upstream/master Changes in v2: None arch/arm/dts/rk3288-veyron-chromebook.dtsi | 4 configs/chromebook_jerry_defconfig | 8

[U-Boot] [PATCH v2 12/37] dm: video: Repurpose the 'displayport' uclass to 'display'

2016-01-21 Thread Simon Glass
The current DisplayPort uclass is too specific. The operations it provides are shared with other types of output devices, such as HDMI and LVDS LCD displays. Generalise the uclass so that it can be used with these devices as well. Adjust the uclass to handle the EDID reading and conversion to

[U-Boot] [PATCH v9 22/49] rockchip: pinctrl: Add a full pinctrl driver

2016-01-21 Thread Simon Glass
We can make use of the device tree to configure pinctrl settings. Add this support for the driver so we can use it in U-Boot proper. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3288.c | 230

[U-Boot] [PATCH v2 23/37] rockchip: sdram: Use syscon_get_first_range() where possible

2016-01-21 Thread Simon Glass
This is a shortcut to obtaining a register address. Use it where possible, to simplify the code. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff

Re: [U-Boot] [PATCH v4 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-21 Thread Simon Glass
Hi, On 15 January 2016 at 18:18, Simon Glass wrote: > Hi, > > On 15 January 2016 at 08:42, Daniel Schwierzeck > wrote: >> Am Freitag, den 15.01.2016, 09:42 -0500 schrieb Tom Rini: >>> On Fri, Jan 15, 2016 at 10:20:43AM +0800, Jeffy Chen wrote:

Re: [U-Boot] [PATCH v5 3/6] rockchip: kylin: Add default gpt partition table

2016-01-21 Thread Simon Glass
On 13 January 2016 at 19:19, Jeffy Chen wrote: > Add default android gpt partition table for kylin board. > > Use "gpt write mmc 0 $partitions" to apply. > > Signed-off-by: Jeffy Chen > Acked-by: Simon Glass > Reviewed-by:

Re: [U-Boot] [PATCH v5 5/6] rockchip: kylin: Check fastboot request

2016-01-21 Thread Simon Glass
On 14 January 2016 at 10:17, Simon Glass wrote: > On 13 January 2016 at 19:19, Jeffy Chen wrote: >> We will save boot mode flag in grf's os_reg[4], if fastboot >> requested or fastboot key pressed, try to enter fastboot mode >> at preboot stage. >>

Re: [U-Boot] [PATCH v5 2/6] rockchip: rk3036: Bind GPIO banks

2016-01-21 Thread Simon Glass
On 13 January 2016 at 19:19, Jeffy Chen wrote: > Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding. > > Signed-off-by: Jeffy Chen > Acked-by: Simon Glass > Reviewed-by: Tom Rini > --- > >

Re: [U-Boot] [PATCH 0/8] Convert lpuart serial driver to driver model

2016-01-21 Thread Simon Glass
Hi, On 12 January 2016 at 02:30, Bhuvanchandra DV wrote: > Hi Bin, > > > On 01/12/2016 12:21 PM, Bin Meng wrote: >> >> Hi Bhuvanchandra, >> >> On Tue, Jan 12, 2016 at 2:43 PM, Bhuvanchandra DV >> wrote: >>> >>> Hi Bin, >>> >>> >>> On

Re: [U-Boot] [PATCH v5 6/6] rockchip: kylin: Store env in emmc

2016-01-21 Thread Simon Glass
On 14 January 2016 at 10:17, Simon Glass wrote: > On 13 January 2016 at 19:19, Jeffy Chen wrote: >> There's a 64K reserved area at the end of the first 4M. >> Store env there, so we can use fastboot to flash it. >> >> Signed-off-by: Jeffy Chen

Re: [U-Boot] [PATCH 1/8] test/py: fix timeout to be absolute

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Currently, Spawn.expect() imposes its timeout solely upon receipt of new > data, not on its overall operation. In theory, this could cause the > timeout not to fire if U-Boot

Re: [U-Boot] [PATCH 7/8] test/py: ums: add filesystem-based testing

2016-01-21 Thread Simon Glass
On 21 January 2016 at 04:26, Lukasz Majewski wrote: > Hi Stephen, > >> From: Stephen Warren >> >> Enhance the UMS test to optionally mount a partition and read/write a >> file to it, validating that the content written and read back are >> identical.

Re: [U-Boot] [PATCH] pci: restore initialization for DM_PCI

2016-01-21 Thread Simon Glass
Hi, On 21 January 2016 at 18:39, Bin Meng wrote: > Hi Stephen, > > On Fri, Jan 22, 2016 at 7:35 AM, Stephen Warren wrote: >> From: Stephen Warren >> >> PCI controllers should be enumerated at startup so that PCI devices >> such as

Re: [U-Boot] [PATCH 6/8] test/py: add various utility code

2016-01-21 Thread Simon Glass
Hi Stephen, On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Add various common utility functions. These will be used by a forthcoming > re-written UMS test, and a brand-new DFU test. > > Signed-off-by: Stephen Warren

Re: [U-Boot] [PATCH] pci: restore initialization for DM_PCI

2016-01-21 Thread Simon Glass
Hi Bin, On 21 January 2016 at 21:06, Bin Meng wrote: > Hi Simon, > > On Fri, Jan 22, 2016 at 12:03 PM, Simon Glass wrote: >> Hi Bin, >> >> On 21 January 2016 at 20:53, Bin Meng wrote: >>> On Fri, Jan 22, 2016 at 11:36 AM, Simon Glass

Re: [U-Boot] [PATCH] pci: restore initialization for DM_PCI

2016-01-21 Thread Tom Rini
On Thu, Jan 21, 2016 at 04:35:33PM -0700, Stephen Warren wrote: > From: Stephen Warren > > PCI controllers should be enumerated at startup so that PCI devices > such as Ethernet controllers are available at startup. Fix board_init_r() > not to skip calling pci_init() when

[U-Boot] [PATCH v9 14/49] rockchip: Use a separate clock ID for clocks

2016-01-21 Thread Simon Glass
At present we use the same peripheral ID for clocks and pinctrl. While this works it is probably better to use the device tree clock binding ID for clocks. We can use the clk_get_by_index() function to find this. Update the clock drivers and the code that uses them. Signed-off-by: Simon Glass

[U-Boot] [PATCH v9 43/49] rockchip: pinctrl: Implement the get_gpio_mux() method

2016-01-21 Thread Simon Glass
Implement this so that the GPIO command will be able to report whether a GPIO is used for input or output. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3288.c | 68 +++ 1 file changed,

[U-Boot] [PATCH v9 26/49] rockchip: jerry: Drop unused options

2016-01-21 Thread Simon Glass
To reduce the SPL image size, drop the LED features. Jerry does not have an LED and we can leave out GPIO support also. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None configs/chromebook_jerry_defconfig | 5 - include/configs/chromebook_jerry.h |

[U-Boot] [PATCH v2 05/37] video: bridge: Allow GPIOs to be optional

2016-01-21 Thread Simon Glass
Some video bridges will not have GPIOs to control reset, etc. Allow these to be optional. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/bridge/video-bridge-uclass.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v2 32/37] rockchip: firefly-rk3288: Enable HDMI output

2016-01-21 Thread Simon Glass
Enable HDMI output and a console on firefly. Signed-off-by: Simon Glass --- Changes in v2: None configs/firefly-rk3288_defconfig | 7 +++ include/configs/firefly-rk3288.h | 9 - 2 files changed, 15 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 08/37] dm: backlight: Add a backlight uclass

2016-01-21 Thread Simon Glass
LCD panels normally have a backlight which can be controlled to illuminate the LCD contents. Add a uclass to support this. Initially it only has a method to enable the backlight. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/Makefile | 1 +

[U-Boot] [PATCH v2 21/37] rockchip: config: Enable the 'gpio' command

2016-01-21 Thread Simon Glass
Now that we have a pretty good GPIO driver, enable the 'gpio' command on all rockchip boards. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/rk3288_common.h

Re: [U-Boot] [PATCH v2] clk: add fixed rate clock driver

2016-01-21 Thread Simon Glass
On 19 January 2016 at 21:35, Simon Glass wrote: > On 18 January 2016 at 21:55, Masahiro Yamada > wrote: >> This commit intends to implement "fixed-clock" as in Linux. >> (drivers/clk/clk-fixed-rate.c in Linux) >> >> If you need a very simple

Re: [U-Boot] [PATCH v2 3/3] tpm: st33zp24: Add tpm st33zp24 spi support

2016-01-21 Thread Simon Glass
On 21 January 2016 at 15:27, Christophe Ricard wrote: > Add support for TPM ST33ZP24 spi. > > The ST33ZP24 does have a spi interface. > The transport protocol is proprietary. > > For spi we are relying only on DM_SPI. > > Reviewed-by: Simon Glass >

Re: [U-Boot] [PATCH v2 2/2] tpm: tpm_tis_lpc: fix typo

2016-01-21 Thread Simon Glass
On 21 January 2016 at 15:19, Christophe Ricard wrote: > TPM_TIS_LPC is connected to the LPC bus, not I2C. > > Reviewed-by: Simon Glass > Signed-off-by: Christophe Ricard > --- > > Changes in v2: > - Adding Reviewed-by:

Re: [U-Boot] [PATCH v2 2/3] tpm: st33zp24: Add tpm st33zp24 support with i2c

2016-01-21 Thread Simon Glass
On 21 January 2016 at 15:27, Christophe Ricard wrote: > Add support for TPM ST33ZP24 family with i2c. > > For i2c we are relying only on DM_I2C. > > Reviewed-by: Simon Glass > Signed-off-by: Christophe Ricard > --- > >

Re: [U-Boot] [Patch V5 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-21 Thread Qianyu Gong
> -Original Message- > From: Scott Wood > Sent: Friday, January 22, 2016 3:30 AM > To: Qianyu Gong ; u-boot@lists.denx.de; > r58...@freescale.com > Cc: mingkai...@freescale.com; jt...@openedev.com; b48...@freescale.com; > shaohui@freescale.com;

[U-Boot] [PATCH 7/7] usb: dwc2: Do not mix data toggle for IN and OUT endpoints, check bounds

2016-01-21 Thread Stefan Brüns
USB protocol allows for 16 IN and 16 OUT endpoints (USB 2.0 Spec, 8.3.2.2 Endpoint Field). A function may have an EP 1 for both IN and OUT, so these two should be kept separate. As EPs are either BULK or INTERRUPT (or ISO), it is fine to have one array per direction for all transfer types (also

[U-Boot] [PATCH v9 12/49] rockchip: Use pwrseq for MMC start-up on jerry

2016-01-21 Thread Simon Glass
This is defined in the device tree in Linux. Copy over the settings so that this can be used instead of hard-coding the reset line. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None arch/arm/dts/rk3288-veyron.dtsi| 15 +++

[U-Boot] [PATCH v9 07/49] dm: Add a power sequencing uclass

2016-01-21 Thread Simon Glass
Some devices need special sequences to be used when starting up. Add a uclass for this. Drivers can be added to provide specific features as needed. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/misc/Kconfig | 18 ++

[U-Boot] [PATCH v9 34/49] dm: power: Tidy up debugging output and return values

2016-01-21 Thread Simon Glass
The currect PMIC debugging is a little confusing. Adjust it so that it is clear whether the operation succeeded or failed. Also, avoid creating a new error return value when a perfectly good one is already available. Signed-off-by: Simon Glass --- Changes in v9: None Changes

[U-Boot] [PATCH v9 31/49] dm: power: Allow regulators to be omitted from SPL

2016-01-21 Thread Simon Glass
For some boards the pmic interface is useful but the regulator interface (which comes with it) is too large. Allow them to be separated such that SPL can decide which it needs. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/power/pmic/Kconfig

[U-Boot] [PATCH v9 08/49] rockchip: Avoid using MMC code when not booting from MMC

2016-01-21 Thread Simon Glass
This saves some code space in SPL which is useful on jerry. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None arch/arm/mach-rockchip/rk3288-board-spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c

[U-Boot] [PATCH v9 06/49] power: Add support for RK808 regulators

2016-01-21 Thread Simon Glass
Add regulator support for the RK808 PMIC. It integrated 4 BUCKs and 8 LDOs all of which are supported by this driver. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/power/regulator/Kconfig | 9 ++ drivers/power/regulator/Makefile | 1 +

[U-Boot] [PATCH v9 48/49] rockchip: spi: Remove the explicit pinctrl setting

2016-01-21 Thread Simon Glass
The correct pinctrl is handled automatically so we don't need to do it in the driver. The exception is when we want to use a different chip select (other than 0). But this isn't used at present. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None

[U-Boot] [PATCH v2 15/37] rockchip: video: Add a display driver for rockchip HDMI

2016-01-21 Thread Simon Glass
Some Rockchip SoCs support HDMI output. Add a display driver for this so that these displays can be used on supported boards. Unfortunately this driver is not fully functional. It cannot reliably read EDID information over HDMI. This seems to be due to the clocks being incorrect - the I2C bus

[U-Boot] [PATCH v9 35/49] dm: power: Allow regulators to not implement all operations

2016-01-21 Thread Simon Glass
Some regulators will not implement any operations (e.g. fixed regulators). This is not an error, so allow the autoset process to continue when one of these regulators is found. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None

[U-Boot] [PATCH v9 44/49] rockchip: gpio: Read the GPIO value correctly

2016-01-21 Thread Simon Glass
This function should return 0 or 1, not a mask. Fix it. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/gpio/rk_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index

<    1   2   3   4   >