[U-Boot] [PATCH] rockchip: arm: halt when enable bucks of PMIC rk808

2017-04-05 Thread Eric Gao
From: "Eric Gao" when enable PMIC rk808,the system will halt at very early stage,log is shown as bellow. INFO:plat_rockchip_pmu_init(1211): pd status 3e INFO:BL31: Initializing runtime services INFO:BL31: Preparing for EL3 exit to normal world INFO:Entry point address = 0x20

Re: [U-Boot] [PATCH] lib: div64: sync with Linux

2017-04-05 Thread Peng Fan
Hi Tom, On Wed, Apr 05, 2017 at 09:32:51AM -0400, Tom Rini wrote: >On Tue, Mar 28, 2017 at 05:05:09PM +0800, Peng Fan wrote: > >> Sync with Linux commit ad0376eb1483b ("Merge tag 'edac_for_4.11_2'"). >> >> Signed-off-by: Peng Fan >> Cc: Tom Rini >> --- >> include/linux/math64.h | 172 >> +

[U-Boot] [PATCH v2] Add 16-bit single register pin controller support

2017-04-05 Thread James Balean
Enables the pinctrl-single driver to support 16-bit registers. Only 32-bit registers were supported previously. Reduced width registers are required for some platforms, such as OMAP. Signed-off-by: James Balean Cc: Felix Brack Cc: Simon Glass --- Changes for v2: - Added explanation of why thi

Re: [U-Boot] [PATCH v4 04/19] arm: socfpga: Restructure misc driver

2017-04-05 Thread Ley Foon Tan
On Wed, Apr 5, 2017 at 6:39 PM, Marek Vasut wrote: > On 04/05/2017 11:32 AM, Ley Foon Tan wrote: >> Restructure misc driver in the preparation to support A10. >> Move the Gen5 specific code to gen5 file. >> >> Change all uint32_t_to u32 and check return value from >> socfpga_bridges_reset. >> >> S

Re: [U-Boot] [PATCH] Add 8 and 16-bit single register pin controller support

2017-04-05 Thread James Balean
Hi All, Thank you for your responses. I will submit a new version of the patch with your suggestions following this. On 1 April 2017 at 15:22, Simon Glass wrote: > Can you explain in your commit message why we want this? Will do. I will be seeking to add TI OMAP device tree support to U-Boot sh

Re: [U-Boot] [PATCH v2 07/29] ARM: i.MX6QP: sabresd: Add initial devicetree support

2017-04-05 Thread Jagan Teki
On Thu, Apr 6, 2017 at 7:29 AM, Peng Fan wrote: > On Mon, Apr 03, 2017 at 07:23:14PM +0530, Jagan Teki wrote: >>From: Jagan Teki >> >>Add initial dts support for i.MX6 Quad Plus Sabresd board. >> >>Boot from MMC: >>- >>U-Boot SPL 2017.03-33690-ga80e4f6-dirty (Mar 30 2017 - 00:40:29) >

Re: [U-Boot] [PATCH v2 28/29] ARM: i.MX6: sabresd: Update README

2017-04-05 Thread Jagan Teki
On Thu, Apr 6, 2017 at 7:37 AM, Peng Fan wrote: > On Mon, Apr 03, 2017 at 07:23:35PM +0530, Jagan Teki wrote: >>From: Jagan Teki >> >>Since all SabreSD boards support SPL and devicetree >>update README on respective image name changes >>while loading the SD card. > > SPL is not supported by NXP s

Re: [U-Boot] [PATCH 3/7] Enable RK808 for rk3399 evb

2017-04-05 Thread Simon Glass
On 1 April 2017 at 08:42, wrote: > From: "eric.gao" > > Signed-off-by: eric.gao > --- > > arch/arm/dts/rk3399-evb.dts | 108 > +++ > configs/evb-rk3399_defconfig | 5 ++ > 2 files changed, 113 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v3 2/2] x86: Introduce minimal PMU driver for Intel MID platforms

2017-04-05 Thread Simon Glass
Hi Andy, On 1 April 2017 at 07:21, Andy Shevchenko wrote: > This simple PMU driver allows to tyrn power on and off for selected > devices. In particularly Intel Tangier needs to power on SDHCI > controllers in order to access to them during board initialization. > > In the future it might be expa

Re: [U-Boot] [PATCH 5/7] Add mipi display support for rk3399 && rk3288

2017-04-05 Thread Simon Glass
Hi Eric, On 1 April 2017 at 08:42, wrote: > From: "eric.gao" > > Signed-off-by: eric.gao > --- > > arch/arm/dts/rk3399-evb.dts | 33 ++ > arch/arm/dts/rk3399.dtsi | 72 + Please can you put the .dts changes in a separate patch? > arch/arm/i

Re: [U-Boot] [PATCH 6/7] Enable print log file to lcd

2017-04-05 Thread Simon Glass
On 1 April 2017 at 08:42, wrote: > From: "eric.gao" > > Signed-off-by: eric.gao > --- > > configs/evb-rk3399_defconfig| 1 + > include/configs/rk3399_common.h | 5 - > 2 files changed, 5 insertions(+), 1 deletion(-) > Reviewed-by: Simon Glass > diff --git a/configs/evb-rk3399_defco

