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] 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 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] 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

[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

[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

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

[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

[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 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] [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] [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] 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,

[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 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 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] 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()?

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

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

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

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

Re: [U-Boot] [PATCH 5/8] gpio-uclass.c: Fix comparison of unsigned expression warning

2017-05-10 Thread Simon Glass
On 10 May 2017 at 13:20, Tom Rini wrote: > > We declare that gpio_base (which is the base for counting gpios, not an > address) is unsigned. Therefore the comparison with >= 0 is always > true. As the desire is to allow for this base number to be 0, we can > just drop this

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

2017-05-10 Thread Angelo Dureghello
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 --- common/board_f.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/board_f.c b/common/board_f.c

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

2017-05-10 Thread Tom Rini
On Mon, May 01, 2017 at 09:18:51AM -0600, Simon Glass wrote: > With live tree we need a struct device_node * to reference a node. With > the existing flat tree, we need an int offset. We need to unify these into > a single value which can represent both. > > Add an ofnode union for this and

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

2017-05-10 Thread 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 options and common types are available. > > Fix up some files which currently

Re: [U-Boot] [PATCH v2 3/9] dm: Rename dev_addr..() functions

2017-05-10 Thread Tom Rini
On Mon, May 01, 2017 at 09:18:46AM -0600, Simon Glass wrote: > These support the flat device tree. We want to use the dev_read_..() > prefix for functions that support both flat tree and live tree. So rename > the existing functions to avoid confusion. > > In the end we will have: > >1.

Re: [U-Boot] [PATCH v2 4/9] atmel: Fix up use of dm_scan_fdt_node()

2017-05-10 Thread Tom Rini
On Mon, May 01, 2017 at 09:18:47AM -0600, Simon Glass wrote: > This function should not be used outside the core driver-model code. > Update it to use dm_scan_fdt_dev() instead. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] [PATCH v2 6/9] dm: core: Dont export dm_scan_fdt_node()

2017-05-10 Thread Tom Rini
On Mon, May 01, 2017 at 09:18:49AM -0600, Simon Glass wrote: > This function is only used in one place. It is better to just declare it > internally since there is a simpler replacement for use outside the > driver-model core code. > > Signed-off-by: Simon Glass Reviewed-by:

Re: [U-Boot] [PATCH v2 7/9] dm: core: Replace of_offset with accessor (part 2)

2017-05-10 Thread Tom Rini
On Mon, May 01, 2017 at 09:18:50AM -0600, Simon Glass wrote: > At present devices use a simple integer offset to record the device tree > node associated with the device. In preparation for supporting a live > device tree, which uses a node pointer instead, refactor existing code to > access this

Re: [U-Boot] [PATCH v2 2/9] dm: core: Move dev_get_addr() etc. into a separate file

2017-05-10 Thread Tom Rini
On Mon, May 01, 2017 at 09:18:45AM -0600, Simon Glass wrote: > Move this group of address-related functions into a new file. These use > the flat device tree. Future work will provide new versions of these which > can support the live tree. > > Signed-off-by: Simon Glass

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

2017-05-10 Thread 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 > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini

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

2017-05-10 Thread Simon Glass
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 05b8dc5cd30a6d6cdfb29c9e718198692e12b4bf: power: twl4030: Remove CONFIG_TWL4030_POWER from

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

2017-05-10 Thread Simon Glass
Hi, On 10 May 2017 at 15:19, Jorge Ramirez wrote: > > On 05/10/2017 09:42 PM, Simon Glass wrote: > > updating pl01x is not a big deal I dont think; however this will > mean requiring a platform specific clock driver to just use the > pl01x - which will take me

Re: [U-Boot] [RFC] drivers: pci: imx: add imx_pcie_remove function

2017-05-10 Thread Tim Harvey
On Wed, May 10, 2017 at 11:10 AM, Fabio Estevam wrote: > Hi Tim, > > Thanks for working on this! > > [Adding Peter and Jagan on Cc] > > On Wed, May 10, 2017 at 1:43 PM, Tim Harvey wrote: >> There is no dedicated reset signal wired up for the MX6QDL thus

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 09:42 PM, Simon Glass wrote: updating pl01x is not a big deal I dont think; however this will mean requiring a platform specific clock driver to just use the pl01x - which will take me some time to get into uboot for my platform (and the same might happen to other users). Ah

[U-Boot] [PATCH] arm: mvebu: kwbimage: inline function to fix use-after-free

2017-05-10 Thread Patrick Wildt
image_version_file()'s only use is to return the version number of the specified image, and it's only called by kwbimage_generate(). This version function mallocs "image_cfg" and reads the contents of the image into that buffer. Before return to its caller it frees the buffer. After extracting

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,

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

2017-05-10 Thread Daniel Schwierzeck
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 ddd5f4d3a0354c959fa3bccc0957a1164bf5: Merge git://git.denx.de/u-boot-dm (2017-05-09 16:11:36

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

2017-05-10 Thread Simon Glass
Hi, On 10 May 2017 at 13:09, Rob Herring wrote: > On Wed, May 10, 2017 at 12:45 PM, Tom Rini wrote: >> On Wed, May 10, 2017 at 11:33:12AM -0500, Rob Herring wrote: >>> On Wed, May 10, 2017 at 9:49 AM, Tom Rini wrote: >>> > On Wed, May

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

2017-05-10 Thread Tom Rini
We will see warnings such as: net/eth_common.c:57:61: warning: data argument not used by format string [-Wformat-extra-args] sprintf(enetvar, index ? "%s%daddr" : "%saddr", base_name, index); ^ With clang. In this case we

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

[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

[U-Boot] [PATCH 4/8] cmd/led.c: Remove unnecessary check on 'cmd' value

2017-05-10 Thread Tom Rini
We first check that if argc is less than 2 we return CMD_RET_USAGE. We then see if argc is greater than 2 and if so call get_led_cmd() to set 'cmd' and otherwise set it to LEDST_COUNT (which will always be positive as it's an enum with 0 already assigned). Therefore the test on if cmd is less

[U-Boot] [PATCH 3/8] cmd/io.c: Fix comparison of unsigned expression warning

2017-05-10 Thread Tom Rini
The function cmd_get_data_size() returns an int and not unsigned. So we should assign it to an int rather than unsigned so that we can later compare the return value. Reported by clang-3.8. Signed-off-by: Tom Rini --- cmd/io.c | 3 ++- 1 file changed, 2 insertions(+), 1

[U-Boot] [PATCH 7/8] drivers/power/regulator/max77686.c: Fix comparisons of unsigned expressions

2017-05-10 Thread Tom Rini
Inside of max77686_buck_volt2hex/max77686_buck_hex2volt/max77686_ldo_volt2hex we check that the value we calculate is >= 0 however we declare 'hex' as unsigned int making these always true. Mark these as 'int' instead. We also move hex_max to int as they are constants that are 0x3f/0xff. Given

[U-Boot] [PATCH 6/8] mmc: Change 'part_config' to be a u8 not char.

2017-05-10 Thread Tom Rini
In some places we check if part_config is set to MMCPART_NOAVAILABLE (0xff). With part_config being a char this is always false. We should be using a u8 to store this value instead, after a quick consultation with the Linux Kernel. Reported by clang-3.8. Cc: Jaehoon Chung

[U-Boot] [PATCH 5/8] gpio-uclass.c: Fix comparison of unsigned expression warning

2017-05-10 Thread Tom Rini
We declare that gpio_base (which is the base for counting gpios, not an address) is unsigned. Therefore the comparison with >= 0 is always true. As the desire is to allow for this base number to be 0, we can just drop this check. Reported by clang-3.8. Cc: Simon Glass

[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 1/8] Kconfig: Drop CONFIG_EMAC_MDIO_PHY_NUM

2017-05-10 Thread Tom Rini
This particular macro hasn't been used in the code for some time, remove these references that were missed. Signed-off-by: Tom Rini --- include/configs/calimain.h | 1 - include/configs/ea20.h | 1 - include/configs/omapl138_lcdk.h | 1 -

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

2017-05-10 Thread Rob Herring
On Wed, May 10, 2017 at 12:45 PM, Tom Rini wrote: > On Wed, May 10, 2017 at 11:33:12AM -0500, Rob Herring wrote: >> On Wed, May 10, 2017 at 9:49 AM, Tom Rini wrote: >> > On Wed, May 10, 2017 at 11:33:35AM +0200, Jorge Ramirez wrote: >> >> On 05/10/2017

Re: [U-Boot] [ANN] U-Boot v2017.05 is released

2017-05-10 Thread Wolfgang Denk
Dear Tom, In message <20170508145352.GJ12511@bill-the-cat> you wrote: > > I've released v2017.05 and it's now live on git and FTP and ACD (along > with PGP sig file). Thanks a lot - and here [1] is finally also the release statistics. [1] http://www.denx.de/wiki/U-Boot/UbootStat_2017_05 Here

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 08:21 PM, Rob Herring wrote: On Wed, May 10, 2017 at 12:49 PM, Jorge Ramirez wrote: On 05/10/2017 06:33 PM, Rob Herring wrote: On Wed, May 10, 2017 at 9:49 AM, Tom Rini wrote: On Wed, May 10, 2017 at 11:33:35AM +0200, Jorge

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

2017-05-10 Thread Rob Herring
On Wed, May 10, 2017 at 12:49 PM, Jorge Ramirez wrote: > On 05/10/2017 06:33 PM, Rob Herring wrote: >> >> On Wed, May 10, 2017 at 9:49 AM, Tom Rini wrote: >>> >>> On Wed, May 10, 2017 at 11:33:35AM +0200, Jorge Ramirez wrote: On

Re: [U-Boot] [RFC] drivers: pci: imx: add imx_pcie_remove function

2017-05-10 Thread Fabio Estevam
Hi Tim, Thanks for working on this! [Adding Peter and Jagan on Cc] On Wed, May 10, 2017 at 1:43 PM, Tim Harvey wrote: > There is no dedicated reset signal wired up for the MX6QDL thus if the > bootloader enables the link we need some special handling to get the core >

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

2017-05-10 Thread Simon Glass
Hi, On 10 May 2017 at 11:45, Tom Rini wrote: > On Wed, May 10, 2017 at 11:33:12AM -0500, Rob Herring wrote: >> On Wed, May 10, 2017 at 9:49 AM, Tom Rini wrote: >> > On Wed, May 10, 2017 at 11:33:35AM +0200, Jorge Ramirez wrote: >> >> On 05/10/2017 04:30

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] [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, v6, 13/18] video: arm: rpi: Move the video query out of the driver

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:40PM -0600, Simon Glass wrote: > Add a function to get the video size 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, v6, 10/18] arm: rpi: Add a function to obtain the MMC clock

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:37PM -0600, Simon Glass wrote: > Move this code into the new message handler file. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [U-Boot, V2, 9/9] omap3_logic: Add Device Tree Support and more DM drivers

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:45AM -0500, Adam Ford wrote: > This patch also removes all the excessive code for NS16550 intiailization > as the device tree can do that now. This also adds DM_I2C and DM_MMC > since the overlying drivers have the built-in support already. The > corresponding

Re: [U-Boot] [U-Boot, V2, 1/9] omap_hsmmc: update struct hsmmc to accommodate omap3 from DT

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:37AM -0500, Adam Ford wrote: > This patch changes the way DM_MMC calculates offset to the base register of > MMC. Previously this was through an #ifdef but that wasn't necessary for > OMAP3. > > This patch will now add in the offset to the base address based on the

[U-Boot] [PATCH] Kconfig: Drop CONFIG_EMAC_MDIO_PHY_NUM

2017-05-10 Thread Tom Rini
This particular macro hasn't been used in the code for some time, remove these references that were missed. Signed-off-by: Tom Rini --- include/configs/calimain.h | 1 - include/configs/ea20.h | 1 - include/configs/omapl138_lcdk.h | 1 -

Re: [U-Boot] [U-Boot, v6, 18/18] arm: rpi: Add a TODO to move all messages into the msg handler

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:45PM -0600, Simon Glass wrote: > The board code should all move into msg.c for consistency. Add a TODO for > this. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [U-Boot, V2, 7/9] ARM: DTS: Add Logic PD DM3730 SOM-LV initial support

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:43AM -0500, Adam Ford wrote: > This adds the device tree. Previous commit added both boards at the > same time. > > Signed-off-by: Adam Ford > > Changes in V2: > Split the SOM-LV from Torpedo > > diff --git

Re: [U-Boot] [U-Boot, V2, 8/9] ARM: DTS: Add Logic PD DM3730 Torpedo Device Tree

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:44AM -0500, Adam Ford wrote: > Previous commit has this combined with SOM-LV. This commit has only > the Torpedo Device Tree. > > The device trees were sync'd with 4.9.y stable with two changes: > disable mmc2 and stdout-path = Both of those two changes > will be

Re: [U-Boot] [U-Boot, 2/2] power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

2017-05-10 Thread Tom Rini
On Wed, Apr 26, 2017 at 01:41:32PM -0500, Adam Ford wrote: > With the addition of Kconfig now having CONFIG_TWL4030_POWER and > with that being the default when OMAP34XX is selected, this > is no longer needed in include/configs and can be removed from the > whitelist. > > This has only been

Re: [U-Boot] [U-Boot, V2, 6/9] OMAP3: Add SMSC9221 device tree for omap devices connected on GPMC.

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:42AM -0500, Adam Ford wrote: > Some OMAP3 devices support an SMSC ethernet PHY connected to the GPMC bus. > This copies this device tree from Linux 4.9.y stable > > Signed-off-by: Adam Ford > Reviewed-by: Lokesh Vutla > >

Re: [U-Boot] [U-Boot, V2, 4/9] ARM: OMAP: I2C: Support New read, write and probe functions for OMAP3

2017-05-10 Thread Tom Rini
On Mon, Apr 17, 2017 at 08:09:40AM -0500, Adam Ford wrote: > New i2c_read, i2c_write and i2c_probe functions, tested on OMAP4 > (4430/60/70), OMAP5 (5430) and AM335X (3359) were added in 960187ffa125( > "ARM: OMAP: I2C: New read, write and probe functions") but not tested > on OMAP3. This patch

Re: [U-Boot] [U-Boot, v6, 15/18] dm: video: Refactor lcd_simplefb to prepare for driver model

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:42PM -0600, Simon Glass wrote: > Adjust this function so that we can convert it to support CONFIG_DM_VIDEO > without a lot of code duplication. > > Signed-off-by: Simon Glass > Acked-by: Anatolij Gustschin Applied to

Re: [U-Boot] [U-Boot,v6,12/18] dm: arm: rpi: Drop CONFIG_OF_EMBED

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:39PM -0600, Simon Glass wrote: > We should not use an embedded device tree on a production board. There > does not seem to be any reason for it in commit 7670909. So drop this. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot, v6, 05/18] arm: rpi: Drop the GPIO device addresses

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:32PM -0600, Simon Glass wrote: > We can rely on the device tree to provide this information. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

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, 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, v6, 17/18] dm: video: arm: rpi: Convert to use driver model for video

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:44PM -0600, Simon Glass wrote: > Adjust the video driver to work with driver model and move over existing > baords. There is no need to keep the old code. > > We can also drop setting of CONFIG_FB_ADDR since driver model doesn't have > this problem. > >

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] power: twl4030: Add CONFIG_CMD_POWEROFF support

