Re: [U-Boot] [PATCH 5/8] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-13 Thread Jernej Škrabec
Hi, Dne ponedeljek, 13. marec 2017 ob 13:33:43 CET je Simon Glass napisal(a): > Hi, > > On 8 March 2017 at 16:34, Jernej Skrabec wrote: > > This is needed for HDMI, which will be added later. > > > > Signed-off-by: Jernej Skrabec > > --- > > > > arch/arm/include/asm/arch-sunxi/clock_sun6i.h

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Sergey Kubushyn
On Mon, 13 Mar 2017, Stephen Warren wrote: On 03/13/2017 07:08 PM, Sergey Kubushyn wrote: On Mon, 13 Mar 2017, Stephen Warren wrote: > On 03/13/2017 03:34 PM, Tim Harvey wrote: > > Greetings, > > > > I'm working with some boards with eMMC FLASH and understand that I > > can > > set

[U-Boot] [PATCH] armv8: ls1043a/ls1046aqds: fix the offsets of MTD partitions on Nor flash

2017-03-13 Thread Wenbin song
Fix the offsets of MTD partitions on Nor flash on ls1043ardb, ls1043aqds and ls1046aqds boards. Signed-off-by: Wenbin Song --- include/configs/ls1043a_common.h | 7 --- include/configs/ls1046aqds.h | 7 --- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/config

[U-Boot] [PATCH] Ensure device tree DTS is compiled

2017-03-13 Thread James Balean
Enables custom DTS files, or those not associated with a specific target, to be compiled into a boot image. Signed-off-by: James Balean --- dts/Makefile | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dts/Makefile b/dts/Makefile index c4ac153..6dfaf57 100644 -

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Jaehoon Chung
On 03/14/2017 01:44 PM, Stephen Warren wrote: > On 03/13/2017 07:08 PM, Sergey Kubushyn wrote: >> On Mon, 13 Mar 2017, Stephen Warren wrote: >> >>> On 03/13/2017 03:34 PM, Tim Harvey wrote: Greetings, I'm working with some boards with eMMC FLASH and understand that I can set

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Stephen Warren
On 03/13/2017 07:08 PM, Sergey Kubushyn wrote: On Mon, 13 Mar 2017, Stephen Warren wrote: On 03/13/2017 03:34 PM, Tim Harvey wrote: Greetings, I'm working with some boards with eMMC FLASH and understand that I can set the fields of the PARTITION_CONFIG with the 'mmc partconf' command to s

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Stephen Warren
On 03/13/2017 06:54 PM, Ziyuan wrote: hi Stephen, On 03/14/2017 05:49 AM, Stephen Warren wrote: On 03/13/2017 03:34 PM, Tim Harvey wrote: Greetings, I'm working with some boards with eMMC FLASH and understand that I can set the fields of the PARTITION_CONFIG with the 'mmc partconf' command to

Re: [U-Boot] [PATCH v1] x86: Remove unused option

2017-03-13 Thread Bin Meng
On Mon, Mar 6, 2017 at 7:51 PM, Andy Shevchenko wrote: > There is option which is not used: > CONFIG_ZBOOT_32 > > Remove it from default x86 config and from whitelist. > > Signed-off-by: Andy Shevchenko > --- > include/configs/x86-common.h | 1 - > scripts/config_whitelist.txt | 1 - > 2

[U-Boot] [PATCH] ARM: vf610: move to standard arch/board approach

2017-03-13 Thread Stefan Agner
From: Stefan Agner Move Freescale/NXP Vybrid to a standard arch/board approach, similar to what has been done to i.MX 6 earlier in commit 89ebc82137be ("ARM: mx6: move to a standard arch/board approach"). Signed-off-by: Stefan Agner --- arch/arm/Kconfig | 29 --

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Sergey Kubushyn
On Mon, 13 Mar 2017, Stephen Warren wrote: On 03/13/2017 03:34 PM, Tim Harvey wrote: Greetings, I'm working with some boards with eMMC FLASH and understand that I can set the fields of the PARTITION_CONFIG with the 'mmc partconf' command to specify what partition is used for boot. Once I d

Re: [U-Boot] [PATCH v6 3/3] odroid-c2: enable new Meson GX MMC driver in board defconfig

2017-03-13 Thread Jaehoon Chung
Dear Heiner, On 02/21/2017 04:32 AM, Heiner Kallweit wrote: > Enable new Meson GX MMC driver in Odroid C2 defconfig. Could you resend without conflict? Then i will apply it. Best Regards, Jaehoon Chung > > Signed-off-by: Heiner Kallweit > --- > v6: > - no changes > --- > configs/odroid-c2_de

Re: [U-Boot] [PATCH v6 2/3] mmc: meson: add MMC driver for Meson GX (S905)

2017-03-13 Thread Jaehoon Chung
Dear Heiner, On 02/21/2017 04:30 AM, Heiner Kallweit wrote: > From: Carlo Caione > This driver implements MMC support on Meson GX (S905) based systems. > It's based on Carlo Caione's work, changes: > - BLK support added > - general refactoring Could you fix the checkpatch error? ERROR: space re

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Ziyuan
hi Stephen, On 03/14/2017 05:49 AM, Stephen Warren wrote: On 03/13/2017 03:34 PM, Tim Harvey wrote: Greetings, I'm working with some boards with eMMC FLASH and understand that I can set the fields of the PARTITION_CONFIG with the 'mmc partconf' command to specify what partition is used for boo