Re: [U-Boot] [PATCH 7/7] crash when scroll screen

2017-04-05 Thread Simon Glass
Hi Eric, On 1 April 2017 at 08:42, wrote: > From: "eric.gao" > > After enable log printing to lcd,when the screen start scroll,the > system crash.And the log is shown as bellow. > > "Synchronous Abort" handler, esr 0x9645 > "Synchronous Abort" handler, esr 0x9645 > > Checking the source

Re: [U-Boot] [PATCH v1] mmc: sdhci: SDHCI controllers also need power

2017-04-05 Thread Simon Glass
Hi Andy, On 1 April 2017 at 07:11, Andy Shevchenko wrote: > On Fri, 2017-03-31 at 22:24 -0600, Simon Glass wrote: >> Hi Andy, >> >> On 20 March 2017 at 06:51, Andy Shevchenko >> wrote: >> > On Sun, 2017-03-19 at 20:30 -0600, Simon Glass wrote: >> > > Hi Andy, >> > > >> > > On 15 March 2017 at 12

Re: [U-Boot] [PATCH v3] rockchip: rk3399: spl: add UART0 support for SPL

2017-04-05 Thread Simon Glass
Hi Philipp, On 1 April 2017 at 04:59, Philipp Tomsich wrote: > The RK3399-Q7 ("Puma") SoM exposes UART0 as the Qseven UART (i.e. the > serial line available via standardised pins on the edge connector and > available on a RS232 connector). > > To support boards (such as the RK3399-Q7) that requir

Re: [U-Boot] [PATCH 1/7] system halt when we enable bucks of PMIC rk808

2017-04-05 Thread Simon Glass
On 1 April 2017 at 08:42, wrote: > From: "eric.gao" > > if we enable PMIC rk808,the system will halt at very early stage > ,log is shown as bellow. > > INFO:plat_rockchip_pmu_init(1211): pd status 3e > INFO:BL31: Initializing runtime services > INFO:BL31: Preparing for EL3 exit to no

Re: [U-Boot] [PATCH v3 1/2] x86: Add SCU IPC driver for Intel MID platforms

2017-04-05 Thread Simon Glass
Hi Andy, On 1 April 2017 at 07:21, Andy Shevchenko wrote: > From: Felipe Balbi > > Intel MID platforms have few microcontrollers inside SoC, one of them > is so called System Controller Unit (SCU). > > Here is the driver to communicate with microcontroller. > > Signed-off-by: Vincent Tinelli >

Re: [U-Boot] rockchip: Add USB to the default boot targets

2017-04-05 Thread Simon Glass
On 1 April 2017 at 00:49, Eddie Cai wrote: > Now that most rockchip SoC based board have usb host support, enable > USB boot targets by default. > > Signed-off-by: Eddie Cai > --- > include/configs/rockchip-common.h | 1 + > 1 file changed, 1 insertion(+) Acked-by: Simon Glass

Re: [U-Boot] rockchip: tinker: configs: Add USB, PXE, DHCP to the default boot targets

2017-04-05 Thread Simon Glass
On 1 April 2017 at 00:46, Eddie Cai wrote: > tinker board support ethernet and usb host, so enable USB, PXE and DHCP > support. > > Signed-off-by: Eddie Cai > --- > include/configs/tinker_rk3288.h | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) Acked-by: Simon Glass __

[U-Boot] [PATH V3] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Eddie Cai
We should invalidate the dcache before starting the DMA. In case there are any dirty lines from the DMA buffer in the cache, subsequent cache-line replacements may corrupt the buffer in memory while the DMA is still going on. Cache-line replacement can happen if the CPU tries to bring some other me

Re: [U-Boot] [PATCH v4 10/19] arm: socfpga: Add misc support for Arria 10

