[U-Boot] [PATCH] ARM: am33xx: Inhibit re-initialization of DDR during RTC-only

2018-03-19 Thread Keerthy
From: Russ Dill This inhibits the re-inititialization of DDR during an RTC-only resume. If this is not done, an L3 NOC error is produced as the DDR gets accessed before the re-init has time to complete. Tested on AM437x GP EVM. Signed-off-by: Russ Dill [j-keer...@ti.com Ported to Latest Master

Re: [U-Boot] Please pull u-boot-usb/topic-xhci

2018-03-19 Thread Heinrich Schuchardt
On 03/20/2018 02:36 AM, Bin Meng wrote: > Hi Marek, > > On Mon, Mar 19, 2018 at 5:42 PM, Marek Vasut wrote: >> On 03/19/2018 04:17 AM, Bin Meng wrote: >>> Hi Marek, >>> >>> The following changes since commit 958ad42b77be9d9a69f059066622ef0c15c603ee: >>> >>> usb: dwc2: Replace printf, pr_err by

[U-Boot] [PATCH 2/2] video: rk3399_mipi: Combine NULL check into IS_ERR_OR_NULL()

2018-03-19 Thread Punit Agrawal
Signed-off-by: Punit Agrawal --- drivers/video/rockchip/rk3399_mipi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c index c6987ff042..b936fcec9b 100644 --- a/drivers/video/rockchip/rk3399_mipi.c +++

[U-Boot] [PATCH 1/2] video: rk3288_mipi: Combine NULL check into IS_ERR_OR_NULL()

2018-03-19 Thread Punit Agrawal
Signed-off-by: Punit Agrawal --- drivers/video/rockchip/rk3288_mipi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c index 27d125f77e..a7fa9c5110 100644 --- a/drivers/video/rockchip/rk3288_mipi.c +++

Re: [U-Boot] [PATCH 1/1] video: rk3399_mipi: correct error checking

2018-03-19 Thread Punit Agrawal
Heinrich Schuchardt writes: > Pointers are never negative. Use macro IS_ERR() for checking. > cf. rk3288_mipi.c > > Signed-off-by: Heinrich Schuchardt > --- > drivers/video/rockchip/rk3399_mipi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/rockchip/rk3

Re: [U-Boot] [PULL] u-boot-usb/master

2018-03-19 Thread Tom Rini
On Mon, Mar 19, 2018 at 06:13:55PM +0100, Marek Vasut wrote: > The following changes since commit 6f6b7cfa89e5aa3b643196a4ccc8b1ba5d6fa7a4: > > Convert all of CONFIG_CONS_INDEX to Kconfig (2018-03-16 10:28:52 -0400) > > are available in the Git repository at: > > git://git.denx.de/u-boot-us

Re: [U-Boot] Please pull u-boot-usb/topic-xhci

2018-03-19 Thread Bin Meng
Hi Marek, On Mon, Mar 19, 2018 at 5:42 PM, Marek Vasut wrote: > On 03/19/2018 04:17 AM, Bin Meng wrote: >> Hi Marek, >> >> The following changes since commit 958ad42b77be9d9a69f059066622ef0c15c603ee: >> >> usb: dwc2: Replace printf, pr_err by dev_info, dev_err (2018-03-19 >> 11:03:46 +0800) >>

Re: [U-Boot] [PATCH] dm: core: make fixed-clock dt scan live dt compatible

2018-03-19 Thread Andy Yan
Hi Simon: On 2018年03月20日 01:58, Simon Glass wrote: Hi Andy, On 10 March 2018 at 23:58, Andy Yan wrote: Hi Simon: On 2018年03月09日 05:03, Simon Glass wrote: Hi Andy. On 28 February 2018 at 23:08, Andy Yan wrote: dm_scan_fdt_node can't work when live dt is active, we should use dm_scan_fd

Re: [U-Boot] [PATCH 2/2] usb: kbd: implement special keys

2018-03-19 Thread Tom Rini
On Mon, Mar 19, 2018 at 11:59:45AM -0600, Simon Glass wrote: > +Tom for comment > > Hi Heinrich, > > On 8 March 2018 at 15:04, Heinrich Schuchardt wrote: > > On 03/08/2018 09:30 PM, Simon Glass wrote: > >> Hi Heinrich, > >> > >> input.c uses PS/2 scan codes at present. However these are somewhat

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

2018-03-19 Thread Tom Rini
On Tue, Mar 20, 2018 at 01:30:02AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit b8aa55cb6414e512cce30bb7db3268eea934466d: > > common: move init_helpers.h prototypes in init.h (2018-03-16 14:56:59 -0400) > > are avail

Re: [U-Boot] [PATCH] net: Drop CONFIG_ENC28J60

2018-03-19 Thread Joe Hershberger
On Mon, Mar 19, 2018 at 7:02 PM, Tuomas Tynkkynen wrote: > Last user of this driver went away in October 2014 in > commit d58a9451e7339ed4 ("ppc/arm: zap EMK boards"). > > Signed-off-by: Tuomas Tynkkynen Acked-by: Joe Hershberger ___ U-Boot mailing li

[U-Boot] [PATCH] net: Drop CONFIG_ENC28J60

2018-03-19 Thread Tuomas Tynkkynen
Last user of this driver went away in October 2014 in commit d58a9451e7339ed4 ("ppc/arm: zap EMK boards"). Signed-off-by: Tuomas Tynkkynen --- drivers/net/Makefile | 1 - drivers/net/enc28j60.c | 959 - drivers/net/enc28j60.h | 238

Re: [U-Boot] [U-Boot, v2, 07/15] arm: stm32: add new architecture for STM32MP family

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:10AM +0100, Patrick Delaunay wrote: > - add new arch stm32mp for STM32 MPU/Soc based on Cortex A > - support for stm32mp157 SOC > - SPL is used as first boot stage loader > - using driver model for all the drivers, even in SPL > - all security feature are deactivated

Re: [U-Boot] [U-Boot,v2,09/15] pmic: add stpmu1 support

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:12AM +0100, Patrick Delaunay wrote: > This driver implements register read/write operations for STPMU1. > > The STPMU1 PMIC provides 4 BUCKs, 6 LDOs, 1 VREF > and 2 power switches. It is accessed via an I2C interface. > This device is used with STM32MP1 SoCs. > > Si

Re: [U-Boot] [U-Boot, v6, 01/10] optee: Add lib entries for sharing OPTEE code across ports

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:27PM +, Bryan O'Donoghue wrote: > This patch adds code to lib to enable sharing of useful OPTEE code between > board-ports and architectures. The code on lib/optee/optee.c comes from the > TI omap2 port. Eventually the OMAP2 code will be patched to include the > s

Re: [U-Boot] [U-Boot,v6,08/10] optee: Add error printout

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:34PM +, Bryan O'Donoghue wrote: > When encountering an error in OPTEE verification print out various details > of the OPTEE header to aid in further debugging of encountered errors. > > Signed-off-by: Bryan O'Donoghue > Cc: Harinarayan Bhatta > Cc: Andrew F. Da

Re: [U-Boot] [U-Boot, v6, 09/10] image: Add IH_OS_TEE for TEE chain-load boot

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:35PM +, Bryan O'Donoghue wrote: > This patch adds a new type IH_OS_TEE. This new OS type will be used for > chain-loading to Linux via a TEE. > > With this patch in-place you can generate a bootable OPTEE image like this: > > mkimage -A arm -T kernel -O tee -C n

Re: [U-Boot] [U-Boot, v6, 07/10] optee: Add optee_verify_bootm_image()

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:33PM +, Bryan O'Donoghue wrote: > This patch adds optee_verify_bootm_image() which will be subsequently used > to verify the parameters encoded in the OPTEE header match the memory > allocated to the OPTEE region, OPTEE header magic and version prior to > handing

Re: [U-Boot] [U-Boot, v2, 11/15] reset: stm32: adapt driver for stm32mp1

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:14AM +0100, Patrick Delaunay wrote: > - move to livetree and allow to get address to parent > - add stm32mp1 compatible for probe > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot,4/4] MAINTAINERS: Remove unused ppc4xx entry

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 08:41:10AM +0100, Stefan Roese wrote: > ppc4xx support was removed some time ago. Lets remove the now unused > entry in MAINTAINERS as well. > > Signed-off-by: Stefan Roese > Cc: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot,v2,12/15] clk: add driver for stm32mp1

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:15AM +0100, Patrick Delaunay wrote: > add RCC clock driver for STMP32MP157 > - base on driver model = UCLASS_CLK > - support ops to enable, disable and get rate > of all SOC clock needed by U-Boot > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, than

