Re: [U-Boot] [PATCH v2 1/1] usb: musb-new: misplaced out of bounds check

2018-03-19 Thread Heinrich Schuchardt
On 03/19/2018 07:50 AM, Heinrich Schuchardt wrote: > musb->endpoints[] has array size MUSB_C_NUM_EPS. > We must check array bounds before accessing the array and not afterwards. > > Signed-off-by: Heinrich Schuchardt > --- > v2 > do not move the ep->desc check > --- Upstreamed as https://l

Re: [U-Boot] [RFC PATCH] Allow providing default environment from file

2018-03-19 Thread Sean Nyekjær
On 2018-02-02 21:15, Rasmus Villemoes wrote: On 2018-01-24 10:55, Rasmus Villemoes wrote: It is sometimes useful to be able to define the entire default environment in an external file. This implements a Kconfig option for allowing that. ping Hi Tom Will you please take a look a this? /Sean

Re: [U-Boot] rockchip: rk3399: set fdtfile

2018-03-19 Thread klaus . goger
> On 17.03.2018, at 09:48, Mark Kettenis wrote: > > Signed-off-by: Mark Kettenis > Acked-by: Philipp Tomsich > --- > include/configs/rk3399_common.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h > index d700bf2549..9a

Re: [U-Boot] [PATCH] usb: dwc2_udc_otg: Add gotgctl customization

2018-03-19 Thread Patrice CHOTARD
Hi Marek On 03/16/2018 05:28 PM, Marek Vasut wrote: > On 03/16/2018 01:27 PM, Patrice Chotard wrote: >> Allow passing in a custom configuration of the gotgctl >> register via platform data. >> This allows for example to override the A/B session valid signals >> by setting AvalidOvEn / AvalidOvVal

Re: [U-Boot] uboot for ARRIA10 SoC

2018-03-19 Thread Friedrich Daniel
Hello Claudio, Sry I have not knowledge about that, but I have not seen any code that actually das the checking, it always writes the *rbf-file on boot. Maybe a look into the Linux Kernel src code inside the fpga_manager for the altera FPGAs might have something so you can extend u-boot with you

Re: [U-Boot] rockchip: rk3399: set fdtfile

2018-03-19 Thread Jonathan Gray
On Mon, Mar 19, 2018 at 08:17:49AM +0100, klaus.go...@theobroma-systems.com wrote: > > > On 17.03.2018, at 09:48, Mark Kettenis wrote: > > > > Signed-off-by: Mark Kettenis > > Acked-by: Philipp Tomsich > > --- > > include/configs/rk3399_common.h | 1 + > > 1 file changed, 1 insertion(+) > > >

Re: [U-Boot] rockchip: rk3399: set fdtfile

2018-03-19 Thread Philipp Tomsich
> Signed-off-by: Mark Kettenis > Acked-by: Philipp Tomsich > Tested-by: Klaus Goger > --- > include/configs/rk3399_common.h | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://

[U-Boot] [PATCH 2/5] i.MX6: Change SYS_SOC from mx6 to imx6

2018-03-19 Thread Jagan Teki
Now, MX6 has proper CONFIG names so rename the SYS_SOC to imx6 from mx6 and also change related files. Signed-off-by: Jagan Teki --- .travis.yml| 4 ++-- arch/arm/Kconfig | 2 +- arch/arm/Makefile

[U-Boot] [PATCH 0/5] ARM: i.MX6: Add proper CONFIG names

2018-03-19 Thread Jagan Teki
This series add proper CONFIG names for i.MX6 architecture code, where CONFIG_MX6 become CONFIG_ARCH_IMX6 and rest of SOC types like CONFIG_MX6Q become CONFIG_SOC_IMX6Q which is similar to Linux. patch 1: Update new CONFIG names globally to all files for i.MX6 code patch 2: Change SYS_SOC from mx

[U-Boot] [PATCH 3/5] ARM: dts: i.MX6QDL: U-Boot specific dts for u-boot, dm-spl

2018-03-19 Thread Jagan Teki
u-boot,dm-spl property is specific to U-Boot, so move it into *u-boot.dtsi files for relevant i.MX6QDL files. This make syncing Linux dts files straight forward. Also update the MAINTAINERS file for dts files. Signed-off-by: Jagan Teki --- arch/arm/dts/imx6dl-icore-mipi-u-boot.dtsi | 11 ++

[U-Boot] [PATCH 4/5] ARM: dts: i.MX6UL: U-Boot specific dts for u-boot, dm-spl

