Re: [U-Boot] [PATCH] armv8/ls1043a: Implement workaround for erratum A009660

2016-01-21 Thread Mingkai Hu
> -Original Message- > From: Mingkai Hu > Sent: Thursday, January 21, 2016 11:18 AM > To: york sun; Mingkai Hu; u-boot@lists.denx.de > Subject: RE: [PATCH] armv8/ls1043a: Implement workaround for erratum > A009660 > > > > > -Original Message- > > From: york sun > > Sent: Thursd

[U-Boot] [PATCH 4/7] arm: pcm052: Add device tree files

2016-01-21 Thread Bhuvanchandra DV
Add device tree files and enable serial support --- arch/arm/dts/Makefile| 3 ++- arch/arm/dts/pcm052.dts | 27 +++ configs/pcm052_dtb_defconfig | 10 ++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/pcm052.dts crea

[U-Boot] [PATCH 7/7] arm: vf: Remove the legacy defconfigs

2016-01-21 Thread Bhuvanchandra DV
Let's go with pure DT solution! Since in long run U-Boot anyway is evolving to pure DT solution. --- configs/colibri_vf_defconfig | 11 --- configs/pcm052_defconfig | 6 -- configs/vf610twr_defconfig | 9 - 3 files changed, 26 deletions(-) delete mode 100644 configs/co

[U-Boot] [PATCH 6/7] arm: vybrid: Drop enabling serial in legacy mode

2016-01-21 Thread Bhuvanchandra DV
Remove the legacy way of handling serial ports on Vybrid based boards since lpuart driver now only supports DT mode. --- include/configs/colibri_vf.h | 3 --- include/configs/pcm052.h | 3 --- include/configs/vf610twr.h | 3 --- 3 files changed, 9 deletions(-) diff --git a/include/configs/c

[U-Boot] [PATCH 3/7] arm: vf610-twr: Add device tree files

2016-01-21 Thread Bhuvanchandra DV
Add device tree files and enable serial support --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/vf610-twr.dts | 27 +++ configs/vf610twr_dtb_defconfig | 13 + 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/vf610-t

[U-Boot] [PATCH 2/7] arm: colibri-vf: Enable serial support

2016-01-21 Thread Bhuvanchandra DV
--- arch/arm/dts/vf-colibri.dtsi | 10 ++ configs/colibri_vf_dtb_defconfig | 1 + 2 files changed, 11 insertions(+) diff --git a/arch/arm/dts/vf-colibri.dtsi b/arch/arm/dts/vf-colibri.dtsi index 7a8e9bee..0718486 100644 --- a/arch/arm/dts/vf-colibri.dtsi +++ b/arch/arm/dts/vf-colibri

[U-Boot] [PATCH 0/7] Add/enable lpuart support on Vybrid based boards

2016-01-21 Thread Bhuvanchandra DV
- Add serial support to Vybrid device tree. - Enable lpuart support on Colibri VF50/VF61. - Add device tree files to VF610-twr board and enable lpuart support. - Add device tree files to pcm-052 board and enable lpuart support. - Droped legacy code in lpuart serial driver. - Droped non DT defconfig

[U-Boot] [PATCH 5/7] dm: lpuart: Drop the legacy code

2016-01-21 Thread Bhuvanchandra DV
All boards using this driver are with device tree support, hence drop the legacy code in driver to have a pure DT solution. --- drivers/serial/serial_lpuart.c | 101 + 1 file changed, 2 insertions(+), 99 deletions(-) diff --git a/drivers/serial/serial_lpuar

[U-Boot] [PATCH 1/7] arm: vf: Enable lpuart support

2016-01-21 Thread Bhuvanchandra DV
Add device tree node for lpuart on Vybrid platform --- arch/arm/dts/vf.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/vf.dtsi b/arch/arm/dts/vf.dtsi index 78706e1..5f5bd4c 100644 --- a/arch/arm/dts/vf.dtsi +++ b/arch/arm/dts/vf.dtsi @@ -17,6 +17,8 @@

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

2016-01-21 Thread Bhuvanchandra DV
Hi Simon, On 01/22/2016 08:46 AM, Simon Glass wrote: 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 01/12/2016 11:05 AM, Bin Meng wrote:

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

