Re: [U-Boot] [PATCH] tools/genboardscfg.py: Make 'Supported' as known status

2017-05-10 Thread Tom Rini
On Wed, May 10, 2017 at 04:19:52PM +0530, Lokesh Vutla wrote: > As per MAINTAINERS[1] file description, 'Supported' is > a valid status for a board. But buildman thinks 'Maintained' > is the only valid state and complains about boards with 'Supported' > status. Update buildman to accept

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: enable time command

2017-05-10 Thread Tom Rini
On Wed, May 10, 2017 at 04:27:07PM +0530, Sekhar Nori wrote: > Enable time command for OMAP-L138 LCDK board. > > The patch was generated using savedefconfig > method. > > Signed-off-by: Sekhar Nori Reviewed-by: Tom Rini ... but do you perhaps want to be

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: enable time command

2017-05-10 Thread Tom Rini
On Wed, May 10, 2017 at 04:44:45PM +0530, Lokesh Vutla wrote: > > > On Wednesday 10 May 2017 04:27 PM, Sekhar Nori wrote: > > Enable time command for OMAP-L138 LCDK board. > > > > The patch was generated using savedefconfig > > method. > > > > Signed-off-by: Sekhar Nori > >

Re: [U-Boot] [PATCH v2 1/2] env_mmc: configure environment offsets via device tree

2017-05-10 Thread Jaehoon Chung
Hi, On 04/25/2017 04:39 PM, Philipp Tomsich wrote: > This introduces the ability to override the environment offets from the > device tree by setting the following nodes in '/config': > 'u-boot,mmc-env-offset' - overrides CONFIG_ENV_OFFSET > 'u-boot,mmc-env-offset-redundant' >

Re: [U-Boot] [PATCHv4 3/3] ARM64: poplar: hi3798cv200: u-boot support for Poplar 96Boards

2017-05-10 Thread Jorge Ramirez
On 05/10/2017 04:30 AM, Tom Rini wrote: hey Tom, I am not sure how to move this forward really so let me clarify where I think we stand: 1. The linux kernel does not need the clock property in the uart nodes (only u-boot does: serial_pl01x.c needs fixing). 2. ehci is not present in the linux

Re: [U-Boot] [PATCH V2 2/4] dm: mmc: fsl_esdhc: handle vqmmc supply

2017-05-10 Thread Jaehoon Chung
On 05/08/2017 04:02 PM, Peng Fan wrote: > Handle vqmmc supply. Some boards have a fixed I/O voltage > at 1.8V for emmc, so the usdhc also needs to be configured > as 1.8V by setting VSELECT bit. The vs18_enable is the one > that used to checking whether setting VSELECT or not in > the driver. So

[U-Boot] [PATCH] tools/genboardscfg.py: Make 'Supported' as known status

2017-05-10 Thread Lokesh Vutla
As per MAINTAINERS[1] file description, 'Supported' is a valid status for a board. But buildman thinks 'Maintained' is the only valid state and complains about boards with 'Supported' status. Update buildman to accept 'Supported' as valid state. [1]

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: enable time command

2017-05-10 Thread Lokesh Vutla
On Wednesday 10 May 2017 04:56 PM, Tom Rini wrote: > On Wed, May 10, 2017 at 04:44:45PM +0530, Lokesh Vutla wrote: >> >> >> On Wednesday 10 May 2017 04:27 PM, Sekhar Nori wrote: >>> Enable time command for OMAP-L138 LCDK board. >>> >>> The patch was generated using savedefconfig >>> method. >>>

Re: [U-Boot] [PATCH 1/7] arm: socfpga: Remove unused passing parameter of socfpga_bridges_reset

2017-05-10 Thread Chee, Tien Fong
On Sel, 2017-05-09 at 09:56 +0200, Marek Vasut wrote: > On 05/09/2017 06:23 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-05-08 at 11:52 +0200, Marek Vasut wrote: > > > > > > On 05/08/2017 06:17 AM, Chee, Tien Fong wrote: > > > > > > > > > > > > On Jum, 2017-05-05 at 13:09 +0200, Marek Vasut

Re: [U-Boot] [PATCH v4 04/12] usb: phy: Add STi USB2 PHY

2017-05-10 Thread Marek Vasut
On 05/09/2017 02:16 PM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > This is the generic phy driver for the picoPHY ports > used by USB2/1.1 controllers. It is found on STiH407 SoC > family from STMicroelectronics. > > Signed-off-by: Patrice Chotard

Re: [U-Boot] [PATCH v4 06/12] usb: ohci: Add STi ohci support

2017-05-10 Thread Marek Vasut
On 05/09/2017 02:16 PM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Add support for on-chip ohci controller available > on STMicrolectronics SoCs. > Ohci support will be then available on both type A > USB 2.0 connectors. > > Signed-off-by: Patrice Chotard