Re: [U-Boot] [U-Boot, v6, 10/10] bootm: optee: Add a bootm command for type IH_OS_TEE

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:36PM +, Bryan O'Donoghue wrote: > This patch makes it possible to verify the contents and location of an > OPTEE image in DRAM prior to handing off control to that image. If image > verification fails we won't try to boot any further. > > Signed-off-by: Bryan O'D

Re: [U-Boot] [U-Boot, v2, 06/15] stm32mp: stm32f7_i2c: use calloc instead of kmalloc

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:09AM +0100, Patrick Delaunay wrote: > Kmalloc is using memalign allocation function. It is not necessary to > align this structure so to save bytes, we move to calloc. > > And kmalloc function can't be used in SPL early stage (in board_init_f()) > > Signed-off-by: P

Re: [U-Boot] [U-Boot, 2/4] nand: Remove unused ppc4xx NAND driver and references

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 08:41:08AM +0100, Stefan Roese wrote: > ppc4xx support was removed some time ago. Lets remove the now unused > NAND driver and all its references for this platform as well. > > Signed-off-by: Stefan Roese > Cc: Heinrich Schuchardt > Cc: Scott Wood Applied to u-boot/mas

Re: [U-Boot] [U-Boot,v6,03/10] optee: Add CONFIG_OPTEE_TZDRAM_BASE

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:29PM +, Bryan O'Donoghue wrote: > OPTEE is currently linked to a specific area of memory called the TrustZone > DRAM. This patch adds a CONFIG entry for the default address of TrustZone > DRAM that a board-port can over-ride. The region that U-Boot sets aside for

