[U-Boot] [PATCH v2 02/14] spl: net: dm: usb: bind the gadget before attempting to load the image

2018-12-04 Thread Jean-Jacques Hiblot
If DM_USB_GADGET is used, the usb ethernet gadget driver must be bound to a controller before the image can be downloaded over the network. In u-boot this can be done with the bind command. In SPL it must be done programmatically. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini ---

[U-Boot] [PATCH v2 03/14] phy: omap_usb2: Add support for am437x

2018-12-04 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None drivers/phy/omap-usb2-phy.c | 45 ++--- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c index

[U-Boot] [PATCH v2 04/14] dwc3-generic: Add support for the am437x

2018-12-04 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 0c189b8..3e6c494 100644 ---

[U-Boot] [PATCH v2 5/6] usb: host: replace xhci-keystone driver by the generic dwc3 driver

2018-12-04 Thread Jean-Jacques Hiblot
The keystone platforms can use the generic DC3 driver. Removing the keystone-spcecific xchi driver and add the configuration options to enable the generic DWC3 driver on all K2 platforms. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None

[U-Boot] [PATCH v2 2/6] board: ks2_evm: Enable the USB clocks if DM_USB is used

2018-12-04 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None board/ti/ks2_evm/board.c | 12 1 file changed, 12 insertions(+) diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 72709c0..c888306 100644 --- a/board/ti/ks2_evm/board.c +++ b/board/ti/ks2_evm/board.c

[U-Boot] [PATCH v2 6/6] configs: k2g_evm: Enable DFU on K2G EVM

2018-12-04 Thread Jean-Jacques Hiblot
The K2G evm uses the generic DWC3 driver. DFU can thus be enabled. Enabling DFU for easier firmware update. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - rebased on latest version of u-boot-usb/master - use DM_USB_GADGET instead of DM_USB_DEV configs/k2g_evm_defconfig|

Re: [U-Boot] [PATCH 0/2] cmd: auto-complete args starting with a $

2018-12-04 Thread Wolfgang Denk
Dear Boris, In message <20181204105448.63b9af8c@bbrezillon> you wrote: > > > > It's pretty common to pass arguments that start with a $ and are then > > > expanded by the shell, and I'm this kind of lazy guy that hits tab all > > > the time and expects the shell to suggest something appropriate.

[U-Boot] [PATCH] configs: Move CONFIG_SPI_FLASH into defconfigs

2018-12-04 Thread Vignesh R
Completely move CONFIG_SPI_FLASH from remaining board header files to defconfigs Signed-off-by: Vignesh R --- Done with the help of moveconfig.py. Compile tested on travis-ci: https://travis-ci.org/r-vignesh/u-boot/builds/463155999 configs/cgtqmx6eval_defconfig| 1 +

Re: [U-Boot] about rk3399 boot speed

2018-12-04 Thread Philipp Tomsich
Kever, A fix is in Simon’s queue. One of the early picks from the merge window caused this. The details are in the patch that Klaus referenced... Thanks, Philipp. > On 04.12.2018, at 08:56, klaus.go...@theobroma-systems.com wrote: > > Hi Kever, > > I can confirm that current master behaves

Re: [U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-04 Thread Wolfgang Denk
Dear Fabio, In message you wrote: > > On Mon, Dec 3, 2018 at 1:52 PM Wolfgang Denk wrote: > > > Can you live with something like this: > > > > #define CONFIG_ENV_OFFSET (768 * 1024) > > #define CONFIG_BOARD_SIZE_LIMIT ((768 * 1024) - (69 * 1024)) > > It does not work: > >

Re: [U-Boot] [PATCH] rockchip: rk3288: dts: remove 'vmmc' from emmc node

2018-12-04 Thread Philipp Tomsich
Kever, > On 04.12.2018, at 08:06, Kever Yang wrote: > > Hi Fabio, > > > On 12/03/2018 07:27 PM, Fabio Estevam wrote: >> Hi Kever, >> >> On Mon, Dec 3, 2018 at 2:00 AM Kever Yang wrote: >>> The U-Boot eMMC does not need to care about the power for Rockchip >>> SoC, because if the board is

Re: [U-Boot] [PATCH v7 4/4] RISC-V: Add S-mode timer implementation

2018-12-04 Thread Bin Meng
Hi Anup, On Tue, Dec 4, 2018 at 4:37 PM Anup Patel wrote: > > On Tue, Dec 4, 2018 at 1:44 PM Bin Meng wrote: > > > > Hi Rick, > > > > On Tue, Dec 4, 2018 at 3:12 PM Rick Chen wrote: > > > > > > > > From: Anup Patel [mailto:a...@brainfault.org] > > > > > Sent: Monday, December 03, 2018 6:30 PM

[U-Boot] [PATCH v1 3/4] ARM: vf610: ddrmc: fix initialization completion detection

2018-12-04 Thread Stefan Agner
From: Stefan Agner The CR80 register has multiple interrupt bits, the code is supposed to check bit 8 but instead uses a logical and. In most cases this probably did not affect real operations since at that stage typically none of the other bits are set. Signed-off-by: Stefan Agner Acked-by:

[U-Boot] [PATCH v1 2/4] ARM: vf610: ddrmc: fix CR138 preprocessor define

2018-12-04 Thread Stefan Agner
From: Stefan Agner According to the data sheet bits 10-8 are PHYDRAM_CK_EN. Fix mask to allow setting PHYDRAM_CK_EN correctly. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- arch/arm/include/asm/arch-vf610/imx-regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH v1 1/4] toradex: colibri_vf: fix memory initialization