Re: [U-Boot] [PATCH v4 05/12] usb: ehci: Add STi ehci support

2017-05-10 Thread Marek Vasut
On 05/09/2017 02:16 PM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Add support for on-chip ehci controller available > on STMicrolectronics SoCs. > ehci support will be then available on both type A > USB 2.0 connectors. > > Signed-off-by: Patrice Chotard

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: enable time command

2017-05-10 Thread Sekhar Nori
On Wednesday 10 May 2017 04:56 PM, Tom Rini wrote: > On Wed, May 10, 2017 at 04:44:45PM +0530, Lokesh Vutla wrote: >> >> >> On Wednesday 10 May 2017 04:27 PM, Sekhar Nori wrote: >>> Enable time command for OMAP-L138 LCDK board. >>> >>> The patch was generated using savedefconfig >>> method. >>>

[U-Boot] NS16550 Baud Rates on OMAP3

2017-05-10 Thread Adam Ford
Does anyone have any experience running the baud rate with the NS16550 serial driver at high rates (like 921600) I know someone who is having success with this rate in Linux but not U-Boot (from 2011). It looks like the calc_divisor was changed to use DIV_ROUND_CLOSEST a while ago, but the

[U-Boot] [PATCH] davinci: omapl138_lcdk: enable time command

2017-05-10 Thread Sekhar Nori
Enable time command for OMAP-L138 LCDK board. The patch was generated using savedefconfig method. Signed-off-by: Sekhar Nori --- configs/omapl138_lcdk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig

Re: [U-Boot] [PATCH] davinci: omapl138_lcdk: enable time command

2017-05-10 Thread Lokesh Vutla
On Wednesday 10 May 2017 04:27 PM, Sekhar Nori wrote: > Enable time command for OMAP-L138 LCDK board. > > The patch was generated using savedefconfig > method. > > Signed-off-by: Sekhar Nori Instead of enabling each command like this, I was about to ask to include

[U-Boot] [PATCH] ARM: uniphier: add usbupdate command

2017-05-10 Thread Masahiro Yamada
This script command will be useful to update boot images in the USB storage. Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index

Re: [U-Boot] [PATCH] mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD

2017-05-10 Thread Jaehoon Chung
Hi Wenyou, On 05/10/2017 10:19 AM, Wenyou Yang wrote: > To fix the timeout of sending the write command, enable the quirk > SDHCI_QUIRK_WAIT_SEND_CMD. This patch is for fixing timeout error, doesn't need to set quirk into atmel_sdhci_init()? Best Regards, Jaehoon Chung > > Signed-off-by:

Re: [U-Boot] [PATCH v5 10/14] usb: extend generic EHCI with PHY

2017-05-10 Thread Marek Vasut
On 05/10/2017 06:09 PM, patrice.chot...@st.com wrote: > From: Patrice Chotard Commit message missing. You should also break this patchset up into smaller pieces. > Signed-off-by: Patrice Chotard > --- > > v5: _ add support of new generic PHY

Re: [U-Boot] [PATCH v5 12/14] usb: extend generic OHCI with clock, reset and phy

2017-05-10 Thread Marek Vasut
On 05/10/2017 06:09 PM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Make this driver more generic as echi-generic EHCI , although the typo is kinda funny . > Signed-off-by: Patrice Chotard > --- > > v5: _ add clock, reset and

[U-Boot] [PATCH] pinctrl: imx: fix memory leak

2017-05-10 Thread Peng Fan
Each time set_state is called, a new piece memory will be allocated for pin_data, but not freed, this will incur memory leak. When error, the devm API could not free memory automatically. So need call devm_kfree when error. Issue reported by Coverity Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH] mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD

2017-05-10 Thread Yang, Wenyou
Hi Jaehoon, On 2017/5/10 19:43, Jaehoon Chung wrote: Hi Wenyou, On 05/10/2017 10:19 AM, Wenyou Yang wrote: To fix the timeout of sending the write command, enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD. This patch is for fixing timeout error, doesn't need to set quirk into atmel_sdhci_init()?

[U-Boot] [U-boot][USB]]USB2.0 device timeout issue.

2017-05-10 Thread Terry Zhou
+ Marek Vasut Best Regards, Terry From: Terry Zhou Sent: 2017年5月10日 15:10 To: u-boot@lists.denx.de Cc: Wilson Ding ; 'Stefan Roese' ; 'Simon Glass' Subject: USB2.0 device timeout issue. Hi all, This is Terry from Marvell BSP team in

Re: [U-Boot] [PATCH v5 05/14] usb: xhci: Add STi xhci support