Re: [U-Boot] [U-Boot, v2, 11/15] reset: stm32: adapt driver for stm32mp1

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:14AM +0100, Patrick Delaunay wrote: > - move to livetree and allow to get address to parent > - add stm32mp1 compatible for probe > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, v2, 14/15] dts: add device tree for STM32MP157C-ED1 board

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:17AM +0100, Patrick Delaunay wrote: > Add minimal devicetree for STM32MP157C-ED1 board, > with only the devices to allow boot from SDCARD: > - RCC for clock and reset > - UART4 for console > - I2C and PMIC > - DDR > - SDMMC0 for SDCard > > Waiting Kernel upstream for

Re: [U-Boot] [U-Boot, v6, 05/10] optee: Add optee_image_get_entry_point()

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:31PM +, Bryan O'Donoghue wrote: > Add a helper function for extracting the least significant 32 bits from the > OPTEE entry point address, which will be good enough to load OPTEE binaries > up to (2^32)-1 bytes. > > We may need to extend this out later on but for

Re: [U-Boot] [U-Boot,v2,08/15] ram: stm32mp1: add driver

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:11AM +0100, Patrick Delaunay wrote: > Add driver and binding for stm32mp1 ddr controller and phy > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot, 3/4] pci: Remove unused ppc4xx variable from struct pci_controller

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 08:41:09AM +0100, Stefan Roese wrote: > ppc4xx support was removed some time ago. Lets remove the now unused > "pci_fb" variable from "struct pci_controller" as well. > > Signed-off-by: Stefan Roese > Cc: Bin Meng > Cc: Simon Glass Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot, v6, 06/10] optee: Add optee_image_get_load_addr()

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:32PM +, Bryan O'Donoghue wrote: > This patch adds optee_image_get_load_addr() a helper function used to > calculate the load-address of an OPTEE image based on the lower > entry-point address given in the OPTEE header. > > Signed-off-by: Bryan O'Donoghue > Cc: H

Re: [U-Boot] [U-Boot,v2,02/15] spl: add SPL_RESET_SUPPORT

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:05AM +0100, Patrick Delaunay wrote: > Add option to include RESET driver and uclass in SPL. > That can be useful to handle IP reset with same driver > in U-Boot and in SPL. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.a

Re: [U-Boot] [U-Boot,v6,04/10] optee: Add CONFIG_OPTEE_LOAD_ADDR

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:30PM +, Bryan O'Donoghue wrote: > CONFIG_OPTEE_LOAD_ADDR is used to tell u-boot where to load the OPTEE > binary into memory prior to handing off control to OPTEE. > > We need to pull this value out of u-boot in order to produce an IMX IVT/CSF > signed pair for t

Re: [U-Boot] [U-Boot, v2, 13/15] clk: stm32mp1: add clock tree initialization

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:16AM +0100, Patrick Delaunay wrote: > add binding and code for clock tree initialization from device tree > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, v2, 03/15] arm: armv7: solve issue for timer_rate_hz in arch timer

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:06AM +0100, Patrick Delaunay wrote: > The current value timer_rate_hz causes a problem with function > timer_get_us() from lib time and then an issue with > readx_poll_timeout() function. > > With corrected value for tbclk() = timer_rate_hz = CONFIG_SYS_HZ_CLOCK > th

Re: [U-Boot] [U-Boot,v6,02/10] optee: Add CONFIG_OPTEE_TZDRAM_SIZE

2018-03-19 Thread Tom Rini
On Tue, Mar 13, 2018 at 04:50:28PM +, Bryan O'Donoghue wrote: > OPTEE is currently linked to a specific area of memory called the TrustZone > DRAM. This patch adds a CONFIG entry for the default size of TrustZone DRAM > that a board-port can over-ride. The region that U-Boot sets aside for the

Re: [U-Boot] [U-Boot, v2, 3/4] tools: env: Refactor write path of flash_io()

2018-03-19 Thread Tom Rini
On Fri, Mar 09, 2018 at 12:13:01PM +, Alex Kiernan wrote: > Extract write path of flash_io() into a separate function. This patch > should be a functional no-op. > > Signed-off-by: Alex Kiernan > Reviewed-by: Stefano Babic Applied to u-boot/master, thanks! -- Tom signature.asc Descript

