[U-Boot] [PATCH v3] ahci: Fix compiling warnings under 64bit platforms

2015-07-08 Thread Yuantian.Tang
From: Tang Yuantian When compling under 64bit platforms, there are lots of warnings, like: drivers/block/ahci.c:114:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] u8 *port_mmio = (u8 *)probe_ent->port[port].port_mmio; ^ drivers/block/ahci

Re: [U-Boot] [U-Boot, v2] ahci: Fix compiling warnings under 64bit platforms

2015-07-08 Thread Yuantian Tang
Thanks for pointing out. Fixed in patch v3. Regards, Yuantian > -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Thursday, July 09, 2015 9:48 AM > To: Tang Yuantian-B29983 > Cc: Xie Shaohui-B21989; u-boot@lists.denx.de > Subject: Re: [U-Boot,v2] ahci: Fix compiling

Re: [U-Boot] [PATCH 08/11] spi: ti_qspi: Use DMA to read from qspi flash

2015-07-08 Thread Vignesh R
On 07/03/2015 05:12 PM, Tom Rini wrote: > On Fri, Jul 03, 2015 at 04:46:10PM +0530, Vignesh R wrote: > >> ti_qspi uses memory map mode for faster read. Enabling DMA will increase >> read speed by 3x @48MHz on DRA74 EVM. >> >> Signed-off-by: Vignesh R > > This ignores the feedback from > http:/

Re: [U-Boot] [RFC PATCH 06/12] devres: introduce Devres (Managed Device Resource) framework

2015-07-08 Thread Albert ARIBAUD
Hello Masahiro, On Thu, 9 Jul 2015 14:16:33 +0900, Masahiro Yamada wrote: > Hi Simon, > > > 3. How do we handle things like gpio_exynos_bind() which allocs some > > data and passes it to a device it creates, as platform data? At > > present we don't free it. > > So, currently this driver is lea

Re: [U-Boot] [RFC PATCH 06/12] devres: introduce Devres (Managed Device Resource) framework

2015-07-08 Thread Masahiro Yamada
Hi Simon, 2015-07-09 9:22 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 7 July 2015 at 22:29, Masahiro Yamada > wrote: >> In U-Boot's driver model, memory is basically allocated and freed >> in the core framework. So, low level drivers generally only have >> to specify the size of needed memor

Re: [U-Boot] [PATCH v2 4/6] mmc: hi6220_dw_mmc: Add hi6220 glue code for dw_mmc controller.

2015-07-08 Thread Jaehoon Chung
On 07/09/2015 12:57 AM, Peter Griffin wrote: > This patch adds the glue code for hi6220 SoC which has 2x synopsis > dw_mmc controllers. This will be used by the hikey board support > in subsequent patches. > > Signed-off-by: Peter Griffin > --- > arch/arm/include/asm/arch-hi6220/dwmmc.h | 8 +++

[U-Boot] [PATCH] ls1021a: etsec: Enable Tx Data and TxBD snooping

2015-07-08 Thread Alison Wang
To improve eTSEC performance on LS1021A Rev2.0, snooping of all transmit frames from memory and all transmit BD memory accesses in enabled. Signed-off-by: Alison Wang --- include/tsec.h | 4 1 file changed, 4 deletions(-) diff --git a/include/tsec.h b/include/tsec.h index 58cdc19..1119d2c

[U-Boot] [PATCH] arm: ls1021a: allow OCRAM access permission as R/W in SPL

2015-07-08 Thread Alison Wang
On LS1021A Rev2.0, OCRAM's security level needs to be changed to non-secure access for SD boot. This patch will allow OCRAM access permission as R/W in SPL. Signed-off-by: Alison Wang --- board/freescale/ls1021aqds/ls1021aqds.c | 178 +--- board/freescale/ls1021atwr/l

Re: [U-Boot] [U-Boot, v2] ahci: Fix compiling warnings under 64bit platforms

2015-07-08 Thread Tom Rini
On Tue, Jul 07, 2015 at 03:48:26PM +0800, tang yuantian wrote: > From: Tang Yuantian > > When compling under 64bit platforms, there are lots of warnings, > like: > > drivers/block/ahci.c:114:18: warning: cast to pointer from integer > of different size [-Wint-to-pointer-cast] > u8 *port_mmio

Re: [U-Boot] [PATCH RESEND 0/7] spi: cadence_qspi: optimize & fix indirect rd-writes

2015-07-08 Thread Vikas MANOCHA
Hi Stefan, > -Original Message- > From: Vikas MANOCHA > Sent: Wednesday, July 01, 2015 9:25 AM > To: 'Stefan Roese' > Cc: 'u-boot@lists.denx.de'; 'grmo...@opensource.altera.com'; > 'dingu...@opensource.altera.com'; 'jt...@openedev.com' > Subject: RE: [PATCH RESEND 0/7] spi: cadence_qspi: o

Re: [U-Boot] [RFC PATCH 07/12] devres: add devm_kmalloc() and friends (managed memory allocation)

2015-07-08 Thread Simon Glass
On 7 July 2015 at 22:29, Masahiro Yamada wrote: > devm_kmalloc() is identical to kmalloc() except that the memory > allocated with it is managed and will be automatically released > when the device is removed/unbound. > > Likewise for the other variants. > > Signed-off-by: Masahiro Yamada > --- >

Re: [U-Boot] [RFC PATCH 06/12] devres: introduce Devres (Managed Device Resource) framework

2015-07-08 Thread Simon Glass
Hi Masahiro, On 7 July 2015 at 22:29, Masahiro Yamada wrote: > In U-Boot's driver model, memory is basically allocated and freed > in the core framework. So, low level drivers generally only have > to specify the size of needed memory with .priv_auto_alloc_size, > .platdata_auto_alloc_size, etc.