2017-05-10 Thread Marek Vasut
On 05/10/2017 06:09 PM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Add support for on-chip DWC3 controller available > on STMicrolectronics STiH407 family SoCs. > On B2260 board, the type AB USB connector is managed > by a DWC3 IP. As USB3 signals are not

[U-Boot] [PATCH v2] mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD

2017-05-10 Thread Wenyou Yang
To fix the timeout of sending the write command, enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD. Signed-off-by: Wenyou Yang --- Changes in v2: - Add missed this quirk in atmel_sdhci_init(). drivers/mmc/atmel_sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [U-Boot] [PATCH v2 1/9] dm: Use dm.h header when driver mode is used

2017-05-10 Thread Masahiro Yamada
Hi Simon, 2017-05-11 6:43 GMT+09:00 Tom Rini : > On Mon, May 01, 2017 at 09:18:44AM -0600, Simon Glass wrote: > >> This header includes things that are needed to make driver build. Adjust >> existing users to include that always, even if other dm/ includes are >> present >>

Re: [U-Boot] [PATCH v2 8/9] dm: core: Add ofnode to represent device tree nodes

2017-05-10 Thread Masahiro Yamada
2017-05-02 0:18 GMT+09:00 Simon Glass : > diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h > new file mode 100644 > index 00..f952c989d2 > --- /dev/null > +++ b/include/dm/ofnode.h > @@ -0,0 +1,100 @@ > +/* > + * Copyright (c) 2017 Google, Inc > + * Written by

Re: [U-Boot] [PATCH v2] mmc: sdhci-cadence: import updates from Linux 4.12

2017-05-10 Thread Jaehoon Chung
Hi Masahiro, On 05/09/2017 03:52 PM, Masahiro Yamada wrote: > This driver is a counterpart of drivers/mmc/host/sdhci-cadence.c > from Linux. Some updates for v4.12-rc1 can be imported to U-Boot. > > - Fix value of SDHCI_CDNS_HRS04_RDATA_SHIFT > - Add polling for ACK bit to be sure that data

Re: [U-Boot] i.MX6: u-boot,dm-pre-reloc block U-Boot

2017-05-10 Thread Lokesh Vutla
On 5/11/2017 12:52 AM, Jagan Teki wrote: > Hi Lokesh, > > On Tue, May 9, 2017 at 10:03 PM, Jagan Teki wrote: >> On Tue, May 9, 2017 at 8:54 PM, Lokesh Vutla wrote: >>> >>> >>> On Tuesday 09 May 2017 08:37 PM, Jagan Teki wrote: On Tue, May 9,

Re: [U-Boot] [PATCH v2 5/9] Fix up inclusion of common.h

2017-05-10 Thread Masahiro Yamada
Hi Simon 2017-05-11 6:43 GMT+09:00 Tom Rini : > On Mon, May 01, 2017 at 09:18:48AM -0600, Simon Glass wrote: > >> It is good practice to include common.h as the first header. This ensures >> that required features like the DECLARE_GLOBAL_DATA_PTR macro, >> configuration

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

2017-05-10 Thread Tom Rini
On Wed, May 10, 2017 at 03:36:00PM -0600, Simon Glass wrote: > Hi Tom, > > This adds a new firefly-rk3399 board, MIPI support for rk3399 and > rk3288, rk818 pmic support, mkimage improvements for rockchip and a > few other things. > > > The following changes since commit

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

2017-05-10 Thread Tom Rini
On Wed, May 10, 2017 at 09:46:03PM +0200, Daniel Schwierzeck wrote: > Hi Tom, > > please pull the initial infrastructure and support for Broadcom MIPS SoC's. > > Travis CI: https://travis-ci.org/danielschwierzeck/u-boot/builds/230779561 > > > > The following changes since commit

[U-Boot] [PATCH 1/2] regulator: pfuze100: add SPDX License

2017-05-10 Thread Peng Fan
Add SPDX license Signed-off-by: Peng Fan Cc: Jaehoon Chung --- drivers/power/regulator/pfuze100.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c index

[U-Boot] [PATCH 2/2] regulator: pfuze100: unsigned compared against 0

2017-05-10 Thread Peng Fan
Fix unsigned compared against 0. Signed-off-by: Peng Fan Cc: Jaehoon Chung --- drivers/power/regulator/pfuze100.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/regulator/pfuze100.c

Re: [U-Boot] [PATCH 2/7] arm: socfpga: Convert FPGA configuration to Kconfig method.

2017-05-10 Thread Chee, Tien Fong
On Rab, 2017-05-10 at 16:28 +0800, Chee, Tien Fong wrote: > > > On Sel, 2017-05-09 at 09:58 +0200, Marek Vasut wrote: > > > > On 05/09/2017 07:02 AM, Chee, Tien Fong wrote: > > > > > > > > > On Isn, 2017-05-08 at 11:57 +0200, Marek Vasut wrote: > > > > > > > > > > > > On 05/08/2017 05:02

[U-Boot] [PATCH V3 3/4] imx: warp: use vs18_enable

2017-05-10 Thread Peng Fan
Use vs18_enable, and drop CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT. Signed-off-by: Peng Fan Cc: Otavio Salvador Cc: Stefano Babic Cc: Jaehoon Chung --- V3: none V2: none board/warp/warp.c | 2 +-

[U-Boot] [PATCH V3 2/4] dm: mmc: fsl_esdhc: handle vqmmc supply

2017-05-10 Thread Peng Fan
Handle vqmmc supply. Some boards have a fixed I/O voltage at 1.8V for emmc, so the usdhc also needs to be configured as 1.8V by setting VSELECT bit. The vs18_enable is the one that used to checking whether setting VSELECT or not in the driver. So if vqmmc supply is 1.8V, set vs18_enable, the

[U-Boot] [PATCH V3 4/4] mmc: fsl_esdhc: drop CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT

2017-05-10 Thread Peng Fan
CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT is not the correct method to set I/O to 1.8. To boards that does not support vqmmc-supply, use vs18_enable in fsl_esdhc_cfg. If regulator is supported, use fixed 1.8V regulator for vqmmc-supply. Signed-off-by: Peng Fan Cc: Jaehoon Chung

Re: [U-Boot] [PATCH V2 2/4] dm: mmc: fsl_esdhc: handle vqmmc supply

2017-05-10 Thread Peng Fan
Hi Jaehoon, > -Original Message- > From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] > Sent: Wednesday, May 10, 2017 7:33 PM > To: Peng Fan ; sba...@denx.de > Cc: van.free...@gmail.com; u-boot@lists.denx.de; york sun > > Subject: Re: [PATCH V2 2/4]

[U-Boot] [PATCH V3 1/4] mmc: fsl_esdhc: introduce vs18_enable for 1.8V fix I/O

2017-05-10 Thread Peng Fan
When using eMMC with 1.8V I/O, the VSELECT bit need to be set in the USDHC controller when init. This patch adds a parameter "vs18_enable" in fsl_esdhc_cfg structure and priv data, so each controller can have different settings. We could not use CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT, it has problem

Re: [U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here

2017-05-10 Thread Bin Meng
+Simon On Wed, May 10, 2017 at 6:15 PM, Jeroen Roovers wrote: > Apologies, I was using the wrong sender address. > > > -- Forwarded message -- > From: Jeroen Roovers > Date: 10 May 2017 at 12:12 > Subject:

Re: [U-Boot] [PATCH] board_f: skip timer_init() on Coldfire archs

2017-05-10 Thread Angelo Dureghello
Hi Simon, On 11/05/2017 00:03, Simon Glass wrote: Hi Angelo, On 10 May 2017 at 15:58, Angelo Dureghello wrote: Coldfire arch is not happy with timer_init since interrupt handlers are still not set at that stage, and the boot hangs silently. Signed-off-by: Angelo Dureghello

[U-Boot] [PATCH 2/8] cmd/bdinfo.c: Fix unused function warning

2017-05-10 Thread Tom Rini
On most architectures we do not call print_std_bdinfo() so mark it with __maybe_unused. Reported by clang-3.8. Signed-off-by: Tom Rini --- cmd/bdinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index

[U-Boot] [PATCH 8/8] tpm: Fix comparison of unsigned expression warning

2017-05-10 Thread Tom Rini
The function tpm_xfer returns int so make 'err' be int rather than uint32_t so that we can catch an error condition. Reported by clang-3.8. Signed-off-by: Tom Rini --- lib/tpm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tpm.c b/lib/tpm.c

Re: [U-Boot] i.MX6: u-boot,dm-pre-reloc block U-Boot

2017-05-10 Thread Jagan Teki
Hi Lokesh, On Tue, May 9, 2017 at 10:03 PM, Jagan Teki wrote: > On Tue, May 9, 2017 at 8:54 PM, Lokesh Vutla wrote: >> >> >> On Tuesday 09 May 2017 08:37 PM, Jagan Teki wrote: >>> On Tue, May 9, 2017 at 7:49 PM, Lokesh Vutla

Re: [U-Boot] [PATCH] net: Disable the format-extra-args warning

2017-05-10 Thread Jeroen Hofstee
Hello Tom, right, a bit outdated knowledge, but at least more then two years ago, working around this warning would always lead to code increase and I can't think of a reason why the code can actually fail. Suppressing the warning seems fine with me. Regards, Jeroen On 05/10/2017 09:26 PM,

Re: [U-Boot] bcm2835_wdt: support for the BCM2835/2836 watchdog

2017-05-10 Thread Tom Rini
On Fri, Feb 10, 2017 at 05:28:05PM +0100, Paolo Pisati wrote: > Signed-off-by: Paolo Pisati After some fiddling of the Kconfig parts, applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, v6, 14/18] video: arm: rpi: Move the video settings out of the driver

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:41PM -0600, Simon Glass wrote: > Add a function to set the video parameters to the msg handler and remove > it from the video driver. > > Signed-off-by: Simon Glass > Acked-by: Anatolij Gustschin Applied to u-boot/master, thanks!

Re: [U-Boot] [U-Boot, V2, 5/9] omap3: Copy twl4030 device tree from Linux 4.9.y stable

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:41AM -0500, Adam Ford wrote: > Many OMAP3 boards use a TWL4030 PMIC. This brings in the related > device tree information for common TWL4030 and TWL4030 with OMAP3. > > Signed-off-by: Adam Ford > Reviewed-by: Lokesh Vutla >

Re: [U-Boot] [U-Boot, v6, 09/18] arm: rpi: Add a file to handle messages

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:36PM -0600, Simon Glass wrote: > The bcm283x chips provide a way for the ARM core to communicate with the > graphics processor, which is in charge of many things. This is handled by > way of a message prototcol. > > At present the code for sending message (and

Re: [U-Boot] [U-Boot, V2, 2/9] omap3: Copy Device tree from Linux 4.9.y stable

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:38AM -0500, Adam Ford wrote: > Add device tree support to allow for CONFIG_OF_CONTROL in OMAP3 boards. > > Signed-off-by: Adam Ford > Reviewed-by: Lokesh Vutla > > diff --git a/arch/arm/dts/omap3.dtsi

Re: [U-Boot] [U-Boot, V2, 3/9] omap3630: Copy Device tree from Linux 4.9.y stable

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:39AM -0500, Adam Ford wrote: > Add device tree support to allow for CONFIG_OF_CONTROL in OMAP3630 boards. > DM3730 can use this same device tree. > > Signed-off-by: Adam Ford > Reviewed-by: Lokesh Vutla > > diff --git

Re: [U-Boot] [U-Boot, 1/2] power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig

2017-05-10 Thread Tom Rini
On Wed, Apr 26, 2017 at 01:41:31PM -0500, Adam Ford wrote: > As requested, I added the CONFIG_TWL4030_POWER to Kconfig and made it > the implied default when selecting OMAP34XX as a platform. > > Signed-off-by: Adam Ford > Reviewed-by: Simon Glass > >

Re: [U-Boot] [PATCH 0/5] dm: rst: add BCM6345 reset controller support

2017-05-10 Thread Daniel Schwierzeck
Am 03.05.2017 um 15:10 schrieb Álvaro Fernández Rojas: > Broadcom MIPS SoCs have reset controllers which supports asserting and > deasserting each peripheral controller. > Checking reset status is not supported, which is why delays are used. > > Álvaro Fernández Rojas (5): > dm: reset: add

[U-Boot] [PATCH v2 00/71] dm: Add support for a 'live' device tree

2017-05-10 Thread Simon Glass
(this is series 2 of 3 for live tree support - the final series will fully convert a real board and provide size comparisons) So far U-Boot uses a 'flat' device tree, which means that it is decoded on the fly as needed. This uses the libfdt library and avoids needing extra memory for additional

[U-Boot] [PATCH v2 13/71] dm: core: Add device-based 'read' functions to access DT

2017-05-10 Thread Simon Glass
It is common to read a device-tree property from the node associated with a device. Add convenience functions to do this so that drivers do not need to deal with accessing the ofnode from the device. These functions all start with 'dev_read_' to provide consistent naming for all functions which

[U-Boot] [PATCH v2 47/71] dm: usb: Convert uclass to livetree

2017-05-10 Thread Simon Glass
Update the usb uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/usb-uclass.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c

[U-Boot] [PATCH v2 57/71] sandbox: phy: Update driver for livetree

2017-05-10 Thread Simon Glass
Update the sandbox phy driver to support livetree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/phy/sandbox-phy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c index

Re: [U-Boot] [PATCH 0/4] dm: power: domain: add BCM6328 power domain driver

2017-05-10 Thread Daniel Schwierzeck
Am 07.05.2017 um 20:28 schrieb Álvaro Fernández Rojas: > BCM6328 SoCs have power domain controllers which supports enabling and > disabling power for the different peripherals. > > Álvaro Fernández Rojas (4): > dm: power: domain: add BCM6328 power domain driver > mips: bmips: add

[U-Boot] [PATCH v2 15/71] dm: core: Allow binding a device from a live tree

2017-05-10 Thread Simon Glass
When a live tree is being used we need to record the node that was used to create the device. Update device_bind_with_driver_data() to support this. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/device.c| 18 -- drivers/core/lists.c

[U-Boot] [PATCH v2 05/71] dm: Add a function to create a 'live' device tree

2017-05-10 Thread Simon Glass
This function converts the flat device tree into a hierarchical one with C structures and pointers. This is easier to access. Signed-off-by: Simon Glass --- Changes in v2: None include/of_live.h | 24 lib/Makefile | 1 + lib/of_live.c | 333

[U-Boot] [PATCH v2 42/71] sandbox: pmic: Convert pmic emulator to support livetree

2017-05-10 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/power/pmic/i2c_pmic_emul.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/power/pmic/i2c_pmic_emul.c

[U-Boot] [PATCH v2 28/71] dm: gpio: Refactor to prepare for live tree support

2017-05-10 Thread Simon Glass
Move the main part of the GPIO request function into a separate function so that it can be used by the live tree function when added. Update the xlate method to use a node reference. Update all GPIO drivers to handle the modified xlate() method. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v2 07/71] dm: core: Rename of_device_is_compatible()

2017-05-10 Thread Simon Glass
The of_ prefix conflicts with the livetree version of this function. Rename it to avoid problems when we add livetree support. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/device.c | 2 +- drivers/firmware/psci.c | 4 ++--

[U-Boot] [PATCH v2 43/71] dm: regulator: Convert regulator uclass to support livetree

2017-05-10 Thread Simon Glass
Update the regulator uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/power/regulator/regulator-uclass.c | 39 -- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git

[U-Boot] [PATCH v2 20/71] dm: regmap: Add support for livetree

2017-05-10 Thread Simon Glass
Modify regmap to support livetree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/regmap.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index

[U-Boot] [PATCH v3 1/2] env_mmc: configure environment offsets via device tree

2017-05-10 Thread Philipp Tomsich
This introduces the ability to override the environment offets from the device tree by setting the following nodes in '/config': 'u-boot,mmc-env-offset' - overrides CONFIG_ENV_OFFSET 'u-boot,mmc-env-offset-redundant' - overrides

[U-Boot] [PATCH v3 2/2] doc: document u-boot, mmc-env-offset and u-boot, mmc-env-offset-redund

2017-05-10 Thread Philipp Tomsich
Adding documentation on the new config properties: 'u-boot,mmc-env-offset' - overrides CONFIG_ENV_OFFSET 'u-boot,mmc-env-offset-redundant' - overrides CONFIG_ENV_OFFSET_REDUND Signed-off-by: Philipp Tomsich ---

[U-Boot] [PATCH] arm: mvebu: clearfog: generic distro bootcmd

2017-05-10 Thread Patrick Wildt
Switch Clearfog to the generic distro defaults. This has been taken from a Debian mailing list thread: https://lists.debian.org/debian-boot/2016/10/msg00026.html Signed-off-by: Patrick Wildt --- configs/clearfog_defconfig | 10 +- include/configs/clearfog.h | 48

[U-Boot] [PATCH] ARM: fixed relocation using proper alignment

2017-05-10 Thread Manfred Schlaegl
Using u-boot-2017.05 on i.MX6UL we ran into following problem: Initially U-Boot could be started normally. If we added one random command in configuration, the newly generated image hung at startup (last output was DRAM: 256 MiB). We tracked this down to a data abort within relocation

[U-Boot] [PATCH v2 23/71] sandbox: Add a way to reset sandbox state for tests

2017-05-10 Thread Simon Glass
Running a new test should reset the sandbox state to avoid tests interferring with each other. Move the existing state-reset code into a function so it can be used from tests. Also update the code to reset the SPI devices and adjust the test code to call it. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 41/71] dm: pmic: Convert uclass to livetree

2017-05-10 Thread Simon Glass
Update the pmic uclass and all pmics to support a live device tree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/power/pmic/act8846.c | 8 +++- drivers/power/pmic/lp873x.c | 12 +--- drivers/power/pmic/max77686.c| 8 +++-

[U-Boot] [PATCH v2 67/71] dm: sandbox: spi: Convert driver to support livetree

2017-05-10 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mtd/spi/sandbox.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c index

[U-Boot] [PATCH v2 25/71] dm: test: Show the test filename when running

2017-05-10 Thread Simon Glass
Show the filename of the test being run. Skip the path and show just the base name. Signed-off-by: Simon Glass --- Changes in v2: None include/test/test.h | 2 ++ test/dm/test-main.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/test/test.h

[U-Boot] [PATCH v2 26/71] dm: test: Add support for running tests with livetree

2017-05-10 Thread Simon Glass
It is useful to run the driver model tests with both livetree and flat tree in case something is different between the two. Add this feature to the test runner. Signed-off-by: Simon Glass --- Changes in v2: None test/dm/test-main.c | 23 --- 1 file

Re: [U-Boot] [PATCH] pico-imx7d: Add initial support

2017-05-10 Thread Vanessa Ayumi Maegima
Hi Stefano, Jagan, On Tue, May 9, 2017 at 5:23 AM, Stefano Babic wrote: > Hi Jagan, Vanessa, > > On 08/05/2017 21:49, Jagan Teki wrote: > > Though the code look good and similar approach of existing boards, I'm > > little concern of continue the same legacy and w/o trying new

[U-Boot] Fwd: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu' arch/x86/cpu/efi/built-in.o:(.text.checkcpu+0x0): first defined here

2017-05-10 Thread Jeroen Roovers
Apologies, I was using the wrong sender address. -- Forwarded message -- From: Jeroen Roovers Date: 10 May 2017 at 12:12 Subject: arch/x86/cpu/x86_64/built-in.o: In function `checkcpu': (.text.checkcpu+0x0): multiple definition of `checkcpu'

[U-Boot] [PATCH v2 03/71] dm: core: Add livetree definitions

2017-05-10 Thread Simon Glass
Add a Kconfig option to enable a live device tree, built at run time from the flat tree. Also add structure definitions and a root node. Signed-off-by: Simon Glass --- Changes in v2: None dts/Kconfig | 11 include/asm-generic/global_data.h | 3

[U-Boot] [PATCH v2 01/71] dm: core: Set return value first in lists_bind_fdt()

2017-05-10 Thread Simon Glass
Adjust the order to make it clear that *devp is set to NULL by default. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/lists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/core/lists.c b/drivers/core/lists.c index

[U-Boot] [PATCH v2 10/71] fdt: Update fdt_get_base_address() to use const

2017-05-10 Thread Simon Glass
This function does not change the device tree so adjust it to use const for this parameter. Signed-off-by: Simon Glass --- Changes in v2: None common/fdt_support.c | 2 +- include/fdt_support.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 11/71] dm: core: Add address operations on device tree references

2017-05-10 Thread Simon Glass
Add functions to add addresses in the device tree using ofnode references. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/ofnode.c | 27 +++ include/dm/ofnode.h | 21 + 2 files changed, 48 insertions(+) diff

[U-Boot] [PATCH v2 19/71] dm: core: Add a way to find a device by ofnode

2017-05-10 Thread Simon Glass
Add a function which looks up a device by its node (either in live tree or flat tree). Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/uclass.c| 37 + include/dm/uclass-internal.h | 16

[U-Boot] [PATCH v2 16/71] dm: core: Update lists_bind_fdt() to use ofnode

2017-05-10 Thread Simon Glass
Adjust this function to use an ofnode instead of an offset, so it can be used with livetree. This involves updating all callers. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/lists.c | 12 ++-- drivers/core/root.c| 2 +-

[U-Boot] [PATCH v2 48/71] sandbox: usb: Convert emulators to livetree

2017-05-10 Thread Simon Glass
Update the sandbox flash and hub USB emulators to support a live device tree. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/emul/sandbox_flash.c | 4 +--- drivers/usb/emul/sandbox_hub.c | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH v2 30/71] dm: gpio: sandbox: Use dev_read...() functions to access DT

2017-05-10 Thread Simon Glass
Use the new dev_read...() functions to access the device tree, so that a live tree can be used. Signed-off-by: Simon Glass --- Changes in v2: None drivers/gpio/sandbox.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/sandbox.c

[U-Boot] [PATCH v2 18/71] dm: core: Scan the live tree when setting up driver model

2017-05-10 Thread Simon Glass
When starting up driver model with a live tree we need to scan the tree for devices. Add code to handle this. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/root.c | 58 + include/dm/root.h | 3 ++-

Re: [U-Boot] [PATCH 0/4] mmc: deprecate CONFIG_GENERIC_MMC finally

2017-05-10 Thread Jaehoon Chung
Hi Masahiro, On 05/09/2017 08:31 PM, Masahiro Yamada wrote: > Masahiro Yamada (4): > sandbox_noblk_defconfig: disable CONFIG_GENERIC_MMC > blanche_defconfig: enable CONFIG_MMC > mmc: replace CONFIG_GENERIC_MMC with CONFIG_MMC > mmc: descend into drivers/mmc only when CONFIG_MMC is enabled

Re: [U-Boot] [PATCH 0/5] dm: gpio: add BMIPS gpio support

2017-05-10 Thread Daniel Schwierzeck
Am 03.05.2017 um 15:07 schrieb Álvaro Fernández Rojas: > Broadcom MIPS SoCs have one or two GPIO banks, depending on the number of > gpios present: > BCM6345 => 16 GPIOs / 1 bank > BCM6328 => 32 GPIOs / 1 bank > BCM6358 => 40 GPIOs / 2 banks > BCM63268 => 52 GPIOs / 2 banks > > typedef struct

Re: [U-Boot] [PATCH 0/3] dm: led: add BCM6358 serial leds support

2017-05-10 Thread Daniel Schwierzeck
Am 03.05.2017 um 15:09 schrieb Álvaro Fernández Rojas: > BCM6358 supports controlling serial LEDs (74x164) both by using spi-gpio or > its LEDs controller. > > Álvaro Fernández Rojas (3): > dm: led: add BCM6358 led driver > mips: bmips: add bcm6358-led driver support for BCM6358 > mips:

[U-Boot] [PATCH v2 12/71] dm: core: Add a place to put extra device-tree reading functions

2017-05-10 Thread Simon Glass
Some functions deal with structured data rather than simple data types. It makes sense to have these in their own file. For now this just has a function to read a flashmap entry. Move the data types also. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 08/71] dm: core: Add operations on device tree references

2017-05-10 Thread Simon Glass
Since U-Boot supports both a live tree and a flat tree, we need an easy way to access the tree without worrying about which is currently active. To support this, U-Boot has the concept of an ofnode, which can refer either to a live tree node or a flat tree node. For the live tree, the reference

[U-Boot] [PATCH v2 09/71] dm: core: Add livetree address functions

2017-05-10 Thread Simon Glass
Add functions to access addresses in the device tree. These are brought in from Linux 4.10. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/Makefile | 2 +- drivers/core/of_addr.c | 359 +

Re: [U-Boot] [PATCH 5/5 v2] spi: ich: Configure SPI BIOS parameters for Linux upon U-Boot exit

2017-05-10 Thread Stefan Roese
Hi Bin, On 10.05.2017 02:47, Bin Meng wrote: On Tue, May 9, 2017 at 7:20 PM, Stefan Roese wrote: (Added Simon to Cc) Really added Simon :-) I did in my mail as well. Sometimes the ML removes recipients from the list as it seems. On 09.05.2017 13:14, Jagan Teki wrote:

Re: [U-Boot] [PATCH v2 0/5] dm: led: add BCM6328 led support

2017-05-10 Thread Daniel Schwierzeck
Am 07.05.2017 um 20:10 schrieb Álvaro Fernández Rojas: > BCM6328 supports controlling LEDs both by using the GPIO controller and the > LED controller. However, LED controller allows HW blinking and supports serial > LEDs. > > v2: Introduce changes suggested by Simon Glass > > Álvaro Fernández

Re: [U-Boot] [PATCH v2 0/5] dm: clk: add BCM6345 gated clock controller support

2017-05-10 Thread Daniel Schwierzeck
Am 07.05.2017 um 20:13 schrieb Álvaro Fernández Rojas: > Broadcom MIPS SoCs have gated clock controllers which only allow enabling and > disabling each peripheral clock. > Changing clock rates is not possible on these SoCs. > > v2: Introduce changes suggested by Simon Glass > > Álvaro

[U-Boot] [PATCH v2 02/71] Update WARN_ON() to return a value

2017-05-10 Thread Simon Glass
In linux v4.9 this returns a value. This saves checking the warning condition twice in some code. Update the U-Boot version to do this also. Signed-off-by: Simon Glass --- Changes in v2: None include/linux/compat.h | 8 ++-- 1 file changed, 6 insertions(+), 2

[U-Boot] [PATCH v2 06/71] dm: Build a live tree after relocation

2017-05-10 Thread Simon Glass
If enabled, build a live device tree after relocation. This can then be used by driver model. Signed-off-by: Simon Glass --- Changes in v2: None common/board_r.c | 12 1 file changed, 12 insertions(+) diff --git a/common/board_r.c b/common/board_r.c index

[U-Boot] [PATCH v2 04/71] dm: core: Add livetree access functions

2017-05-10 Thread Simon Glass
Add a basic assortment of functions to access the live device tree. These come from Linux v4.9 and are modified for U-Boot to the minimum extent possible. While these functions are now very stable in Linux, it will be possible to merge in fixes if needed. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 29/71] dm: gpio: Drop blank line in gpio_xlate_offs_flags() comment

2017-05-10 Thread Simon Glass
This is not needed. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None include/asm-generic/gpio.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index b073b39138..d78491dfc2 100644 ---

[U-Boot] [PATCH v2 34/71] sandbox: Add a new sandbox_flattree board

2017-05-10 Thread Simon Glass
Add a sandbox board to test the non-livetree build (i.e. with CONFIG_OF_FLAT disabled). This increases our build and test coverage. Signed-off-by: Simon Glass --- Changes in v2: None board/sandbox/MAINTAINERS | 7 ++ configs/sandbox_flattree_defconfig | 179

  1   2   3   >