Re: [U-Boot] [U-Boot, v2, 05/15] gpio: stm32f7_gpio: handle node ngpios

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:08AM +0100, Patrick Delaunay wrote: > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de

Re: [U-Boot] [U-Boot, v2, 2/4] tools: env: Fix CamelCasing style violation

2018-03-19 Thread Tom Rini
On Fri, Mar 09, 2018 at 12:13:00PM +, Alex Kiernan wrote: > Replace HaveRedundEnv with have_redund_env to fix style violation. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot, v2, 10/15] pinctrl: stm32: update pincontrol for stmp32mp157

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:13AM +0100, Patrick Delaunay wrote: > - add the 2 new compatible used by STM32MP157 > "st,stm32mp157-pinctrl" > "st,stm32mp157-z-pinctrl" > - update the mask for the port > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom s

Re: [U-Boot] [U-Boot, v2, 15/15] board: st: add generic board for STM32MP1 family

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:18AM +0100, Patrick Delaunay wrote: > Add first support for STM32MP157C-ED1 board with "Basic" boot chain > 1/ Boot Rom: load SPL with STM32 image header in SYSRAM > 2/ SPL: power up and initialize the DDR and load U-Boot image > from SDCARD in DDR > 3/ U-Boot

Re: [U-Boot] [U-Boot, v2, 04/15] dm: gpio: Convert stm32f7 driver to livetree

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:07AM +0100, Patrick Delaunay wrote: > Update the GPIO driver to support a live device tree. > > Reviewed-by: Simon Glass > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot,v2,1/4] tools: env: Pass through indent

2018-03-19 Thread Tom Rini
On Fri, Mar 09, 2018 at 12:12:59PM +, Alex Kiernan wrote: > Pass tools/env/fw_env.c through indent to correct style violations. This > commit consists of only one non-whitespace change: > > tools/env/fw_env.c:549: error: do not use assignment in if condition > > Signed-off-by: Alex Kiernan

Re: [U-Boot] [U-Boot, v2, 01/15] tools/mkimage: add support for STM32 image format

2018-03-19 Thread Tom Rini
On Mon, Mar 12, 2018 at 10:46:04AM +0100, Patrick Delaunay wrote: > STM32MP157 bootrom needs a specific header for first boot stage. > This patch adds support of this header in mkimage. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: P

Re: [U-Boot] [U-Boot, v2, 4/4] tools: env: Implement atomic replace for filesystem

2018-03-19 Thread Tom Rini
On Fri, Mar 09, 2018 at 12:13:02PM +, Alex Kiernan wrote: > If the U-Boot environment is stored in a regular file and redundant > operation isn't set, then write to a temporary file and perform an > atomic rename. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, v2] SPL: Add signature verification when loading image

2018-03-19 Thread Tom Rini
On Tue, Feb 27, 2018 at 04:55:58PM +0800, Jun Nie wrote: > U-boot proper signature is not verified by SPL on most platforms > even config SPL_FIT_SIGNATURE is enabled. Only fsl-layerscape > platform support secure boot in platform specific code. So > verified boot cannot be achieved if u-boot prop

Re: [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries

2018-03-19 Thread Tom Rini
On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote: > Several boards do not use the default UART3, so they do a check > for ifdef CONFIG_SPL_BUILD and enable the pointer for > CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx. > > Let's consoldate this all into one place, and remove them

Re: [U-Boot] Configs: various: remove dead defines

2018-03-19 Thread Tom Rini
On Sun, Mar 04, 2018 at 04:32:17PM -0600, Adam Ford wrote: > CONFIG_SERIAL0-5 appears to be nothing by dead defines with no > corresponding source. Let's remove this to cleanup the serial > configs a bit > > Signed-off-by: Adam Ford > > diff --git a/include/configs/am3517_crane.h b/include/con

[U-Boot] Fw: dhcp command not populating dnsip environment variable

2018-03-19 Thread Duncan Hare
Begin forwarded message: Date: Mon, 19 Mar 2018 14:57:59 -0700 From: Duncan Hare To: Duncan Hare Subject: Re: [U-Boot] dhcp command not populating dnsip environment variable > >On Sun, Mar 18, 2018 at 3:01 PM, Duncan Hare wrote: > > Cause: u-boot/Kconfig DISTRO_DEFAULTS missing variables i

Re: [U-Boot] [PATCH 4/5] net: fec: sharing MDIO for two enet controllers

2018-03-19 Thread Joe Hershberger
On Fri, Mar 9, 2018 at 7:19 PM, Peng Fan wrote: > On i.MX6SX, 6UL and 7D, there are two enet controllers each has a > MDIO port. But Some boards share one MDIO port for the two enets. So > introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate > the MDIO port for sharing. It seems like th

Re: [U-Boot] [PATCH 5/5] net: fex_mxc: add i.MX6UL/SX/SL compatible

2018-03-19 Thread Joe Hershberger
On Fri, Mar 9, 2018 at 7:19 PM, Peng Fan wrote: > Add i.MX6UL/SX/SL compatible. > > Signed-off-by: Peng Fan Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 3/5] net: fec: set dev->seq to priv->dev_id