2017-04-05 Thread Ley Foon Tan
On Wed, Apr 5, 2017 at 6:40 PM, Marek Vasut wrote: > On 04/05/2017 11:32 AM, Ley Foon Tan wrote: >> Add misc support for Arria 10. >> >> Signed-off-by: Tien Fong Chee >> Signed-off-by: Ley Foon Tan > > [...] > >> +static int find_peripheral_uart(const void *blob, >> + int child, const char *

Re: [U-Boot] FIT image for falcon boot

2017-04-05 Thread Simon Glass
Hi York, On 31 March 2017 at 22:49, york sun wrote: > On 03/31/2017 09:21 PM, Simon Glass wrote: >> Hi York, >> >> On 23 March 2017 at 20:06, york sun wrote: >>> Simon, >>> >>> I made it work. A patch set will be sent later (much later) after I >>> clean up and finish the project on hand. >> >>

Re: [U-Boot] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Simon Glass
Hi Marek, On 5 April 2017 at 19:32, Marek Vasut wrote: > On 04/06/2017 03:24 AM, Simon Glass wrote: >> Hi Marek, >> >> On 5 April 2017 at 15:34, Marek Vasut wrote: >>> On 04/05/2017 05:03 PM, Simon Glass wrote: +Tom Hi Marek, On 5 April 2017 at 04:21, Marek Vasut wrote:

Re: [U-Boot] [PATH V2] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Marek Vasut
On 04/06/2017 04:03 AM, Eddie Cai wrote: > We should invalidate the dcache before starting the DMA. In case there are > any dirty lines from the DMA buffer in the cache, subsequent cache-line > replacements may corrupt the buffer in memory while the DMA is still going on. > Cache-line replacement c

Re: [U-Boot] [PATCH v2 28/29] ARM: i.MX6: sabresd: Update README

2017-04-05 Thread Peng Fan
On Mon, Apr 03, 2017 at 07:23:35PM +0530, Jagan Teki wrote: >From: Jagan Teki > >Since all SabreSD boards support SPL and devicetree >update README on respective image name changes >while loading the SD card. SPL is not supported by NXP software releases, so I would keep non-SPL as the default.

[U-Boot] [PATH V2] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Eddie Cai
We should invalidate the dcache before starting the DMA. In case there are any dirty lines from the DMA buffer in the cache, subsequent cache-line replacements may corrupt the buffer in memory while the DMA is still going on. Cache-line replacement can happen if the CPU tries to bring some other me

Re: [U-Boot] [PATCH v2 07/29] ARM: i.MX6QP: sabresd: Add initial devicetree support

2017-04-05 Thread Peng Fan
On Mon, Apr 03, 2017 at 07:23:14PM +0530, Jagan Teki wrote: >From: Jagan Teki > >Add initial dts support for i.MX6 Quad Plus Sabresd board. > >Boot from MMC: >- >U-Boot SPL 2017.03-33690-ga80e4f6-dirty (Mar 30 2017 - 00:40:29) >Trying to boot from MMC1 > >U-Boot 2017.03-33690-ga80e4f6-

Re: [U-Boot] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Marek Vasut
On 04/06/2017 03:24 AM, Simon Glass wrote: > Hi Marek, > > On 5 April 2017 at 15:34, Marek Vasut wrote: >> On 04/05/2017 05:03 PM, Simon Glass wrote: >>> +Tom >>> >>> Hi Marek, >>> >>> On 5 April 2017 at 04:21, Marek Vasut wrote: On 04/05/2017 12:08 PM, Simon Glass wrote: > Hi Marek, >>

Re: [U-Boot] [EXT] Re: [PATCH 7/7] scsi: dts: a3700: add scsi node

2017-04-05 Thread Ken Ma
Hi Stefan Please see my inline reply, thanks! Yours, Ken -Original Message- From: Stefan Roese [mailto:s...@denx.de] Sent: 2017年4月5日 21:46 To: Ken Ma; Simon Glass Cc: u-boot@lists.denx.de; Michal Simek; Kostya Porotchkin; Hua Jing; Wilson Ding Subject: Re: [EXT] Re: [PATCH 7/7] scsi: dt

Re: [U-Boot] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Simon Glass
Hi Marek, On 5 April 2017 at 15:34, Marek Vasut wrote: > On 04/05/2017 05:03 PM, Simon Glass wrote: >> +Tom >> >> Hi Marek, >> >> On 5 April 2017 at 04:21, Marek Vasut wrote: >>> On 04/05/2017 12:08 PM, Simon Glass wrote: Hi Marek, On 5 April 2017 at 03:35, Marek Vasut wrote: >>>

Re: [U-Boot] [PATCH v2] usb: dwc3: gadget: make cache-maintenance on event buffers more robust

2017-04-05 Thread Marek Vasut
On 04/05/2017 10:25 PM, Philipp Tomsich wrote: > Merely using dma_alloc_coherent does not ensure that there is no stale > data left in the caches for the allocated DMA buffer (i.e. that the > affected cacheline may still be dirty). > > The original code was doing the following (on AArch64, which >

Re: [U-Boot] usb: dwc2: invalidate the dcache before starting the DMA

2017-04-05 Thread Marek Vasut
On 04/05/2017 05:03 PM, Simon Glass wrote: > +Tom > > Hi Marek, > > On 5 April 2017 at 04:21, Marek Vasut wrote: >> On 04/05/2017 12:08 PM, Simon Glass wrote: >>> Hi Marek, >>> >>> On 5 April 2017 at 03:35, Marek Vasut wrote: On 04/05/2017 04:21 AM, Simon Glass wrote: > Hi, > >

Re: [U-Boot] [U-Boot, 03/16] board_f: Rename initdram() to dram_init()

2017-04-05 Thread Simon Glass
Hi Tom, On 5 April 2017 at 14:36, Tom Rini wrote: > On Fri, Mar 31, 2017 at 08:40:26AM -0600, Simon Glass wrote: > >> This allows us to use the same DRAM init function on all archs. >> >> Signed-off-by: Simon Glass >> Reviewed-by: Stefan Roese > > This isn't going to work as-is. As part of tes

[U-Boot] [PATCH 2/2] arm: Support cache invalidate

2017-04-05 Thread Simon Glass
At present there is not operation to invalidate a cache range. This seems to be needed to fill out the cache operations. Add an implementation based on the flush operation. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/cache.S| 24 arch/arm/cpu/armv8/cache_v8.c

[U-Boot] [PATCH 1/2] arm: Correct signature for get_ticks()

2017-04-05 Thread Simon Glass
This should be uint64_t to match its definition in common.h. Fix it. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/generic_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv8/generic_timer.c b/arch/arm/cpu/armv8/generic_timer.c index cd92b2c761..a

Re: [U-Boot] [PATCH v4 00/17] arm: rpi: Enable USB, Ethernet, MMC, Video driver model on Raspberry Pi

2017-04-05 Thread Simon Glass
Hi Tom, On 5 April 2017 at 07:41, Tom Rini wrote: > On Fri, Mar 31, 2017 at 10:34:35PM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 31 March 2017 at 22:19, Simon Glass wrote: >> > Hi Tom, >> > >> > On 6 February 2017 at 08:32, Simon Glass wrote: >> >> >> >> Hi Tom, >> >> >> >> On 23 January 20

[U-Boot] [PATCH v6 13/18] video: arm: rpi: Move the video query out of the driver

2017-04-05 Thread Simon Glass
Add a function to get the video size to the msg handler and remove it from the video driver. Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/mach-bcm283x/include/mach/msg.h | 9 + arc

[U-Boot] [PATCH v6 12/18] dm: arm: rpi: Drop CONFIG_OF_EMBED

2017-04-05 Thread Simon Glass
We should not use an embedded device tree on a production board. There does not seem to be any reason for it in commit 7670909. So drop this. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None configs/rpi_2_defconfig | 1 - config

[U-Boot] [PATCH v6 18/18] arm: rpi: Add a TODO to move all messages into the msg handler

2017-04-05 Thread Simon Glass
The board code should all move into msg.c for consistency. Add a TODO for this. Signed-off-by: Simon Glass --- Changes in v6: - Drop changes to dwc2.c now we have http://patchwork.ozlabs.org/patch/746917/ - Rebase to master Changes in v5: - Rebase to master Changes in v4: - Add patches to con

[U-Boot] [PATCH v6 16/18] dm: video: Add driver-model support to lcd_simplefb

2017-04-05 Thread Simon Glass
Allow this to work with CONFIG_DM_VIDEO enabled. Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None common/lcd_simplefb.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/common/lcd

[U-Boot] [PATCH v6 06/18] arm: rpi: Drop CONFIG_CONS_INDEX

2017-04-05 Thread Simon Glass
This is not needed now that serial uses driver model. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None include/configs/rpi.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/rpi.h b/include/configs/rpi.h index 92eb

[U-Boot] [PATCH v6 09/18] arm: rpi: Add a file to handle messages

2017-04-05 Thread Simon Glass
The bcm283x chips provide a way for the ARM core to communicate with the graphics processor, which is in charge of many things. This is handled by way of a message prototcol. At present the code for sending message (and receiving a reply) is spread around U-Boot, primarily in the board file. This

[U-Boot] [PATCH v6 14/18] video: arm: rpi: Move the video settings out of the driver

2017-04-05 Thread Simon Glass
Add a function to set the video parameters to the msg handler and remove it from the video driver. Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/mach-bcm283x/include/mach/msg.h | 17

[U-Boot] [PATCH v6 15/18] dm: video: Refactor lcd_simplefb to prepare for driver model

2017-04-05 Thread Simon Glass
Adjust this function so that we can convert it to support CONFIG_DM_VIDEO without a lot of code duplication. Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None common/lcd_simplefb.c | 33 +

[U-Boot] [PATCH v6 07/18] dm: arm: rpi: Move to driver model for USB

2017-04-05 Thread Simon Glass
Start using driver model for USB on the Raspberry Pi. The dwc2 supports this now so this is just a config change. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None configs/rpi_2_defconfig | 1 + configs/rpi_3_32b_defconfig | 1 +

[U-Boot] [PATCH v6 17/18] dm: video: arm: rpi: Convert to use driver model for video

2017-04-05 Thread Simon Glass
Adjust the video driver to work with driver model and move over existing baords. There is no need to keep the old code. We can also drop setting of CONFIG_FB_ADDR since driver model doesn't have this problem. Signed-off-by: Simon Glass Acked-by: Anatolij Gustschin --- Changes in v6: None Chang

[U-Boot] [PATCH v6 02/18] dm: mmc: Set up the MMC device when controller is probed

2017-04-05 Thread Simon Glass
When an MMC controller is set up we should probe the device to find out what it is. This includes finding its capacity and reading its partition table. Signed-off-by: Simon Glass Reviewed-by: Jaehoon Chung --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None dri

[U-Boot] [PATCH v6 11/18] dm: mmc: rpi: Convert Raspberry Pi to driver model for MMC

2017-04-05 Thread Simon Glass
Convert the bcm2835 SDHCI driver over to support CONFIG_DM_MMC and move all boards over. There is no need to keep the old code since there are no other users. Reviewed-by: Jaehoon Chung Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: Non

[U-Boot] [PATCH v6 10/18] arm: rpi: Add a function to obtain the MMC clock

2017-04-05 Thread Simon Glass
Move this code into the new message handler file. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/mach-bcm283x/include/mach/msg.h | 7 +++ arch/arm/mach-bcm283x/msg.c | 28 bo

[U-Boot] [PATCH v6 08/18] dm: arm: rpi: Use driver model for Ethernet

2017-04-05 Thread Simon Glass
Enable CONFIG_DM_ETH so that driver model is used for the USB Ethernet device. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None configs/rpi_2_defconfig | 1 + configs/rpi_3_32b_defconfig | 1 + configs/rpi_3_defconfig | 1 +

[U-Boot] [PATCH v6 05/18] arm: rpi: Drop the GPIO device addresses

2017-04-05 Thread Simon Glass
We can rely on the device tree to provide this information. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/mach-bcm283x/include/mach/gpio.h | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-bcm283x/inc

[U-Boot] [PATCH v6 04/18] string: Use memcpy() within memmove() when we can

2017-04-05 Thread Simon Glass
A common use of memmove() can be handled by memcpy(). Also memcpy() includes an optimisation for large sizes: it copies a word at a time. So we can get a speed-up by calling memcpy() to handle our move in this case. Update memmove() to call memcpy() if the destination is before the source. Signed

[U-Boot] [PATCH v6 03/18] dm: video: Correct line clearing code

2017-04-05 Thread Simon Glass
At present we clear many more bytes than we should on 16bpp and 32bpp displays. The number of pixels to clear is currently calculated as the line length (in bytes) multiplied by the number of lines to clear. This is only correct for 8bpp displays. Correct the calculation to use the number of text

[U-Boot] [PATCH v6 00/18] arm: rpi: Enable USB, Ethernet, MMC, Video driver model on Raspberry Pi

2017-04-05 Thread Simon Glass
Raspberry Pi uses a DWC2 USB controller and a SMSC USB Ethernet adaptor. Driver model support for these is available. This series does the following: - Enable CONFIG_DM_ETH and CONFIG_DM_USB on Raspberry Pi - Convert the MMC driver to driver model - Convert the video driver to driver model - Fixes

[U-Boot] [PATCH v6 01/18] net: smsc95xx: Correct free_pkt() implementation

2017-04-05 Thread Simon Glass
On further review this returns the wrong packet length from the driver. It may not be noticed since protocols will take care of it. Fix it by subtracting the header length from the packet length returned. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: - Add new patch for smsc9

[U-Boot] [PATCH v2] rockchip: rk3188: enable remap function

2017-04-05 Thread Heiko Stuebner
Most Rockchip socs have the ability to either map the bootrom or a sram area to the starting address of the cpu by flipping a bit in the GRF. Newer socs leave this untouched and mapped to the bootrom but the legacy loaders on rk3188 and before enabled the remap functionality and the current smp im

[U-Boot] [PATCH] rockchip: cosmetic: Move rock board to its correct position

2017-04-05 Thread Heiko Stuebner
Somehow 43b5c78d8d91 ("rockchip: cosmetic: Sort RK3288 boards") moved the rock board in between some rk3288 board, probably as a result of rebasing. So move it back to its original position above all rk3288 boards. Fixes: 43b5c78d8d91 ("rockchip: cosmetic: Sort RK3288 boards") Signed-off-by: Heik

[U-Boot] [PATCH] ARM64: rockchip: split RK3399-Q7 board off the RK3399-EVB board

2017-04-05 Thread Philipp Tomsich
From: Klaus Goger The RK3399-Q7 SoM is a Qseven-compatible (70mm x 70mm, MXM-230 connector) system-on-module from Theobroma Systems, featuring the Rockchip RK3399. It provides the following feature set: * up to 4GB DDR3 * on-module SPI-NOR flash * on-module eMMC (with 8-bit interace) * SD ca

Re: [U-Boot] [U-Boot, 03/16] board_f: Rename initdram() to dram_init()

2017-04-05 Thread Tom Rini
On Fri, Mar 31, 2017 at 08:40:26AM -0600, Simon Glass wrote: > This allows us to use the same DRAM init function on all archs. > > Signed-off-by: Simon Glass > Reviewed-by: Stefan Roese This isn't going to work as-is. As part of testing this patch I found that arc wasn't converted. This in t

[U-Boot] Bug in emmc subsystem

2017-04-05 Thread Arno Steffens
There seems to be a problem handling emmc with configured GP partition. Below the "mmc info". The problem might be that user capacity is calculated/shown as "0". At least it shows the GP1 partition with correct size - which is not the case for "mmc hwpartition" - it denies its existence ;) Ca

[U-Boot] [PATCH v2] usb: dwc3: gadget: make cache-maintenance on event buffers more robust

2017-04-05 Thread Philipp Tomsich
Merely using dma_alloc_coherent does not ensure that there is no stale data left in the caches for the allocated DMA buffer (i.e. that the affected cacheline may still be dirty). The original code was doing the following (on AArch64, which translates a 'flush' into a 'clean + invalidate'): # dur

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-05 Thread Stefan Agner
On 2017-04-05 12:10, Tom Rini wrote: > On Wed, Apr 05, 2017 at 11:20:43AM -0700, Stefan Agner wrote: >> On 2017-04-05 08:15, Lukasz Majewski wrote: >> > Hi Stefan, >> > >> >> On 2017-04-04 01:23, Lukasz Majewski wrote: >> >> > Hi Stefan, >> >> > >> >> >> Hi Lukasz, >> >> >> >> >> >> On 2017-04-03 0

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-05 Thread Lukasz Majewski
On Wed, 5 Apr 2017 15:10:23 -0400 Tom Rini wrote: > On Wed, Apr 05, 2017 at 11:20:43AM -0700, Stefan Agner wrote: > > On 2017-04-05 08:15, Lukasz Majewski wrote: > > > Hi Stefan, > > > > > >> On 2017-04-04 01:23, Lukasz Majewski wrote: > > >> > Hi Stefan, > > >> > > > >> >> Hi Lukasz, > > >> >>

[U-Boot] [PATCH v3 30/31] ARM: i.MX6: sabresd: Drop checkboard

2017-04-05 Thread Jagan Teki
From: Jagan Teki Since SabreSD is supporting fdt, there is no use of printing the board name explicitly using checkboard because dtb supported u-boot will print model like this Model: Freescale i.MX6 Quad Plus SABRE Smart Device Board Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi

[U-Boot] [PATCH v3 27/31] ARM: i.MX6: %s/mx6sabresd/imx6sabresd

2017-04-05 Thread Jagan Teki
From: Jagan Teki Rename all mx6sabresd files and directories to imx6sabresd, this will eventually compatible with Linux i.MX file notations and also some of the boards(engicam) in the current tree are now following same convention. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Sig

[U-Boot] [PATCH v3 10/31] ARM: dts: imx6qdl-sabresd: Add PMIC pfuze100 node

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add PMIC pfuze100 node via i2c2 for i.MX6QDL sabresd boards. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/imx6qdl-sabresd.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/imx6qdl-sabresd.dtsi

[U-Boot] [PATCH v3 28/31] ARM: i.MX6: sabresd: Move DM_* and OF_CONTROL to arch Kconfig

2017-04-05 Thread Jagan Teki
From: Jagan Teki Since all defconfig have common CONFIG_DM_* for respective dm uclass configs move them on arch Kconfig and also move CONFIG_OF_CONTROL Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/cpu/armv7/mx6/Kconfig | 8 conf

[U-Boot] [PATCH v3 19/31] ARM: i.MX6: sabresd: Enable DM_ETH

2017-04-05 Thread Jagan Teki
From: Jagan Teki Enable DM_ETH for dt supported sabresd config boards: - imx6q_sabresd_defconfig - imx6qp_sabresd_defconfig Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- board/freescale/mx6sabresd/mx6sabresd.c | 6 ++ configs/imx6q_sabresd_defco

[U-Boot] [PATCH v3 29/31] ARM: i.MX6: sabresd: Update README

2017-04-05 Thread Jagan Teki
From: Jagan Teki Since all SabreSD boards support SPL and devicetree update README on respective image name changes while loading the SD card. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- board/freescale/imx6sabresd/README | 53

[U-Boot] [PATCH v3 25/31] ARM: i.MX6DL: sabresd: Add initial devicetree support

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add initial devicetree support for i.MX6 DualLite Sabresd board. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- board/freescale/mx6sabresd/MAINTAINERS | 1 + configs/imx6dl_sabresd_defconfig | 68 ++

[U-Boot] [PATCH v3 31/31] ARM: i.MX6: sabresd: Cleanup board code

2017-04-05 Thread Jagan Teki
From: Jagan Teki - Give proper tab alignment for display_info_t structure - Add tab spaces UART_PAD_CTRL and SPI_PAD_CTRL - Give proper alignment of reg init values on setup_display - Add space and newline on board_init_f Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by

[U-Boot] [PATCH v3 26/31] ARM: i.MX6: sabresd: Drop legacy non-fdt code

2017-04-05 Thread Jagan Teki
From: Jagan Teki - Removed non-fdt code (becuase which has dt support) - Remove legacy defconfigs mx6dlsabresd_defconfig mx6qsabresd_defconfig mx6sabresd_spl_defconfig - Re-arrange the header includes and removed unneeded includes. - Move the SPL code in #ifdef CONFIG_SPL_BUILD area. - Drop

[U-Boot] [PATCH v3 15/31] ARM: i.MX6: sabresd: Enable CONFIG_DM_REGULATOR

2017-04-05 Thread Jagan Teki
From: Jagan Teki Enable CONFIG_DM_REGULATOR for i.MX6QDL sabresd boards. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- configs/imx6q_sabresd_defconfig | 1 + configs/imx6qp_sabresd_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/con

[U-Boot] [PATCH v3 09/31] ARM: dts: imx6qdl-sabresd: Add I2C node's

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add I2C nodes for i.MX6QDL sabresd boards. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/imx6qdl-sabresd.dtsi | 42 +++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/dts/imx

[U-Boot] [PATCH v3 17/31] ARM: dts: imx6qdl-sabresd: Add FEC node

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add FEC node for i.MX6QDL Sabresd boards. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/imx6qdl-sabresd.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/dts/imx6qdl-sabres

[U-Boot] [PATCH v3 24/31] ARM: dts: imx6qdl-sabresd: Add imx6dl-sabresd.dts

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add initial dts support for i.MX6 DualLite Sabresd board. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx6dl-sabresd.dts | 17 + 2 files changed, 18 insertions(+

[U-Boot] [PATCH v3 13/31] ARM: dts: imx6qdl-sabresd: Add usb host node

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add usb host node for i.MX6QDL sabresd boards. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/imx6qdl-sabresd.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/imx6qdl-sabresd

[U-Boot] [PATCH v3 23/31] ARM: i.MX6DL: sabresd: Move DCD reginit on SPL

2017-04-05 Thread Jagan Teki
From: Jagan Teki DCD register initialization from mx6dlsabresd.cfg are moved to SPL code in mx6dl_dcd_table. Now mx6sabresd SPL code support Dual Lite, Quad, Quad Plus. mx6dl_dcd_table reginit as - GPR io regs - DRAM io regs, - MMDC Calibration io regs - dram sdcke0 (0x020e04a4) and sdcke1(0x02

[U-Boot] [PATCH v3 08/31] ARM: i.MX6: sabresd: Move CONFIG_SYS_I2C_MXC to defconfigs

2017-04-05 Thread Jagan Teki
From: Jagan Teki Moved CONFIG_SYS_I2C_MXC from include/configs/mxsabresd.h to imx6 sabresd defconfigs. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- configs/imx6q_sabresd_defconfig | 1 + configs/imx6qp_sabresd_defconfig | 1 + configs/mx6dlsabresd

[U-Boot] [PATCH v3 20/31] ARM: i.MX6: sabresd: Add dm_gpio_* for backlight

2017-04-05 Thread Jagan Teki
From: Jagan Teki For OF_CONTROL, gpio's need to configure through dm_gpio_* calls instead of non-dm gpio code, So add dm_gpio_* calls for dts supported code. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- board/freescale/mx6sabresd/mx6sabresd.c | 22

[U-Boot] [PATCH v3 16/31] ARM: i.MX6: sabresd: Enable DM_USB

2017-04-05 Thread Jagan Teki
From: Jagan Teki Enable DM_USB for dt supported sabresd config boards: - imx6q_sabresd_defconfig - imx6qp_sabresd_defconfig Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- board/freescale/mx6sabresd/mx6sabresd.c | 4 ++-- configs/imx6q_sabresd_defconf

[U-Boot] [PATCH v3 22/31] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_reset

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add imx6_pcie_toggle_reset on board file using dm_gpio_* calls for OF_CONTROL configs. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- board/freescale/mx6sabresd/mx6sabresd.c | 31 +++ 1 file changed, 31 in

[U-Boot] [PATCH v3 21/31] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_power

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add imx6_pcie_toggle_power on board file using dm_gpio_* calls for OF_CONTROL configs. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- board/freescale/mx6sabresd/mx6sabresd.c | 30 ++ 1 file changed, 30 ins

[U-Boot] [PATCH v3 11/31] ARM: i.MX6: sabresd: Enable DM_I2C and DM_PMIC

2017-04-05 Thread Jagan Teki
From: Jagan Teki Enable DM_I2C, DM_PMIC and DM_PMIC_PFUZE100 for dt supported sabresd config boards: - imx6q_sabresd_defconfig - imx6qp_sabresd_defconfig I2C Log: => i2c bus Bus 0: i2c@021a Bus 1: i2c@021a4000 08: pfuze100@08, offset len 1, flags 0 Bus 2: i2c@021a8000 => i2c d

[U-Boot] [PATCH v3 14/31] ARM: dts: imx6qdl-sabresd: Add usb otg node

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add usb otg node for i.MX6QDL sabresd boards. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/imx6qdl-sabresd.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/imx6qdl-sabresd.

[U-Boot] [PATCH v3 07/31] ARM: i.MX6QP: sabresd: Add initial devicetree support

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add initial dts support for i.MX6 Quad Plus Sabresd board. Boot from MMC: - U-Boot SPL 2017.03-33690-ga80e4f6-dirty (Mar 30 2017 - 00:40:29) Trying to boot from MMC1 U-Boot 2017.03-33690-ga80e4f6-dirty (Mar 30 2017 - 00:40:29 +0530) CPU: Freescale i.MX6QP rev1.0

[U-Boot] [PATCH v3 05/31] ARM: i.MX6Q: sabresd: Add initial devicetree support

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add initial devicetree support for i.MX6 Quad Sabresd board. The configs item are copied from configs/mx6sabresd_spl_defconfig and added - CONFIG_OF_CONTROL=y - CONFIG_DM_GPIO=y - CONFIG_DM_MMC=y - CONFIG_BLK is not set - CONFIG_DM_MMC_OPS is not set - CONFIG_PINCTRL=y - CONFIG_

[U-Boot] [PATCH v3 18/31] ARM: i.MX6: sabresd: Move CONFIG_FEC_MXC to defconfigs

2017-04-05 Thread Jagan Teki
From: Jagan Teki Moved CONFIG_FEC_MXC from include/configs/mxsabresd.h to imx6 sabresd defconfigs. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- configs/imx6q_sabresd_defconfig | 1 + configs/imx6qp_sabresd_defconfig | 1 + configs/mx6dlsabresd_d

[U-Boot] [PATCH v3 06/31] ARM: dts: imx6qdl-sabresd: Add imx6qp-sabresd.dts

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add initial dts support for i.MX6 Quad Plus Sabresd board. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx6qdl-sabresd.dtsi | 96 --- arch/

[U-Boot] [PATCH v3 12/31] ARM: i.MX6: sabresd: defconfig move - CONFIG_USB_EHCI(_MX6)

2017-04-05 Thread Jagan Teki
From: Jagan Teki Defconfig move on i.MX6 Sabresd boards: - CONFIG_USB_EHCI as CONFIG_USB_EHCI_HCD - CONFIG_USB_EHCI_MX6 Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- configs/imx6q_sabresd_defconfig | 2 ++ configs/imx6qp_sabresd_defconfig | 2 ++ c

[U-Boot] [PATCH v3 02/31] ARM: dts: i.MX6: Add imx6qdl-sabresd.dtsi

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add common minimal dtsi file for i.MX6QDL Sabresd boards, - uart1 - usdhc2 - usdhc3 - usdhc4 Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/imx6qdl-sabresd.dtsi | 111 ++ 1 file change

[U-Boot] [PATCH v3 03/31] ARM: dts: imx6qdl-sabresd: Add imx6q-sabresd.dts

2017-04-05 Thread Jagan Teki
From: Jagan Teki Add initial dts support for i.MX6 Quad Sabresd board. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx6q-sabresd.dts | 21 + 2 files changed, 22 insertions(+)

[U-Boot] [PATCH v3 04/31] ARM: i.MX6: sabresd: Remove SPL_I2C_SUPPORT

2017-04-05 Thread Jagan Teki
From: Jagan Teki I2C support not needed for SPL build, hence removed the CONFIG_SPL_I2C_SUPPORT from mx6sabresd_spl_defconfig Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- configs/mx6sabresd_spl_defconfig | 1 - 1 file changed, 1 deletion(-) diff -

[U-Boot] [PATCH v3 01/31] ARM: i.MX6: sabresd: Fix README - s/of=/dev/sdbbs=1K/of=/dev/sdb bs=1K/

2017-04-05 Thread Jagan Teki
From: Jagan Teki Fix to give space on of and bs on dd command, on mx6sabresd README. Cc: Matteo Lisi Cc: Michael Trimarchi Cc: Stefano Babic Signed-off-by: Jagan Teki --- board/freescale/mx6sabresd/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescal

[U-Boot] [PATCH v3 00/31] ARM: i.MX6: SabreSD: Add dts support

2017-04-05 Thread Jagan Teki
From: Jagan Teki This series has full possible dts support for SabreSD DualLite, Quad and Quad Plus and DCD code for DualLite has added in SPL code. The main intention of this series is to add the dts node step by step and remove the legacy code at the end and to make the full functional dts. C

Re: [U-Boot] [PATCH v4 01/19] arm: socfpga: Restructure clock manager driver

2017-04-05 Thread Dinh Nguyen
On Wed, Apr 5, 2017 at 4:32 AM, Ley Foon Tan wrote: > Restructure clock manager driver in the preparation to support A10. > Move the Gen5 specific code to _gen5 files. > > - Change all uint32_t to u32 and change to use macro BIT(n) for bit shift. > - Check return value from wait_for_bit(). So chan

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-05 Thread Tom Rini
On Wed, Apr 05, 2017 at 11:20:43AM -0700, Stefan Agner wrote: > On 2017-04-05 08:15, Lukasz Majewski wrote: > > Hi Stefan, > > > >> On 2017-04-04 01:23, Lukasz Majewski wrote: > >> > Hi Stefan, > >> > > >> >> Hi Lukasz, > >> >> > >> >> On 2017-04-03 04:20, Lukasz Majewski wrote: > >> >> > Hi Stefa

Re: [U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-04-05 Thread Stefan Agner
On 2017-04-05 08:15, Lukasz Majewski wrote: > Hi Stefan, > >> On 2017-04-04 01:23, Lukasz Majewski wrote: >> > Hi Stefan, >> > >> >> Hi Lukasz, >> >> >> >> On 2017-04-03 04:20, Lukasz Majewski wrote: >> >> > Hi Stefan, >> >> > >> >> > Thanks for your patch. Please allow me to share some ideas for

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-05 Thread Simon Glass
Hi Stefan, On 5 April 2017 at 12:08, Stefan Agner wrote: > On 2017-03-31 21:23, Simon Glass wrote: >> On 29 March 2017 at 13:41, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> For some reason Python 3 seems to think it does not need to build >>> the library. Using the --force parameter make

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-05 Thread Stefan Agner
On 2017-03-31 21:23, Simon Glass wrote: > On 29 March 2017 at 13:41, Stefan Agner wrote: >> From: Stefan Agner >> >> For some reason Python 3 seems to think it does not need to build >> the library. Using the --force parameter makes sure that the library >> gets built always. This is especially i

Re: [U-Boot] [PATCH] libfdt: fix build with Python 3

2017-04-05 Thread Stefan Agner
On 2017-04-05 10:26, Stefano Babic wrote: > Hi Stefan, > > On 04/04/2017 20:44, Stefan Agner wrote: >> On 2017-04-04 01:53, Stefano Babic wrote: >>> Hi Stefan, >>> >>> On 03/04/2017 23:02, Stefan Agner wrote: >>> But then, I don't expect that "/usr/bin/env python" is looking at PYTHON. >

  1   2   3   >