2017-05-10 Thread Tom Rini
On Mon, Apr 24, 2017 at 01:34:43PM -0500, Adam Ford wrote: > With the addition of twl4030_power_off(), let's allow the 'poweroff' command > to run this function when CONFIG_CMD_POWEROFF is enabled. > > Tested on a DM3730 with twl4030 PMIC. > > Signed-off-by: Adam Ford >

Re: [U-Boot] [U-Boot, v6, 11/18] dm: mmc: rpi: Convert Raspberry Pi to driver model for MMC

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:38PM -0600, Simon Glass wrote: > Convert the bcm2835 SDHCI driver over to support CONFIG_DM_MMC and move > all boards over. There is no need to keep the old code since there are no > other users. > > Reviewed-by: Jaehoon Chung >

Re: [U-Boot] [U-Boot, v6, 04/18] string: Use memcpy() within memmove() when we can

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:31PM -0600, Simon Glass wrote: > A common use of memmove() can be handled by memcpy(). Also memcpy() > includes an optimisation for large sizes: it copies a word at a time. So > we can get a speed-up by calling memcpy() to handle our move in this case. > > Update

Re: [U-Boot] [U-Boot, v6, 07/18] dm: arm: rpi: Move to driver model for USB

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:34PM -0600, Simon Glass wrote: > Start using driver model for USB on the Raspberry Pi. The dwc2 supports > this now so this is just a config change. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, v6, 16/18] dm: video: Add driver-model support to lcd_simplefb

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:43PM -0600, Simon Glass wrote: > Allow this to work with CONFIG_DM_VIDEO enabled. > > Signed-off-by: Simon Glass > Acked-by: Anatolij Gustschin Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital

