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

2016-01-13 Thread Ted Chen
This patch adds driver support for the Realtek RTL8152B/RTL8153 USB network adapters. Signed-off-by: Ted Chen [swarren, fixed a few compiler warnings] [swarren, with permission, converted license header to SPDX] [swarren, removed printf() spew during probe()] Signed-off-by: Stephen Warren --- d

Re: [U-Boot] [PATCH v3 09/14] board: Add Microchip PIC32MZ[DA]-Starter-Kit board.

2016-01-13 Thread Purna Chandra Mandal
On 01/13/2016 08:26 PM, Tom Rini wrote: > On Tue, Jan 12, 2016 at 03:48:24PM +0530, Purna Chandra Mandal wrote: > >> This adds support for Microchip PIC32MZ[DA] StarterKit board >> based on a PIC32MZ[DA] family of microcontroller. >> >> Signed-off-by: Purna Chandra Mandal > [snip] >> diff --git a/

Re: [U-Boot] [PATCH v3 06/14] drivers: serial: add driver for Microchip PIC32 UART controller.

2016-01-13 Thread Purna Chandra Mandal
On 01/14/2016 01:39 AM, Simon Glass wrote: > Hi Purna, > > On 12 January 2016 at 03:18, Purna Chandra Mandal > wrote: >> From: Paul Thacker >> >> This adds PIC32 UART controller support based on driver model. >> >> Signed-off-by: Paul Thacker >> Signed-off-by: Purna Chandra Mandal >> >> >> ---

Re: [U-Boot] [PATCH v3 03/14] drivers: clk: Add clock driver for Microchip PIC32 Microcontroller.

2016-01-13 Thread Purna Chandra Mandal
On 01/13/2016 08:25 PM, Tom Rini wrote: > On Tue, Jan 12, 2016 at 03:48:18PM +0530, Purna Chandra Mandal wrote: > >> PIC32 clock module consists of multiple oscillators, PLLs, mutiplexers >> and dividers capable of supplying clock to various controllers >> on or off-chip. > [snip] >> include/dt-b

Re: [U-Boot] [PATCH 30/50] dm: i2c: Allow muxes to be enabled for SPL separately

2016-01-13 Thread Heiko Schocher
Hello Simon, Am 14.01.2016 um 00:25 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 --- drivers/i2c/Makefile | 4 ++-- drivers/i2c/muxes/Kco

Re: [U-Boot] [PATCH v3 08/14] MIPS: Add support for Microchip PIC32MZ[DA] SoC family.

2016-01-13 Thread Purna Chandra Mandal
On 01/13/2016 08:19 PM, Daniel Schwierzeck wrote: > Am Dienstag, den 12.01.2016, 15:48 +0530 schrieb Purna Chandra Mandal: >> Add Microchip PIC32MZ[DA] SoC family support. >> >> Signed-off-by: Purna Chandra Mandal >> >> --- >> >> Changes in v3: >> - drop forcing CONFIG_MIPS_BOOT_* selection in ma

Re: [U-Boot] [PATCH 19/50] rockchip: i2c: Update the driver to use the new clock ID

2016-01-13 Thread Heiko Schocher
Hello Simon, Am 14.01.2016 um 00:25 schrieb Simon Glass: We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass --- drivers/i2c/rk_i2c.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) Thanks! Ack

Re: [U-Boot] [PATCH] image: fix getenv_bootm_size() function

2016-01-13 Thread Masahiro Yamada
Hi Simon, 2016-01-08 12:33 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 17 December 2015 at 22:17, Masahiro Yamada > wrote: >> Currently, this function returns wrong size if "bootm_low" is defined, >> but "bootm_size" is not. >> >> Signed-off-by: Masahiro Yamada >> --- >> >> common/image.c |

Re: [U-Boot] [PATCH v3 06/14] drivers: serial: add driver for Microchip PIC32 UART controller.

2016-01-13 Thread Purna Chandra Mandal
On 01/13/2016 07:33 PM, Daniel Schwierzeck wrote: > Am Mittwoch, den 13.01.2016, 14:49 +0100 schrieb Daniel Schwierzeck: >> Am Dienstag, den 12.01.2016, 15:48 +0530 schrieb Purna Chandra >> Mandal: >>> From: Paul Thacker >>> >>> This adds PIC32 UART controller support based on driver model. >>> >