2018-03-19 Thread Joe Hershberger
On Fri, Mar 9, 2018 at 7:19 PM, Peng Fan wrote: > To platforms has two enet interface, using dev->seq could > avoid conflict. > > i.MX6UL/ULL evk board net get the wrong MAC address from fuse, > eth1 get MAC0 address, eth0 get MAC1 address from fuse. Set the > priv->dev_id to device->seq as the re

[U-Boot] [PATCH] input: Drop PS/2 keyboard support

2018-03-19 Thread Simon Glass
This is not used by any current board and has not been converted to driver model. Drop it. Signed-off-by: Simon Glass --- common/board_r.c | 15 -- drivers/input/Makefile | 4 - drivers/input/keyboard.c | 87 --- drivers/input/pc_keyb.c | 251 -

Re: [U-Boot] [PATCH 2/5] net: fec_mxc: simplify fec_get_miibus

2018-03-19 Thread Joe Hershberger
On Fri, Mar 9, 2018 at 7:19 PM, Peng Fan wrote: > No need to provide two prototype for this function. > Use ulong for the first parameter, then this function > could be shared for DM/non DM case. > > Signed-off-by: Peng Fan Acked-by: Joe Hershberger _

Re: [U-Boot] [PATCH 1/5] net: fec_mxc: Fix DM driver issue in recv

2018-03-19 Thread Joe Hershberger
On Fri, Mar 9, 2018 at 7:19 PM, Peng Fan wrote: > From: Ye Li > > When using ethernet DM driver, the recv interface has a > change with non-DM interface, that driver needs to set > the packet pointer and provide it to upper layer to process. > > In fec driver, the fecmxc_recv functions does not h

Re: [U-Boot] [PATCH v8 1/3] Adding TCP and wget into u-boot

2018-03-19 Thread Duncan Hare
On Mon, 19 Mar 2018 09:53:24 + Calvin Johnson wrote: > > > > > void net_set_udp_header(uchar *pkt, struct in_addr dest, int > > > > dport, > > > > - int sport, int len); > > > > - > > > > + int sport, int len); > > > > > Why do you need

Re: [U-Boot] [PATCH] net/phy/cortina: Add No firmware upload option

2018-03-19 Thread Joe Hershberger
On Tue, Jan 30, 2018 at 12:41 AM, Priyanka Jain wrote: > Current Cortina phy driver assumes that firmware upload > is required during initialization and is dependent > on presence of corresponding macros like CONFIG_CORTINA_FW_ADDR > for compilation. > > But Cortina phy has provision to store phy

Re: [U-Boot] [PATCH] net/phy/cortina.c: Update get_phy_id implementation

2018-03-19 Thread Joe Hershberger
On Tue, Jan 30, 2018 at 12:08 AM, Priyanka Jain wrote: > Update get_phy_id() implementation in cortina.c to check > for Cortina_phy by comparing device phy_id with cortina phy_id > instead of relying on presence of CORTINA macros. > > This will allow get_phy_id to work with non-cortina phy devices

Re: [U-Boot] [PATCH] net: Fix netretry condition

2018-03-19 Thread Joe Hershberger
On Fri, Mar 9, 2018 at 8:29 AM, Leonid Iziumtsev wrote: > The "net_try_count" counter starts from "1". > And the "retrycnt" contains requested amount of retries. > > With current logic, that means that the actual retry amount > will be one time less then what we set in "netretry" env. > For exampl

Re: [U-Boot] dhcp command not populating dnsip environment variable

2018-03-19 Thread Joe Hershberger
Hi Duncan, On Sun, Mar 18, 2018 at 3:01 PM, Duncan Hare wrote: > Cause: u-boot/Kconfig DISTRO_DEFAULTS missing variables in Kconfig files > > u-boot/ config DISTRO_DEFAULTS contains these directives: > > select HUSH_PARSER > select BOOTP_BOOTPATH if NET && CMD_NET > select

Re: [U-Boot] [PATCH 1/1] net: macb: remove superfluous logical constraint

2018-03-19 Thread Joe Hershberger
On Sun, Mar 18, 2018 at 5:32 AM, Heinrich Schuchardt wrote: > In > > if (a > =0) {...} > else (a < 0) {...} > > the second logical constraint is superfluous. > > Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger ___ U-Boot m

Re: [U-Boot] [PATCH 1/1] drivers: net: cpsw: remove superfluous assignment.

2018-03-19 Thread Joe Hershberger
On Sun, Mar 18, 2018 at 5:24 AM, Heinrich Schuchardt wrote: > In > > int ret = A; > ret = B; > > the first assignment has not effect. > > Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists

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