Re: [U-Boot] [RFC PATCH 05/12] dm: add DM_FLAG_BOUND flag

2015-07-08 Thread Simon Glass
Hi Masahiro, On 7 July 2015 at 22:29, Masahiro Yamada wrote: > Currently, we only have DM_FLAG_ACTIVATED to indicate the device > status, but we still cannot know in which stage is in progress, > binding or probing. > > This commit introduces a new flag, DM_FLAG_BOUND, which is set when > the dev

Re: [U-Boot] [RFC PATCH 02/12] linux_compat: remove cpu_relax() define

2015-07-08 Thread Simon Glass
On 7 July 2015 at 22:29, Masahiro Yamada wrote: > The macro cpu_relax() is defined by several headers in different > ways. > > arch/{arm,avr32,mips}/include/asm/processor.h defines it as follows: > #define cpu_relax() barrier() > > On the other hand, include/linux/compat.h defines it as follow

Re: [U-Boot] [RFC PATCH 04/12] linux_compat: handle __GFP_ZERO in kmalloc()

2015-07-08 Thread Simon Glass
On 7 July 2015 at 22:29, Masahiro Yamada wrote: > Currently, kzalloc() returns zero-filled memory, while kmalloc() > simply ignores the second argument and never fills the memory > area with zeros. > > I want kmalloc(size, __GFP_ZERO) to behave as kzalloc() does, > which will make it easier to add

Re: [U-Boot] [RFC PATCH 01/12] x86: delete unneeded declarations of disable_irq() and enable_irq()

2015-07-08 Thread Simon Glass
On 7 July 2015 at 22:46, Bin Meng wrote: > On Wed, Jul 8, 2015 at 12:29 PM, Masahiro Yamada > wrote: >> These two declarations in arch/x86/include/asm/interrupt.h conflict >> with ones in include/linux/compat.h, so x86 boards cannot include >> . >> >> The comment /* arch/x86/lib/interrupts.c */ i

Re: [U-Boot] [RFC PATCH 03/12] linux_compat: move vzalloc() to header file as an inline function

2015-07-08 Thread Simon Glass
On 7 July 2015 at 22:29, Masahiro Yamada wrote: > The vzalloc(size) is equivalent to kzalloc(size, 0). Move it to > include/linux/compat.h as an inline function in order to avoid the > function call overhead. > > Signed-off-by: Masahiro Yamada > --- > > include/linux/compat.h | 6 -- > lib/

Re: [U-Boot] [PATCH] x86: Eliminate make defconfig warning for Crown Bay and Minnowmax

2015-07-08 Thread Simon Glass
Hi Bin, On 8 July 2015 at 18:17, Bin Meng wrote: > > Hi Simon, > > On Thu, Jul 9, 2015 at 4:28 AM, Simon Glass wrote: > > Hi Bin, > > > > On 8 July 2015 at 07:50, Bin Meng wrote: > >> Remove duplicated entry of OF_CONTROL in crownbay_defconfig and > >> minnowmax_defconfig which causes a warning

Re: [U-Boot] [PATCH] x86: Eliminate make defconfig warning for Crown Bay and Minnowmax

2015-07-08 Thread Bin Meng
Hi Simon, On Thu, Jul 9, 2015 at 4:28 AM, Simon Glass wrote: > Hi Bin, > > On 8 July 2015 at 07:50, Bin Meng wrote: >> Remove duplicated entry of OF_CONTROL in crownbay_defconfig and >> minnowmax_defconfig which causes a warning when making defconfig. >> The updated defconfig files are generated

Re: [U-Boot] [PATCH v2 7/8] mtd/nand/ubi: assortment of alignment fixes

2015-07-08 Thread Scott Wood
On Wed, 2015-07-08 at 13:58 +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer > alignment into account which led to failures of the following form: > > ERROR: v7_dcache_inval_range - start address is not aligned - 0x

[U-Boot] [PATCH] thermal: imx_thermal: fix busywait if IMX6 temp <0C

2015-07-08 Thread Tim Harvey
The temperature calculation must be typecasted to keep the compiler from sign extending a negative value prior to division. This fixes an issue where if the CPU temperature is <0C it will get stuck in the busywait loop until the CPU heats up to 0C. Cc: Ye Li Cc: Jason Liu Signed-off-by: Tim Har

Re: [U-Boot] [PATCH 0/5] dcache support for Raspberry Pi 1

2015-07-08 Thread Albert ARIBAUD
Hello Alexander, On Wed, 08 Jul 2015 20:15:42 +0200, Alexander Stein wrote: > Hello Albert, > > On Monday 06 July 2015, 23:26:41 wrote Albert ARIBAUD: > > On Mon, 06 Jul 2015 20:24:31 +0200, Alexander Stein > > wrote: > > > Hello Albert, > > > > > > On Monday 06 July 2015, 09:39:40 wrote Alber

Re: [U-Boot] [PATCH] thermal:imx_thermal: enter busywait cooling loop when over max CPU temp

2015-07-08 Thread Tim Harvey
On Tue, Jun 9, 2015 at 6:40 AM, Tim Harvey wrote: > Remove the check for temperature being within the min/max range and enter the > busywait cooling loop whenever the CPU temperature is over the critical temp. > This fixes the issue where if a board was booted at a temp greater than > the CPU temp

[U-Boot] [PATCH] dfu: Delete superfluous initialization of the dfu_buf_size static variable

2015-07-08 Thread Lukasz Majewski
After extension of the dfu_get_buf() to also setup (implicitly) the dfu_buf_size variable it is not needed to set dfu_buf_size to CONFIG_SYS_DFU_DATA_BUF_SIZE. This variable is set in the dfu_get_buf() by not only considering CONFIG_SYS_DFU_DATA_BUF but more importantly the "dfu_bufsiz" env variab