Re: [U-Boot] [U-Boot, v6, 01/18] net: smsc95xx: Correct free_pkt() implementation

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:28PM -0600, Simon Glass wrote: > On further review this returns the wrong packet length from the driver. > It may not be noticed since protocols will take care of it. Fix it by > subtracting the header length from the packet length returned. > > Signed-off-by: Simon

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, v6, 08/18] dm: arm: rpi: Use driver model for Ethernet

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:35PM -0600, Simon Glass wrote: > Enable CONFIG_DM_ETH so that driver model is used for the USB Ethernet > device. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

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 06:33 PM, Rob Herring wrote: On Wed, May 10, 2017 at 9:49 AM, Tom Rini wrote: On Wed, May 10, 2017 at 11:33:35AM +0200, Jorge Ramirez wrote: 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

Re: [U-Boot] [U-Boot,v6,06/18] arm: rpi: Drop CONFIG_CONS_INDEX

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:33PM -0600, Simon Glass wrote: > This is not needed now that serial uses driver model. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [U-Boot, v6, 03/18] dm: video: Correct line clearing code

2017-05-10 Thread Tom Rini
On Wed, Apr 05, 2017 at 04:23:30PM -0600, Simon Glass wrote: > At present we clear many more bytes than we should on 16bpp and 32bpp > displays. The number of pixels to clear is currently calculated as the > line length (in bytes) multiplied by the number of lines to clear. This > is only correct