2018-03-19 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit b8aa55cb6414e512cce30bb7db3268eea934466d: common: move init_helpers.h prototypes in init.h (2018-03-16 14:56:59 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sunxi.git master for you

Re: [U-Boot] [PATCH v4 00/11] arm: sunxi: Use proper and meaningful Kconfig entries

2018-03-19 Thread Jagan Teki
On Fri, Mar 16, 2018 at 2:34 PM, Jagan Teki wrote: > Current arch/arm/mach-sunxi/Makefile has improper build options > which relies mostly on MACH_ options. This series get rid of those > and added proper Kconfig options. > > All Kconfig entry name are re-used from Linux so-that future > dm conver

Re: [U-Boot] [PATCH v5 02/11] sunxi: Add SUN6I_P2WI kconfig entry

2018-03-19 Thread Jagan Teki
On Mon, Mar 19, 2018 at 2:21 PM, Jagan Teki wrote: > Add simple and meaningful kconfig option for p2wi.c > instead of using MACH type on Makefile. > > Signed-off-by: Jagan Teki > Acked-by: Maxime Ripard Applied to u-boot-sunxi/master ___ U-Boot mailin

[U-Boot] [PATCH 5/6] configs: imx6dl-mamoj: Add DFU support

2018-03-19 Thread Jagan Teki
Add DFU support for BTicino Mamoj board and update the same steps in README. Signed-off-by: Jagan Teki Signed-off-by: Simone CIANNI Signed-off-by: Raffaele RECALCATI --- board/bticino/mamoj/README | 37 + configs/imx6dl_mamoj_defconfig | 2 ++ include/c

[U-Boot] [PATCH 3/6] i.MX6DL: mamoj: Add PFUZE100 support

2018-03-19 Thread Jagan Teki
MX6DL Mamoj boards has Freescale PFUZE100 PMIC, add support for it through DM_PMIC dt definition. pmic log: => pmic list | Name| Parent name | Parent uclass @ seq | pfuze100@08 | i2c@021f8000| i2c @ 3 => pmic dev pfuze100@08

[U-Boot] [PATCH 6/6] configs: imx6dl-mamoj: Add Falcon mode support

2018-03-19 Thread Jagan Teki
Add Falcon mode support to boot Linux directly after SPL. Signed-off-by: Jagan Teki --- board/bticino/mamoj/README | 27 +++ board/bticino/mamoj/spl.c | 11 +++ configs/imx6dl_mamoj_defconfig | 1 + include/configs/imx6dl-mamoj.h | 12 4 fil

[U-Boot] [PATCH 2/6] i.MX6DL: mamoj: Add I2C support

2018-03-19 Thread Jagan Teki
i.MX6DL Mamoj has i2c3 and i2c4 buses, add support through DM_I2C with dt definition. i2c log: === => i2c bus Bus 2: i2c@021a8000 Bus 3: i2c@021f8000 => i2c dev 2 Setting bus to 2 => i2c speed 40 Setting bus speed to 40 Hz => i2c probe Valid chip addresses: 20 51 53 => i2c md 53 0xff

[U-Boot] [PATCH 4/6] configs: imx6dl_mamoj: Enable fastboot and ums

2018-03-19 Thread Jagan Teki
Enable fastboot and ums for host to interact eMMC on Mamoj board. Signed-off-by: Jagan Teki Signed-off-by: Simone CIANNI Signed-off-by: Raffaele RECALCATI --- configs/imx6dl_mamoj_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/imx6dl_mamoj_defconfig b/configs/imx6d

[U-Boot] [PATCH 1/6] i.MX6: board: Add BTicino i.MX6DL Mamoj initial support

2018-03-19 Thread Jagan Teki
Add initial support for i.MX6DL BTicino Mamoj board. Mamoh board added: - SPL - SPL_DM - SPL_OF_CONTROL - DM for U-Boot proper - OF_CONTROL for U-Boot proper - eMMC - FEC - Boot from eMMC - Boot from USB SDP Signed-off-by: Simone CIANNI Signed-off-by: Raffaele RECALCATI Signed-off-by: Jagan Tek

[U-Boot] [PATCH 0/6] i.MX6DL: Add BTicino Mamoj board support

2018-03-19 Thread Jagan Teki
This series add support for BTicino i.MX6DL Mamoj board. Jagan Teki (6): i.MX6: board: Add BTicino i.MX6DL Mamoj initial support i.MX6DL: mamoj: Add I2C support i.MX6DL: mamoj: Add PFUZE100 support configs: imx6dl_mamoj: Enable fastboot and ums configs: imx6dl-mamoj: Add DFU support co

[U-Boot] [PATCH v3] rtc: rewrite isl1208 to support DM

2018-03-19 Thread Klaus Goger
Adds devicemodel support to the ISL1208 driver. This patch drops the non-dm API as no board was using it anyway. Also add it to Kconfig. Signed-off-by: Klaus Goger Reviewed-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v3: - Actually adding the changed files before submitting th

Re: [U-Boot] [PATCH 1/2] video: rk3288_mipi: Combine NULL check into IS_ERR_OR_NULL()

2018-03-19 Thread Heinrich Schuchardt
On 03/19/2018 06:36 PM, Punit Agrawal wrote: > Signed-off-by: Punit Agrawal Reviewed-by: Heinrich Schuchardt > --- > drivers/video/rockchip/rk3288_mipi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/rockchip/rk3288_mipi.c > b/drivers/video/rockchip/r

Re: [U-Boot] [PATCH 2/2] video: rk3399_mipi: Combine NULL check into IS_ERR_OR_NULL()

2018-03-19 Thread Heinrich Schuchardt
On 03/19/2018 06:36 PM, Punit Agrawal wrote: > Signed-off-by: Punit Agrawal Reviewed-by: Heinrich Schuchardt > --- > drivers/video/rockchip/rk3399_mipi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/rockchip/rk3399_mipi.c > b/drivers/video/rockchip/r

[U-Boot] [PATCH v2] rtc: rewrite isl1208 to support DM

2018-03-19 Thread Klaus Goger
Adds devicemodel support to the ISL1208 driver. This patch drops the non-dm API as no board was using it anyway. Also add it to Kconfig. Signed-off-by: Klaus Goger Reviewed-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v2: - Reword of Kconfig help text drivers/rtc/Kconfig |

[U-Boot] [PATCH 1/2] stm32mp: cleanup cpu.c

2018-03-19 Thread Patrick Delaunay
Move all defines at the beginning of the file Signed-off-by: Patrick Delaunay --- This patch follow the initial serie: arm: stm32mp1: add initial support for STM32MP157 arch/arm/mach-stm32mp/cpu.c | 44 +--- 1

Re: [U-Boot] [PATCH 1/1] bios_emulator: remove assignment without effect

2018-03-19 Thread Simon Glass
On 18 March 2018 at 04:01, Heinrich Schuchardt wrote: > Assigning a parameter which is not used afterwards has not effect. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/bios_emulator/atibios.c | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass It is probably just trying

[U-Boot] [PATCH 2/2] stm32mp: add check of cpu identifier

2018-03-19 Thread Patrick Delaunay
Add support of DBGMCU_IDC for cpu identifier and revision Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c| 48 +- arch/arm/mach-stm32mp/include/mach/sys_proto.h | 16 + 2 files changed, 63 insertions(+), 1 deletion(-) create m

Re: [U-Boot] Moving the rk_board_late_init() hook to a device-model based implementation.

2018-03-19 Thread Dr. Philipp Tomsich
Simon, ping? Thanks, Philipp. > On 26 Feb 2018, at 14:02, Dr. Philipp Tomsich > wrote: > > Simon & Kever, > > We have the rk_board_late_init() hook for the Rockchip boards and I’d like to > convert > these to some sort of device-model based implementation. > > Here’s what I’d propose as a

Re: [U-Boot] [PATCH v1] rtc: rewrite isl1208 to support DM

2018-03-19 Thread Simon Glass
Hi Klaus, On 18 March 2018 at 11:35, Klaus Goger wrote: > Adds devicemodel support to the ISL1208 driver. > This patch drops the non-dm API as no board was using it anyway. > Also add it to Kconfig. > > Signed-off-by: Klaus Goger > > --- > > drivers/rtc/Kconfig | 7 +++ > drivers/rtc/isl120

Re: [U-Boot] [PATCH 1/2] spi: bcm63xx_spi: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:27, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/spi/bcm63xx_spi.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-B

Re: [U-Boot] [PATCH 1/1] regulator: pbias: don't evaluate variable before assignment

2018-03-19 Thread Simon Glass
On 18 March 2018 at 05:01, Heinrich Schuchardt wrote: > We should not evaluate the value of reg before its value is set. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/power/regulator/pbias_regulator.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Simon Glas

Re: [U-Boot] [PATCH 2/2] usb: kbd: implement special keys

2018-03-19 Thread Simon Glass
+Tom for comment Hi Heinrich, On 8 March 2018 at 15:04, Heinrich Schuchardt wrote: > On 03/08/2018 09:30 PM, Simon Glass wrote: >> Hi Heinrich, >> >> input.c uses PS/2 scan codes at present. However these are somewhat >> internal. You should see docs in input.h >> >> I am not sure of the best ap

Re: [U-Boot] [PATCH v3] x86: zImage: pass device tree setup data to the kernel

2018-03-19 Thread Simon Glass
On 18 March 2018 at 21:38, Bin Meng wrote: > Hi Ivan, > > On Sat, Mar 17, 2018 at 8:32 AM, Ivan Gorinov wrote: >> On x86 platforms, U-Boot does not provide Device Tree data to the kernel. >> This prevents the kernel from using the same hardware description. >> >> Make a copy of DTB data with setu

Re: [U-Boot] [PATCH] power: domain: bcm6328: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:25, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/power/domain/bcm6328-power-domain.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mail

Re: [U-Boot] [PATCH] ram: bmips: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:27, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/ram/bmips_ram.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [PATCH 1/2] led: bcm6358: convert to use live dt

2018-03-19 Thread Simon Glass
Hi Alvaro, On 17 March 2018 at 05:25, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/led/led_bcm6358.c | 40 +++- > 1 file changed, 15 insertions(+), 25 deletions(-) > > diff --git a/drivers/led/led_bcm6358.c b/drivers/l

Re: [U-Boot] [PATCH v2 02/10] usb: omap5: Add glue logic to support DM for USB host

2018-03-19 Thread Simon Glass
Hi Jean-Jacques, On 14 March 2018 at 10:18, Jean-Jacques Hiblot wrote: > The omap5 uses the dwc3. The dwc3 supports the driver model but it requires > some glue logic to load the the driver. > > Signed-off-by: Jean-Jacques Hiblot > --- > > Changes in v2: None > > drivers/usb/host/Kconfig

Re: [U-Boot] [PATCH] watchdog: bcm6345: convert to use live dt

2018-03-19 Thread Simon Glass
Hi. On 17 March 2018 at 12:39, Daniel Schwierzeck wrote: > > > On 17.03.2018 12:23, Álvaro Fernández Rojas wrote: >> Signed-off-by: Álvaro Fernández Rojas >> --- >> drivers/watchdog/bcm6345_wdt.c | 5 ++--- >> 1 file changed, 2 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/watchdog/b

Re: [U-Boot] [PATCH 2/2] spi: bcm63xx_hsspi: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:27, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/spi/bcm63xx_hsspi.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) It would be great to have a short commit message on these. Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH v2 01/10] syscon: dm: Add a new method to get a regmap from DTS

