Re: [U-Boot] [PATCH v3 14/18] configs: Remove CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS in all boards

2017-07-12 Thread Bin Meng
On Wed, Jul 12, 2017 at 9:27 AM, Bin Meng wrote: > Now that EHCD does not use CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS, > remove it in all boards' config files. > > Signed-off-by: Bin Meng > Reviewed-by: Simon Glass > Reviewed-by: Stefan Roese > Tested-by: Stefan Roese > --- > > Changes in v3: None

Re: [U-Boot] [PATCH v11 3/6] kconfig: Convert FPGA and FPGA_ALTERA configuration to Kconfig

2017-07-12 Thread Marek Vasut
On 07/13/2017 03:46 AM, Chee, Tien Fong wrote: > On Rab, 2017-07-12 at 12:56 +0200, Marek Vasut wrote: >> On 07/03/2017 11:07 AM, tien.fong.c...@intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> This converts the following to Kconfig: >>>CONFIG_FPGA >>>CONFIG_FPGA_ALTERA >>> >>> Signed

Re: [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto

2017-07-12 Thread Miquel RAYNAL
Hi Fabio, On Wed, 12 Jul 2017 17:17:28 -0300 Fabio Estevam wrote: > On Wed, Jul 12, 2017 at 4:52 PM, Fabio Estevam > wrote: > > > I don't have my mx6sabreauto handy to investigate this problem. > > > > Does the change below make Ethernet to work again? > > https://pastebin.com/VnEdBCa6 > >

[U-Boot] [PATCH BUGFIX] net: fec_mxc: adjust prototype of fec_get_miibus() for DM_ETH

2017-07-12 Thread Lothar Waßmann
commit 306dd7dabd64 ("net: fec_mxc: fix PHY initialization bug with CONFIG_DM_ETH") has broken the build of the fec_mxc driver with CONFIG_DM_ETH enabled because it changed the parameters passed to *fec_get_miibus() without changing the functions prototype. This patch fixes up the prototype of fe

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Siarhei Siamashka
On Thu, 13 Jul 2017 01:43:37 +0100 Måns Rullgård wrote: > Maxime Ripard writes: > > > Hi, > > > > I recently got a gcc 7.1 based toolchain, and it seems like it > > generates unaligned code, specifically in the net_set_ip_header > > function in my case. > > > > Whenever some packet is sent, thi

[U-Boot] [PATCH v2 9/9] rockchip: add u-boot specific dts for rk3036 sdk

2017-07-12 Thread Andy Yan
Add this dts to enable debug uart releated devices before relocation. Signed-off-by: Andy Yan Reviewed-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3036-sdk-u-boot.dtsi | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 arch/arm/dts/rk3036-sdk-u-boot.dtsi diff -

[U-Boot] [PATCH v2 8/9] rockchip: use debug() instead of printf when back to bootrom

2017-07-12 Thread Andy Yan
printf will increase the code size more than 1kb, but platform like rk3036 has no enough space for it. Signed-off-by: Andy Yan --- Changes in v2: None arch/arm/mach-rockchip/bootrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/bootrom.c b/arch/ar

[U-Boot] [PATCH v2 7/9] rockchip: enable SPL_LIBGENERIC for rk3036 based boards

2017-07-12 Thread Andy Yan
function board_init_f_init_reserve will call memset, which is implemented in lib, and enabled by CONFIG_SPL_LIBGENERIC_SUPPORT in spl stage. To reduce the code size, also enable SPL_TINY_MEMSET. Signed-off-by: Andy Yan --- Changes in v2: None arch/arm/mach-rockchip/rk3036-board-spl.c | 6 -

[U-Boot] [PATCH v2 6/9] rockchip: disable SPL_ARCH_MEMCPY/MEMSET for rk3036

2017-07-12 Thread Andy Yan
RK3036 has no enough sapce use ARCH_MEMCPY/MEMSET in spl stage Signed-off-by: Andy Yan Reviewed-by: Simon Glass --- Changes in v2: None configs/evb-rk3036_defconfig | 2 ++ configs/kylin-rk3036_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/evb-rk3036_defconfig b/c

[U-Boot] [PATCH v2 5/9] rockchip: set malloc pool size to 0 before relocation in spl state on rk3036 based board

2017-07-12 Thread Andy Yan
RK3036 only has 4kb sram, the spl code will use 3.4 ~ 3.5 kb, the last 0.5kb are used for SP and GD, so there is no space for malloc. Also, the spl will directly return to bootrom after dram initialized, they never need the space for malloc. Signed-off-by: Andy Yan --- Changes in v2: - set spl

[U-Boot] [PATCH v2 4/9] microblaze: spl and normal u-boot stage set SYS_MALLOC_F indepently

2017-07-12 Thread Andy Yan
Some platforms has very small sram to run spl code, so it may have no enough sapce for so much malloc pool before relocation in spl stage as the normal u-boot stage. Signed-off-by: Andy Yan --- Changes in v2: None arch/microblaze/cpu/start.S | 11 --- 1 file changed, 8 insertions(+), 3

[U-Boot] [PATCH v2 3/9] powerpc: spl and normal u-boot stage set SYS_MALLOC_F indepently

2017-07-12 Thread Andy Yan
Some platforms has very small sram to run spl code, so it may have no enough sapce for so much malloc pool before relocation in spl stage as the normal u-boot stage. Signed-off-by: Andy Yan --- Changes in v2: None arch/powerpc/cpu/mpc83xx/start.S | 13 + arch/powerpc/cpu/mpc85xx/st

[U-Boot] [PATCH v2 2/9] mips: spl and normal u-boot stage set SYS_MALLOC_F indepently

2017-07-12 Thread Andy Yan
Some platforms has very small sram to run spl code, so it may have no enough sapce for so much malloc pool before relocation in spl stage as the normal u-boot stage. Signed-off-by: Andy Yan --- Changes in v2: None arch/mips/cpu/start.S | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions

[U-Boot] [PATCH] rockchip: rk3229: add dwc2 node for fastboot

2017-07-12 Thread Meng Dongyang
The dwc2 gadget function will get address from DT when fastboot start, so we need to add dwc2 node to support fastboot. Meng Dongyang (1): rockchip: dts: rk3229: add dwc2 node for fastboot arch/arm/dts/rk3229-evb.dts | 4 arch/arm/dts/rk322x.dtsi| 10 ++ 2 files changed, 14 i

[U-Boot] [PATCH] rockchip: dts: rk3229: add dwc2 node for fastboot

2017-07-12 Thread Meng Dongyang
Add dwc2 node for fastboot to init dwc2 controller. Signed-off-by: Meng Dongyang --- arch/arm/dts/rk3229-evb.dts | 4 arch/arm/dts/rk322x.dtsi| 10 ++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/rk3229-evb.dts b/arch/arm/dts/rk3229-evb.dts index ccdac1c..37137c

Re: [U-Boot] [PATCH v11 0/6] Add Intel Arria 10 SoC FPGA driver

2017-07-12 Thread Chee, Tien Fong
On Rab, 2017-07-12 at 13:00 +0200, Marek Vasut wrote: > On 07/12/2017 07:13 AM, Chee, Tien Fong wrote: > > > > On Isn, 2017-07-03 at 17:07 +0800, tien.fong.c...@intel.com wrote: > > > > > > From: Tien Fong Chee > > > > > > This is the 11th version of patchset to adds support for Intel > > > Arr

Re: [U-Boot] [PATCH v11 6/6] arm: socfpga: Add FPGA driver support for Arria 10

2017-07-12 Thread Chee, Tien Fong
On Rab, 2017-07-12 at 13:00 +0200, Marek Vasut wrote: > On 07/03/2017 11:07 AM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Add FPGA driver support for Arria 10. > > > > Signed-off-by: Tien Fong Chee > > Reviewed-by: Ley Foon Tan > > Reviewed-by: Dinh Nguyen > [...]

Re: [U-Boot] [PATCH v11 5/6] drivers: Enable FPGA driver build on SPL

2017-07-12 Thread Chee, Tien Fong
On Rab, 2017-07-12 at 12:57 +0200, Marek Vasut wrote: > On 07/03/2017 11:07 AM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Enable FPGA driver build for SPL because FPGA driver is needed for > > SPL > > to configure and getting DDR up before loading U-boot into DDR and >

Re: [U-Boot] [PATCH v11 3/6] kconfig: Convert FPGA and FPGA_ALTERA configuration to Kconfig

2017-07-12 Thread Chee, Tien Fong
On Rab, 2017-07-12 at 12:56 +0200, Marek Vasut wrote: > On 07/03/2017 11:07 AM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > This converts the following to Kconfig: > >    CONFIG_FPGA > >    CONFIG_FPGA_ALTERA > > > > Signed-off-by: Tien Fong Chee > > Reviewed-by: Ley F

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Måns Rullgård
Maxime Ripard writes: > Hi, > > I recently got a gcc 7.1 based toolchain, and it seems like it > generates unaligned code, specifically in the net_set_ip_header > function in my case. > > Whenever some packet is sent, this data abort is triggered: > > => setenv ipaddr 10.42.0.1; ping 10.42.0.254

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

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 04:57:42PM -0400, Tom Rini wrote: > On Wed, Jul 12, 2017 at 10:32:29PM +0200, Daniel Schwierzeck wrote: > > > Hi Tom, > > > > This supports dynamic relocation on MIPS without the need for building a > > position-independent executable. This notably reduces the code size f

Re: [U-Boot] [PATCH 2/3] configs: dra7xx_evm: am57xx_evm: Enable DM_REGULATOR_PBIAS

2017-07-12 Thread Tom Rini
On Thu, Jul 13, 2017 at 12:18:43AM +0530, Lokesh Vutla wrote: > > > On 7/12/2017 11:01 PM, Tom Rini wrote: > > On Wed, Jul 12, 2017 at 07:16:27PM +0530, Lokesh Vutla wrote: > > > >> + Andrew > >> > >> On 7/12/2017 3:25 PM, Jean-Jacques Hiblot wrote: > >>> This regulator is used for voltage switc

Re: [U-Boot] [RESEND PATCH 0/4] Switch odroid to use distro_bootcmd.

2017-07-12 Thread Vagrant Cascadian
On 2017-05-05, Vagrant Cascadian wrote: > Using distro_bootcmd standardizes board behavior across many > platforms. This is particularly useful for distributions supporting > multiple boards without requiring custom configuration for each board. > > There are a few changes needed to support distro_

Re: [U-Boot] [RESEND PATCH] Inherit default value for bootdelay from distro_bootcmd on odroid-xu3.

2017-07-12 Thread Vagrant Cascadian
On 2017-05-05, Vagrant Cascadian wrote: > The default value with distro_bootcmd is 2 seconds, which is > reasonably fast, and provides a consistent experience across platforms > supporting distro_bootcmd. > > The current bootdelay value of 0 seconds is a bit challenging to > interrupt when desired.

Re: [U-Boot] [PATCH 1/3] regulator: pbias: Add PBIAS regulator for proper voltage switching on MMC1

2017-07-12 Thread Simon Glass
Hi, On 12 July 2017 at 03:55, Jean-Jacques Hiblot wrote: > In the TI SOCs a PBIAS cell exists to provide a bias voltage to the MMC1 > IO cells. Without this bias voltage these I/O cells can not function > properly. The PBIAS cell is controlled by software. > > Signed-off-by: Jean-Jacques Hiblot

Re: [U-Boot] [PATCH] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-07-12 Thread Simon Glass
Hi, On 12 July 2017 at 06:58, Jean-Jacques Hiblot wrote: > > > On 10/07/2017 18:34, Franklin S Cooper Jr wrote: >> >> >> On 07/07/2017 10:00 AM, Jean-Jacques Hiblot wrote: >>> >>> >>> On 07/07/2017 16:30, Tom Rini wrote: On Fri, Jul 07, 2017 at 01:44:39PM +0200, Jean-Jacques Hiblot wrot

[U-Boot] [PATCH] mx6sabreauto: Make Ethernet functional again

2017-07-12 Thread Fabio Estevam
From: Fabio Estevam Since commit ce412b79e7255770 ("drivers: net: phy: atheros: add separate config for AR8031") Ethernet does not work on mx6sabreauto. This commit correctly assigns ar8031_config() as the configuration function for AR8031 in the same way as done in the Linux kernel. Ho

Re: [U-Boot] [PATCH 0/5] mmc: omap_hsmmc: Add support for ADMA

2017-07-12 Thread Adam Ford
On Wed, Jul 12, 2017 at 12:30 PM, Tom Rini wrote: > On Tue, Jul 11, 2017 at 06:20:09PM +0200, Jean-Jacques Hiblot wrote: > >> This series enables the ADMA present in some OMAP SOCs. >> On a DRA7 the performances when reading from the eMMC go from 20MB/s >> to 40MB/s. >> Also while were at it, fix

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

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 10:32:29PM +0200, Daniel Schwierzeck wrote: > Hi Tom, > > This supports dynamic relocation on MIPS without the need for building a > position-independent executable. This notably reduces the code size for > all MIPS boards. > > > The following changes since commit d85

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Mark Kettenis
> From: "Dr. Philipp Tomsich" > Date: Wed, 12 Jul 2017 20:26:13 +0200 > > > On 12 Jul 2017, at 20:07, Siarhei Siamashka > > wrote: > > > > On Wed, 12 Jul 2017 17:48:16 +0200 > > "Dr. Philipp Tomsich" wrote: > > > >> Tom & Maxime, > >> > >>> On 12 Jul 2017, at 16:34, Tom Rini wrote: > >>>

Re: [U-Boot] [PATCH] MIPS: bootm: Fix broken boot_env_legacy codepath

2017-07-12 Thread Daniel Schwierzeck
Am 11.07.2017 um 17:47 schrieb Zubair Lutfullah Kakakhel: > This patch fixes 2 bugs introduced by the following commit > > 2bb5b63 MIPS: bootm: rework and fix broken bootm code > > The CONFIG_IS_ENABLED macro prepends 'CONFIG_' Hence, remove CONFIG_ > from CONFIG_MIPS_BOOT_ENV_LEGACY usage. >

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

2017-07-12 Thread Daniel Schwierzeck
Hi Tom, This supports dynamic relocation on MIPS without the need for building a position-independent executable. This notably reduces the code size for all MIPS boards. The following changes since commit d85ca029f257b53a96da6c2fb421e78a003a9943: Prepare v2017.07 (2017-07-10 13:07:38 -0400

Re: [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto

2017-07-12 Thread Fabio Estevam
On Wed, Jul 12, 2017 at 4:52 PM, Fabio Estevam wrote: > I don't have my mx6sabreauto handy to investigate this problem. > > Does the change below make Ethernet to work again? > https://pastebin.com/VnEdBCa6 And here is a patch against u-boot-imx tree ( http://git.denx.de/?p=u-boot/u-boot-imx.git

Re: [U-Boot] [PATCH 06/14] powerpc: Remove unneccessary #ifdefs in reginfo

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 04:53:26PM +0200, Wolfgang Denk wrote: > Dear Christophe, > > In message <194b25e4-81fc-52cf-aeef-61ce6f467...@c-s.fr> you wrote: > > > > Oh ? Ok. I thought it would be a possible name because for instance in > > the Linux Kernel, the watchdog driver is named that way and

Re: [U-Boot] [PATCH 00/14] Cleanup for 8xx and other misc powerpc

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 11:43:16AM +0200, Christophe Leroy wrote: > This serie makes some cleanup in the powerpc area > following the reintroduction of the 8xx. > > No travis verification done, travis is timing out > > Christophe Leroy (14): > powerpc, 8xx: Simplify brgclk calculation and remo

Re: [U-Boot] Ethernet not functional on i.MX6DL Sabre Auto

2017-07-12 Thread Fabio Estevam
Hi Miquel, On Wed, Jul 12, 2017 at 4:21 PM, Miquel RAYNAL wrote: > Hi, > > I am using a Sabre Auto board with an i.MX6 Dual Lite. > > When I compile U-boot with defconfig file mx6dlsabreauto_defconfig, the > network is not functionnal. Only the orange LED on the RJ45 port is > blinking and dhcp r

[U-Boot] Ethernet not functional on i.MX6DL Sabre Auto

2017-07-12 Thread Miquel RAYNAL
Hi, I am using a Sabre Auto board with an i.MX6 Dual Lite. When I compile U-boot with defconfig file mx6dlsabreauto_defconfig, the network is not functionnal. Only the orange LED on the RJ45 port is blinking and dhcp requests never end. In menuconfig I saw numerous unselected options that I guess

Re: [U-Boot] [PATCH 2/3] configs: dra7xx_evm: am57xx_evm: Enable DM_REGULATOR_PBIAS

2017-07-12 Thread Andrew F. Davis
On 07/12/2017 01:48 PM, Lokesh Vutla wrote: > > > On 7/12/2017 11:01 PM, Tom Rini wrote: >> On Wed, Jul 12, 2017 at 07:16:27PM +0530, Lokesh Vutla wrote: >> >>> + Andrew >>> >>> On 7/12/2017 3:25 PM, Jean-Jacques Hiblot wrote: This regulator is used for voltage switching on MMC1 IO lines. >>

Re: [U-Boot] [PATCH 2/3] configs: dra7xx_evm: am57xx_evm: Enable DM_REGULATOR_PBIAS

2017-07-12 Thread Lokesh Vutla
On 7/12/2017 11:01 PM, Tom Rini wrote: > On Wed, Jul 12, 2017 at 07:16:27PM +0530, Lokesh Vutla wrote: > >> + Andrew >> >> On 7/12/2017 3:25 PM, Jean-Jacques Hiblot wrote: >>> This regulator is used for voltage switching on MMC1 IO lines. >> >> Can you enable on HS platforms as well. > > Is thi

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Dr. Philipp Tomsich
> On 12 Jul 2017, at 20:07, Siarhei Siamashka > wrote: > > On Wed, 12 Jul 2017 17:48:16 +0200 > "Dr. Philipp Tomsich" wrote: > >> Tom & Maxime, >> >>> On 12 Jul 2017, at 16:34, Tom Rini wrote: >>> >>> On Wed, Jul 12, 2017 at 04:20:52PM +0200, Maxime Ripard wrote: On Tue, Jul 11, 201

Re: [U-Boot] [PATCH 2/2] [rfc] support booting arm64 android image

2017-07-12 Thread Tom Rini
On Tue, Jul 11, 2017 at 03:56:04PM +1000, Bin Chen wrote: > It's my understanding that we are supposed to use booti, instead of bootm, > for arm64 image. But booti lacks of android image support. Bootm has > the andriod image support but lack of the arm64 image handling. > > So, what is suppose t

Re: [U-Boot] [PATCH 1/2] [rfc] parse the second area of android image

2017-07-12 Thread Tom Rini
On Tue, Jul 11, 2017 at 03:56:03PM +1000, Bin Chen wrote: > The second area of android image was intended to put a 2nd stage > bootloader but in practice were rarely used (in my knowledge). > > An proposal was made to the AOSP to (re)use the second area as the dtb[1], > This patch itself doesn't

Re: [U-Boot] [PATCH 5/5] cmd: Kconfig: Fix CMD_UBIFS dependencies

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 04:11:47PM +, Karl Beldan wrote: > From: Karl Beldan > > Remove the ARCH_SUNXI and RBTREE dependencies. > CMD_UBIFS already gets RBTREE from CMD_UBI (from MTD_UBI), and should > the first become independant from the latter, there would likely be a > dependency on MTD_

Re: [U-Boot] [PATCH 4/5] cmd: Kconfig: Make CMD_UBI select CMD_MTDPARTS

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 04:11:46PM +, Karl Beldan wrote: > From: Karl Beldan > > Many configs still define CMD_MTDPARTS in their non-Kconfig but > CMD_MTDPARTS has now moved to Kconfig. > > Signed-off-by: Karl Beldan Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital sig

Re: [U-Boot] [PATCH 2/5] cmd: Kconfig: Fix a dependency of CMD_MTDPARTS

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 04:11:44PM +, Karl Beldan wrote: > From: Karl Beldan > > Remove the ARCH_SUNXI dependency. > > Cc: Maxime Ripard > Cc: Jagan Teki > Signed-off-by: Karl Beldan Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH 3/5] ubi: Kconfig: Make MTD_UBI select MTD_PARTITIONS

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 04:11:45PM +, Karl Beldan wrote: > From: Karl Beldan > > This missing dependency has probably remained under the radar because > MTD_PARTITIONS is still whitelisted. > > Signed-off-by: Karl Beldan Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital

Re: [U-Boot] [PATCH 1/5] ubi: Kconfig: Fix MTD_UBI selection dependency

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 04:11:43PM +, Karl Beldan wrote: > From: Karl Beldan > > Remove the ARCH_SUNXI dependency on selection of RBTREE. > > Cc: Boris Brezillon > Cc: Maxime Ripard > Cc: Jagan Teki > Signed-off-by: Karl Beldan Reviewed-by: Tom Rini -- Tom signature.asc Descriptio

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Siarhei Siamashka
On Wed, 12 Jul 2017 17:48:16 +0200 "Dr. Philipp Tomsich" wrote: > Tom & Maxime, > > > On 12 Jul 2017, at 16:34, Tom Rini wrote: > > > > On Wed, Jul 12, 2017 at 04:20:52PM +0200, Maxime Ripard wrote: > >> On Tue, Jul 11, 2017 at 07:59:21PM +0200, Dr. Philipp Tomsich wrote: > >>> Maxime, > >

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Siarhei Siamashka
On Tue, 11 Jul 2017 18:54:55 +0200 Maxime Ripard wrote: > Hi, > > I recently got a gcc 7.1 based toolchain, and it seems like it > generates unaligned code, specifically in the net_set_ip_header > function in my case. > > Whenever some packet is sent, this data abort is triggered: > > => seten

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Dr. Philipp Tomsich
> On 12 Jul 2017, at 19:49, Tom Rini wrote: > > On Wed, Jul 12, 2017 at 05:48:16PM +0200, Dr. Philipp Tomsich wrote: >> Tom & Maxime, >> >>> On 12 Jul 2017, at 16:34, Tom Rini wrote: >>> >>> On Wed, Jul 12, 2017 at 04:20:52PM +0200, Maxime Ripard wrote: On Tue, Jul 11, 2017 at 07:59:21PM

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 05:48:16PM +0200, Dr. Philipp Tomsich wrote: > Tom & Maxime, > > > On 12 Jul 2017, at 16:34, Tom Rini wrote: > > > > On Wed, Jul 12, 2017 at 04:20:52PM +0200, Maxime Ripard wrote: > >> On Tue, Jul 11, 2017 at 07:59:21PM +0200, Dr. Philipp Tomsich wrote: > >>> Maxime, > >>

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 05:30:14PM +0200, Thomas Petazzoni wrote: > Hello, > > On Wed, 12 Jul 2017 10:34:47 -0400, Tom Rini wrote: > > > Please bear in mind that packed should be used carefully. We've had > > some discussions about this before and have > > doc/README.unaligned-memory-access.txt

Re: [U-Boot] [PATCH 2/3] configs: dra7xx_evm: am57xx_evm: Enable DM_REGULATOR_PBIAS

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 07:16:27PM +0530, Lokesh Vutla wrote: > + Andrew > > On 7/12/2017 3:25 PM, Jean-Jacques Hiblot wrote: > > This regulator is used for voltage switching on MMC1 IO lines. > > Can you enable on HS platforms as well. Is this a SoC thing (which includes a strongly encouraged

Re: [U-Boot] [PATCH 2/2] regulator: palmas: disable bypass when the LDO is enabled

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 11:42:47AM +0200, Jean-Jacques Hiblot wrote: > Some LDOs have a bypass capability. Make sure that the bypass is disabled > when is the LDO is enabled (otherwise the voltage can't be changed). > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signat

Re: [U-Boot] [PATCH 1/3] regulator: pbias: Add PBIAS regulator for proper voltage switching on MMC1

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 11:55:53AM +0200, Jean-Jacques Hiblot wrote: > In the TI SOCs a PBIAS cell exists to provide a bias voltage to the MMC1 > IO cells. Without this bias voltage these I/O cells can not function > properly. The PBIAS cell is controlled by software. > > Signed-off-by: Jean-Jacq

Re: [U-Boot] [PATCH 1/2] regulator: palmas: Add support for LDO1 regulator to provide 1.8V

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 11:42:46AM +0200, Jean-Jacques Hiblot wrote: > From: Kishon Vijay Abraham I > > Modify palmas_mmc1_poweron_ldo() API to set the voltage based on the > voltage parameter passed as argument instead of always setting it to > 3.0V. This allows MMC1 to set the LDO1 regulator v

Re: [U-Boot] [PATCH 0/5] mmc: omap_hsmmc: Add support for ADMA

2017-07-12 Thread Tom Rini
On Tue, Jul 11, 2017 at 06:20:09PM +0200, Jean-Jacques Hiblot wrote: > This series enables the ADMA present in some OMAP SOCs. > On a DRA7 the performances when reading from the eMMC go from 20MB/s > to 40MB/s. > Also while were at it, fix some incorrect bit operations > > This is the first seri

[U-Boot] [PATCH] tools/env: fix allocation of the lock file name in fw_printenv

2017-07-12 Thread sgerwk
sizeof(env_opts.lockname) is the size of the pointer, not of the string; this patch changes it to strlen(...) --- tools/env/fw_env_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index b8bff264eb..499953dd69 100644 --- a

Re: [U-Boot] [PATCH 1/2] mmc: sunxi: Support the new mode

2017-07-12 Thread Siarhei Siamashka
On Wed, 12 Jul 2017 16:48:37 +0200 Maxime Ripard wrote: > Almost all of the newer Allwinner SoCs have a new operating mode for the > eMMC clocks that needs to be enabled in both the clock and the MMC > controller. Can we have a bit better description in the commit message about what is new about

[U-Boot] [PATCH 5/5] cmd: Kconfig: Fix CMD_UBIFS dependencies

2017-07-12 Thread Karl Beldan
From: Karl Beldan Remove the ARCH_SUNXI and RBTREE dependencies. CMD_UBIFS already gets RBTREE from CMD_UBI (from MTD_UBI), and should the first become independant from the latter, there would likely be a dependency on MTD_UBI anyway. Cc: Boris Brezillon Cc: Jagan Teki Signed-off-by: Karl Beld

[U-Boot] [PATCH 3/5] ubi: Kconfig: Make MTD_UBI select MTD_PARTITIONS

2017-07-12 Thread Karl Beldan
From: Karl Beldan This missing dependency has probably remained under the radar because MTD_PARTITIONS is still whitelisted. Signed-off-by: Karl Beldan --- drivers/mtd/ubi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig index 165273

[U-Boot] [PATCH 4/5] cmd: Kconfig: Make CMD_UBI select CMD_MTDPARTS

2017-07-12 Thread Karl Beldan
From: Karl Beldan Many configs still define CMD_MTDPARTS in their non-Kconfig but CMD_MTDPARTS has now moved to Kconfig. Signed-off-by: Karl Beldan --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 87ee2ea613..92576f5734 100644 --- a/cmd/Kconfi

[U-Boot] [PATCH 2/5] cmd: Kconfig: Fix a dependency of CMD_MTDPARTS

2017-07-12 Thread Karl Beldan
From: Karl Beldan Remove the ARCH_SUNXI dependency. Cc: Maxime Ripard Cc: Jagan Teki Signed-off-by: Karl Beldan --- cmd/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index c80ac364ea..87ee2ea613 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1196,7 +119

[U-Boot] [PATCH 1/5] ubi: Kconfig: Fix MTD_UBI selection dependency

2017-07-12 Thread Karl Beldan
From: Karl Beldan Remove the ARCH_SUNXI dependency on selection of RBTREE. Cc: Boris Brezillon Cc: Maxime Ripard Cc: Jagan Teki Signed-off-by: Karl Beldan --- drivers/mtd/ubi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ub

Re: [U-Boot] [PATCH] sunxi: usb_phy: Fix the phy_ctl offset on the A83T

2017-07-12 Thread Siarhei Siamashka
On Wed, 12 Jul 2017 16:44:25 +0200 Maxime Ripard wrote: > The A83T, just like the A33, has a USB phy with the phy_ctl at 0x410 > instead of 0x404. > > Suggested-by: Chen-Yu Tsai > Signed-off-by: Maxime Ripard > --- > arch/arm/mach-sunxi/usb_phy.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Thomas Petazzoni
Hello, On Wed, 12 Jul 2017 10:34:47 -0400, Tom Rini wrote: > Please bear in mind that packed should be used carefully. We've had > some discussions about this before and have > doc/README.unaligned-memory-access.txt which may need a little more > updating now as well, depending on what the final

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Dr. Philipp Tomsich
Tom & Maxime, > On 12 Jul 2017, at 16:34, Tom Rini wrote: > > On Wed, Jul 12, 2017 at 04:20:52PM +0200, Maxime Ripard wrote: >> On Tue, Jul 11, 2017 at 07:59:21PM +0200, Dr. Philipp Tomsich wrote: >>> Maxime, >>> On 11 Jul 2017, at 18:59, Tom Rini wrote: On Tue, Jul 11, 2017 at

Re: [U-Boot] [PATCH] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-07-12 Thread Franklin S Cooper Jr
On 07/12/2017 10:20 AM, Jean-Jacques Hiblot wrote: > > > On 12/07/2017 14:58, Jean-Jacques Hiblot wrote: >> >> >> On 10/07/2017 18:34, Franklin S Cooper Jr wrote: >>> >>> On 07/07/2017 10:00 AM, Jean-Jacques Hiblot wrote: On 07/07/2017 16:30, Tom Rini wrote: > On Fri, Jul 07, 2017

Re: [U-Boot] [PATCH] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-07-12 Thread Jean-Jacques Hiblot
On 12/07/2017 14:58, Jean-Jacques Hiblot wrote: On 10/07/2017 18:34, Franklin S Cooper Jr wrote: On 07/07/2017 10:00 AM, Jean-Jacques Hiblot wrote: On 07/07/2017 16:30, Tom Rini wrote: On Fri, Jul 07, 2017 at 01:44:39PM +0200, Jean-Jacques Hiblot wrote: u-boot can be embedded within a

Re: [U-Boot] Warning due to commit 6a516ef15d79

2017-07-12 Thread Stefano Babic
Hi Lothar, On 12/07/2017 13:44, Lothar Waßmann wrote: > Hi Stefano, > > On Wed, 12 Jul 2017 10:45:21 +0200 Stefano Babic wrote: >> Hi Lothar, >> >> your recent patch : >> >> commit 306dd7dabd6472b8b66ab5106d5a6a516ef15d79 >> Author: Lothar Waßmann >> Date: Tue Jun 27 15:23:16 2017 +0200 >> >>

Re: [U-Boot] [PATCH 06/14] powerpc: Remove unneccessary #ifdefs in reginfo

2017-07-12 Thread Wolfgang Denk
Dear Christophe, In message <194b25e4-81fc-52cf-aeef-61ce6f467...@c-s.fr> you wrote: > > Oh ? Ok. I thought it would be a possible name because for instance in > the Linux Kernel, the watchdog driver is named that way and used also > for the 8xx and so was also the SPI driver before its name wa

[U-Boot] [PATCH 1/2] mmc: sunxi: Support the new mode

2017-07-12 Thread Maxime Ripard
Almost all of the newer Allwinner SoCs have a new operating mode for the eMMC clocks that needs to be enabled in both the clock and the MMC controller. Add support for it through a Kconfig option Signed-off-by: Maxime Ripard --- arch/arm/include/asm/arch-sunxi/mmc.h | 9 ++--- drivers/mmc/

[U-Boot] [PATCH 2/2] sunxi: Enable MMC new mode for A83T

2017-07-12 Thread Maxime Ripard
The eMMC controller for the A83T uses the new operating mode. Enable it. Signed-off-by: Maxime Ripard --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index bd3e7d3b3f20..867ef51918be 100644 --- a/arch/a

[U-Boot] [PATCH] sunxi: usb_phy: Fix the phy_ctl offset on the A83T

2017-07-12 Thread Maxime Ripard
The A83T, just like the A33, has a USB phy with the phy_ctl at 0x410 instead of 0x404. Suggested-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- arch/arm/mach-sunxi/usb_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/usb_phy.c b/arch/arm/mach-sunx

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Dr. Philipp Tomsich
> On 12 Jul 2017, at 16:34, Tom Rini wrote: > > On Wed, Jul 12, 2017 at 04:20:52PM +0200, Maxime Ripard wrote: >> On Tue, Jul 11, 2017 at 07:59:21PM +0200, Dr. Philipp Tomsich wrote: >>> Maxime, >>> On 11 Jul 2017, at 18:59, Tom Rini wrote: On Tue, Jul 11, 2017 at 06:54:55PM +0

Re: [U-Boot] [PATCH] net: Mark the ip_udp_hdr struct as packed

2017-07-12 Thread Dr. Philipp Tomsich
> On 12 Jul 2017, at 16:34, Maxime Ripard > wrote: > > The -mno-unaligned-access flag used on ARM to prevent GCC from generating > unaligned accesses (obviously) will only do so on packed structures. > > It seems like gcc 7.1 is a bit stricter than previous gcc versions on this, > and using it

[U-Boot] [PATCH] net: Mark the ip_udp_hdr struct as packed

2017-07-12 Thread Maxime Ripard
The -mno-unaligned-access flag used on ARM to prevent GCC from generating unaligned accesses (obviously) will only do so on packed structures. It seems like gcc 7.1 is a bit stricter than previous gcc versions on this, and using it lead to data abort for unaligned accesses when generating network

[U-Boot] [PATCH] net: Mark the ip_udp_hdr struct as packed

2017-07-12 Thread Maxime Ripard
The -mno-unaligned-access flag used on ARM to prevent GCC from generating unaligned accesses (obviously) will only do so on packed structures. It seems like gcc 7.1 is a bit stricter than previous gcc versions on this, and using it lead to data abort for unaligned accesses when generating network

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 04:20:52PM +0200, Maxime Ripard wrote: > On Tue, Jul 11, 2017 at 07:59:21PM +0200, Dr. Philipp Tomsich wrote: > > Maxime, > > > > > On 11 Jul 2017, at 18:59, Tom Rini wrote: > > > > > > On Tue, Jul 11, 2017 at 06:54:55PM +0200, Maxime Ripard wrote: > > >> Hi, > > >> > >

Re: [U-Boot] [PATCH 06/14] powerpc: Remove unneccessary #ifdefs in reginfo

2017-07-12 Thread Christophe LEROY
Dear Wolfgang, Le 12/07/2017 à 15:07, Wolfgang Denk a écrit : Dear Christophe Leroy, In message you wrote: reginfo command is calling mpc8xx_reginfo(), mpc85xx_reginfo() or mpc86xx_reginfo() based on CONFIG_ symbol. As those 3 functions can't me defined at the same time, let's rename them m

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Maxime Ripard
On Tue, Jul 11, 2017 at 07:59:21PM +0200, Dr. Philipp Tomsich wrote: > Maxime, > > > On 11 Jul 2017, at 18:59, Tom Rini wrote: > > > > On Tue, Jul 11, 2017 at 06:54:55PM +0200, Maxime Ripard wrote: > >> Hi, > >> > >> I recently got a gcc 7.1 based toolchain, and it seems like it > >> generates

Re: [U-Boot] Please pull u-boot-marvell/master

2017-07-12 Thread Tom Rini
On Wed, Jul 12, 2017 at 08:00:02AM +0200, Stefan Roese wrote: > Hi Tim, > > please pull the following Marvell / MVEBU patches. Travis > has some timeouts so I was not able to build there, but > all MVEBU boards build without issues. > > Thanks, > Stefan > > > The following changes since commit

Re: [U-Boot] [PATCH 2/3] configs: dra7xx_evm: am57xx_evm: Enable DM_REGULATOR_PBIAS

2017-07-12 Thread Lokesh Vutla
+ Andrew On 7/12/2017 3:25 PM, Jean-Jacques Hiblot wrote: > This regulator is used for voltage switching on MMC1 IO lines. Can you enable on HS platforms as well. Thanks and regards, Lokesh > > Signed-off-by: Jean-Jacques Hiblot > --- > configs/am57xx_evm_defconfig | 3 +++ > configs/dra7xx_

Re: [U-Boot] [PATCH 07/14] Convert CONFIG_CMD_REGINFO to Kconfig

2017-07-12 Thread Wolfgang Denk
Dear Christophe Leroy, In message <2fb524f1d8748bbc74a9a466ef1c798cecfdee27.1499629706.git.christophe.le...@c-s.fr> you wrote: In cases like here... > --- a/include/configs/B4860QDS.h > +++ b/include/configs/B4860QDS.h > @@ -702,7 +702,6 @@ unsigned long get_board_ddr_clk(void); > /* > * Co

Re: [U-Boot] [PATCH 06/14] powerpc: Remove unneccessary #ifdefs in reginfo

2017-07-12 Thread Wolfgang Denk
Dear Christophe Leroy, In message you wrote: > reginfo command is calling mpc8xx_reginfo(), mpc85xx_reginfo() > or mpc86xx_reginfo() based on CONFIG_ symbol. > As those 3 functions can't me defined at the same time, let's > rename them mpc8xxx_reginfo() to avoid the #ifdefs This is indeed a te

Re: [U-Boot] [PATCH 05/14] powerpc: move set_msr() and get_msr() into .h

2017-07-12 Thread Wolfgang Denk
Dear Christophe Leroy, In message you wrote: > set_msr() and get_msr() are defined and used twice. > This patch moves them into ppc.h > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/ppc.h | 14 ++ > arch/powerpc/lib/interrupts.c | 14 -- > arch/p

Re: [U-Boot] [PATCH 04/14] power, timer: reset TBL before TBU

2017-07-12 Thread Wolfgang Denk
Dear Christophe Leroy, In message you wrote: > In order to avoid TBU increment due to TBL reaching its max > and wrapping, reset TBL before resetting TBU > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/lib/time.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by

Re: [U-Boot] [PATCH] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-07-12 Thread Jean-Jacques Hiblot
On 10/07/2017 18:34, Franklin S Cooper Jr wrote: On 07/07/2017 10:00 AM, Jean-Jacques Hiblot wrote: On 07/07/2017 16:30, Tom Rini wrote: On Fri, Jul 07, 2017 at 01:44:39PM +0200, Jean-Jacques Hiblot wrote: u-boot can be embedded within a FIT image with multiple DTBs. It then selects at ru

Re: [U-Boot] [RFC] efi: variable support

2017-07-12 Thread Alexander Graf
On 25.06.17 00:29, Rob Clark wrote: Mapping from EFI variables to grub variables. Still almost as many TODOs as lines of code, but just figured I'd send out an early version for comments. I was thinking of it as a useful way for u-boot to pass values to grub (although grub is still missing a

Re: [U-Boot] [PATCH 02/14] powerpc: get rid of addr_probe()

2017-07-12 Thread Wolfgang Denk
Dear Christophe Leroy, In message <6783d2c1b0bdbdb18cddd0973fefec604c173843.1499629706.git.christophe.le...@c-s.fr> you wrote: > This function has never been used, at least since the beginning > of the git repository > > Signed-off-by: Christophe Leroy Reviewed-by: Wolfgang Denk

Re: [U-Boot] [PATCH 01/14] powerpc, 8xx: Simplify brgclk calculation and remove get_brgclk()

2017-07-12 Thread Wolfgang Denk
Dear Christophe, In message <59ac182501e89d3b9ee1dc7c31ce358ff33c0877.1499629706.git.christophe.le...@c-s.fr> you wrote: > divider is calculated based on SCCR_DFBRG, with: > SCCR_DFBRG 00 => divider 1 = 1 << 0 > SCCR_DFBRG 01 => divider 4 = 1 << 2 > SCCR_DFBRG 10 => divider 16 = 1 << 4 > SCCR_

Re: [U-Boot] [PATCH 4/5] efi_loader: gop: fixes for CONFIG_DM_VIDEO without CONFIG_LCD

2017-07-12 Thread Alexander Graf
On 25.06.17 01:05, Rob Clark wrote: Signed-off-by: Rob Clark Cc: Alexander Graf Looks reasonable to me, but could probably use a commit message ;). Also please make sure to CC Simon on all things DM. Alex --- cmd/bootefi.c| 2 +- lib/efi_loader/Makefile | 1 + lib/efi

Re: [U-Boot] [PATCH 00/30] env: Move environment code to use location drivers

2017-07-12 Thread Tom Rini
On Sun, Jul 09, 2017 at 02:52:43PM -0600, Simon Glass wrote: > The environment code is ripe for improvement in various ways. It has lots > of duplication and inconsistencies between how things work with different > environment locations. It does not properly use Kconfig. Error checking > and handl

Re: [U-Boot] [U-Boot, v4, 09/18] net: phy: cortina: use get_nand_dev_by_index()

2017-07-12 Thread Tom Rini
On Mon, Jun 26, 2017 at 07:12:59PM -0500, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it here > instead of accessing to nand_info array directly > > Signed-off-by: Grygorii Strashko

Re: [U-Boot] [U-Boot, v4, 12/18] cmd: mvebu: bubt: use get_nand_dev_by_index()

2017-07-12 Thread Tom Rini
On Mon, Jun 26, 2017 at 07:13:02PM -0500, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it here > instead of accessing to nand_info array directly. > > Signed-off-by: Grygorii Strashko

Re: [U-Boot] [U-Boot, v4, 18/18] mtd: nand: make nand_info array static

2017-07-12 Thread Tom Rini
On Mon, Jun 26, 2017 at 07:13:08PM -0500, Grygorii Strashko wrote: > Make make nand_info array static, since all direct users of nand_info array > have been converted to use get_nand_dev_by_index() API. > > Signed-off-by: Grygorii Strashko Applied to u-boot/master, thanks! -- Tom signature.

Re: [U-Boot] [U-Boot, v4, 13/18] board: atmel: use get_nand_dev_by_index()

2017-07-12 Thread Tom Rini
On Mon, Jun 26, 2017 at 07:13:03PM -0500, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it here > instead of accessing to nand_info array directly. > > Signed-off-by: Grygorii Strashko

Re: [U-Boot] [U-Boot,v4,06/18] common: use get_nand_dev_by_index()

2017-07-12 Thread Tom Rini
On Mon, Jun 26, 2017 at 07:12:56PM -0500, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it here > instead of accessing to nand_info array directly. > > Signed-off-by: Grygorii Strashko

Re: [U-Boot] [U-Boot, v4, 05/18] cmd: jffs2: use get_nand_dev_by_index()

2017-07-12 Thread Tom Rini
On Mon, Jun 26, 2017 at 07:12:55PM -0500, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it here > instead of accessing to nand_info array directly. > > Signed-off-by: Grygorii Strashko

Re: [U-Boot] [U-Boot, v4, 10/18] net: fm: use get_nand_dev_by_index()

2017-07-12 Thread Tom Rini
On Mon, Jun 26, 2017 at 07:13:00PM -0500, Grygorii Strashko wrote: > As part of preparation for nand DM conversion the new API has been > introduced to remove direct access to nand_info array. So, use it here > instead of accessing to nand_info array directly. > > Signed-off-by: Grygorii Strashko

  1   2   >