2016-01-21 Thread Marek Vasut
On Friday, January 22, 2016 at 02:30:43 AM, Stefan BrĂ¼ns wrote: > 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

[U-Boot] [PATCH 1/2 v3] VID: support IR chip is used in Intel mode

2016-01-21 Thread ying.zhang
From: Ying Zhang IR chip on all the boards support VID are required to be used in Intel mode. the VDD will not be adjusted while IR chip is not used in Intel mode. Signed-off-by: Ying Zhang --- Changed from v2: - Separate this patch from T4RDB VID support patch Changed from v1: - Not su

[U-Boot] [PATCH 2/2 v3] board/t4240rdb: VID support

2016-01-21 Thread ying.zhang
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 translates the values into the appropriate commands to set the voltage output value of an exte

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

2016-01-21 Thread Gong Qianyu
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 [-Wint-to-pointer-cast] priv->regs = (struct

[U-Boot] [Patch V6 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu --- V3-V6: - No change. V2: - New pa

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

2016-01-21 Thread Gong Qianyu
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 bytes, memcpy the actual length of data to the dest memory. Signed-off-by: Gong Qian

[U-Boot] [Patch V6 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu It might be missed when converting spi_flash_probe() in cmd_sf.c. This patch refers to commit fbb099183e3a ("dm: Convert spi_flash_probe() and 'sf probe' to use driver model"). Signed-off-by: Gong Qianyu --- V6: - No change. V5: - Revise commit message. V4: - Use CONFIG_EN

[U-Boot] [Patch V6 0/4] QSPI bug fixing patches

2016-01-21 Thread Gong Qianyu
This patchset is mainly related with Freescale QSPI and tested on LS1043AQDS board. The version 6 patchset has fixes to: - Use min() to simplify the code in QSPI driver. [Patch V6 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform [Patch V6 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy is

Re: [U-Boot] [PATCH v9 29/49] dm: i2c: Allow muxes to be enabled for SPL separately

2016-01-21 Thread Heiko Schocher
Hello Simon, Am 22.01.2016 um 03:43 schrieb Simon Glass: Since I2C muxes are seldom needed in SPL, and the code for this increases the size somewhat, add a separate option to enable I2C muxes for SPL. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/i2c/Makefi

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

2016-01-21 Thread Heiko Schocher
Hello Simon, Am 22.01.2016 um 03:43 schrieb 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 ++--

Re: [U-Boot] [PATCH] ls2085a: Correct the model & board name of RDB and QDS

2016-01-21 Thread Calvin Johnson
Hi Ashish, > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Ashish, > Kumar > Sent: Wednesday, January 20, 2016 12:33 PM > To: prabhakar.khusw...@nxp.com; u-boot@lists.denx.de > Subject: [U-Boot] [PATCH] ls2085a: Correct the model & board name of RDB >

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

2016-01-21 Thread Qianyu Gong
Hi Scott, > -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Friday, January 22, 2016 6:50 AM > To: Qianyu Gong ; u-boot@lists.denx.de > Cc: b48...@freescale.com; wenbin.s...@freescale.com; Mingkai Hu > > Subject: Re: [U-Boot] [Patch V3 3/3] armv8/ls1043aqds: add Q

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

2016-01-21 Thread Qianyu Gong
> -Original Message- > From: Scott Wood > Sent: Friday, January 22, 2016 3:28 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; wenbin.s...@freescale.com; Scott Wood > ;

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 wrote: Hi, On 21 January 2016 at 18:39, Bin M

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

2016-01-21 Thread Bin Meng
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 wrote: >>> Hi, >>> >>> On 21 January 2016 at 18:39, Bin Meng wrote: Hi Stephen, On Fri, Jan 22, 2016 at 7:35

[U-Boot] [PATCH 1/2] QE: add QE support on ls1043ardb

2016-01-21 Thread Zhao Qiang
Upload QE microcode on ls1043ardb Signed-off-by: Zhao Qiang --- board/freescale/ls1043ardb/ls1043ardb.c | 8 include/configs/ls1043ardb.h| 7 +++ 2 files changed, 15 insertions(+) diff --git a/board/freescale/ls1043ardb/ls1043ardb.c b/board/freescale/ls1043ardb/ls1043a

[U-Boot] [PATCH 2/2] QE: assgin pins to QE-HDLC

2016-01-21 Thread Zhao Qiang
QE-HDLC and USB multi-use the pins, when set "hwconfig=qe-hdlc", assign the pins to QE-HDLC, if not, assgin to USB Signed-off-by: Zhao Qiang --- board/freescale/ls1043ardb/ls1043ardb.c | 54 - 1 file changed, 39 insertions(+), 15 deletions(-) diff --git a/board/f

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

2016-01-21 Thread Simon Glass
Hi Bin, On 21 January 2016 at 20:53, Bin Meng wrote: > On Fri, Jan 22, 2016 at 11:36 AM, Simon Glass wrote: >> 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 con

[U-Boot] CONFIG_EXTRA_ENV_SETTINGS and Kconfig

2016-01-21 Thread Oleg K Dzhimiev
Hello, A couple years ago we developed Ezynq to build the bootloader for our camera board (w/o using Vivado's SDK). The config files are *.h and now we would like update the project to Kconfig. There is the CONFIG_EXTRA_ENV_SETTINGS parameter: include/configs/.h:

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

2016-01-21 Thread Bin Meng
On Fri, Jan 22, 2016 at 11:36 AM, Simon Glass wrote: > 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 >>> su

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. >> >> This enhancement is backwards-compatible

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 Ethernet controllers are available at startup. Fix board_init_r(

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 > --- > test/py/u_boot_console_base.py | 19 ++

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

2016-01-21 Thread Simon Glass
On 21 January 2016 at 16:05, Stephen Warren wrote: > 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] [PATCH 4/8] test/py: log when tests send CTRL-C

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Write a note to the log file when a test sends CTRL-C to U-Boot. This > makes it easier to follow what's happening in the logs, especially since > U-Boot doesn't echo the character back to its output, so there's no othe

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

2016-01-21 Thread Simon Glass
On 21 January 2016 at 11:17, Stephen Warren wrote: > 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, >>>

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

2016-01-21 Thread Simon Glass
On 21 January 2016 at 16:05, Stephen Warren wrote: > 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:

Re: [U-Boot] [PATCH 3/8] test/py: drain console log at the end of any failed test

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Tests may fail for a number of reasons, and in particular for reasons > other than a timeout waiting for U-Boot to print expected data. If the > last operation that a failed test performs is not waiting for U-Boot to >

Re: [U-Boot] [PATCH 5/8] test/py: optionally ignore errors from shell commands

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Sometimes it's useful to run shell commands and ignore any errors. One > example might be cleanup logic; if a test-case experiences an error, the > cleanup logic might experience an error too, and we don't want that err

Re: [U-Boot] [PATCH 2/8] test/py: move U-Boot respawn trigger to the test core

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Prior to this change, U-Boot was lazilly (re-)spawned if/when a test > attempted to interact with it, and no active connection existed. This > approach was simple, yet had the disadvantage that U-Boot might be > spawned

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 continually generated output that did not >

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; wenbin.s...@freescale.com; Scott Wood > ;

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 01/12/2016 11:05 AM, Bin Meng wrote: Hi Bhuvanc

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: Tom Rini > --- > > Changes in v5: None > Changes in v4: None > Changes i

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: >>> > Hi Tom, >>> > >>> > On 2016-1-15 8:59, Tom Rin

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. >> >> Signed-off-by: Jeffy Chen >> >> --- >> >> Ch

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 > --- > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: None > > drivers/p

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 >> >> --- >> >> Changes in v5: >> New patch. >> >> C

Re: [U-Boot] [PATCH v5 1/6] ARM: bootm: Try to use relocated ramdisk

2016-01-21 Thread Simon Glass
On 13 January 2016 at 19:19, Jeffy Chen wrote: > After boot_ramdisk_high(), ramdisk would be relocated to > initrd_start & initrd_end, so use them instead of rd_start & rd_end. > > Signed-off-by: Jeffy Chen > Acked-by: Simon Glass > Reviewed-by: Tom Rini > > --- > > Changes in v5: None > Change

[U-Boot] [PATCH v9 45/49] rockchip: gpio: Implement the get_function() method

2016-01-21 Thread Simon Glass
Provide this method so that 'gpio status' works fully. It now shows whether a pin is used for input, output or some other function. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/gpio/rk_gpio.c | 40 1 file changed, 36 in

[U-Boot] [PATCH v9 47/49] rockchip: spi: Correct chip-enable code

2016-01-21 Thread Simon Glass
At present there is an incorrect call to rkspi_enable_chip(). It should be disabling the chip, not enabling it. Correct this and ensure that the chip is disabled when releasing the bus. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/spi/rk_spi.c | 7 ++- 1 f

[U-Boot] [PATCH v9 27/49] gpio: Allow 's' as an abbreviation for 'status'

2016-01-21 Thread Simon Glass
The 'gpio' command allows abbreviations for most subcommands. Allow them for 'status' also. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None common/cmd_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c index 6

[U-Boot] [PATCH v9 38/49] rockchip: reset: Use the rk_clr/setreg() interface

2016-01-21 Thread Simon Glass
Use this function in preference to the macro. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None arch/arm/mach-rockchip/rk3288/reset_rk3288.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288/reset_rk3288.c b/arch/arm/mac

[U-Boot] [PATCH v9 17/49] rockchip: clock: Add a function to find a clock by ID

2016-01-21 Thread Simon Glass
The current approach of using uclass_get_device() is error-prone. Another clock (for example a fixed-clock) may cause it to break. Add a function that does a proper search. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None arch/arm/include/asm/arch-rockchip/clock.h | 12 ++

[U-Boot] [PATCH v9 23/49] rockchip: Move firefly and jerry to use the full pinctrl

2016-01-21 Thread Simon Glass
Use the full pinctrl driver in U-Boot proper. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None configs/chromebook_jerry_defconfig | 1 - configs/firefly-rk3288_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/chromebook_jerry_defconfig b/configs/c

[U-Boot] [PATCH v9 36/49] dm: clk: Add a simple version of clk_get_by_index()

2016-01-21 Thread Simon Glass
This function adds quite a bit of code to SPL and we probably don't need all the features in SPL. Add a simple version (for SPL only) to save space. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: - Add an assert for clk_devp drivers/clk/clk-uclass.c | 18 +-

[U-Boot] [PATCH v9 29/49] dm: i2c: Allow muxes to be enabled for SPL separately

2016-01-21 Thread Simon Glass
Since I2C muxes are seldom needed in SPL, and the code for this increases the size somewhat, add a separate option to enable I2C muxes for SPL. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/i2c/Makefile | 4 ++-- drivers/i2c/muxes/Kconfig | 9 +

[U-Boot] [PATCH v9 28/49] cros_ec: Disable the Chrome OS EC in SPL

2016-01-21 Thread Simon Glass
This is not used in SPL so don't allow it to be built there, even if I2C is enabled in SPL. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/misc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index fc8

[U-Boot] [PATCH v2 26/37] rockchip: jerry: Fix the SDRAM timing

2016-01-21 Thread Simon Glass
There is a minor error in the SDRAM timing. It does not seem to affect anything so far. Fix it just in case. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-veyron.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3288-veyron.dtsi b/

[U-Boot] [PATCH v9 39/49] rockchip: spi: Remember the last speed to avoid re-setting it

2016-01-21 Thread Simon Glass
Rather than changing the clock to the same value on every transaction, remember the last value and don't adjust the clock unless it is necessary. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/spi/rk_spi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-

[U-Boot] [PATCH v2 36/37] rockchip: Add support for Raxda Rock 2

2016-01-21 Thread Simon Glass
This board includes an RK3288 SoC on a SOM. It can be mounted on a base-board which provides a wide range of peripherals. So far this is verified to boot to a prompt from a microSD card. The serial console works as well as HDMI. Thanks to Tom Cubie for sending me a board. Signed-off-by: Simon Gl

[U-Boot] [PATCH v2 02/37] gpio: Warn about invalid GPIOs used with the 'gpio' command

2016-01-21 Thread Simon Glass
At present there is no indication that an invalid GPIO is used except that the GPIO status is not displayed. Make the error more explicit to avoid confusion. Signed-off-by: Simon Glass --- Changes in v2: None common/cmd_gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH v2 09/37] dm: backlight: Add a driver for a PWM backlight

2016-01-21 Thread Simon Glass
Many backlights need to use a PWM to control the brightness. Add a driver for this. It understands the standard device tree binding. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/Makefile| 3 + drivers/video/pwm_backlight.c | 134 +++

[U-Boot] [PATCH v2 01/37] stdio: Correct a build error with driver model

2016-01-21 Thread Simon Glass
When driver model is used for video but not for the keyboard, a compiler warnings is produced. Fix it. Signed-off-by: Simon Glass --- Changes in v2: None common/stdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/stdio.c b/common/stdio.c index 7252bab..f99cfe7 100644 --- a/co

[U-Boot] [PATCH v2 28/37] rockchip: rk3288: pinctrl: Fix HDMI pinctrl

2016-01-21 Thread Simon Glass
Since the device tree does not specify the EDID pinctrl option for HDMI we must set it manually. Fix the driver to handle this. Signed-off-by: Simon Glass --- Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3288.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/roc

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 > Signed-off-by: Christophe Ricard > --- > > Chan

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 > --- > > Changes in v2: > - Adding Reviewed-by: Simon Glass > > README

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: Simon Glass > > drivers/tpm/Kconfig | 2 +- > 1 file changed, 1 insertion(+

Re: [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 Simon Glass
On 21 January 2016 at 15:27, Christophe Ricard wrote: > 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

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

2016-01-21 Thread Simon Glass
On 21 January 2016 at 15:19, Christophe Ricard wrote: > 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 v9 19/49] rockchip: spi: 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/spi/rk_spi.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --g

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

2016-01-21 Thread Simon Glass
Some Rockchip SoCs support embedded DisplayPort output. Add a display driver for this so that these displays can be used on supported boards. Signed-off-by: Simon Glass --- Changes in v2: - Update for new clk_get_by_index() API arch/arm/include/asm/arch-rockchip/edp_rk3288.h | 636 +++

[U-Boot] [PATCH v2 34/37] rockchip: rock2: Bring in device tree files from Linux

2016-01-21 Thread Simon Glass
Bring in the current device tree files for rock2 from linux/next commit 719d6c1. Hopefully this is the latest one. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-rock2-som.dtsi | 278 +++ arch/arm/dts/rk3288-rock2-square.dts | 180 +

[U-Boot] [PATCH v2 30/37] rockchip: jerry: Add support for timing SPI flash speed

2016-01-21 Thread Simon Glass
Add the 'time' and 'sf test' commands so that we can test SPI flash performance. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/chromebook_jerry.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/chromebook_jerry.h b/include/configs/chromebook_jerry.h

[U-Boot] [PATCH v9 46/49] rockchip: spi: Implement the delays

2016-01-21 Thread Simon Glass
Some devices need delays before and after activiation. Implement these features in the SPI driver so that we will be able to enable the Chrome OS EC. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/spi/rk_spi.c | 27 +++ 1 file changed, 23

[U-Boot] [PATCH v9 30/49] spi: Correct device tree usage in spi_flash_decode_fdt()

2016-01-21 Thread Simon Glass
This function currently searches the entire device tree for a node that it thinks is relevant. But the node is known and is passed in. Correct the code and enable it only with driver model, since only driver-model boards will use it. This avoids bringing in a large number of strings from fdtdec.

[U-Boot] [PATCH v9 32/49] dm: pinctrl: Add a way for a GPIO driver to obtain a pin function

2016-01-21 Thread Simon Glass
GPIO drivers want to be able to show if a pin is enabled for input, output, or is being used by another function. Some drivers can easily find this and the code is included in the driver. For some SoCs this is more complex. Conceptually this should be handled by pinctrl rather than GPIO. Most pinct

[U-Boot] [PATCH v9 33/49] dm: core: Export uclass_find_device_by_of_offset()

2016-01-21 Thread Simon Glass
It is sometimes useful to be able to find a device before probing it, perhaps to set up some platform data for it. Allow finding by of_offset also. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/core/uclass.c| 4 ++-- include/dm/uclass-internal.h | 16 +

[U-Boot] [PATCH v9 24/49] rockchip: jerry: Enable the RK808 PMIC and regulator

2016-01-21 Thread Simon Glass
Enable this PMIC and regulator, which is used on jerry. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None configs/chromebook_jerry_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/chromebook_jerry_defconfig b/configs/chromebook_jerry_defconfig index

[U-Boot] [PATCH v9 37/49] rockchip: sdram: Use the rk_clr/setreg() interface

2016-01-21 Thread Simon Glass
Use this function in preference to the macro. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288/sdram_rk3288.c b/arch/arm/

[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 --git a/arch/arm/mach-

[U-Boot] [PATCH v9 41/49] rockchip: clk: Make rkclk_get_clk() SoC-specific

2016-01-21 Thread Simon Glass
The current method assumes that clocks are numbered from 0 and we can determine a clock by its number. It is safer to use an ID in the clock's platform data to avoid the situation where another clock is bound before the one we expect. Move the existing code into rk3036 since it still works there.

[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 include/configs/chromebook_jerry.h | 7 ++

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

[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 +- 1 file cha

[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 drivers/spi/rk_spi.c | 28 ++

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

[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 drivers/power/regulator/regulator-uclass.c | 2

[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 fbdf9f3..a22e219 10064

[U-Boot] [PATCH v9 25/49] rockchip: Disable simple-bus in SPL for firefly-rk3288, jerry

2016-01-21 Thread Simon Glass
This is not needed for booting, so drop it from SPL to save about 300 bytes. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None configs/chromebook_jerry_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/chromeb

[U-Boot] [PATCH v2 06/37] dm: pwm: Add a PWM uclass

2016-01-21 Thread Simon Glass
Add a uclass that supports Pulse Width Modulation (PWM) devices. It provides methods to enable/disable and configure the device. Signed-off-by: Simon Glass --- Changes in v2: None drivers/Kconfig | 2 ++ drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + driver

[U-Boot] [PATCH v9 16/49] rockchip: clk: Add a function to get a peripheral clock rate

2016-01-21 Thread Simon Glass
It is useful to be able to read the rate of a peripheral clock. Add a handler for that. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/clk/clk_rk3288.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/clk/clk_rk3

[U-Boot] [PATCH v2 31/37] rockchip: jerry: Enable EDP and HDMI video output

2016-01-21 Thread Simon Glass
Enable these devices using the VOPL video output device. We explicitly disable VOPB in the device tree to avoid it taking over. Since this device has an LCD display this comes up by default. If the display fails for some reason then it will attempt to use HDMI. It is possible to force it to fail (a

[U-Boot] [PATCH v9 00/49] rockchip: Add support for cros_ec keyboard

2016-01-21 Thread Simon Glass
This series provides a number of new features and improvements leading to enabling the keyboard (via Chrome OS EC) on jerry. This is conneected via SPI and uses its own message protocol. Features and fixes are needed in the rockchip code to make this work include: - RK808 PMIC and regulator dr

[U-Boot] [PATCH v9 20/49] rockchip: spi: Avoid setting the pinctrl twice

2016-01-21 Thread Simon Glass
If full pinctrl is enabled we don't need to manually set the pinctrl in the driver. It will happen automatically. Adjust the code to suit - we will still use manual mode in SPL. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/spi/rk_spi.c | 9 ++--- 1 file ch

[U-Boot] [PATCH v2 35/37] rockchip: rock2: dts: Make changes for U-Boot

2016-01-21 Thread Simon Glass
Add the required pre-relocation tags and SDRAM init information for U-Boot. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-rock2-square.dts | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/rk3288-rock2-square.dts b/arch/arm/dts/rk

Re: [U-Boot] [PATCH v4 01/50] dm: clk: Add support for decoding clocks from the device tree

2016-01-21 Thread Simon Glass
On 20 January 2016 at 20:04, Masahiro Yamada wrote: > 2016-01-21 11:43 GMT+09:00 Simon Glass : >> Add a method which can locate a clock for a device, given its index. This >> uses the normal device tree bindings to return the clock device and the >> first argument which is normally used as a perip

Re: [U-Boot] [PATCH 2/4] armv8/ls1043aqds: Add lpuart defconfig

2016-01-21 Thread Simon Glass
Hi, On 19 January 2016 at 22:32, Bin Meng wrote: > Hi Wenbin, > > On Wed, Jan 20, 2016 at 12:29 PM, Wenbin Song wrote: >> Hi: Bin, >> >> Could you tell me which tree your patches have been merged into ? >> > > I believe it will be merged via u-boot-dm, cc Simon to confirm. > >> Regards >> >> We

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 clock to just provide fixed clock rate >> like a crysta

[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 a/drivers/video/bridge/video-bri

  1   2   3   4   >