2018-03-19 Thread Simon Glass
Hi Jean-Jacques, On 14 March 2018 at 10:18, Jean-Jacques Hiblot wrote: > syscon_regmap_lookup_by_phandle() can be used to the regmap of a syscon > device from a reference in the DTS. It operates similarly to the linux > version of the namesake function. > > Signed-off-by: Jean-Jacques Hiblot > -

Re: [U-Boot] [PATCH] drivers: reset: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:24, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/reset/reset-bcm6345.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass Should we have a dev_read_addr_size()? > > diff --git a/drivers/reset/r

Re: [U-Boot] [PATCH] clk: bcm6345: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:24, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/clk/clk_bcm6345.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@li

Re: [U-Boot] [PATCH 2/2] led: bcm6328: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:25, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/led/led_bcm6328.c | 48 > +-- > 1 file changed, 17 insertions(+), 31 deletions(-) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH] serial: bcm6345: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:23, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/serial/serial_bcm6345.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-B

Re: [U-Boot] [PATCH v2] core: ofnode: Fix translation for #size-cells == 0

2018-03-19 Thread Simon Glass
On 12 March 2018 at 07:53, Mario Six wrote: > Commit 286ede6 ("drivers: core: Add translation in live tree case") made > dev_get_addr always use proper bus translations for addresses read from > the device tree. But this leads to problems with certain busses, e.g. > I2C busses, which run into an e