2018-03-19 Thread Jagan Teki
u-boot,dm-spl property is specific to U-Boot, so move it into *u-boot.dtsi files for relevant i.MX6UL files. This make syncing Linux dts files straight forward. Also update the MAINTAINERS file for dts files. Signed-off-by: Jagan Teki --- arch/arm/dts/imx6ul-geam-kit-u-boot.dtsi | 25 +

[U-Boot] [PATCH 5/5] ARM: i.MX6: dts: Build dtb based on SOC type

2018-03-19 Thread Jagan Teki
Now, we have proper CONFIG_SOC_ names for i.MX6 SOC types, so use the same for building dtbs. Signed-off-by: Jagan Teki --- arch/arm/dts/Makefile | 44 ++-- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/arch/arm/dts/Makefile b/arch/arm/dt

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

2018-03-19 Thread Jagan Teki
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 --- Changes for v5: - Renames I2C_SUN6I_P2WI to SUN6I_P2WI arch/arm/mach-sunxi/Kconfig | 12 arch/arm/mach-sunxi/Makefile | 2 +- 2 files

Re: [U-Boot] [PATCH 1/1] video: cfb_console: simplify logical constraint

2018-03-19 Thread Anatolij Gustschin
On Sun, 18 Mar 2018 14:24:39 +0100 Heinrich Schuchardt xypron.g...@gmx.de wrote: > (A || !A && B) == (A || B) > > Signed-off-by: Heinrich Schuchardt > --- > drivers/video/cfb_console.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-video/master, thanks! -- Anatolij

Re: [U-Boot] [PATCH 1/1] video, da8xx-fb: fix time out in wait_for_event()

2018-03-19 Thread Anatolij Gustschin
On Sun, 18 Mar 2018 14:48:06 +0100 Heinrich Schuchardt xypron.g...@gmx.de wrote: > If an event does not occur the current coding stays in an endless loop. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/video/da8xx-fb.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Applie

Re: [U-Boot] [PATCH 1/1] video: stb_truetype: simplify expression

2018-03-19 Thread Anatolij Gustschin
On Sun, 18 Mar 2018 14:31:43 +0100 Heinrich Schuchardt xypron.g...@gmx.de wrote: > Eliminate (x2 - x2) which is always zero. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/video/stb_truetype.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-video/master, thank

Re: [U-Boot] [PATCH 1/1] video: exynos: remove redundant assignments

2018-03-19 Thread Anatolij Gustschin
On Mon, 19 Mar 2018 07:46:08 +0100 Heinrich Schuchardt xypron.g...@gmx.de wrote: > No need to initialize variables if the next usage is an assignment. > > Signed-off-by: Heinrich Schuchardt > --- > v2 > add missing semicolon > --- > drivers/video/exynos/exynos_dp.c | 12 ++-- > 1

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

2018-03-19 Thread Andy Shevchenko
On Fri, 2018-03-16 at 17:16 -0700, Ivan Gorinov wrote: > On Fri, 2018-03-16 at 19:52 +0200, Andy Shevchenko 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

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

2018-03-19 Thread Calvin Johnson
> > It would be good to have this cosmetic change into a separate patch. > > Ok. But at this stage I'm at the "Forgive me Lord for I know not what > I do" 😊 . Let me know, if you need steps to separate this out. To me, it is okay even If you keep this in the same patch. > > > /* Set IP hea

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

2018-03-19 Thread Marek Vasut
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) > > are available in the git repository at: > > git://git.denx.de/u-b

Re: [U-Boot] [PATCH] usb: dwc2_udc_otg: Add gotgctl customization

2018-03-19 Thread Marek Vasut
On 03/19/2018 09:05 AM, Patrice CHOTARD wrote: > Hi Marek Hi, > On 03/16/2018 05:28 PM, Marek Vasut wrote: >> On 03/16/2018 01:27 PM, Patrice Chotard wrote: >>> Allow passing in a custom configuration of the gotgctl >>> register via platform data. >>> This allows for example to override the A/B s

Re: [U-Boot] [PATCH v3] tools/mxsimage: Support building with LibreSSL

2018-03-19 Thread Jonathan Gray
On Sun, Mar 18, 2018 at 04:03:47PM +0100, Hauke Mehrtens wrote: > The mxsimage utility fails to compile against LibreSSL version < 2.7.0 > because LibreSSL says it is OpenSSL 2.0, but it does not support the > complete OpenSSL 1.1 interface. > > LibreSSL defines OPENSSL_VERSION_NUMBER with 0x2

[U-Boot] [PATCH v2 3/3] Convert CONFIG_UBI_SILENCE_MSG to Kconfig