Re: [U-Boot] [PATCH 11/20] dm: serial: Update binding for PL01x serial UART

2015-07-08 Thread Vikas MANOCHA
Hi Simon, > -Original Message- > From: Simon Glass [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Tuesday, July 07, 2015 7:54 PM > To: U-Boot Mailing List > Cc: Stephen Warren; Stephen Warren; Joe Hershberger; Masahiro Yamada; > Simon Glass; Linus Walleij; Masahiro Yamada; Marek

Re: [U-Boot] [PATCH] sunxi: usb-phy: Never power off the usb ports

2015-07-08 Thread Marek Vasut
On Wednesday, July 08, 2015 at 07:49:37 PM, Hans de Goede wrote: > Hi, Hi! > On 08-07-15 17:02, Marek Vasut wrote: > > On Wednesday, July 08, 2015 at 04:54:07 PM, Hans de Goede wrote: > >> USB devices are not really designed to get the power bounced off and on > >> at them. Esp. USB powered hardd

Re: [U-Boot] [PATCH 01/20] dm: net: Support usbethaddr environment variable

2015-07-08 Thread Simon Glass
Hi Joe, On 8 July 2015 at 14:43, Joe Hershberger wrote: > Hi Simon, > > On Wed, Jul 8, 2015 at 3:31 PM, Simon Glass wrote: >> +Hans >> >> Hi Joe, >> >> On 7 July 2015 at 22:04, Joe Hershberger wrote: >>> Hi Simon, >>> >>> On Tue, Jul 7, 2015 at 9:53 PM, Simon Glass wrote: For USB Ethernet

Re: [U-Boot] [PATCH 13/13] apalis/colibri_t20/t30: increase tftp blocksize

2015-07-08 Thread Stephen Warren
On 07/06/2015 02:20 AM, Marcel Ziswiler wrote: From: Max Krummenacher Enable CONFIG_IP_DEFRAG and set CONFIG_TFTP_BLOCKSIZE to 16384. This increases the tftp download speed considerably. While at it enable CONFIG_TFTP_TSIZE which limits the progress bar to fifty '#' independent of the download

Re: [U-Boot] [PATCH 03/13] apalis/colibri_t20/t30: integrate recovery mode detection

2015-07-08 Thread Stephen Warren
On 07/07/2015 12:04 AM, Marcel Ziswiler wrote: On 6 July 2015 18:38:21 CEST, Simon Glass wrote: Out of interest, is this just a message for the user? Why is it useful? Well, we or customers might do other interesting things on entering rcm like stopping autoboot or automatically start ums

Re: [U-Boot] [PATCH] README.distro: fix typos

2015-07-08 Thread Stephen Warren
On 07/07/2015 03:47 AM, Masahiro Yamada wrote: The word "partition" is doubled. Keep decent forms for the following lines. Also, fix some other typos while we are here. Acked-by: Stephen Warren ___ U-Boot mailing list U-Boot@lists.denx.de http://li

Re: [U-Boot] [PATCH 01/20] dm: net: Support usbethaddr environment variable

2015-07-08 Thread Joe Hershberger
Hi Simon, On Wed, Jul 8, 2015 at 3:31 PM, Simon Glass wrote: > +Hans > > Hi Joe, > > On 7 July 2015 at 22:04, Joe Hershberger wrote: >> Hi Simon, >> >> On Tue, Jul 7, 2015 at 9:53 PM, Simon Glass wrote: >>> For USB Ethernet devices we need to use the usbethaddr environment variable >>> (instead

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Ivan Khoronzhuk
On 08.07.15 22:22, ivan.khoronzhuk wrote: Vitaly, On 08.07.15 21:28, Vitaly Andrianov wrote: On 07/08/2015 01:50 PM, ivan.khoronzhuk wrote: Vitaly, On 08.07.15 20:26, Vitaly Andrianov wrote: On 07/08/2015 01:05 PM, Ivan Khoronzhuk wrote: Vitaly, On 08.07.15 20:05, Vitaly Andrianov wr

Re: [U-Boot] [PATCH 01/20] dm: net: Support usbethaddr environment variable

2015-07-08 Thread Simon Glass
+Hans Hi Joe, On 7 July 2015 at 22:04, Joe Hershberger wrote: > Hi Simon, > > On Tue, Jul 7, 2015 at 9:53 PM, Simon Glass wrote: >> For USB Ethernet devices we need to use the usbethaddr environment variable >> (instead of ethaddr) the Ethernet hardware address. Add this to the uclass >> so tha

Re: [U-Boot] [PATCH] x86: Eliminate make defconfig warning for Crown Bay and Minnowmax

2015-07-08 Thread Simon Glass
Hi Bin, On 8 July 2015 at 07:50, Bin Meng wrote: > Remove duplicated entry of OF_CONTROL in crownbay_defconfig and > minnowmax_defconfig which causes a warning when making defconfig. > The updated defconfig files are generated by 'make savedefconfig'. > > Signed-off-by: Bin Meng > --- > > confi

Re: [U-Boot] [PATCH v3 17/25] rockchip: rk3288: Add pinctrl driver

2015-07-08 Thread Simon Glass
Hi Masahiro, On 8 July 2015 at 03:35, Masahiro Yamada wrote: > Hi Simon, > > > 2015-07-07 2:32 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 6 July 2015 at 11:24, Masahiro Yamada >> wrote: >>> >>> Hi Simon, >>> >>> >>> 2015-06-24 8:29 GMT+09:00 Simon Glass : >>> >>> > + >>> > +static int rk3

Re: [U-Boot] [PATCH 1/3] dm: serial: Do not panic if no serial ports are found

2015-07-08 Thread Simon Glass
Hi Hans, On 8 July 2015 at 08:16, Hans de Goede wrote: > Hi, > > > On 08-07-15 16:08, Simon Glass wrote: >> >> +Masahiro >> >> Hi Hans, >> >> On 8 July 2015 at 05:56, Hans de Goede wrote: >>> >>> Hi Simon, >>> >>> >>> On 07-07-15 09:00, Hans de Goede wrote: Hi, On 06-07-

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread ivan.khoronzhuk
Vitaly, On 08.07.15 20:26, Vitaly Andrianov wrote: On 07/08/2015 01:05 PM, Ivan Khoronzhuk wrote: Vitaly, On 08.07.15 20:05, Vitaly Andrianov wrote: On 07/08/2015 12:38 PM, Ivan Khoronzhuk wrote: Hi, Vitaly I suppose it's better to decide in upper driver how to use swinfo field. Like in

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread ivan.khoronzhuk
Vitaly, On 08.07.15 21:28, Vitaly Andrianov wrote: On 07/08/2015 01:50 PM, ivan.khoronzhuk wrote: Vitaly, On 08.07.15 20:26, Vitaly Andrianov wrote: On 07/08/2015 01:05 PM, Ivan Khoronzhuk wrote: Vitaly, On 08.07.15 20:05, Vitaly Andrianov wrote: On 07/08/2015 12:38 PM, Ivan Khoronzh

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Ivan Khoronzhuk
Hi, Vitaly I suppose it's better to decide in upper driver how to use swinfo field. Like in drivers/net/keystone_net.c The keystone navigator supposed to be used as a tool for communicating between different IPs, and each of them decide how to use swinfo fields. It's protocol specific informatio

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Ivan Khoronzhuk
Vitaly, On 08.07.15 20:05, Vitaly Andrianov wrote: On 07/08/2015 12:38 PM, Ivan Khoronzhuk wrote: Hi, Vitaly I suppose it's better to decide in upper driver how to use swinfo field. Like in drivers/net/keystone_net.c The keystone navigator supposed to be used as a tool for communicating bet

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Ivan Khoronzhuk
Hi, Vitaly I suppose it's better to decide in upper driver how to use swinfo field. Like in drivers/net/keystone_net.c The keystone navigator supposed to be used as a tool for communicating between different IPs, and each of them decide how to use swinfo fields. It's protocol specific informatio

[U-Boot] [PATCH 1/3] crypto/fsl: fix "era" property value on LE platforms

2015-07-08 Thread Horia Geantă
Use fdt_setprop_u32() instead of fdt_setprop(). Fixes: 0181937fa371a ("crypto/fsl: Add fixup for crypto node") Signed-off-by: Horia Geantă Reviewed-by: Mingkai Hu --- drivers/crypto/fsl/sec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/fsl/sec.c b/driver

[U-Boot] [PATCH 3/3] crypto/fsl: clean-up - use fdt_setprop_u32 helper

2015-07-08 Thread Horia Geantă
Signed-off-by: Horia Geantă --- drivers/crypto/fsl/sec.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c index b25b1a4052d2..0940faf768cc 100644 --- a/drivers/crypto/fsl/sec.c +++ b/drivers/crypto/fsl/sec.c

[U-Boot] [PATCH 2/3] crypto/fsl: fix snooping for write transactions

2015-07-08 Thread Horia Geantă
HW coherency won't work properly for CAAM write transactions if AWCACHE is left to default (POR) value - 4'b0001. It has to be programmed to 4'b0010. For platforms that have HW coherency support: -PPC-based: the update has no effect; CAAM coherency already works due to the IOMMU (PAMU) driver sett

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Vitaly Andrianov
On 07/08/2015 01:50 PM, ivan.khoronzhuk wrote: Vitaly, On 08.07.15 20:26, Vitaly Andrianov wrote: On 07/08/2015 01:05 PM, Ivan Khoronzhuk wrote: Vitaly, On 08.07.15 20:05, Vitaly Andrianov wrote: On 07/08/2015 12:38 PM, Ivan Khoronzhuk wrote: Hi, Vitaly I suppose it's better to decid

Re: [U-Boot] [PATCH 0/5] dcache support for Raspberry Pi 1

2015-07-08 Thread Alexander Stein
Hello Albert, On Monday 06 July 2015, 23:26:41 wrote Albert ARIBAUD: > On Mon, 06 Jul 2015 20:24:31 +0200, Alexander Stein > wrote: > > Hello Albert, > > > > On Monday 06 July 2015, 09:39:40 wrote Albert ARIBAUD: > > > On Sat, 4 Jul 2015 11:48:39 +0200, Alexander Stein > > > wrote: > > > > >

Re: [U-Boot] [PATCH] sunxi: usb-phy: Never power off the usb ports

2015-07-08 Thread Hans de Goede
Hi, On 08-07-15 17:02, Marek Vasut wrote: On Wednesday, July 08, 2015 at 04:54:07 PM, Hans de Goede wrote: USB devices are not really designed to get the power bounced off and on at them. Esp. USB powered harddisks do not like this. Currently we power off the USB ports both on a "usb reset" an

Re: [U-Boot] net: designware: Program MAC address to hardware after soft reset

2015-07-08 Thread Tom Rini
On Mon, Jun 15, 2015 at 06:40:19PM +0800, Bin Meng wrote: > commit f566c99 "net: Update hardware MAC address if it changes in env" > removes writing MAC address to designware controller after soft reset. > This makes designware ethernet port fail to work. Actually the MAC > address should always b

Re: [U-Boot] [PATCH 1/1] net: lpc32xx: improve download rate in RMII phy mode

2015-07-08 Thread LEMIEUX, SYLVAIN
Hi Vladimir, Thanks for taking the time to test this patch. After further investigation, the issue was with our internal Micrel KSZ8031RNL phy implementation. The extra 10ms delay is not require. This patch should be discard. Thanks for the feedback regarding the mail system; - for an internal

Re: [U-Boot] Please pull u-boot-sunxi master (bugfix for v2015.07)

2015-07-08 Thread Tom Rini
On Wed, Jul 08, 2015 at 04:52:43PM +0200, Hans de Goede wrote: > Hi Tom, > > One of the sunxi dts files for a new board got merged into the > upstream kernel under a different name than that it was originally > submitted with. This pull-req contains a single patch adjusting > the name in u-boot,

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Vitaly Andrianov
On 07/08/2015 01:05 PM, Ivan Khoronzhuk wrote: Vitaly, On 08.07.15 20:05, Vitaly Andrianov wrote: On 07/08/2015 12:38 PM, Ivan Khoronzhuk wrote: Hi, Vitaly I suppose it's better to decide in upper driver how to use swinfo field. Like in drivers/net/keystone_net.c The keystone navigator s

Re: [U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Vitaly Andrianov
On 07/08/2015 12:38 PM, Ivan Khoronzhuk wrote: Hi, Vitaly I suppose it's better to decide in upper driver how to use swinfo field. Like in drivers/net/keystone_net.c The keystone navigator supposed to be used as a tool for communicating between different IPs, and each of them decide how to us

[U-Boot] [PATCH v2 2/6] ARM: hi6220: Add register and bitfield definition header files.

2015-07-08 Thread Peter Griffin
This patch adds the header files which will be used in the subsquent board / drivers to enable support for hi6220 hikey board. Signed-off-by: Peter Griffin --- arch/arm/include/asm/arch-hi6220/hi6220.h | 324 +++ .../include/asm/arch-hi6220/hi6220_regs_alwayson.h | 349 +

[U-Boot] [PATCH v2 5/6] ARM64: hikey: hi6220: Add u-boot support for the 96boards CE HiKey board.

2015-07-08 Thread Peter Griffin
HiKey is the first 96boards consumer edition compliant board. It features a hi6220 SoC which has eight ARM A53 cpu's. This initial port adds support for: - 1) Serial 2) eMMC / sd card 3) USB 4) GPIO It has been tested with Arm Trusted Firmware running u-boot as the BL33 executable. Notes: eMM

[U-Boot] [PATCH v2 3/6] hi6553: Add register definition and bitfield header for 6553 pmic

2015-07-08 Thread Peter Griffin
This pmic is used on the 96boards consumer edition HiKey board. Signed-off-by: Peter Griffin --- arch/arm/include/asm/arch-hi6220/hi6553.h | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 arch/arm/include/asm/arch-hi6220/hi6553.h diff --git a/arch/arm/i

[U-Boot] [PATCH v2 4/6] mmc: hi6220_dw_mmc: Add hi6220 glue code for dw_mmc controller.

2015-07-08 Thread Peter Griffin
This patch adds the glue code for hi6220 SoC which has 2x synopsis dw_mmc controllers. This will be used by the hikey board support in subsequent patches. Signed-off-by: Peter Griffin --- arch/arm/include/asm/arch-hi6220/dwmmc.h | 8 + drivers/mmc/Makefile | 1 + driver

[U-Boot] [PATCH v2 6/6] ARM64: hikey: Add a README for this board.

2015-07-08 Thread Peter Griffin
To help others with compiling and flashing ATF and u-boot add a README for this board. Signed-off-by: Peter Griffin --- board/hisilicon/hikey/README | 160 +++ 1 file changed, 160 insertions(+) create mode 100644 board/hisilicon/hikey/README diff --git a

[U-Boot] [PATCH v2 0/6] Add support for hi6220 SoC and HiKey 96boards CE board.

2015-07-08 Thread Peter Griffin
Hi Folks, This series adds support for the first 96boards consumer edition HiKey board. More information can be found about this board at the following link https://www.96boards.org/products/hikey/. This initial port adds support for: - 1) Serial 2) eMMC and sd card 3) USB 4) GPIO It has been

[U-Boot] [PATCH v2 1/6] dm: gpio: hi6220: Add a hi6220 GPIO driver model driver.

2015-07-08 Thread Peter Griffin
This patch adds support for the GPIO perif found on hi6220 SoC. Signed-off-by: Peter Griffin --- arch/arm/include/asm/arch-hi6220/gpio.h | 29 ++ drivers/gpio/Makefile | 2 + drivers/gpio/hi6220_gpio.c | 95 + 3 files change

[U-Boot] [PATCH] keystone2: net: add mcast function to keyston2 Ethernet driver

2015-07-08 Thread Vitaly Andrianov
The MCAST_TFTP support requires that network drivers has mcast functon implemented. This commit adds dummy keystone2_eth_bcast_addr() to meet the requirement. As far as the driver doesn't use ALE and doesn't filter any incoming packets, the function is empty. Signed-off-by: Vitaly Andrianov ---

[U-Boot] [PATCH] keystone2: add high memory test

2015-07-08 Thread Vitaly Andrianov
Keystone2 SOC physical DDR3 address range is outside the first 4GB and cannot be entirely accessible without MMU enabled. Only first 2GB of the physical memory have 32-bits aliased addresses. This patch adds u-boot shell command that allows to enable/disable MMU and map the 1GB of 36bits physical m

[U-Boot] [PATCH] keystone2: use appropriate HD field for destination port

2015-07-08 Thread Vitaly Andrianov
K2L and L2E have different from K2HK EthSS version, which uses tag_info field for destination slave port. This commit adds the dest_port_info field to the struct pktdma_cfg, to configure which HD filed tag_info or pkt_info shall be used to configure descriptor. Before that commit the swinfo[2] was

[U-Boot] [PATCH] keystone2: add wfi in to the core_spin loop

2015-07-08 Thread Vitaly Andrianov
When core A turning of core B, via tetris DPSC it places the core B DPSC into transitional state. The core B has to execute wfi instruction to move its DPSC to the OFF state. This patch add such instruction. Signed-off-by: Vitaly Andrianov --- arch/arm/mach-keystone/cmd_mon.c | 9 +++-- 1 fi

Re: [U-Boot] [PATCH v3 00/25] dm: Introduce Rockchip RK3288 support

2015-07-08 Thread Simon Glass
+ML Hi Ulrich, On 7 July 2015 at 08:32, Ulrich Prinz wrote: > Am 24.06.2015 um 01:28 schrieb Simon Glass: >> >> >> The Rockchip RK3288 is based on a quad-core Cortex-A17 CPU and has a good >> set of peripherals. Various full-featured U-Boot ports are available and >> this is an attempt to bring

Re: [U-Boot] [PATCH] sunxi: usb-phy: Never power off the usb ports

2015-07-08 Thread Marek Vasut
On Wednesday, July 08, 2015 at 04:54:07 PM, Hans de Goede wrote: > USB devices are not really designed to get the power bounced off and on > at them. Esp. USB powered harddisks do not like this. > > Currently we power off the USB ports both on a "usb reset" and when > booting the kernel, causing t

Re: [U-Boot] [PATCH] sunxi: usb-phy: Never power off the usb ports

2015-07-08 Thread Ian Campbell
On Wed, 2015-07-08 at 16:54 +0200, Hans de Goede wrote: > USB devices are not really designed to get the power bounced off and on > at them. Esp. USB powered harddisks do not like this. > > Currently we power off the USB ports both on a "usb reset" and when > booting the kernel, causing the usb-po

[U-Boot] [PATCH] sunxi: usb-phy: Never power off the usb ports

2015-07-08 Thread Hans de Goede
USB devices are not really designed to get the power bounced off and on at them. Esp. USB powered harddisks do not like this. Currently we power off the USB ports both on a "usb reset" and when booting the kernel, causing the usb-power to bounce off and then back on again. This patch removes the

[U-Boot] Please pull u-boot-sunxi master (bugfix for v2015.07)

2015-07-08 Thread Hans de Goede
Hi Tom, One of the sunxi dts files for a new board got merged into the upstream kernel under a different name than that it was originally submitted with. This pull-req contains a single patch adjusting the name in u-boot, so that we do not end up shipping a u-boot which looks for a differently na

Re: [U-Boot] [PATCH v2 3/4] usb: gadget: bcm_udc_otg files

2015-07-08 Thread Marek Vasut
On Wednesday, July 08, 2015 at 04:22:14 PM, Lukasz Majewski wrote: > Hi Steve, Hi! > > >> b/drivers/usb/gadget/bcm_udc_otg.h new file mode 100644 > > >> index 000..81a1fc0 > > >> --- /dev/null > > >> +++ b/drivers/usb/gadget/bcm_udc_otg.h > > >> @@ -0,0 +1,17 @@ > > >> +/* > > >> + * Copyrigh

Re: [U-Boot] [PATCH v2 3/4] usb: gadget: bcm_udc_otg files

2015-07-08 Thread Lukasz Majewski
Hi Steve, > Hi, Lukasz > > On 15-07-07 06:33 AM, Lukasz Majewski wrote: > > Hi Steve, > > > >> From: "JD (Jiandong) Zheng" > >> > >> Add the required files for the Broadcom UDC OTG interface. > >> > >> Signed-off-by: Steve Rae > >> --- > >> > >> Changes in v2: None > >> > >> arch/arm/include/

Re: [U-Boot] [PATCH 1/3] dm: serial: Do not panic if no serial ports are found

2015-07-08 Thread Hans de Goede
Hi, On 08-07-15 16:08, Simon Glass wrote: +Masahiro Hi Hans, On 8 July 2015 at 05:56, Hans de Goede wrote: Hi Simon, On 07-07-15 09:00, Hans de Goede wrote: Hi, On 06-07-15 18:39, Simon Glass wrote: Hi Hans, On 5 July 2015 at 12:56, Hans de Goede wrote: Some boards simply do not h

Re: [U-Boot] [PATCH v2 2/4] usb: s3c-otg: support 8-bit interface

2015-07-08 Thread Lukasz Majewski
Hi Steve, > > > On 15-07-07 06:27 AM, Lukasz Majewski wrote: > > Hi Steve, > > > >> Signed-off-by: Steve Rae > >> --- > >> > >> Changes in v2: None > >> > >> drivers/usb/gadget/s3c_udc_otg.c | 4 > >> 1 file changed, 4 insertions(+) > >> > >> diff --git a/drivers/usb/gadget/s3c_udc_otg.

Re: [U-Boot] [PATCH v2 3/8] generic-board: allow showing custom board info

2015-07-08 Thread Simon Glass
On 8 July 2015 at 05:58, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Allow showing custom board info from a checkboard() function being > implemented if CONFIG_CUSTOM_BOARDINFO is specified. Previously the > device tree model was always displayed not taking any > CONFIG_CUSTOM_BOARDINFO i

Re: [U-Boot] [PATCH v2 7/8] mtd/nand/ubi: assortment of alignment fixes

2015-07-08 Thread Simon Glass
On 8 July 2015 at 05:58, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer > alignment into account which led to failures of the following form: > > ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108

Re: [U-Boot] [PATCH v3 22/54] dm: Correct the missing method check in cpu_get_info()

2015-07-08 Thread Simon Glass
On 23 June 2015 at 15:38, Simon Glass wrote: > This is checking the wrong method. Fix it. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > drivers/cpu/cpu-uclass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpu/cpu-uclas

Re: [U-Boot] [PATCH 1/3] dm: serial: Do not panic if no serial ports are found

2015-07-08 Thread Simon Glass
+Masahiro Hi Hans, On 8 July 2015 at 05:56, Hans de Goede wrote: > Hi Simon, > > > On 07-07-15 09:00, Hans de Goede wrote: >> >> Hi, >> >> On 06-07-15 18:39, Simon Glass wrote: >>> >>> Hi Hans, >>> >>> On 5 July 2015 at 12:56, Hans de Goede wrote: Some boards simply do not have any se

Re: [U-Boot] [PATCH 1/3] dm: dts: ls2085a: Bring in ls2085a dts files from linux kernel

2015-07-08 Thread Albert ARIBAUD
Hello Sharma, On Wed, 8 Jul 2015 10:31:45 +, Sharma Bhupesh wrote: > Hi Albert > > > -Original Message- > > From: Albert ARIBAUD [mailto:albert.u.b...@aribaud.net] > > Sent: Wednesday, July 08, 2015 2:50 PM > > To: Sharma Bhupesh-B45370 > > Cc: Wang Haikun-B53464; Bin Meng; Russell K

[U-Boot] [PATCH] x86: Eliminate make defconfig warning for Crown Bay and Minnowmax

2015-07-08 Thread Bin Meng
Remove duplicated entry of OF_CONTROL in crownbay_defconfig and minnowmax_defconfig which causes a warning when making defconfig. The updated defconfig files are generated by 'make savedefconfig'. Signed-off-by: Bin Meng --- configs/crownbay_defconfig | 14 ++ configs/minnowmax_def

Re: [U-Boot] [PATCH] imx: imximage: add new CHECK/CLR BIT command

2015-07-08 Thread Stefano Babic
Hi Peng, On 30/06/2015 10:02, Peng Fan wrote: > The reason to add different commands but not one CHECK_DATA_COMMAND is that > compatible with current implementation. > Current DCD supports "DATA 4 addr value". If want to use one > CHECK_DATA_COMMAND > to cover CHECK_BITS_SET/CLR, we need another

Re: [U-Boot] [PATCH v2 2/8] net: asix: fix operation without eeprom

2015-07-08 Thread Marek Vasut
On Wednesday, July 08, 2015 at 01:58:47 PM, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This patch fixes operation of our on-board AX88772B chip without EEPROM > but with a ethaddr coming from the regular U-Boot environment. This is > a forward port of some remaining parts initially implem

[U-Boot] [PATCH v2 1/8] fs/fs.c: read up to EOF when len would read past EOF

2015-07-08 Thread Marcel Ziswiler
From: Max Krummenacher http://lists.denx.de/pipermail/u-boot/2012-September/134347.html allows for reading files in chunks from the shell. When this feature is used to read past the end of a file an error was returned instead of returning the bytes read up to the end of file. Thus the following

[U-Boot] [PATCH v2 6/8] image-fdt.c: store returned error value

2015-07-08 Thread Marcel Ziswiler
From: Max Krummenacher This fixes the following warning (and the runtime error reporting): ../common/image-fdt.c:491:4: warning: 'fdt_ret' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler Acked-by: Marek Vasut Ac

[U-Boot] [PATCH v2 7/8] mtd/nand/ubi: assortment of alignment fixes

2015-07-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer alignment into account which led to failures of the following form: ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108 ERROR: v7_dcache_inval_range - stop address is not aligned -

[U-Boot] [PATCH v2 8/8] tftp.c: fix CONFIG_TFTP_TSIZE for small files

2015-07-08 Thread Marcel Ziswiler
From: Max Krummenacher CONFIG_TFTP_TSIZE should limit a tftp downloads progress to 50 '#' chars. Make this work also for small files. If the file size is small, i.e. smaller than 2 tftp block sizes the number of '#' can get much larger. i.e. with a 1 byte file 65000 characters are printed, with

[U-Boot] [PATCH v2 3/8] generic-board: allow showing custom board info

2015-07-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Allow showing custom board info from a checkboard() function being implemented if CONFIG_CUSTOM_BOARDINFO is specified. Previously the device tree model was always displayed not taking any CONFIG_CUSTOM_BOARDINFO into account. Signed-off-by: Marcel Ziswiler --- Changes in

[U-Boot] [PATCH v2 5/8] colibri_vf: remove spurious new line

2015-07-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Remove spurious new line in configuration file. Signed-off-by: Marcel Ziswiler Tested-by: Marek Vasut Acked-by: Marek Vasut --- Changes in v2: none include/configs/colibri_vf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/colibri_vf.h b/include/co

[U-Boot] [PATCH v2 2/8] net: asix: fix operation without eeprom

2015-07-08 Thread Marcel Ziswiler
From: Marcel Ziswiler This patch fixes operation of our on-board AX88772B chip without EEPROM but with a ethaddr coming from the regular U-Boot environment. This is a forward port of some remaining parts initially implemented by Antmicro. Signed-off-by: Marcel Ziswiler --- Changes in v2: - run

[U-Boot] [PATCH v2 4/8] logos: add Toradex logo

2015-07-08 Thread Marcel Ziswiler
From: Stefan Agner Use the boot loader splash screen from WinCE which matches our wallpapers position wise. Although the logo is an 8-bit indexed BMP as well colours looked odd at first in U-Boot. After converting to full RGB palette and converting back to an indexed BMP using imagemagick the Log

[U-Boot] [PATCH v2 0/8] assortment of fixes/enhancements

2015-07-08 Thread Marcel Ziswiler
From: Marcel Ziswiler This patch set is an assortment of fixes/enhancements distilled straight from our downstream integration work. Marcel Ziswiler (4): net: asix: fix operation without eeprom generic-board: allow showing custom board info colibri_vf: remove spurious new line mtd/nand/u

Re: [U-Boot] [PATCH 1/3] dm: serial: Do not panic if no serial ports are found

2015-07-08 Thread Hans de Goede
Hi Simon, On 07-07-15 09:00, Hans de Goede wrote: Hi, On 06-07-15 18:39, Simon Glass wrote: Hi Hans, On 5 July 2015 at 12:56, Hans de Goede wrote: Some boards simply do not have any serial ports. Also no one will see the panic message as there is no where to print it if no serial port is fo

Re: [U-Boot] [PATCH v2] x86: baytrail: Configure FSP UPD from device tree

2015-07-08 Thread Andrew Bradford
Hi Bin, On 07/08 11:18, Bin Meng wrote: > Hi Andrew, > > On Wed, Jul 8, 2015 at 3:16 AM, wrote: > > From: Andrew Bradford > > > > Allow for configuration of FSP UPD from the device tree which will > > override any settings which the FSP was built with itself if the device > > tree settings exi

Re: [U-Boot] [PATCH 1/3] dm: dts: ls2085a: Bring in ls2085a dts files from linux kernel

2015-07-08 Thread Sharma Bhupesh
Hi Albert > -Original Message- > From: Albert ARIBAUD [mailto:albert.u.b...@aribaud.net] > Sent: Wednesday, July 08, 2015 2:50 PM > To: Sharma Bhupesh-B45370 > Cc: Wang Haikun-B53464; Bin Meng; Russell King; Mark Rutland; Sun York- > R58495; Kushwaha Prabhakar-B32579; u-boot@lists.denx.de

Re: [U-Boot] [PATCH v3 17/25] rockchip: rk3288: Add pinctrl driver

2015-07-08 Thread Masahiro Yamada
Hi Simon, 2015-07-07 2:32 GMT+09:00 Simon Glass : > Hi Masahiro, > > On 6 July 2015 at 11:24, Masahiro Yamada > wrote: >> >> Hi Simon, >> >> >> 2015-06-24 8:29 GMT+09:00 Simon Glass : >> >> > + >> > +static int rk3288_pinctrl_get_periph_id(struct udevice *dev, >> > +

Re: [U-Boot] [PATCH 1/3] dm: dts: ls2085a: Bring in ls2085a dts files from linux kernel

2015-07-08 Thread Albert ARIBAUD
Hello Sharma, On Wed, 8 Jul 2015 07:31:47 +, Sharma Bhupesh wrote: > > -Original Message- > > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Wang > > Haikun > > On 7/8/2015 3:13 PM, Bin Meng wrote: > > > Hi, > > > > > > On Wed, Jul 8, 2015 at 2:51 PM, Wang Haikun > >

Re: [U-Boot] warning: override: reassigning to symbol OF_CONTROL

2015-07-08 Thread Bin Meng
On Wed, Jul 8, 2015 at 5:05 PM, Bin Meng wrote: > Hi Simon, > > I've rebased my git repo on u-boot-x86/master branch and found one > warning popped up: > > $ make crownbay_defconfig > HOSTCC scripts/basic/fixdep > HOSTCC scripts/kconfig/conf.o > SHIPPED scripts/kconfig/zconf.tab.c > SHIP

Re: [U-Boot] [PATCH 1/2] pci: Add function to find an extended capability

2015-07-08 Thread Lian M . H .
Hi Bin, Thanks for your comments. Please see my reply inline. > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Wednesday, July 08, 2015 4:14 PM > To: Lian Minghuan-B31939 > Cc: U-Boot Mailing List; Hu Mingkai-B21284; Sun York-R58495 > Subject: Re: [U-Boot] [PATCH

[U-Boot] warning: override: reassigning to symbol OF_CONTROL

2015-07-08 Thread Bin Meng
Hi Simon, I've rebased my git repo on u-boot-x86/master branch and found one warning popped up: $ make crownbay_defconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.has

Re: [U-Boot] [PATCH 1/2] pci: Add function to find an extended capability

2015-07-08 Thread Bin Meng
Hi Minghuan, On Tue, Jul 7, 2015 at 7:55 PM, Minghuan Lian wrote: > PCIe extends device's configuration space to 4k and provides > extended capability. The patch adds function to find them. > The code is ported from Linux PCIe driver. > > Signed-off-by: Minghuan Lian > > --- > drivers/pci/pci.c

Re: [U-Boot] [PATCH 1/3] dm: dts: ls2085a: Bring in ls2085a dts files from linux kernel

2015-07-08 Thread Sharma Bhupesh
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Wang > Haikun > On 7/8/2015 3:13 PM, Bin Meng wrote: > > Hi, > > > > On Wed, Jul 8, 2015 at 2:51 PM, Wang Haikun > wrote: > >> On 6/26/2015 7:53 PM, Haikun Wang wrote: > >>> From: Haikun Wang > >>> > >>

Re: [U-Boot] [RFC PATCH 12/12] devres: add debug command to dump devres

2015-07-08 Thread Masahiro Yamada
2015-07-08 13:29 GMT+09:00 Masahiro Yamada : > diff --git a/drivers/core/devres.c b/drivers/core/devres.c > index f24bcac..71f2f67 100644 > --- a/drivers/core/devres.c > +++ b/drivers/core/devres.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > > struct devres { >

  1   2   >