2018-12-04 Thread Stefan Agner
From: Stefan Agner Commit 3f353ceccbbb ("vf610: refactor DDRMC code") changed on-die termination (ODT) values from 120 Ohm to 60 Ohm and enabled a static read/write leveling which has not been tested with this board. This commit reverts both changes and makes sure that memory gets initialized as

[U-Boot] [PATCH] tools: add a generic config for native tools building

2018-12-04 Thread Otavio Salvador
The motivation for this is to allow distributions to distribute all possible tools in a generic way, avoiding the need of specific tools building for each machine. Especially on OpenEmbedded / Yocto Project ecosystem, it is very common each BSP to end providing their specific tools when they need

[U-Boot] [PATCH v2 14/14] configs: am335x_boneblack_vboot: enable DM_USB and RNDIS boot in SPl

2018-12-04 Thread Jean-Jacques Hiblot
Enable DM_USB and DM_USB_GADGET for this platform. Also enable RNDIS boot support (SPL load u-boot over USB RNDIS). This is an example of how to use DM_USB on a am335x-based board. A subsequent series will take this a step further and modify more defconfigs. Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH v2 01/14] spl: drivers: Link usb common library to SPL if USB gadget is enabled

2018-12-04 Thread Jean-Jacques Hiblot
Some drivers might need to access common USB functions such as usb_get_maximum_speed() or usb_get_dr_mode(). Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None drivers/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/Makefile

Re: [U-Boot] [PATCH] rockchip: rk322x: ram: enable DRAM init in SPL instead of TPL

2018-12-04 Thread Philipp Tomsich
On 04.12.2018, at 10:49, Kever Yang wrote: > > Patch for rk322x TPL is not merged, and only SPL is available now, > enable the sdram driver in SPL first. We should update back to TPL > after TPL is enabled for rk322x. > > Signed-off-by: Kever Yang Reviewed-by: Philipp Tomsich

Re: [U-Boot] [PATCH v1 1/4] toradex: colibri_vf: fix memory initialization

2018-12-04 Thread Lukasz Majewski
Hi Stefan, > From: Stefan Agner > > Commit 3f353ceccbbb ("vf610: refactor DDRMC code") changed on-die > termination (ODT) values from 120 Ohm to 60 Ohm and enabled a static > read/write leveling which has not been tested with this board. This > commit reverts both changes and makes sure that

Re: [U-Boot] [RESEND][PATCH] power: regulator: denied disable on always-on regulator

2018-12-04 Thread Patrice CHOTARD
Hi Simon On 12/3/18 7:20 PM, Simon Glass wrote: > Hi, > > On Mon, 3 Dec 2018 at 04:07, Felix Brack wrote: >> >> On 15.11.2018 13:45, Patrice Chotard wrote: >>> From: Patrick Delaunay >>> >>> Don't disable regulator which are tagged as "regulator-always-on" in DT. >>> >>> Signed-off-by: Patrick

Re: [U-Boot] [PATCH v7 4/4] RISC-V: Add S-mode timer implementation

2018-12-04 Thread Bin Meng
Hi Rick, On Tue, Dec 4, 2018 at 3:12 PM Rick Chen wrote: > > > > From: Anup Patel [mailto:a...@brainfault.org] > > > Sent: Monday, December 03, 2018 6:30 PM > > > To: Bin Meng > > > Cc: Rick Jian-Zhi Chen(陳建志); Lukas Auer; Alexander Graf; Palmer Dabbelt; > > > Atish Patra; Christoph Hellwig;

Re: [U-Boot] [PATCH] net: mvgbe: fallback phy-mode to GMII

2018-12-04 Thread Stefan Roese
On 04.12.18 07:54, Chris Packham wrote: Some existing device trees don't specify a phy-mode so fallback to GMII when a phy-mode is not provided. Signed-off-by: Chris Packham --- This is similar to what the Linux mv643xx_eth.c network driver does to handle the same case. drivers/net/mvgbe.c

Re: [U-Boot] [PATCH] board: ti: ks2_evm: Over ride spl_get_load_buffer function

2018-12-04 Thread Keerthy
On Tuesday 27 November 2018 05:52 PM, Keerthy wrote: > Currently k2 spi boot is broken as the image header > is getting copied to an invalid memory location > > CONFIG_SYS_TEXT_BASE - sizeof (struct image_size) > which maps to 0xc00 - 0x40 = 0xbc0 being a reserved > location. > > We