Re: [U-Boot] [PATCH] gpio: bcm6345: convert to use live dt

2018-03-19 Thread Simon Glass
On 17 March 2018 at 05:24, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/gpio/bcm6345_gpio.c | 14 +- > 1 file changed, 5 insertions(+), 9 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing li

Re: [U-Boot] [PATCH] dm: core: make fixed-clock dt scan live dt compatible

2018-03-19 Thread Simon Glass
Hi Andy, On 10 March 2018 at 23:58, Andy Yan wrote: > > Hi Simon: > > > > On 2018年03月09日 05:03, Simon Glass wrote: >> >> Hi Andy. >> >> On 28 February 2018 at 23:08, Andy Yan wrote: >>> >>> dm_scan_fdt_node can't work when live dt is active, >>> we should use dm_scan_fdt_live instead. >>> >>> Si

Re: [U-Boot] [PATCH 3/4] imx: hab: Specify IVT padding size

2018-03-19 Thread Breno Matheus Lima
Hi Bryan, 2018-03-17 8:06 GMT-03:00 Bryan O'Donoghue : > > > On 15/03/18 16:54, Breno Matheus Lima wrote: >> >> Hi Bryan, >> >> 2018-03-09 14:35 GMT-03:00 Bryan O'Donoghue : >>> >>> This patch adds IVT_PAD_SIZE at 0xC00. The IVT header is padded to this >>> size. Defining the size explicitly makes

  1   2   >