Re: [U-Boot] [PATCH v2 1/2] armv7m: add instruction & data cache support

2017-03-13 Thread vikas
Thanks Marek, On 03/11/2017 10:02 PM, Marek Vasut wrote: > On 03/12/2017 01:13 AM, Vikas Manocha wrote: >> This patch adds armv7m instruction & data cache support. >> >> Signed-off-by: Vikas Manocha >> --- >> >> Changed in v2: >> - changed strucures for memory mapped cache registers to MACROs >

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Stephen Warren
On 03/13/2017 03:34 PM, Tim Harvey wrote: Greetings, I'm working with some boards with eMMC FLASH and understand that I can set the fields of the PARTITION_CONFIG with the 'mmc partconf' command to specify what partition is used for boot. Once I do that to set the boot0 partition for example, ho

Re: [U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Fabio Estevam
Hi Tim, On Mon, Mar 13, 2017 at 6:34 PM, Tim Harvey wrote: > Greetings, > > I'm working with some boards with eMMC FLASH and understand that I can > set the fields of the PARTITION_CONFIG with the 'mmc partconf' command > to specify what partition is used for boot. Once I do that to set the > boo

[U-Boot] accessing eMMC boot partitions from U-Boot

2017-03-13 Thread Tim Harvey
Greetings, I'm working with some boards with eMMC FLASH and understand that I can set the fields of the PARTITION_CONFIG with the 'mmc partconf' command to specify what partition is used for boot. Once I do that to set the boot0 partition for example, how can I access that partition from within u

[U-Boot] pull request: u-boot-uniphier/master

2017-03-13 Thread Masahiro Yamada
Hi Tom, Please pull my first round of UniPhier changes for v2017.05: - Fix regression of DRAM settings - DT updates (fix W=1 warnings, re-sync with Linux) (For Linux, I had already sent equivalent patches to fix no unit name warnings, remove skeleton.dtsi inclusion. They will be merged for li

Re: [U-Boot] Apparent conflict between CONFIG_BLK and CONFIG_API

2017-03-13 Thread Simon Glass
Hi Robert, On 13 March 2017 at 07:51, wrote: > Hello Simon, > > CONFIG_BLK is set by default for all Rockchip boards. Turning it off was > the first thing I tried, but I actually wasn't able to figure out how to > turn it off at all and was then advised elsewhere that this is probably > not a go

Re: [U-Boot] [PATCH v2 1/3] ARM: dts: uniphier: remove skeleton.dtsi inclusion

2017-03-13 Thread Masahiro Yamada
2017-03-13 0:16 GMT+09:00 Masahiro Yamada : > Linux Commit 9c0da3cc61f1 ("ARM: dts: explicitly mark skeleton.dtsi > as deprecated") declared that skeleton.dtsi was deprecated. > > Move the memory node below to suppress warnings of FDTGREP. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2

Re: [U-Boot] [PATCH] ARM: uniphier: set DRAM_SPARSE flag for LD21 boards

2017-03-13 Thread Masahiro Yamada
2017-03-07 5:28 GMT+09:00 Masahiro Yamada : > Commit 04cd4e7215d3 ("ARM: uniphier: remove DRAM base address from > board parameters") accidentally unset the DRAM_SPARSE flag, and > changed the physical map of the DRAM channels. Revive the original > behavior. > > Fixes: 04cd4e7215d3 ("ARM: uniphie

[U-Boot] [ANN] U-Boot v2017.03 is released

2017-03-13 Thread Tom Rini
Hey all, I've released v2017.03 and it's now live on git and FTP and ACD (along with PGP sig file). So, some biggish news. As things stand today, this is the last release where the Blackfin and SPARC, unless a new maintainer wants to step in. The currently listed maintainers haven't gotten back

[U-Boot] [PATCH 6/6] sunxi: enable dual rank detection in DesignWare-like DRAM code

2017-03-13 Thread Icenowy Zheng
The DesignWare-like DRAM code used to set the controller defaultly to single rank mode, which makes it not able to detect the second rank. Set the default value to dual rank, thus the rank detection code can work and finally the rank setting will be the correct value. This change is tested on a O

[U-Boot] [PATCH 5/6] sunxi: Add selective DRAM type and timing

2017-03-13 Thread Icenowy Zheng
DRAM chip varies, and one code cannot satisfy all DRAMs. Add options to select a timing set. Currently only DDR3-1333 (the original set) is added into it. Signed-off-by: Icenowy Zheng --- arch/arm/include/asm/arch-sunxi/dram_sunxi_dw.h | 30 ++ arch/arm/mach-sunxi/Makefile

[U-Boot] [PATCH 3/6] sunxi: add option for 16-bit DW DRAM controller

2017-03-13 Thread Icenowy Zheng
Some Allwinner SoCs features a DesignWare-like controller with only 16 bit bus width. Add support for them. Signed-off-by: Icenowy Zheng --- arch/arm/mach-sunxi/dram_sunxi_dw.c | 34 +- board/sunxi/Kconfig | 16 2 files changed, 4

[U-Boot] [PATCH 4/6] sunxi: add bank detection code to H3 DRAM initialization code

2017-03-13 Thread Icenowy Zheng
Some DDR2 DRAM have only four banks, not eight. Add code to detect this situation. Signed-off-by: Icenowy Zheng --- arch/arm/mach-sunxi/dram_sunxi_dw.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-sunxi/dram_sunxi_dw.c b/arch/arm/mach-s

[U-Boot] [PATCH 2/6] sunxi: Rename bus-width related macros in H3 DRAM code

2017-03-13 Thread Icenowy Zheng
The DesignWare DRAM controller used by H3 and newer SoCs use a bit to identify whether the DRAM is half-width. As H3 itself come with 32-bit DRAM, the two modes of the bit used to be named "MCTL_CR_32BIT" and "MCTL_CR_16BIT", but for SoCs with 16-bit DRAM they're really 8-bit and 16-bit. Rename t

[U-Boot] [PATCH 1/6] sunxi: makes an invisible option for H3-like DRAM controllers

2017-03-13 Thread Icenowy Zheng
Allwinner SoCs after H3 (e.g. A64, H5, R40, V3s) uses a H3-like DesignWare DRAM controller, which do not have official free DRAM initialization code, but can use modified dram_sun8i_h3.c. Add a invisible option for easier DRAM initialization code reuse. Signed-off-by: Icenowy Zheng Acked-by: Max

[U-Boot] [PATCH 0/6] Allwinner DesignWare-like DRAM controllers refactor

2017-03-13 Thread Icenowy Zheng
Allwinner SoCs after H3 (including H3) seems to use similar DRAM controllers, which seems to originate from DesignWare. This patchset did a series of refactors on it, which makes it possible to support more situations (Allwinner V3s' 16-bit controller and DDR2 DRAM, Pinebook early prototype's dual

[U-Boot] [PATCH v5 3/3] sunxi: add support for Lichee Pi Zero

2017-03-13 Thread Icenowy Zheng
Lichee Pi Zero is a development board with a V3s SoC, which features 64MiB DRAM co-packaged within the SoC, a TF slot, a SPI NOR slot (not soldered in production batch), a 40-pin RGB LCD connector and some extra pins available as 2.54mm pins or stamp holes. Add support for it. Signed-off-by: Icen

[U-Boot] [PATCH v5 2/3] sunxi: add DTSI file for V3s

2017-03-13 Thread Icenowy Zheng
As we have now V3s support in board code, the V3s DTSI file should also be added. Add also some CCU include headers to satisfy the DTSI file. Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard --- Changes in v4: - Add Maxime's ACK. arch/arm/dts/sun8i-v3s.dtsi | 284 +++

[U-Boot] [PATCH v5 1/3] sunxi: add basic V3s support

2017-03-13 Thread Icenowy Zheng
Basic U-Boot support is now present for V3s. Some memory addresses are changed specially for V3s, as the original address map cannot fit into a so small DRAM. As the DRAM controller code needs a big refactor, the SPL support is disabled in this version. Signed-off-by: Icenowy Zheng Acked-by: Ma

[U-Boot] [PATCH v5 0/3] Allwinner V3s and Lichee Pi Zero support (w/o SPL)

2017-03-13 Thread Icenowy Zheng
Allwinner V3s is a SoC with single-core Cortex-A7 and 64MiB DRAM co-packaged in a eLQFP package, which is suitable for manual soldering. This patchset adds basic support for it. SPL support is still missing, due to some reworks on DRAM initialization code is needed.(the co-packaged DRAM is DDR2, b

Re: [U-Boot] [PATCH v2 1/2] at91: video: Support driver-model for the HLCD driver

2017-03-13 Thread Wu, Songjun
Hi Marek, Thank you for your comments. I will fix these issues in next patch. On 3/13/2017 13:05, Marek Vasut wrote: On 03/01/2017 10:25 AM, Songjun Wu wrote: Add driver-model support to this driver. Signed-off-by: Songjun Wu --- Changes in v2: - Due to the peripheral clock driver improveme

Re: [U-Boot] Apparent conflict between CONFIG_BLK and CONFIG_API

2017-03-13 Thread fuz
Hello Simon, CONFIG_BLK is set by default for all Rockchip boards. Turning it off was the first thing I tried, but I actually wasn't able to figure out how to turn it off at all and was then advised elsewhere that this is probably not a good idea either. Yours, Robert Clausecker On Mon, Mar 13,

[U-Boot] AES library used for kernel loading ?

2017-03-13 Thread Ran Shalit
Hello, I intend to use AES for kernel loading, and before kernel programming from u-boot. Is there some package which already does that yet ? Another thing, can I expect that it will work if we use openssl 128, cbc in host for sending the file (from hoist to target) ? I see that library support

Re: [U-Boot] [PATCH v3 01/11] armv8: Add global variable resv_ram

2017-03-13 Thread york sun
On 03/12/2017 01:21 PM, Simon Glass wrote: > Hi York, > > On 3 March 2017 at 09:38, york sun wrote: >> >> On 03/02/2017 08:53 PM, Simon Glass wrote: >>> Hi York, >>> >>> On 1 March 2017 at 12:32, York Sun wrote: Use gd->arch.resv_ram to track reserved memory allocation. Signed-off-

[U-Boot] [PATCH 05/14] imx: ventana: change name of rs232_en to indicate polarity

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c index eb14cb7..49d6e52 100644 --- a/board/gateworks/gw_ventana/common.c +++ b/board/gate

[U-Boot] [PATCH 09/14] imx: ventana: add EMMC configuration

2017-03-13 Thread Tim Harvey
Prepare for boards with EMMC instead of NAND flash Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/README | 17 +++ configs/gwventana_defconfig | 64 --- configs/gwventana_emmc_defconfig | 63 ++ conf

[U-Boot] [PATCH 10/14] drivers: net: add MV88E6xx to Kconfig

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- drivers/net/Kconfig | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 078d5a8..a24bb06 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -141,6 +141,24 @@ config MACB GEM (Gig

[U-Boot] [PATCH 14/14] imx: ventana: config: add EMMC boot options

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- include/configs/gw_ventana.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 9c08fe3..057089b 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -101,6 +101,10 @@

[U-Boot] [PATCH 08/14] imx: ventana: make SD3_VSELECT board specific

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/common.c | 30 +- board/gateworks/gw_ventana/common.h | 2 +- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c index a33

Re: [U-Boot] [PATCH] ARM: dts: skeleton: fix unit name warning from dtc

2017-03-13 Thread Stephen Warren
On 03/13/2017 01:53 AM, Wenyou Yang wrote: Fix the following warning from dtc by adding the unit name for the memory node. ---8<--- Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name ---<8--- The /memory node is special; it must be named /memory so that

[U-Boot] [PATCH 07/14] imx: ventana: make OTG VBUS power enable board specific

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/common.c | 16 board/gateworks/gw_ventana/common.h | 2 +- board/gateworks/gw_ventana/gw_ventana.c | 8 +--- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/board/gateworks/gw_ventana/common.c

[U-Boot] [PATCH 04/14] imx: ventana: use mmc_root in boot scripts

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- include/configs/gw_ventana.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 31b3010..d51bcc9 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -29

[U-Boot] [PATCH 06/14] imx: ventana: fix hwconfig

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/gw_ventana.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index ba648f5..22a3c8e 100644 --- a/board/gateworks/gw_ventana/gw_ventana.c

[U-Boot] [PATCH 12/14] imx: ventana: add GW560x support

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/common.c | 181 board/gateworks/gw_ventana/eeprom.c | 4 + board/gateworks/gw_ventana/gsc.c| 4 + board/gateworks/gw_ventana/gw_ventana.c | 4 +- board/gateworks/gw_ventana/

[U-Boot] [PATCH 03/14] imx: ventana: move mmc_init to common

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/common.c | 35 + board/gateworks/gw_ventana/gw_ventana.c | 33 --- 2 files changed, 35 insertions(+), 33 deletions(-) diff --git a/board/gateworks/gw_ventana/common.c b/board

[U-Boot] [PATCH 11/14] imx: ventana: add GW5904 support

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/common.c | 222 ++-- board/gateworks/gw_ventana/common.h | 2 +- board/gateworks/gw_ventana/eeprom.c | 9 +- board/gateworks/gw_ventana/gw_ventana.c | 35 - board/gateworks/gw_ven

[U-Boot] [PATCH 13/14] imx: ventana: add GW5903 support

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/common.c | 103 board/gateworks/gw_ventana/eeprom.c | 2 + board/gateworks/gw_ventana/gw_ventana.c | 13 board/gateworks/gw_ventana/gw_ventana_spl.c | 42 ++-- board/gatework

[U-Boot] [PATCH 01/14] imx: ventana: add additional DRAM configurations

2017-03-13 Thread Tim Harvey
- 64bit 8gB density (4GiB) IMX6DQ - 64bit 4gB density (2GiB) IMX6SDL Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/gw_ventana_spl.c | 45 + 1 file changed, 45 insertions(+) diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_vent

[U-Boot] [PATCH 02/14] imx: ventana: config: add gzwrite support

2017-03-13 Thread Tim Harvey
Signed-off-by: Tim Harvey --- include/configs/gw_ventana.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 24e3150..31b3010 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -143,6 +143,7 @@ #defi

[U-Boot] [PATCH 00/14] Gateworks Ventana add support for new boards

2017-03-13 Thread Tim Harvey
This is a series of minor cleanups and addition of some new boards in the Gateworks Ventana product family. Tim Harvey (14): imx: ventana: add additional DRAM configurations imx: ventana: config: add gzwrite support imx: ventana: move mmc_init to common imx: ventana: use mmc_root in boot s

Re: [U-Boot] [PATCH v3] serial: Add serial driver for Intel MID

2017-03-13 Thread Andy Shevchenko
On Fri, Mar 3, 2017 at 12:31 PM, Kever Yang wrote: > On 02/28/2017 08:04 PM, Andy Shevchenko wrote: >> >> Add a specific serial driver for Intel MID platforms. >> >> It has special fractional divider which can be programmed via UART_PS, >> UART_MUL, and UART_DIV registers. >> >> The UART clock is

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

2017-03-13 Thread Andy Shevchenko
On Sun, 2017-03-12 at 14:21 -0600, Simon Glass wrote: > >  # subarchitectures-specific options below > >  config INTEL_MID > > bool "Intel MID platform support" > > +   select INTEL_SCU > > help > >   Select to build a U-Boot capable of supporting Intel MID > >  

Re: [U-Boot] [PATCH 1/2] configs: am43xx_evm: Merge in usbhost defconfig

2017-03-13 Thread Andrew F. Davis
On 03/12/2017 10:16 PM, Lokesh Vutla wrote: > > > On Saturday 11 March 2017 03:32 AM, Andrew F. Davis wrote: >> I was once again going to try to sync the mode specific defconfigs >> with the main AM43xx defconfig when I decided it may make more >> sense to merge in USB host boot support in to the

Re: [U-Boot] [PATCH] tools: fix cross-compiling tools when HOSTCC is overridden

2017-03-13 Thread Simon Glass
On 13 March 2017 at 02:49, Masahiro Yamada wrote: > +CC Richard > +CC Marek > > 2017-03-13 17:43 GMT+09:00 Masahiro Yamada : >> Richard reported U-Boot tools issues in OpenEmbedded/Yocto project. >> >> OE needs to be able to change the default compiler. If we pass in >> HOSTCC through the make com

Re: [U-Boot] [PATCH v2] ARM: dts: Makefile: use board id to decide which dts compile

2017-03-13 Thread Simon Glass
Hi Wenyou, On 13 March 2017 at 01:39, Wenyou Yang wrote: > To avoid to compile all AT91 SoCs' board device tree files, use > the board id to decide which device tree file will be compiled, > instead of compile all AT91 family files. > > Signed-off-by: Wenyou Yang > --- > > Changes in v2: > - Im

Re: [U-Boot] [PATCH] ARM: dts: skeleton: fix unit name warning from dtc

2017-03-13 Thread Simon Glass
Hi, On 13 March 2017 at 03:00, Masahiro Yamada wrote: > 2017-03-13 16:53 GMT+09:00 Wenyou Yang : >> Fix the following warning from dtc by adding the unit name for >> the memory node. >> ---8<--- >> Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, >> but no unit name >> -

Re: [U-Boot] [PATCH 3/3] arm: bootm: Add dm_remove_devices_flags() call to announce_and_cleanup()

2017-03-13 Thread Simon Glass
Hi Stefan, On 13 March 2017 at 07:20, Stefan Roese wrote: > Hi Simon, > > On 13.03.2017 13:50, Stefan Roese wrote: >> >> On 13.03.2017 13:34, Simon Glass wrote: >>> >>> On 10 March 2017 at 06:50, Stefan Roese wrote: This patch adds a call to dm_remove_devices_flags() to announce_a

Re: [U-Boot] [PATCH 3/3] arm: bootm: Add dm_remove_devices_flags() call to announce_and_cleanup()

2017-03-13 Thread Stefan Roese
Hi Simon, On 13.03.2017 13:50, Stefan Roese wrote: On 13.03.2017 13:34, Simon Glass wrote: On 10 March 2017 at 06:50, Stefan Roese wrote: This patch adds a call to dm_remove_devices_flags() to announce_and_cleanup() so that drivers that have one of the removal flags set (e.g. DM_FLAG_ACTIVE_D

Re: [U-Boot] [u-boot PATCH v4 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-13 Thread Felipe Balbi
Hi, Roger Quadros writes: > +void board_ti_set_ethaddr(int index) > +{ > + uint8_t mac_addr[6]; > + int i; > + u64 mac1, mac2; > + u8 mac_addr1[6], mac_addr2[6]; > + int num_macs; > + /* > + * Export any Ethernet MAC addresses from EEPROM. > + * The 2 MAC addres

[U-Boot] [u-boot PATCH v4 00/10] am57xx-idk LCD and am571x-idk 6 port ethernet pinmux

2017-03-13 Thread Roger Quadros
Hi, This series contains - Support am571x-idk LCD vs 6 port ethernet pinmux configuration. - AM57xx-idk LCD detection support. - K2G: pick up PRUSS ethernet MAC addresses from board EEPROM. Build tests: https://travis-ci.org/rogerq/u-boot/builds/210547470 Changelog: v4: - added patch 10 to prev

[U-Boot] [u-boot PATCH v4 05/10] board: ti: am571x-idk: Support 6 port Ethernet or 4 port Ethernet with LCD

2017-03-13 Thread Roger Quadros
The board can support either ICSS1 Ethernet ports or LCD based on J51 jumper. Factory default is ICSS1 Ethernet ports (i.e. Jumper not populated). Use the GPIO to detect the jumper setting and configure the pinmux accordingly. Also select the right DT blob based on the chosen configuration. J51 a

[U-Boot] [u-boot PATCH v4 03/10] ti_armv7_keystone2: Define scratch space in SRAM

2017-03-13 Thread Roger Quadros
From: Franklin S Cooper Jr Scratch space can be used for features such as board detection. Define an area within SRAM that can be used for this purpose. [rog...@ti.com] Rename EEPROM macro Signed-off-by: Franklin S Cooper Jr Signed-off-by: Roger Quadros --- include/configs/ti_armv7_keystone2

[U-Boot] [u-boot PATCH v4 06/10] board: ti: am571x-idk: Update pinmux for ICSS2 Ethernet

2017-03-13 Thread Roger Quadros
Use the same convention that was used for ICSS1 Ethernet - If pin is output, set as PIN_OUTPUT - If pin is input and external pull resistor present set as PIN_INPUT - If pin is input and external pull resistor absent, set pull to same as that of the external PHY's internall pull. Signed-off-by: Ro

[U-Boot] [u-boot PATCH v4 09/10] ARM: k2g: setup PRU ethernet MAC addresses

2017-03-13 Thread Roger Quadros
PRU ethernet MAC address range is present in the board EEPROM. Parse it and setup eth?addr environment variables. Signed-off-by: Roger Quadros Reviewed-by: Lokesh Vutla Reviewed-by: Tom Rini --- arch/arm/mach-keystone/Kconfig | 2 ++ board/ti/ks2_evm/board_k2g.c | 19 +++ 2

[U-Boot] [u-boot PATCH v4 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-13 Thread Roger Quadros
Keystone and OMAP platforms will need this to set ethernet MAC addresses from board EEPROM. Signed-off-by: Roger Quadros Reviewed-by: Lokesh Vutla Reviewed-by: Tom Rini --- board/ti/common/board_detect.c | 57 ++ board/ti/common/board_detect.h | 12 +

[U-Boot] [u-boot PATCH v4 07/10] board: ti: am57xx-idk: Auto detect LCD Panel

2017-03-13 Thread Roger Quadros
From: Nishanth Menon AM571x IDK and AM572x IDK have optional LCD Kits that can be purchased. These can be one of OSD101T2045 or the newer OSD101T2587. The LCD panel itself has no registers that can be used to identify the panel, however, the touchscreen controllers on the panels are different. H

[U-Boot] [u-boot PATCH v4 08/10] ARM: Use Kconfig for board EEPROM's I2C bus and chip address

2017-03-13 Thread Roger Quadros
In stead of defining the board EEPROM address in the board headers let's define them in the board config files and make them configurable by Kconfig. Signed-off-by: Roger Quadros Reviewed-by: Tom Rini --- board/ti/common/Kconfig | 20 +--- board/ti/ks2_evm/Kconfig | 2

[U-Boot] [u-boot PATCH v4 10/10] net: don't override ethernet address environment

2017-03-13 Thread Roger Quadros
If the ethernet address environment is set with a valid ethernet address prevent overriding it as it is most likely set by the user and he/she doesn't want board code to automatically override it whatsoever. Signed-off-by: Roger Quadros --- net/eth_common.c | 3 +++ 1 file changed, 3 insertions(

[U-Boot] [u-boot PATCH v4 02/10] ti: common: board_detect: Rename EEPROM scratch start macro

2017-03-13 Thread Roger Quadros
From: Lokesh Vutla Non OMAP platforms i.e. Keystone will also need to use the board EEPROM helpers so let's make the macro platform independent. Signed-off-by: Roger Quadros Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini --- arch/arm/include/asm/omap_common.h | 8 +--- board/ti/common

[U-Boot] [u-boot PATCH v4 01/10] ARM: OMAP5+: GPIO: Add GPIO_TO_PIN() macro

2017-03-13 Thread Roger Quadros
GPIO_TO_PIN(bank, bank_gpio) returns the GPIO index from the GPIO bank number and bank's GPIO offset number. Signed-off-by: Roger Quadros Reviewed-by: Tom Rini Reviewed-by: Lokesh Vutla --- arch/arm/include/asm/arch-omap5/gpio.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/

Re: [U-Boot] [PATCH 3/3] arm: bootm: Add dm_remove_devices_flags() call to announce_and_cleanup()

2017-03-13 Thread Stefan Roese
Hi Simon, On 13.03.2017 13:34, Simon Glass wrote: On 10 March 2017 at 06:50, Stefan Roese wrote: This patch adds a call to dm_remove_devices_flags() to announce_and_cleanup() so that drivers that have one of the removal flags set (e.g. DM_FLAG_ACTIVE_DMA_REMOVE) in their driver struct, may do

Re: [U-Boot] [PATCH 1/3] dm: core: Add flags parameter to device_remove()

2017-03-13 Thread Stefan Roese
Hi Simon, On 13.03.2017 13:33, Simon Glass wrote: Hi Stefan, On 10 March 2017 at 06:50, Stefan Roese wrote: This patch adds the flags parameter to device_remove() and changes all calls to this function to provide the default value of DM_REMOVE_NORMAL for "normal" device removal. This is in p

Re: [U-Boot] [PATCH 3/3] arm: bootm: Add dm_remove_devices_flags() call to announce_and_cleanup()

2017-03-13 Thread Simon Glass
On 10 March 2017 at 06:50, Stefan Roese wrote: > This patch adds a call to dm_remove_devices_flags() to > announce_and_cleanup() so that drivers that have one of the removal flags > set (e.g. DM_FLAG_ACTIVE_DMA_REMOVE) in their driver struct, may do some > last-stage cleanup before the OS is start

Re: [U-Boot] rockchip: config: enable the USB host for rk3288 based board

2017-03-13 Thread Simon Glass
On 6 March 2017 at 21:47, Eddie Cai wrote: > RK3288 using the dwc2 USB host controller, enable it and other usb host > funtion like storage and ethernet. > > Signed-off-by: Eddie Cai > --- > configs/fennec-rk3288_defconfig | 3 +++ > configs/firefly-rk3288_defconfig | 3 +++ > configs/tinker-rk

Re: [U-Boot] [PATCH 2/3] dm: core: Add dm_remove_devices_flags() and hook it into device_remove()

2017-03-13 Thread Simon Glass
On 10 March 2017 at 06:50, Stefan Roese wrote: > The new function dm_remove_devices_flags() is intented for driver specific > last-stage cleanup operations before the OS is started. This patch adds > this functionality and hooks it into the common device_remove() > function. > > Drivers wanting to

Re: [U-Boot] [PATCH 5/8] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-13 Thread Simon Glass
Hi, On 8 March 2017 at 16:34, Jernej Skrabec wrote: > This is needed for HDMI, which will be added later. > > Signed-off-by: Jernej Skrabec > --- > > arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 54 > +++ > arch/arm/mach-sunxi/clock_sun6i.c | 40 +

Re: [U-Boot] [PATCH 02/31] spl: fit: Break out some functions into a common file

2017-03-13 Thread Simon Glass
On 2 March 2017 at 12:04, Franklin S Cooper Jr wrote: > Some of the functions within spl_fit will be used for non spl purposes. > Instead of duplicating functions simply break the functions to be reused > into its own file. > > Signed-off-by: Franklin S Cooper Jr > Reviewed-by: Tom Rini > --- >

Re: [U-Boot] [PATCH 6/8] sunxi: video: Add A64/H3/H5 HDMI driver

2017-03-13 Thread Simon Glass
On 8 March 2017 at 16:34, Jernej Skrabec wrote: > This commit adds support for HDMI output. > > Signed-off-by: Jernej Skrabec > --- > > arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 8 + > arch/arm/include/asm/arch-sunxi/display2.h | 124 + > board/sunxi/Kconfig

Re: [U-Boot] [PATCH 1/3] dm: core: Add flags parameter to device_remove()

2017-03-13 Thread Simon Glass
Hi Stefan, On 10 March 2017 at 06:50, Stefan Roese wrote: > This patch adds the flags parameter to device_remove() and changes all > calls to this function to provide the default value of DM_REMOVE_NORMAL > for "normal" device removal. > > This is in preparation for the driver specific pre-OS (e.

Re: [U-Boot] [PATCH 1/8] rockchip: video: Fix HDMI audio clocks

2017-03-13 Thread Simon Glass
On 8 March 2017 at 16:34, Jernej Skrabec wrote: > Function hdmi_lookup_n_cts() is feed with clock in Hz, which gets > compared with clocks in kHz. Fix that by converting all clocks to Hz. > > Signed-off-by: Jernej Skrabec > --- > > drivers/video/rockchip/rk_hdmi.c | 32 --

Re: [U-Boot] Apparent conflict between CONFIG_BLK and CONFIG_API

2017-03-13 Thread Simon Glass
Hi, On 7 March 2017 at 14:53, wrote: > Good evening, > > I am trying to port FreeBSD to the ASUS Tinker Board, a computer based > on the Rockchip 3288 SoC. FreeBSD's boot loader (named loader(8)) needs > CONFIG_API to be enabled, but trying to build an U-Boot from trunk with > both CONFIG_API an

Re: [U-Boot] [PATCH 2/8] rockchip: video: Remove CSC initialization (HDMI)

2017-03-13 Thread Simon Glass
On 8 March 2017 at 16:34, Jernej Skrabec wrote: > Despite the comment in the code, CSC unit is never used. According to > the only public description of DW HDMI controller (i.MX6 manual), CSC > unit is bypassed in MC_FLOWCTRL register and then actually powered > down in MC_CLKDIS register. > > Sig

Re: [U-Boot] [PATCH 3/8] rockchip: video: Split out HDMI controller code

2017-03-13 Thread Simon Glass
On 8 March 2017 at 16:34, Jernej Skrabec wrote: > Designware HDMI controller and phy are used in other SoCs as well. Split > out platform independent code. > > DW HDMI has 8 bit registers but they can be represented as 32 bit > registers as well. Add support to select access mode. > > EDID reading

Re: [U-Boot] rockchip: dts: tinker: add usb host power supply node

2017-03-13 Thread Simon Glass
On 6 March 2017 at 21:46, Eddie Cai wrote: > Tinker board have a usb host. add dts node to provide power supply. > > Signed-off-by: Eddie Cai > --- > arch/arm/dts/rk3288-tinker.dts | 11 +++ > arch/arm/dts/rk3288-tinker.dtsi | 12 > 2 files changed, 23 insertions(+) Review

Re: [U-Boot] [PATCH 2/2] arm: i.MX6UL: add Armadeus Systems OPOS6UL SoM and OPOS6ULDev carrier board

2017-03-13 Thread Simon Glass
On 7 March 2017 at 06:33, Sébastien Szymanski wrote: > OPOS6UL is an i.MX6UL based SoM with 256MB RAM, 4GB eMMC and an ethernet > phy. OPOS6ULDev is carrier board for the OPOS6UL. > > U-Boot SPL 2017.03-rc3-2-g5085c26 (Mar 07 2017 - 09:48:09) > Trying to boot from MMC1 > > U-Boot 2017.03-rc3-0

Re: [U-Boot] [PATCH] rockchip: rk3036: dts: bind usb vbus-supply source

2017-03-13 Thread Simon Glass
On 6 March 2017 at 05:36, Kever Yang wrote: > Bind usb host and otg vbus to its source. > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3036-sdk.dts | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass ___ U-Boot mailing list U-B

Re: [U-Boot] [PATCH v4] usb: dwc2: add support for external vbus supply

2017-03-13 Thread Simon Glass
On 6 March 2017 at 05:34, Kever Yang wrote: > Some board do not use the dwc2 internal VBUS_DRV signal, but > use a gpio pin to enable the 5.0V VBUS power, add interface to > enable the power in dwc2 driver. > > Signed-off-by: Kever Yang > Signed-off-by: Simon Glass > --- > > Changes in v4: > - D

[U-Boot] [PATCH] test-fit.py: Minor grammar/spelling/clarification tweaks

2017-03-13 Thread Robert P. J. Day
* Add note that execution needs Python development package installed * Standardize on upper case "FIT", "FDT" as necessary for clarity * Fix "tempoerary", "linex" typos Signed-off-by: Robert P. J. Day --- diff --git a/test/image/test-fit.py b/test/image/test-fit.py index db0649f..b0d0538 10075

[U-Boot] [PATCH v4 1/1] usb: gadget: avoid variable name clipping in cb_getvar

2017-03-13 Thread Nicolas le bayon
From: Nicolas Le Bayon Instead of using a fixed-size array to store variable name, preferring a dynamic allocation treats correctly all variable name lengths. Variable names are growing through releases and features. By this way, name clipping is prevented. Signed-off-by: Nicolas Le Bayon ---

Re: [U-Boot] [PATCH] ARM: dts: skeleton: fix unit name warning from dtc

2017-03-13 Thread Masahiro Yamada
2017-03-13 16:53 GMT+09:00 Wenyou Yang : > Fix the following warning from dtc by adding the unit name for > the memory node. > ---8<--- > Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but > no unit name > ---<8--- > > Signed-off-by: Wenyou Yang > --- > > arch/arm/dts/

Re: [U-Boot] [PATCH] tools: fix cross-compiling tools when HOSTCC is overridden

2017-03-13 Thread Masahiro Yamada
+CC Richard +CC Marek 2017-03-13 17:43 GMT+09:00 Masahiro Yamada : > Richard reported U-Boot tools issues in OpenEmbedded/Yocto project. > > OE needs to be able to change the default compiler. If we pass in > HOSTCC through the make command, it overwrites all HOSTCC instances, > including ones in

[U-Boot] [PATCH] tools: fix cross-compiling tools when HOSTCC is overridden

2017-03-13 Thread Masahiro Yamada
Richard reported U-Boot tools issues in OpenEmbedded/Yocto project. OE needs to be able to change the default compiler. If we pass in HOSTCC through the make command, it overwrites all HOSTCC instances, including ones in tools/Makefile and tools/env/Makefile, which breaks "make cross_tools" and "m

Re: [U-Boot] [PATCH] sunxi: Add defconfig for Allwinner A23 EVB

2017-03-13 Thread Florent Jacquet
On 06/03/2017 13:19, Florent Jacquet wrote: > On 16/02/2017 19:32, Maxime Ripard wrote: >> On Thu, Feb 16, 2017 at 11:46:42AM +0100, Florent Jacquet wrote: >>> This enables the support for the Allwinner A23 Evaluation Board (EVB), >>> that already had a device tree (from Linux) but no defconfig. >>

Re: [U-Boot] [PATCH v2 2/6] dm: core: Allow multiple drivers to bind for a single node

2017-03-13 Thread Heiko Stübner
Hi Simon, Am Sonntag, 12. März 2017, 14:21:35 CET schrieb Simon Glass: > On 3 March 2017 at 03:52, Dr. Philipp Tomsich > wrote: > > On 03 Mar 2017, at 05:52, Simon Glass wrote: > > On 22 February 2017 at 13:47, Philipp Tomsich > > wrote: > > > > Currently, driver binding stops once it encounte

[U-Boot] [PATCH] ARM: dts: skeleton: fix unit name warning from dtc

2017-03-13 Thread Wenyou Yang
Fix the following warning from dtc by adding the unit name for the memory node. ---8<--- Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name ---<8--- Signed-off-by: Wenyou Yang --- arch/arm/dts/skeleton.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 delet

[U-Boot] [PATCH v2] ARM: dts: Makefile: use board id to decide which dts compile

2017-03-13 Thread Wenyou Yang
To avoid to compile all AT91 SoCs' board device tree files, use the board id to decide which device tree file will be compiled, instead of compile all AT91 family files. Signed-off-by: Wenyou Yang --- Changes in v2: - Improve the message log. arch/arm/dts/Makefile | 8 1 file changed