Re: [U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-04 Thread Wolfgang Denk
Dear Otavio, In message you wrote: > > Agreed. It is better Wolfgang to send a tested solution before we > change it one more time. My patch _was_ tested. I can only speculate that Fabio applied it manually, and made a mistake. > This fix should go in as the board is broken without it. Yes,

[U-Boot] [PATCH v2 11/14] usb: musb-new: Add support for DM_USB

2018-12-04 Thread Jean-Jacques Hiblot
Enable DM for USB peripheral in the musb-new driver. Also make sure that the driver can be used in the SPL. This implies that: * the driver must work with and without the OF_CONTROL option. That in turn, implies that the platform data can be passed in a struct ti_musb_platdata or be read from the

[U-Boot] [PATCH v2 09/14] configs: am43xx: Enable RNDIS support in SPL

2018-12-04 Thread Jean-Jacques Hiblot
The AM43xx SOCs have the ability to download the SPl through USB (RNDIS). Adding support for RNDIS in SPL allows to also download u-boot through USB. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: - use CONFIG_SPL_DM_USB and CONFIG_SPL_DM_USB_GADGET

[U-Boot] [PATCH v2 13/14] configs: am335x_evm: Do not disable DM_USB in SPL

2018-12-04 Thread Jean-Jacques Hiblot
DM_USB is now supported in the SPL. Do not undef it Besides to support DM_USB in SPL, one now has to use SPL_DM_USB Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None include/configs/am335x_evm.h | 1 - 1 file changed, 1 deletion(-) diff --git

[U-Boot] [PATCH v2 12/14] arm: am33xx: Register USB controllers if DM_USB is used but not OF_CONTROL

2018-12-04 Thread Jean-Jacques Hiblot
When DM_USB is used, either the USB controllers are bound when the DTB is parsed (when OF_CONTROL is enabled) or they are bound using the U_BOOT_DEVICES() macro. In the later case, the platform data is passed in a struct ti_musb_platdata because it cannot be read from the DTB. Signed-off-by:

Re: [U-Boot] [PATCH 0/2] cmd: auto-complete args starting with a $

2018-12-04 Thread Boris Brezillon
Hi Wolfgang, On Tue, 04 Dec 2018 11:14:31 +0100 Wolfgang Denk wrote: > Dear Boris, > > In message <20181204105448.63b9af8c@bbrezillon> you wrote: > > > > > > It's pretty common to pass arguments that start with a $ and are then > > > > expanded by the shell, and I'm this kind of lazy guy

Re: [U-Boot] [PATCH v1 3/4] ARM: vf610: ddrmc: fix initialization completion detection

2018-12-04 Thread Lukasz Majewski
Hi Stefan, > From: Stefan Agner > > The CR80 register has multiple interrupt bits, the code is supposed > to check bit 8 but instead uses a logical and. In most cases this > probably did not affect real operations since at that stage typically > none of the other bits are set. It can exit the

Re: [U-Boot] [ANN] U-Boot v2019.01-rc1 released

2018-12-04 Thread Kever Yang
Hi,     Any one get  any idea about below error? I'm using evb-rk3229_defconfig and gcc-linaro-6.3.1-2017.05.   LD  u-boot fs/built-in.o: In function `set_contents': /home/kever/src/u-boot/fs/fat/fat_write.c:831: undefined reference to `__aeabi_ldivmod'

Re: [U-Boot] [PATCH 0/2] cmd: auto-complete args starting with a $

2018-12-04 Thread Wolfgang Denk
Dear Boris, In message <20181203220726.19370-1-boris.brezil...@bootlin.com> you wrote: > > It's pretty common to pass arguments that start with a $ and are then > expanded by the shell, and I'm this kind of lazy guy that hits tab all > the time and expects the shell to suggest something

[U-Boot] [PATCH] rockchip: rk322x: ram: enable DRAM init in SPL instead of TPL

2018-12-04 Thread Kever Yang
Patch for rk322x TPL is not merged, and only SPL is available now, enable the sdram driver in SPL first. We should update back to TPL after TPL is enabled for rk322x. Signed-off-by: Kever Yang --- drivers/ram/rockchip/sdram_rk322x.c | 12 ++-- 1 file changed, 6 insertions(+), 6

[U-Boot] [PATCH v2 1/6] usb: dwc3-generic: make it compatible with "ti, keystone-dwc3"

2018-12-04 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index bc6bba1..0c189b8 100644 ---

[U-Boot] [PATCH v2 3/6] ARM: dts: k2g-evm: enable USB0 and USB1

2018-12-04 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None arch/arm/dts/keystone-k2g-evm.dts | 28 arch/arm/dts/keystone-k2g.dtsi| 56 +++ 2 files changed, 84 insertions(+) diff --git a/arch/arm/dts/keystone-k2g-evm.dts

[U-Boot] [PATCH v2 4/6] PHY: Add phy driver for the keystone USB PHY

2018-12-04 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None drivers/phy/Kconfig| 10 drivers/phy/Makefile | 1 + drivers/phy/keystone-usb-phy.c | 109 + 3 files changed, 120 insertions(+) create mode

[U-Boot] [PATCH v2 07/14] dts: am4372: Enable USB1 in SPL

2018-12-04 Thread Jean-Jacques Hiblot
USB1 can be used by the romboot on all am4372 platforms to download a firmware (SPL in our case). It makes sense to enable USB1 in the SPL to download u-boot. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None arch/arm/dts/am4372-u-boot.dtsi | 20

[U-Boot] [PATCH v2 08/14] configs: am43xx_evm: Enable DM_USB and DM_USB_GADGET

2018-12-04 Thread Jean-Jacques Hiblot
Enable DM_USB and DM_USB_GADGET for AM43xx EVM boards. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None configs/am43xx_evm_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/am43xx_evm_defconfig b/configs/am43xx_evm_defconfig index

Re: [U-Boot] [PATCH v1 4/4] ARM: vf610: ddrmc: do not write CR79 by default

2018-12-04 Thread Lukasz Majewski
Hi Stefan, > From: Stefan Agner > > The current value CTLUPD_AREF(0) is the reset value of the register, > so there is no need to write a value. If needed, the register can be > written using board specific CR settings. > > Signed-off-by: Stefan Agner > Acked-by: Marcel Ziswiler > --- > >

[U-Boot] [PATCH v1 0/4] ddr: vybrid: various fixes

2018-12-04 Thread Stefan Agner
From: Stefan Agner Some random fixes in vf610 DDR controller initialization. Especially the first patch fixes boot on some Toradex Colibri VFxx modules. -- Stefan Stefan Agner (4): toradex: colibri_vf: fix memory initialization ARM: vf610: ddrmc: fix CR138 preprocessor define ARM:

Re: [U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-04 Thread Fabio Estevam
Hi Wolfgang, On Tue, Dec 4, 2018 at 7:37 AM Wolfgang Denk wrote: > Is there any chance you mis-applied my patch? Ok, so I started again. 1. Applied the following patch: http://dark-code.bulix.org/tualst-517948 2. make mproper; make make pico-pi-imx7d_defconfig; make 3. Build fails:

Re: [U-Boot] [PATCH] cmd: i2c: Fix help output of i2c command.

2018-12-04 Thread Philipp Tomsich
> On 04.12.2018, at 11:27, Christoph Muellner > wrote: > > In case SYS_I2C or DM_I2C are defined, then the "i2c " prefix > of the "i2c crc32" command is missing. > This patch addresses this, so that users can't get confused > by the "crc32" command. > > Without the patch we get > >=>

Re: [U-Boot] [PATCH v1 3/4] ARM: vf610: ddrmc: fix initialization completion detection

2018-12-04 Thread Stefan Agner
On 04.12.2018 11:59, Lukasz Majewski wrote: > Hi Stefan, > >> From: Stefan Agner >> >> The CR80 register has multiple interrupt bits, the code is supposed >> to check bit 8 but instead uses a logical and. In most cases this >> probably did not affect real operations since at that stage typically

Re: [U-Boot] [PATCH v2] tools: zynqmpimage: round up partition size

2018-12-04 Thread Michal Simek
On 03. 12. 18 16:37, Michael Tretter wrote: > The FSBL copies "Total Partition Word Length" * 4 bytes from the boot.bin, > which implies that the partition size is 4 byte aligned. When writing the > partition, mkimage calculates "Total Partition Word Length" by dividing > the size by 4. This

Re: [U-Boot] [ANN] U-Boot v2019.01-rc1 released

2018-12-04 Thread Kever Yang
On 12/04/2018 04:06 PM, Kever Yang wrote: > Hi, > >     Any one get  any idea about below error? I'm using > evb-rk3229_defconfig and gcc-linaro-6.3.1-2017.05. One more information missing, I can build success with default config, but fail with DEBUG option enable in header file like this: +++

Re: [U-Boot] [PATCH v7 4/4] RISC-V: Add S-mode timer implementation

2018-12-04 Thread Anup Patel
On Tue, Dec 4, 2018 at 1:44 PM Bin Meng wrote: > > Hi Rick, > > On Tue, Dec 4, 2018 at 3:12 PM Rick Chen wrote: > > > > > > From: Anup Patel [mailto:a...@brainfault.org] > > > > Sent: Monday, December 03, 2018 6:30 PM > > > > To: Bin Meng > > > > Cc: Rick Jian-Zhi Chen(陳建志); Lukas Auer;

Re: [U-Boot] [PATCH 0/2] cmd: auto-complete args starting with a $

2018-12-04 Thread Boris Brezillon
On Tue, 04 Dec 2018 10:44:19 +0100 Wolfgang Denk wrote: > Dear Boris, > > In message <20181203220726.19370-1-boris.brezil...@bootlin.com> you wrote: > > > > It's pretty common to pass arguments that start with a $ and are then > > expanded by the shell, and I'm this kind of lazy guy that hits

[U-Boot] [PATCH v1 4/4] ARM: vf610: ddrmc: do not write CR79 by default

2018-12-04 Thread Stefan Agner
From: Stefan Agner The current value CTLUPD_AREF(0) is the reset value of the register, so there is no need to write a value. If needed, the register can be written using board specific CR settings. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- arch/arm/mach-imx/ddrmc-vf610.c |

[U-Boot] [PATCH] cmd: i2c: Fix help output of i2c command.

2018-12-04 Thread Christoph Muellner
In case SYS_I2C or DM_I2C are defined, then the "i2c " prefix of the "i2c crc32" command is missing. This patch addresses this, so that users can't get confused by the "crc32" command. Without the patch we get => i2c help i2c - I2C sub-system Usage: i2c bus

[U-Boot] [PATCH v2 06/14] dts: Add a u-boot specific dtsi file for the am4372

2018-12-04 Thread Jean-Jacques Hiblot
This file is used to override the values found in am4372.dtsi Use it to fix the "compatible" options for the controllers used to support the USB (parent bus and syscons). Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: None arch/arm/dts/am4372-generic-u-boot.dtsi

[U-Boot] [PATCH v2 10/14] usb: musb-new: Allow the diver not to use the set_phy_power() callback

2018-12-04 Thread Jean-Jacques Hiblot
The set_phy_power() callback is part of struct omap_musb_board_data. This structure is part of the platform data passed to the musb-new driver. This does not really fit with the Driver Model, so allow not to use struct omap_musb_board_data to turn the phy on or off. Signed-off-by: Jean-Jacques

[U-Boot] [PATCH v2 05/14] board: ti: am43xx: turn on USB clocks

2018-12-04 Thread Jean-Jacques Hiblot
Enable USB clocks in late init stage to support ports under DM_USB. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v2: - use CONFIG_IS_ENABLED(DM_USB_GADGET) instead of CONFIG_DM_USB_GADGET board/ti/am43xx/board.c | 22 ++ 1 file changed, 22

Re: [U-Boot] [PATCH v1 2/4] ARM: vf610: ddrmc: fix CR138 preprocessor define

2018-12-04 Thread Lukasz Majewski
Hi Stefan, > From: Stefan Agner > > According to the data sheet bits 10-8 are PHYDRAM_CK_EN. Fix mask > to allow setting PHYDRAM_CK_EN correctly. > > Signed-off-by: Stefan Agner > Acked-by: Marcel Ziswiler > --- > > arch/arm/include/asm/arch-vf610/imx-regs.h | 2 +- > 1 file changed, 1

Re: [U-Boot] [PATCH v3 07/28] mtd: ensure MTD is compiled when there is a SPI NOR flash using MTD

2018-12-04 Thread Miquel Raynal
Hi Vignesh, Thanks for reviewing! Vignesh R wrote on Wed, 5 Dec 2018 11:28:29 +0530: > Hi Miquel, > > On 05/12/18 5:26 AM, Miquel Raynal wrote: > > MTD must be enabled when there is a SPI NOR flash using the > > SPI_FLASH_MTD config entry. > > > > I suggest to add Kconfig dependency b/w

Re: [U-Boot] [PATCH] pinctrl: meson: Fix GPIO direction registers access

2018-12-04 Thread Jerome Brunet
On Mon, 2018-12-03 at 18:00 +, Carlo Caione wrote: > The macros used to set the direction of the GPIO pins are misused, > resulting in a wrong behavior when trying to read the GPIO input level > from U-Boot. > > A better macro is also used when setting the output direction. > >

Re: [U-Boot] [PATCH v3 0/8] Fix CVE-2018-18440 and CVE-2018-18439

2018-12-04 Thread Simon Goldschmidt
On Tue, Dec 4, 2018 at 12:45 AM Simon Glass wrote: > > Hi Simon, > > On Mon, 3 Dec 2018 at 12:05, Simon Goldschmidt > wrote: > > > > > > > > Am Mo., 3. Dez. 2018, 19:20 hat Simon Glass geschrieben: > >> > >> Hi Simon, > >> > >> On Mon, 3 Dec 2018 at 00:50, Simon Goldschmidt > >> wrote: > >> >

[U-Boot] [RFC PATCH v2 05/11] mtd: spi: Port SPI NOR framework from Linux

2018-12-04 Thread Vignesh R
Current U-Boot SPI NOR support (sf layer) is quite outdated as it does not support 4 byte addressing opcodes, SFDP table parsing and different types of quad mode enable sequences. Many newer flashes no longer support BANK registers used by sf layer to a access >16MB space. Also, many SPI

[U-Boot] [RFC PATCH v2 04/11] sh: bitops: add hweight*() macros

2018-12-04 Thread Vignesh R
Add hweight*() macros required for moving to new SF layer Signed-off-by: Vignesh R --- arch/sh/include/asm/bitops.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h index 8cb8385d76db..765f28f116bc 100644 ---

Re: [U-Boot] [PATCH 0/2] cmd: auto-complete args starting with a $

2018-12-04 Thread Wolfgang Denk
Dear Boris, In message <20181204113313.577178ac@bbrezillon> you wrote: > > > But is this not based on the code of mtd_name_complete() which is > > only availabole when MTD is present? > > Nope. See patch 1, the code is completely independent from the mtd cmd. OK, then I misread the patches. >

Re: [U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-04 Thread Fabio Estevam
Hi Wolfgang, On Tue, Dec 4, 2018 at 11:03 AM Wolfgang Denk wrote: > IMO there is nothing architecture specific about this check, so we > should probably patch the top level Makefile and remove the test in > arch/arm/mach-imx/Makefile ? It is not so simple, for the two following reasons: 1.

[U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-04 Thread Vignesh R
U-Boot SPI NOR support (sf layer) is quite outdated as it does not support 4 byte addressing opcodes, SFDP table parsing and different types of quad mode enable sequences. Many newer flashes no longer support BANK registers used by sf layer to a access >16MB space. Also, many SPI controllers have

[U-Boot] [RFC PATCH v2 01/11] spi: spi-mem: Allow use of spi_mem_exec_op for all SPI modes

2018-12-04 Thread Vignesh R
SPI controllers support all types of SPI modes including dual/quad bus widths. Therefore remove constraint wrt SPI mode from spi-mem layer. Signed-off-by: Vignesh R --- drivers/spi/spi-mem.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/spi/spi-mem.c

[U-Boot] [RFC PATCH v2 03/11] spi: Add non DM version of SPI_MEM

2018-12-04 Thread Vignesh R
Add non DM version of SPI_MEM to support easy migration to new SPI NOR framework. This can be removed once DM_SPI conversion is complete. Signed-off-by: Vignesh R --- drivers/spi/Kconfig| 4 +- drivers/spi/Makefile | 1 + drivers/spi/spi-mem-nodm.c | 89

[U-Boot] [RFC PATCH v2 08/11] mtd: spi: Add lightweight SPI flash stack for SPL

2018-12-04 Thread Vignesh R
Add a tiny SPI flash stack that just supports reading data/images from SPI flash. This is useful for boards that have SPL size constraints and would need to use SPI flash framework just to read images/data from flash. There is approximately 1.5 to 2KB savings with this. Based on prior work of

[U-Boot] [RFC PATCH v2 09/11] sf_mtd: Simply mtd operations

2018-12-04 Thread Vignesh R
Now that there is new SPI NOR framework, simplify mtd device registration and read/write/erase operations. Signed-off-by: Vignesh R --- drivers/mtd/spi/sf_internal.h | 2 +- drivers/mtd/spi/sf_mtd.c | 39 --- drivers/mtd/spi/sf_probe.c| 2 +- 3 files

Re: [U-Boot] [PATCH v2 22/24] cmd: make all MTD commands depend on MTD

2018-12-04 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 29 Nov 2018 00:59:42 +0100: > On Thu, 29 Nov 2018 00:07:58 +0100 > Miquel Raynal wrote: > > > Defconfigs have been fixed, now we can add proper dependencies in > > Kconfig. > > > > Signed-off-by: Miquel Raynal > > --- > > cmd/Kconfig | 8

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

2018-12-04 Thread Marek Vasut
DT sync with Linux 4.19 and minor fixes. The following changes since commit d452f27b3ea806fd99aee4b73a723318032c1d5c: Prepare v2019.01-rc1 (2018-12-03 23:50:13 -0500) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v2 18/24] mtd: rawnand: compile-in the NAND core

2018-12-04 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 29 Nov 2018 00:57:19 +0100: > On Thu, 29 Nov 2018 00:07:54 +0100 > Miquel Raynal wrote: > > > The NAND core should be selected by both SPI NAND and raw NAND > > drivers. > > > > Signed-off-by: Miquel Raynal > > --- > > drivers/mtd/nand/raw/Kconfig |

Re: [U-Boot] [PATCH v1 1/4] toradex: colibri_vf: fix memory initialization

2018-12-04 Thread Stefan Agner
On 04.12.2018 12:05, Lukasz Majewski wrote: > Hi Stefan, > >> From: Stefan Agner >> >> Commit 3f353ceccbbb ("vf610: refactor DDRMC code") changed on-die >> termination (ODT) values from 120 Ohm to 60 Ohm and enabled a static >> read/write leveling which has not been tested with this board. This

Re: [U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-04 Thread Wolfgang Denk
Dear Fabio, In message you wrote: > > 1. The imx check has been introduced by: > > commit 43e6f94cbcaf193aeedcf86e85a3ff4c79f66773 > Author: Marcel Ziswiler > Date: Fri Nov 9 15:31:17 2018 +0100 > > imx: mkimage: add size check to the u-boot.imx make target > > The make macro to

[U-Boot] [PATCH v2] adding saveenv-command for bananapi r2

2018-12-04 Thread Frank Wunderlich
changes since v1: fixed bracket-style in if-else statement From 47701fbea478ce09a5ef43d914261bf00eb50544 Mon Sep 17 00:00:00 2001 From: Frank Wunderlich Date: Mon, 3 Dec 2018 15:32:58 +0100 Subject: [PATCH] adding saveenv-command for bananapi r2 bananapi r2 can be booted from sd-card and emmc

[U-Boot] [RFC PATCH v2 02/11] spi-mem: Claim SPI bus before spi mem access

2018-12-04 Thread Vignesh R
It is necessary to call spi_claim_bus() before starting any SPI transactions and this restriction would also apply when calling spi-mem operationss. Therefore claim and release bus before requesting transfer via exec_op. Signed-off-by: Vignesh R --- drivers/spi/spi-mem.c | 6 ++ 1 file

[U-Boot] [PATCH 1/1] tee: change return code for REE FS supplicant cmd

2018-12-04 Thread Igor Opaniuk
If OP-TEE core is compiled with support of REE FS and RPMB at the same time (CFG_RPMB_FS ?= y; CFG_RPMB_FS ?= y), and persistent storage API is used with TEE_STORAGE_PRIVATE storage id, it will lead to TA panic. E/TC:? 0 TA panicked with code 0x0009 . E/TC:? 0 Call stack: E/TC:? 0

Re: [U-Boot] [PATCH v2 07/24] mtd: ensure MTD is compiled when there is a SPI NOR flash

2018-12-04 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 29 Nov 2018 00:52:46 +0100: > On Thu, 29 Nov 2018 00:07:43 +0100 > Miquel Raynal wrote: > > > MTD must be enabled when there is a SPI NOR flash. > > Not sure this is required, as the SF layer is mostly independent from > the MTD layer, except for the

[U-Boot] [RFC PATCH v2 10/11] taurus_defconfig: Enable simple malloc in SPL

2018-12-04 Thread Vignesh R
Enable SPL simple malloc to reduce SPL size Signed-off-by: Vignesh R --- configs/taurus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/taurus_defconfig b/configs/taurus_defconfig index e53e075d4825..9c3a1276aa8f 100644 --- a/configs/taurus_defconfig +++

[U-Boot] [RFC PATCH v2 11/11] axm_defconfig: Enable simple malloc in SPL

2018-12-04 Thread Vignesh R
Enable CONFIG_SPL_SYS_MALLOC_SIMPLE in SPL to reduce SPL size Signed-off-by: Vignesh R --- configs/axm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/axm_defconfig b/configs/axm_defconfig index 89d6b6f2012c..16c093b37b83 100644 --- a/configs/axm_defconfig +++

Re: [U-Boot] [PATCH 0/2] cmd: auto-complete args starting with a $

2018-12-04 Thread Boris Brezillon
On Tue, 04 Dec 2018 14:00:47 +0100 Wolfgang Denk wrote: > Dear Boris, > > In message <20181204113313.577178ac@bbrezillon> you wrote: > > > > > But is this not based on the code of mtd_name_complete() which is > > > only availabole when MTD is present? > > > > Nope. See patch 1, the code is

[U-Boot] [PATCH] serial: serial_stm32: Add reset support

2018-12-04 Thread Patrice Chotard
In some cases, UART is configured by early boot stage. To be sure of the initial state of UART and to avoid spurious chars on console, reset the serial block before configuring it. Signed-off-by: Patrice Chotard --- drivers/serial/serial_stm32.c | 9 + 1 file changed, 9 insertions(+)

[U-Boot] [PATCH] ARM: rockchip: rv1108: Fix booting with initramfs

2018-12-04 Thread Otavio Salvador
We move the ramdisk_addr_r to 0x6800 and disable the initrd and fdt relocation, so the initramfs works out of box. Signed-off-by: Otavio Salvador --- include/configs/rv1108_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/configs/rv1108_common.h

Re: [U-Boot] FOSDEM Hardware Enablement Devroom

2018-12-04 Thread Marek Behún
Hello, do you know when the results about which proposals were accepted will be available? Thanks. Marek On Mon, 13 Nov 2017 11:57:31 +0100 Paul Kocialkowski wrote: > A Hardware Enablement devroom will be taking place at FOSDEM this > year, on Sunday 10 December 2017. This newly-created devroom

Re: [U-Boot] [PATCH v2 6/6] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-12-04 Thread Baruch Siach
Hi Aditya, On Mon, Dec 03, 2018 at 09:39:56AM +0700, Aditya Prayoga wrote: > On Fri, Nov 30, 2018 at 3:25 PM Stefan Roese wrote: > > On 30.11.18 09:14, Aditya Prayoga wrote: > > > On Fri, Nov 30, 2018 at 2:44 PM Stefan Roese wrote: > > >> > > >> On 30.11.18 03:54, Aditya Prayoga wrote: > > >>>

Re: [U-Boot] [PATCH v2 24/24] mtd: drop CONFIG_MTD_PARTITIONS

2018-12-04 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 29 Nov 2018 01:05:09 +0100: > On Thu, 29 Nov 2018 00:08:00 +0100 > Miquel Raynal wrote: > > > There is no point in compiling mtdparts.c only in certain > > circumstances. Whether MTD is needed and it will be built, or MTD is > > not needed and the file

Re: [U-Boot] [PATCH] rockchip: rk3288: dts: remove 'vmmc' from emmc node

2018-12-04 Thread Heiko Stuebner
Am Dienstag, 4. Dezember 2018, 10:35:48 CET schrieb Philipp Tomsich: > Kever, > > > On 04.12.2018, at 08:06, Kever Yang wrote: > > > > Hi Fabio, > > > > > > On 12/03/2018 07:27 PM, Fabio Estevam wrote: > >> Hi Kever, > >> > >> On Mon, Dec 3, 2018 at 2:00 AM Kever Yang > >> wrote: > >>> The

[U-Boot] [RFC PATCH v2 07/11] mtd: spi: Remove unused files

2018-12-04 Thread Vignesh R
spi_flash and spi_flash_ids are no longer needed after SPI NOR migration. Remove them. Signed-off-by: Vignesh R --- drivers/mtd/spi/spi_flash.c | 1337 --- drivers/mtd/spi/spi_flash_ids.c | 211 - 2 files changed, 1548 deletions(-) delete mode 100644

[U-Boot] [RFC PATCH v2 06/11] mtd spi: Switch to new SPI NOR framework

2018-12-04 Thread Vignesh R
Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD layer. Fix up sf_dataflash to work in legacy way. And update sandbox to use new interfaces/defintions Signed-off-by: Vignesh R --- common/spl/Kconfig | 7 + drivers/mtd/spi/Kconfig| 8 ++

Re: [U-Boot] [RFC PATCH v2 09/11] sf_mtd: Simply mtd operations

2018-12-04 Thread Boris Brezillon
On Tue, 4 Dec 2018 17:56:57 +0530 Vignesh R wrote: > Now that there is new SPI NOR framework, simplify mtd device > registration and read/write/erase operations. > > Signed-off-by: Vignesh R > --- > drivers/mtd/spi/sf_internal.h | 2 +- > drivers/mtd/spi/sf_mtd.c | 39

Re: [U-Boot] [RFC PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2018-12-04 Thread Boris Brezillon
On Tue, 4 Dec 2018 17:56:48 +0530 Vignesh R wrote: > U-Boot SPI NOR support (sf layer) is quite outdated as it does not > support 4 byte addressing opcodes, SFDP table parsing and different types of > quad mode enable sequences. Many newer flashes no longer support BANK > registers used by sf

Re: [U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-04 Thread Wolfgang Denk
Dear Fabio, In message you wrote: > > Ok, so I started again. Thanks! > The reason for the failure is because there is an extra > CONFIG_BOARD_SIZE_LIMIT check inside the main Makefile. > > Your patch only covers arch/arm/mach-imx/Makefile. Argh... > Then I am able to successfully build

Re: [U-Boot] [PATCH 0/2] cmd: auto-complete args starting with a $

2018-12-04 Thread Boris Brezillon
On Tue, 4 Dec 2018 11:33:13 +0100 Boris Brezillon wrote: > > > > i. e. this is a feature of the shell and not of any command. > > Implementing this a zillion times for each of the commands in > > inacceptable. Also, implementing it for one command and not for > > another makese no sense - that

Re: [U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

2018-12-04 Thread Fabio Estevam
Hi Wolfgang, On Tue, Dec 4, 2018 at 11:35 AM Wolfgang Denk wrote: > OK, so this is an additional (second) test run for a special > configuration, but the code to perform the test has just been > duplicated from the top level makefile (which is not a nice thing). > > I think we should tun this

Re: [U-Boot] [PATCH] Enable expression support for CONFIG_BOARD_SIZE_LIMIT

2018-12-04 Thread Otavio Salvador
On Tue, Dec 4, 2018 at 1:40 PM Wolfgang Denk wrote: > > So far, the use of CONFIG_BOARD_SIZE_LIMIT would only work with > plain numeric constants. Extend it to allow for expressions, so one > can for example use > > #define CONFIG_BOARD_SIZE_LIMIT (768 << 10) > > in the board

[U-Boot] [PATCH 1/1] net: mvneta: Add GPIO configuration support

2018-12-04 Thread Aditya Prayoga
This patch add GPIO configuration support in mvneta driver. Driver will handle PHY reset. GPIO pins should be set in device tree. Ported from mvpp2x [https://patchwork.ozlabs.org/patch/799654/] Initial discussion to port the changes into mvneta [https://patchwork.ozlabs.org/patch/1005765/]

[U-Boot] [PATCH v3 5/6] arm: mvebu: helios4: Enable SPI flash support

2018-12-04 Thread Aditya Prayoga
Enable SPI flash support under U-Boot and SPL. The ENV size and offset, ported from U-Boot 2013.01 Marvell version: 2015_T1.0p16 To create U-Boot image for SPI flash, user would need to replace * CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC with CONFIG_MVEBU_SPL_BOOT_DEVICE_SPI * CONFIG_ENV_IS_IN_MMC with

[U-Boot] [PATCH v3 6/6] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-12-04 Thread Aditya Prayoga
Similar to Clearfog rev 2.1, GPIO 19 also used to reset onboard ethernet PHY. This patch depend on net: mvneta: Add GPIO configuration support [URL: https://patchwork.ozlabs.org/patch/1007736/] Signed-off-by: Aditya Prayoga --- v2: * Use generic gpio_* API (Baruch Siach) v3: * Use named gpios

Re: [U-Boot] [PATCH v2] cmd: bmp: manage centered display

2018-12-04 Thread Anatolij Gustschin
On Sat, 1 Dec 2018 14:41:07 +0100 Anatolij Gustschin ag...@denx.de wrote: > From: Patrick Delaunay > > Allow to display BMP at the middle of the screen. > > 'm' means "middle" as it is done for the splashscreen variable: > splashpos=m,m > > Signed-off-by: Patrick Delaunay > --- > Changes in

Re: [U-Boot] [PATCH] env: add flash_read function

2018-12-04 Thread Horatiu Vultur
Hi Wolfgang, The 12/03/2018 17:08, Wolfgang Denk wrote: > Dear Horatiu, > > In message <1543678222-15837-1-git-send-email-horatiu.vul...@microchip.com> > you wrote: > > The flash_read function is a wrapper over spi_flash_read, which enables > > the env to read multiple flash page size from

Re: [U-Boot] [PATCH v2] cmd: add clear screen 'cls' command

2018-12-04 Thread Anatolij Gustschin
On Sat, 1 Dec 2018 10:47:20 +0100 Anatolij Gustschin ag...@denx.de wrote: ... > Changes in v2: > - auto-select the command when CONFIG_LCD defined >instead of extending each affected board defconfig > - add Tested-by tag > > cmd/Kconfig | 8 > cmd/Makefile | 1 + > cmd/cls.c

Re: [U-Boot] [PATCH] video: use BMP_ALIGN_CENTER define from splash.h

2018-12-04 Thread Anatolij Gustschin
On Sat, 1 Dec 2018 15:30:08 +0100 Anatolij Gustschin ag...@denx.de wrote: > Drop BMP_ALIGN_CENTER define in lcd.c and video_bmp.c as it is > already defined by splash.h. Include splash.h in bmp code. > > Signed-off-by: Anatolij Gustschin > --- > common/lcd.c | 1 - >

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

2018-12-04 Thread Peter Robinson
Hi Philipp, > A summary of improvements and fixes is below. > > Thanks, > Philipp. > > > The following changes since commit 6d4a3ff2649faa2cf2739e332557f256cc34831e: > > Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2018-11-29 > 16:36:53 -0500) > > are available in the git

  1   2   >