2018-03-19 Thread Petr Vorel
Signed-off-by: Petr Vorel --- README| 6 -- configs/am335x_igep003x_defconfig | 1 + configs/igep0032_defconfig| 1 + drivers/mtd/ubi/Kconfig | 8 env/Kconfig | 5 - include/configs/am335x_igep003x.h | 3 --- inc

[U-Boot] [PATCH v2 1/3] ubifs: Reintroduce using CONFIG_UBIFS_SILENCE_MSG

2018-03-19 Thread Petr Vorel
Use of CONFIG_UBIFS_SILENCE_MSG was added in 147162dac6 ("ubi: ubifs: Turn off verbose prints") Then it was removed in ff94bc40af ("mtd, ubi, ubifs: resync with Linux-3.14") Cc: Joe Hershberger Cc: Heiko Schocher Signed-off-by: Petr Vorel --- Changes v1->v2: Rebased to current master as reques

[U-Boot] [PATCH v2 2/3] Convert CONFIG_UBIFS_SILENCE_MSG to Kconfig

2018-03-19 Thread Petr Vorel
Signed-off-by: Petr Vorel Cc: Joe Hershberger Cc: Heiko Schocher --- README| 6 -- configs/am335x_igep003x_defconfig | 1 + configs/igep0032_defconfig| 1 + env/Kconfig | 1 - fs/ubifs/Kconfig | 7 +++ include/co

Re: [U-Boot] [U-Boot, 1/3] ubifs: Reintroduce using CONFIG_UBIFS_SILENCE_MSG

2018-03-19 Thread Petr Vorel
Hello Heiko, > Hello Petr, > Am 18.03.2018 um 19:30 schrieb Petr Vorel: > > Hi, > > > Use of CONFIG_UBIFS_SILENCE_MSG was added in > > > 147162dac6 ("ubi: ubifs: Turn off verbose prints") > > > Then it was removed in > > > ff94bc40af ("mtd, ubi, ubifs: resync with Linux-3.14") > > > Cc: Joe He

[U-Boot] [PATCH] fs: btrfs: Remove unused debug code left from development

2018-03-19 Thread Marek Behún
Signed-off-by: Marek Behun --- fs/btrfs/btrfs.c | 4 fs/btrfs/ctree.c | 10 -- 2 files changed, 14 deletions(-) diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c index 4140e2bc20..b01b111bfb 100644 --- a/fs/btrfs/btrfs.c +++ b/fs/btrfs/btrfs.c @@ -221,7 +221,3 @@ int btrfs_uuid(char

Re: [U-Boot] rockchip: rk3399: set fdtfile

2018-03-19 Thread Mark Kettenis
> From: klaus.go...@theobroma-systems.com > Date: Mon, 19 Mar 2018 08:17:49 +0100 > > > On 17.03.2018, at 09:48, Mark Kettenis wrote: > > > > Signed-off-by: Mark Kettenis > > Acked-by: Philipp Tomsich > > --- > > include/configs/rk3399_common.h | 1 + > > 1 file changed, 1 insertion(+) > > > >

Re: [U-Boot] [RFC PATCH] Allow providing default environment from file

2018-03-19 Thread Tom Rini
On Wed, Jan 24, 2018 at 10:55:59AM +0100, Rasmus Villemoes wrote: > It is sometimes useful to be able to define the entire default > environment in an external file. This implements a Kconfig option for > allowing that. > > It is somewhat annoying to have two visible Kconfig options; it would > p

[U-Boot] Please pull u-boot-video/master

2018-03-19 Thread Anatolij Gustschin
Hi Tom, 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-video.git master for you to fetch changes up to cc1b0e7b8e55bbc

[U-Boot] [PATCH] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-03-19 Thread Wadim Egorov
The generic ehci-driver (ehci-generic.c) will try to enable the clocks listed in the DTSI. If this fails (e.g. due to clk_enable not being implemented in a driver and -ENOSYS being returned by the clk-uclass), the driver will bail our and print an error message. This implements a minimal clk_enabl

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

2018-03-19 Thread Marek Vasut
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-usb.git master for you to fetch changes up to ac6c796c3f5c7b7594cf4ecede8cd8f

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

2018-03-19 Thread Dr. Philipp Tomsich
Punit, > On 19 Mar 2018, at 18:21, Punit Agrawal wrote: > > Heinrich Schuchardt mailto:xypron.g...@gmx.de>> 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 |

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

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

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

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

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

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

[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

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

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

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

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

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

  1   2   >