Re: [U-Boot] [PATCH v3 05/14] drivers: gpio: add driver for Microchip PIC32 GPIO controller.

2016-01-13 Thread Purna Chandra Mandal
On 01/13/2016 07:38 PM, Daniel Schwierzeck wrote: > Am Mittwoch, den 13.01.2016, 14:46 +0100 schrieb Daniel Schwierzeck: >> Am Dienstag, den 12.01.2016, 15:48 +0530 schrieb Purna Chandra >> Mandal: >>> In PIC32 GPIO controller is part of PIC32 pin controller. >>> PIC32 has ten independently progra

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

2016-01-13 Thread Marek Vasut
On Thursday, January 14, 2016 at 06:22:07 AM, Ted Chen wrote: > This patch adds driver support for the Realtek RTL8152B/RTL8153 USB > network adapters. [...] > +static void rtl8152_wait_fifo_empty(struct r8152 *tp) > +{ > + int i; > + u32 ocp_data; > + > + for (i = 0; i < FIFO_EMPTY_T

Re: [U-Boot] [PATCH v3 03/14] drivers: clk: Add clock driver for Microchip PIC32 Microcontroller.

2016-01-13 Thread Purna Chandra Mandal
On 01/13/2016 07:08 PM, Daniel Schwierzeck wrote: > Am Dienstag, den 12.01.2016, 15:48 +0530 schrieb Purna Chandra Mandal: >> PIC32 clock module consists of multiple oscillators, PLLs, >> mutiplexers >> and dividers capable of supplying clock to various controllers >> on or off-chip. >> >> Signed-

Re: [U-Boot] [PATCH v3 01/14] MIPS: initialize board_init_f() argument to zero.

2016-01-13 Thread Purna Chandra Mandal
On 01/12/2016 05:59 PM, Daniel Schwierzeck wrote: > 2016-01-12 11:18 GMT+01:00 Purna Chandra Mandal : >> Signed-off-by: Purna Chandra Mandal >> --- >> >> Changes in v3: None >> Changes in v2: None >> >> arch/mips/cpu/start.S | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/arch/mips

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

2016-01-13 Thread Marek Vasut
On Thursday, January 14, 2016 at 05:37:18 AM, Ted Chen wrote: > This patch adds driver support for the Realtek RTL8152B/RTL8153 USB > network adapters. > > Signed-off-by: Ted Chen > [swarren, fixed a few compiler warnings] > [swarren, with permission, converted license header to SPDX] > [swarren,

Re: [U-Boot] [PATCH 1/2] arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL

2016-01-13 Thread Marek Vasut
On Thursday, January 14, 2016 at 03:52:27 AM, Eric Nelson wrote: > On 01/13/2016 07:50 PM, Marek Vasut wrote: > > On Thursday, January 14, 2016 at 03:37:09 AM, Eric Nelson wrote: > >> Hi Marek, > > > > Hi! > > > >> On 01/13/2016 07:10 PM, Marek Vasut wrote: > >>> On Tuesday, December 22, 2015 at

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

2016-01-13 Thread Qianyu Gong
> -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; > wenbin.s...@freescale.com; Mingkai Hu > Subject: Re: [U-Boot] [Patch V3 3/3] armv8/ls1

[U-Boot] [PATCH] MAINTAINERS: Update Marvell custodianship

2016-01-13 Thread Stefan Roese
Add myself as custodian for the Marvell git repository. Additionally, add the mach-mvebu directory to the list of files / directories. And add Armada XP & Armada 38x to the title (not only kirkwood). Signed-off-by: Stefan Roese Cc: Prafulla Wadaskar Cc: Luka Perkov Cc: Tom Rini --- MAINTAINER

[U-Boot] [PATCH v2 7/9] serial: lpuart: Add driver model serial support

2016-01-13 Thread Bin Meng
This adds driver model support to lpuart serial driver. Signed-off-by: Bin Meng --- Changes in v2: - Split to use two separate U_BOOT_DRIVER() doc/driver-model/serial-howto.txt | 1 - drivers/serial/serial_lpuart.c| 167 ++ 2 files changed, 167 insert

[U-Boot] [PATCH v2 4/9] serial: lpuart: Fix several cosmetic issues

2016-01-13 Thread Bin Meng
Clean up the driver codes a little bit, by: - Use tab instead of space in the macro defines - Use single line comment whenever possible - Fix insertion of blank lines Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None drivers/serial/serial_lpuart.c | 35 +++--

[U-Boot] [PATCH v2 3/9] serial: lpuart: Move CONFIG_FSL_LPUART to Kconfig

2016-01-13 Thread Bin Meng
LPUART is seen on Freescale VF610 and QorIQ Layerscape devices. Create a Kconfig option and move it to defconfig for all boards that have this serial driver. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None configs/colibri_vf_defconfig | 1 + configs/co

[U-Boot] [PATCH v2 8/9] arm: ls1021atwr: Split off board device tree

2016-01-13 Thread Bin Meng
Move /chosen node out of the board device tree. Signed-off-by: Bin Meng --- Changes in v2: - New patch to split off board device tree arch/arm/dts/Makefile | 2 +- arch/arm/dts/ls1021a-twr-duart.dts | 16 arch/arm/dts/{ls1021a-twr

[U-Boot] [PATCH v2 6/9] serial: lpuart: Prepare the driver for DM conversion

2016-01-13 Thread Bin Meng
Create internal routines which take lpuart's register base as a parameter, in preparation for driver model conversion. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - Add missing 'base' parameter in the call to _lpuart_serial_tstc() - Change internal routines' parameter '

[U-Boot] [PATCH v2 9/9] arm: ls1021atwr: Enable driver model lpuart serial driver

2016-01-13 Thread Bin Meng
Convert ls1021atwr_nor_lpuart to driver model support. As a start, enable lpuart serial port driver. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - Create a ls1021a-twr-lpuart.dts for ls1021atwr_nor_lpuart_defconfig arch/arm/dts/Makefile | 2 +- arch

[U-Boot] [PATCH v2 1/9] Revert "fdt_support: Add multi-serial support for stdout fixup"

2016-01-13 Thread Bin Meng
This reverts commit 3e303f748cf57fb23e8ec95ab7eac0074be50e2b. The fix up in the /aliases node does not work under the following scenarios: - Not every non-DM serial driver was written to have a driver name that conforms the format of "serial%d" or "eserial%d". - With driver model serial, the std

[U-Boot] [PATCH v2 5/9] serial: lpuart: Call local version of setbrg and putc directly

2016-01-13 Thread Bin Meng
There is no need to go through serial driver subsystem, instead call the driver's setbrg and putc routines directly. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None drivers/serial/serial_lpuart.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --gi

[U-Boot] [PATCH v2 0/9] arm: ls1021atwr: Convert to driver model and enable serial support

2016-01-13 Thread Bin Meng
This series converts Freescale LS1021A-TWR board to driver model. - Enable ns16550 serial driver on ls1021atwr_nor configuration - Convert LPUART serial driver to driver model - Enable LPUART serial driver on ls1021atwr_nor_lpuart configuration Changes in v2: - Rewrite the commit message usi

[U-Boot] [PATCH v2 2/9] arm: ls1021atwr: Convert to driver model and enable serial support

2016-01-13 Thread Bin Meng
Convert ls1021atwr_nor to driver model support. As a start, enable ns16550 serial port driver. Signed-off-by: Bin Meng --- Changes in v2: None arch/arm/dts/ls1021a-twr.dts | 4 arch/arm/dts/ls1021a.dtsi| 4 configs/ls1021atwr_nor_defconfig | 4 include/configs/ls1021

Re: [U-Boot] [PATCH 1/2] arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL

2016-01-13 Thread Eric Nelson
On 01/13/2016 07:50 PM, Marek Vasut wrote: > On Thursday, January 14, 2016 at 03:37:09 AM, Eric Nelson wrote: >> Hi Marek, > > Hi! > >> On 01/13/2016 07:10 PM, Marek Vasut wrote: >>> On Tuesday, December 22, 2015 at 04:37:12 PM, Eric Nelson wrote: Hi Marek, >>> >>> Hi Eric, >>> >>> [..] >>>

Re: [U-Boot] [PATCH 1/2] arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL

2016-01-13 Thread Marek Vasut
On Thursday, January 14, 2016 at 03:37:09 AM, Eric Nelson wrote: > Hi Marek, Hi! > On 01/13/2016 07:10 PM, Marek Vasut wrote: > > On Tuesday, December 22, 2015 at 04:37:12 PM, Eric Nelson wrote: > >> Hi Marek, > > > > Hi Eric, > > > > [..] > > > This should also have parameters of mx6_ddr

Re: [U-Boot] [PATCH 1/2] arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL

2016-01-13 Thread Eric Nelson
Hi Marek, On 01/13/2016 07:10 PM, Marek Vasut wrote: > On Tuesday, December 22, 2015 at 04:37:12 PM, Eric Nelson wrote: >> Hi Marek, > > Hi Eric, > > [..] > This should also have parameters of mx6_ddr_sysinfo (input) and mx6_mmdc_calibration (output), at least for sysinfo->dsize >>> >

Re: [U-Boot] [PATCH] imx: mx6/7 define CONFIG_SYS_VSNPRINTF

2016-01-13 Thread Peter Robinson
On Wed, Jan 13, 2016 at 7:57 PM, Tom Rini wrote: > On Tue, Jan 12, 2016 at 05:45:24PM +0800, Peng Fan wrote: > >> From: Peng Fan >> >> Define CONFIG_SYS_VSNPRINTF to use snprintf. If not define >> CONFIG_SYS_VSNPRINTF, snprintf is sprintf. >> >> Report by Coverity: >> pass string init_val of unkn

Re: [U-Boot] [PATCH 7/8] serial: lpuart: Add driver model serial support

2016-01-13 Thread Bin Meng
Hi Stefan, On Thu, Jan 14, 2016 at 3:20 AM, Stefan Agner wrote: > On 2016-01-13 00:19, Bin Meng wrote: >> +Simon >> >> Hi Bhuvan, >> >> On Wed, Jan 13, 2016 at 4:07 PM, Bhuvanchandra DV >> wrote: >>> Hi Bin, >>> >>> On 01/13/2016 11:43 AM, Bin Meng wrote: Hi Bhuvan, On Wed, J

[U-Boot] [PATCH v5 4/6] rockchip: kylin: Enable boot with android boot image

2016-01-13 Thread Jeffy Chen
The android kernel is using appended dtb by default, and store ramdisk right after kernel & dtb. The u-boot could not touch appended dtb, so we needs to pass params to kernel through atags. And also enable kernel's CONFIG_ARM_ATAG_DTB_COMPAT, which would allowed kernel to merge atags into fdt befo

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

2016-01-13 Thread Jeffy Chen
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 Changes in v4: None Changes in v3: None Changes in v2: Add comments. ar

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

2016-01-13 Thread Jeffy Chen
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. Changes in v4: None Changes in v3: None Changes in v2: None include/configs/kylin_rk3036.h | 12 1 file changed, 1

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

2016-01-13 Thread Jeffy Chen
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 --- Changes in v5: Change "grf" to local var. Changes in v4: Remove unused reboot mode definitions. Changes in v3: Use rockchip

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

2016-01-13 Thread Jeffy Chen
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/pinctrl/rockchip/pinctrl_rk3036.c | 8 1 file changed, 8 insert

[U-Boot] [PATCH v5 0/6] rockchip: kylin: Boot with android boot image

2016-01-13 Thread Jeffy Chen
We are porting android to kylin board now. This series could let it boot up with android's boot image. Changes in v5: Remove dup CONFIG_SYS_BOOT_RAMDISK_HIGH. Change commit message. Change "grf" to local var. New patch. Changes in v4: Remove unused reboot mode definitions. Changes in v3: Use roc

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

2016-01-13 Thread Jeffy Chen
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 in v3: None Changes in v2: None include/configs/kylin_rk3036.h | 29

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

2016-01-13 Thread Jeffy Chen
Hi Tom, On 2016-1-13 23:28, Tom Rini wrote: On Wed, Jan 13, 2016 at 04:53:19PM +0800, Jeffy Chen wrote: The android kernel is using appended dtb by default, and store ramdisk right after kernel & dtb. So we needs to relocate ramdisk, and use atags to pass params. Signed-off-by: Jeffy Chen Ac

Re: [U-Boot] [PATCH 1/4 v4] spi: Add Cadence QSPI DM driver used by SoCFPGA

2016-01-13 Thread Marek Vasut
On Monday, December 08, 2014 at 09:14:29 AM, Stefan Roese wrote: > On 06.12.2014 13:56, Marek Vasut wrote: > > On Saturday, November 08, 2014 at 01:18:31 PM, Stefan Roese wrote: > >> On 07.11.2014 20:56, Dinh Nguyen wrote: > >>> +CC: Graham Moore > >>> > >>> On 11/07/2014 09:26 AM, Stefan Roese wr

Re: [U-Boot] [PATCH 0/8] arm: ls1021atwr: Convert to driver model and enable serial support

2016-01-13 Thread Bin Meng
On Thu, Jan 14, 2016 at 3:03 AM, Stefan Agner wrote: > On 2016-01-07 01:22, Bin Meng wrote: >> Hi Alison, >> >> On Thu, Jan 7, 2016 at 2:19 PM, Huan Wang wrote: >>> Hi, Bin, >>> On Thu, Jan 7, 2016 at 2:01 PM, Huan Wang wrote: > Hi, Bin, > >> On Wed, Jan 6, 2016 at 1:31 PM, H

Re: [U-Boot] [PATCH 1/2] arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL

2016-01-13 Thread Marek Vasut
On Tuesday, December 22, 2015 at 04:37:12 PM, Eric Nelson wrote: > Hi Marek, Hi Eric, [..] > >> This should also have parameters of mx6_ddr_sysinfo (input) and > >> mx6_mmdc_calibration (output), at least for sysinfo->dsize > > > > Would it be possible for you to send a subsequent patch(set)? I

Re: [U-Boot] [PATCH 07/10] mtd: nand: s3c: Add missing correction and select_chip functions

2016-01-13 Thread Marek Vasut
On Tuesday, October 28, 2014 at 11:45:08 PM, Scott Wood wrote: > On Sat, 2014-10-11 at 18:42 +0200, Marek Vasut wrote: > > + /* sometimes people do not think about using the ECC, so check > > +* to see if we have an 0xff,0xff,0xff read ECC and then ignore > > +* the error, on the assumpti

Re: [U-Boot] [PATCH 6/8] serial: lpuart: Prepare the driver for DM conversion

2016-01-13 Thread Bin Meng
Hi Stefan, On Thu, Jan 14, 2016 at 2:51 AM, Stefan Agner wrote: > On 2015-12-31 00:53, Bin Meng wrote: >> Create internal routines which take lpuart's register base as >> a parameter, in preparation for driver model conversion. >> >> Signed-off-by: Bin Meng >> --- >> >> drivers/serial/serial_lp

Re: [U-Boot] [PATCH v4 1/6] common/image-fdt.c: Make boot_get_fdt() perform a check for Android images

2016-01-13 Thread Jeffy Chen
Hi Tom, On 2016-1-13 23:21, Tom Rini wrote: On Wed, Jan 13, 2016 at 04:53:15PM +0800, Jeffy Chen wrote: Android images don't have a fdt. Signed-off-by: Jeffy Chen Acked-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None common/image-fdt.c | 4 1 file c

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

2016-01-13 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

Re: [U-Boot] [PATCH] Don't wrap to negative after 2G sectors

2016-01-13 Thread Stefan Monnier
>> Signed-off-by: Stefan Monnier > Sorry for the delay: > Reviewed-by: Tom Rini Great, thank you! Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] imx: mx6/7 define CONFIG_SYS_VSNPRINTF

2016-01-13 Thread Peng Fan
Hi Tom, On Wed, Jan 13, 2016 at 02:57:00PM -0500, Tom Rini wrote: >On Tue, Jan 12, 2016 at 05:45:24PM +0800, Peng Fan wrote: > >> From: Peng Fan >> >> Define CONFIG_SYS_VSNPRINTF to use snprintf. If not define >> CONFIG_SYS_VSNPRINTF, snprintf is sprintf. >> >> Report by Coverity: >> pass strin

Re: [U-Boot] [PATCH 16/17] arm: ls1021atwr: Disable CONFIG_E1000 temporarily

2016-01-13 Thread Bin Meng
Hi York, On Thu, Jan 14, 2016 at 12:07 AM, york sun wrote: > On 01/12/2016 10:21 PM, Bin Meng wrote: >> Hi York, >> >> On Wed, Jan 13, 2016 at 1:52 AM, York Sun wrote: >>> >>> >>> On 01/11/2016 10:38 PM, Bin Meng wrote: Before we switch to use driver model ethernet support, disable CON

[U-Boot] [PATCH] igep00x0: Falcon mode

2016-01-13 Thread Ladislav Michl
Implement spl_start_uboot to let Falcon mode work. Also as board comes either with 256 or 512MB of memory, fixup fdt before jumping to kernel. ATAG support for doing the same is left as an excercise for readers loving legacy stuff. Signed-off-by: Ladislav Michl --- board/isee/igep00x0/igep00x0.c

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

2016-01-13 Thread Scott Wood
On Tue, 2016-01-12 at 03:14 +, Qianyu Gong wrote: > > -Original Message- > > From: Scott Wood [mailto:o...@buserror.net] > > Sent: Tuesday, January 12, 2016 1:47 AM > > To: Qianyu Gong ; u-boot@lists.denx.de > > Cc: b07...@freescale.com; b48...@freescale.com; > > wenbin.s...@freescale.c

Re: [U-Boot] [PATCH] usb: add clock support for generic EHCI

2016-01-13 Thread Marek Vasut
On Wednesday, January 13, 2016 at 06:08:34 PM, Masahiro Yamada wrote: > Hi Marek, Hi! > 2016-01-13 23:44 GMT+09:00 Marek Vasut : > >> static int ehci_usb_probe(struct udevice *dev) > >> { > >> > >> + struct generic_ehci *priv = dev_get_priv(dev); > >> > >> struct ehci_hccr *hccr = (

[U-Boot] [PATCH 40/50] rockchip: spi: Remember the last speed to avoid re-setting it

2016-01-13 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 --- drivers/spi/rk_spi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/spi/rk_spi.c b/dr

[U-Boot] [PATCH 17/50] rockchip: clk: Add a function to get a peripheral clock rate

2016-01-13 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 --- drivers/clk/clk_rk3288.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/clk/clk_rk3288.c b/drivers/clk/clk_rk3288.c index 0b

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

2016-01-13 Thread Simon Glass
Turn on the EC and enable the keyboard. Signed-off-by: Simon Glass --- arch/arm/dts/rk3288-veyron-chromebook.dtsi | 4 configs/chromebook_jerry_defconfig | 8 include/configs/chromebook_jerry.h | 7 +++ include/configs/firefly-rk3288.h | 2 ++ include

[U-Boot] [PATCH 47/50] rockchip: spi: Implement the delays

2016-01-13 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 --- drivers/spi/rk_spi.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --gi

[U-Boot] [PATCH 27/50] rockchip: jerry: Drop unused options

2016-01-13 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 --- configs/chromebook_jerry_defconfig | 5 - include/configs/chromebook_jerry.h | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff

[U-Boot] [PATCH 44/50] rockchip: pinctrl: Implement the get_gpio_mux() method

2016-01-13 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 --- drivers/pinctrl/rockchip/pinctrl_rk3288.c | 68 +++ 1 file changed, 52 insertions(+), 16 deletions(-) diff --git a/drivers/pinct

[U-Boot] [PATCH 18/50] rockchip: clock: Add a function to find a clock by ID

2016-01-13 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 --- arch/arm/include/asm/arch-rockchip/clock.h | 12 drivers/clk/clk_rk3288.c

[U-Boot] [PATCH 23/50] rockchip: pinctrl: Add a full pinctrl driver

2016-01-13 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 --- drivers/pinctrl/rockchip/pinctrl_rk3288.c | 230 +- 1 file changed, 229 insertions(+), 1 deletion(-) d

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

2016-01-13 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 --- drivers/spi/rk_spi.c | 28 ++-- 1 file change

[U-Boot] [PATCH 42/50] rockchip: clk: Make rkclk_get_clk() SoC-specific

2016-01-13 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 36/50] dm: power: Allow regulators to not implement all operations

2016-01-13 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 --- drivers/power/regulator/regulator-uclass.c | 2 ++ 1 file changed, 2 insertions(+) dif

[U-Boot] [PATCH 25/50] rockchip: jerry: Enable the RK808 PMIC and regulator

2016-01-13 Thread Simon Glass
Enable this PMIC and regulator, which is used on jerry. Signed-off-by: Simon Glass --- configs/chromebook_jerry_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/chromebook_jerry_defconfig b/configs/chromebook_jerry_defconfig index 1e5edc9..a0af6ec 100644 --- a/configs/ch

[U-Boot] [PATCH 29/50] cros_ec: Disable the Chrome OS EC in SPL

2016-01-13 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 --- drivers/misc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index fc8eb6f..cd4846b 100644 --- a/drivers/misc/M

[U-Boot] [PATCH 26/50] rockchip: Disable simple-bus in SPL for firefly-rk3288, jerry

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

[U-Boot] [PATCH 20/50] rockchip: spi: Update the driver to use the new clock ID

2016-01-13 Thread Simon Glass
We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass --- drivers/spi/rk_spi.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index 5e0c6ad..aaf6040 100

[U-Boot] [PATCH 43/50] rockchip: pinctrl: Reduce the size for SPL

2016-01-13 Thread Simon Glass
This file has many features that are not needed by SPL. Use #ifdef to remove the unused features and reduce the code size. Signed-off-by: Simon Glass --- drivers/pinctrl/rockchip/pinctrl_rk3288.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/p

[U-Boot] [PATCH 39/50] rockchip: reset: Use the rk_clr/setreg() interface

2016-01-13 Thread Simon Glass
Use this function in preference to the macro. Signed-off-by: Simon Glass --- 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/mach-rockchip/rk3288/reset_rk3288.c index 7a

[U-Boot] [PATCH 38/50] rockchip: sdram: Use the rk_clr/setreg() interface

2016-01-13 Thread Simon Glass
Use this function in preference to the macro. Signed-off-by: Simon Glass --- 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/mach-rockchip/rk3288/sdram_rk3288.c index

[U-Boot] [PATCH 22/50] rockchip: mmc: Update the driver to use the new clock ID

2016-01-13 Thread Simon Glass
We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass --- drivers/clk/clk_rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk_rk3288.c b/drivers/clk/clk_rk3288.c index d507b48..d6d2896 100644 --- a/drivers/cl

[U-Boot] [PATCH 41/50] rockchip: spi: Correct the bus init code

2016-01-13 Thread Simon Glass
Two of the init values are created locally so cannot be out of range. The masking is unnecessary and in one case is incorrect. Fix it. Signed-off-by: Simon Glass --- drivers/spi/rk_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/rk_spi.c b/drivers/spi/r

[U-Boot] [PATCH 48/50] rockchip: spi: Correct chip-enable code

2016-01-13 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 --- drivers/spi/rk_spi.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(

[U-Boot] [PATCH 37/50] dm: clk: Add a simple version of clk_get_by_index()

2016-01-13 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 --- drivers/clk/clk-uclass.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/d

[U-Boot] [PATCH 19/50] rockchip: i2c: Update the driver to use the new clock ID

2016-01-13 Thread Simon Glass
We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass --- drivers/i2c/rk_i2c.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c index ebdba35..403

[U-Boot] [PATCH 31/50] spi: Correct device tree usage in spi_flash_decode_fdt()

2016-01-13 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 45/50] rockchip: gpio: Read the GPIO value correctly

2016-01-13 Thread Simon Glass
This function should return 0 or 1, not a mask. Fix it. Signed-off-by: Simon Glass --- 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 100644 --- a/drivers/gpio/rk_gpio.c +++ b/driv

[U-Boot] [PATCH 35/50] dm: power: Tidy up debugging output and return values

2016-01-13 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 --- drivers/power/pmic/pmic-uclass.c | 11

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

2016-01-13 Thread 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 peripheral ID in U-Boot. Signed-off-by: Simon Glass --- drivers/clk/clk-uclass.c | 28

[U-Boot] [PATCH 24/50] rockchip: Move firefly and jerry to use the full pinctrl

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

[U-Boot] [PATCH 14/50] rockchip: jerry: Disable pmic-int-1 setup to avoid a hang

2016-01-13 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 --- arch/arm/dts/rk3288-veyron.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3288-veyron.dtsi b/arch/arm/dts/rk3288-ve

[U-Boot] [PATCH 10/50] rockchip: Convert the PMU IOMUX registers into an array

2016-01-13 Thread Simon Glass
This is easier to deal with when using generic code since it allows us to use a register index instead of naming each register. Adjust it, adding an enum to improve readability. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-rockchip/pmu_rk3288.h | 12 drivers/pinctrl/ro

[U-Boot] [PATCH 30/50] dm: i2c: Allow muxes to be enabled for SPL separately

2016-01-13 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 --- drivers/i2c/Makefile | 4 ++-- drivers/i2c/muxes/Kconfig | 9 + drivers/i2c/muxes/Makefile | 2 +- 3 file

[U-Boot] [PATCH 34/50] dm: core: Export uclass_find_device_by_of_offset()

2016-01-13 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 --- drivers/core/uclass.c| 4 ++-- include/dm/uclass-internal.h | 16 2 files changed, 18 inse

[U-Boot] [PATCH 21/50] rockchip: spi: Avoid setting the pinctrl twice

2016-01-13 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 --- drivers/spi/rk_spi.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) d

[U-Boot] [PATCH 46/50] rockchip: gpio: Implement the get_function() method

2016-01-13 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 --- drivers/gpio/rk_gpio.c | 40 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a

[U-Boot] [PATCH 16/50] rockchip: clock: Rename the general clock variable to gclk_rate

2016-01-13 Thread Simon Glass
The current name is confusing and a bit verbose. Rename it. Signed-off-by: Simon Glass --- drivers/clk/clk_rk3288.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/clk/clk_rk3288.c b/drivers/clk/clk_rk3288.c index 7244d52..0bb674d 100644 --

[U-Boot] [PATCH 15/50] rockchip: Use a separate clock ID for clocks

2016-01-13 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 08/50] dm: Add a power sequencing uclass

2016-01-13 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 --- drivers/misc/Kconfig | 18 ++ drivers/misc/Makefile| 1 + drivers/misc/pwrseq-ucla

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

2016-01-13 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 32/50] dm: power: Allow regulators to be omitted from SPL

2016-01-13 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 --- drivers/power/pmic/Kconfig | 21 + drivers/power/pmic/pmic-uc

[U-Boot] [PATCH 28/50] gpio: Allow 's' as an abbreviation for 'status'

2016-01-13 Thread Simon Glass
The 'gpio' command allows abbreviations for most subcommands. Allow them for 'status' also. Signed-off-by: Simon Glass --- 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 65d6df4..bb0f63a 100644 --- a/common/cmd_g

[U-Boot] [PATCH 11/50] rockchip: mmc: Use a pwrseq device if available

2016-01-13 Thread Simon Glass
Use the pwrseq uclass to find a suitable power sequence for the MMC device. If this is enabled in the device tree, we will pick it up automatically. Signed-off-by: Simon Glass --- drivers/mmc/rockchip_dw_mmc.c | 47 +++ 1 file changed, 47 insertions(+) d

[U-Boot] [PATCH 12/50] rockchip: Correct the defconfig order

2016-01-13 Thread Simon Glass
This has got out of sequence somehow. Fix it. Signed-off-by: Simon Glass --- configs/chromebook_jerry_defconfig | 6 +++--- configs/firefly-rk3288_defconfig | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/chromebook_jerry_defconfig b/configs/chromebook_jerry_

[U-Boot] [PATCH 07/50] power: Add support for RK808 regulators

2016-01-13 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 --- drivers/power/regulator/Kconfig | 9 ++ drivers/power/regulator/Makefile | 1 + drivers/power/regulator/rk808.c | 301 ++

[U-Boot] [PATCH 09/50] rockchip: Avoid using MMC code when not booting from MMC

2016-01-13 Thread Simon Glass
This saves some code space in SPL which is useful on jerry. Signed-off-by: Simon Glass --- 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 b/arch/arm/mach-rockchip/rk3288-board-spl.c index 8199cad..b2c572

[U-Boot] [PATCH 06/50] power: Add base support for the RK808 PMIC

2016-01-13 Thread Simon Glass
This Rockchip PMIC provides features suitable for battery-powered applications. It is commonly used with Rockchip SoCs. Add a driver which provides register access. The regulator driver will use this. Signed-off-by: Simon Glass --- drivers/power/pmic/Kconfig | 9 + drivers/power/pmic/Mak

[U-Boot] [PATCH 13/50] rockchip: Use pwrseq for MMC start-up on jerry

2016-01-13 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 --- arch/arm/dts/rk3288-veyron.dtsi| 15 +++ configs/chromebook_jerry_defconfig | 1 + include/configs/rk3288_common.h

[U-Boot] [PATCH 03/50] dm: pinctrl: Add a function to parse PIN_CONFIG flags

2016-01-13 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 --- drivers/pinctrl/pinctrl-uclass.c | 12 include/dm/pinctrl.h | 1

  1   2   3   >