Re: [U-Boot] Allow boards to initialize the DT at runtime.

2017-05-10 Thread Tom Rini
On Sun, Apr 02, 2017 at 01:25:20AM -0700, Alex Deymo wrote: > In some boards like the Raspberry Pi the initial bootloader will pass > a DT to the kernel. When using U-boot as such kernel, the board code in > U-Boot should be able to provide U-boot with this, already assembled > device tree blob.

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] [PATCHv4 3/3] ARM64: poplar: hi3798cv200: u-boot support for Poplar 96Boards

2017-05-10 Thread Tom Rini
On Wed, May 10, 2017 at 11:33:12AM -0500, Rob Herring wrote: > On Wed, May 10, 2017 at 9:49 AM, Tom Rini wrote: > > On Wed, May 10, 2017 at 11:33:35AM +0200, Jorge Ramirez wrote: > >> On 05/10/2017 04:30 AM, Tom Rini wrote: > >> >>hey Tom, I am not sure how to move this

[U-Boot] [PATCH 2/3] sunxi: Add clock support for TV encoder

2017-05-10 Thread Jernej Skrabec
This patch adds support for TV encoder clocks which will be used later. Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 3/3] sunxi: video: Add H3/H5 TV out driver

2017-05-10 Thread Jernej Skrabec
This commit adds support for TV (composite) output. Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 10 ++ arch/arm/include/asm/arch-sunxi/display2.h | 17 +++ arch/arm/include/asm/arch-sunxi/tve.h | 17 ++-

[U-Boot] [PATCH 1/3] sunxi: video: Split out TVE code

2017-05-10 Thread Jernej Skrabec
Newer SoCs use same TV encoder unit. Split it out so it can be reused with new DM video driver. Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/display.h | 107 arch/arm/include/asm/arch-sunxi/tve.h | 131

[U-Boot] [PATCH 0/3] sunxi: video: Add support for TV (composite) output on H3/H5

2017-05-10 Thread Jernej Skrabec
This series implements support for composite output. Driver is implemented using DM video framework and heavily reuse code written for older SoCs. Additionally, driver also implements plug detection. Patch 1 splits out code used for composite output from video driver for older SoCs. Patch 2 adds

[U-Boot] [RFC] drivers: pci: imx: add imx_pcie_remove function

2017-05-10 Thread Tim Harvey
There is no dedicated reset signal wired up for the MX6QDL thus if the bootloader enables the link we need some special handling to get the core back into a state where it is safe to touch it for configuration. While there has been some special handling in the Linux kernel to do this, it was

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

2017-05-10 Thread Rob Herring
On Wed, May 10, 2017 at 9:49 AM, Tom Rini wrote: > On Wed, May 10, 2017 at 11:33:35AM +0200, Jorge Ramirez wrote: >> 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.

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

2017-05-10 Thread Simon Glass
On 10 May 2017 at 05:18, Tom Rini wrote: > > 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

[U-Boot] [PATCH v5 13/14] ARM: DTS: STiH410: rework ohci nodes

2017-05-10 Thread patrice.chotard
From: Patrice Chotard Update the compatible string in order to use ehci-generic driver instead of a STi specific one Signed-off-by: Patrice Chotard --- v5: _ update compatible to fit with ohci-generic driver arch/arm/dts/stih410.dtsi | 4

  1   2   3   >