Re: [U-Boot] ZYNQ direct MAC connection

2017-02-13 Thread Moritz Fischer
Hi Hannes, On Mon, Feb 13, 2017 at 4:56 AM, Hannes Schmelzer wrote: > Hello, > > did anybody setup successfully setup a direct MAC connection using RGMII > with a zynq ? > For example to a switch. > > The zynq_gem driver wants to probe for phy by itself. > I already made

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

2017-02-13 Thread Tom Rini
Hey all, It's release day and v2017.03-rc2 is out. I think my patchwork queue is looking good currently but I'm open to being told there's important stuff outstanding. I'm probably going to grab some Kconfig things and perhaps other cleanups I can mechanically confirm are correct. Things are

Re: [U-Boot] [RFC PATCH] mmc: omap_hsmmc: convert to use dm block devies

2017-02-13 Thread Grygorii Strashko
On 02/10/2017 10:21 AM, Simon Glass wrote: > Hi, > > On 2 February 2017 at 15:18, Grygorii Strashko > wrote: >> >> Convert OMAP hsmmc driver to use driver-model block devices. >> >> Signed-off-by: Grygorii Strashko >> --- >> Hi All, >> >>

Re: [U-Boot] [PATCH v9 0/2] SPL: Add support to boot a partition type

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 02:01:23PM -0800, Dalon Westergreen wrote: > On Sat, 2017-02-11 at 04:41 +0100, Marek Vasut wrote: > > On 02/11/2017 02:15 AM, Dalon Westergreen wrote: > > > > > > This adds support for the spl to seach for and boot from an arbitrary > > > partition type rather then a

Re: [U-Boot] [PATCH v6 1/2] gpio: at91_gpio: Remove CPU_HAS_PIO3 macro

2017-02-13 Thread Andreas Bießmann
Dear Wenyou, On 13.02.17 03:07, Wenyou Yang wrote: > The intention of this patch is the preparation to introduce > the pinctrl driver for AT91 PIO. > > Use "union" to make the PIO3 and PIO2's registers be together > and make their offset aligned. unfortunately there is another breakage in this

Re: [U-Boot] [PATCH v9 0/2] SPL: Add support to boot a partition type

2017-02-13 Thread Dalon Westergreen
On Sat, 2017-02-11 at 04:41 +0100, Marek Vasut wrote: > On 02/11/2017 02:15 AM, Dalon Westergreen wrote: > > > > This adds support for the spl to seach for and boot from an arbitrary > > partition type rather then a specific partition number.  When > > USE_PARTITION_TYPE is enabled, spl will

Re: [U-Boot] [GIT PULL] Xilinx fixes

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 03:30:26PM +0100, Michal Simek wrote: > Hi Tom, > > here are some fixes, please pull them to your tree. > > Mike: I have rebased your origin patches because of some conflicts. > Please check when they are applied. > > Thanks, > Michal > > > The following changes since

Re: [U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Jonathan Gray
On Mon, Feb 13, 2017 at 04:02:31PM +0100, Yegor Yefremov wrote: > On Mon, Feb 13, 2017 at 3:17 PM, Belisko Marek > wrote: > > Hi Yegor, > > > > On Mon, Feb 13, 2017 at 12:57 PM, Yegor Yefremov > > wrote: > >> > >> My am335x based board

Re: [U-Boot] [PATCH] arm: am57xx: Set serial# variable

2017-02-13 Thread Lokesh Vutla
On Monday 13 February 2017 10:39 PM, Sam Protsenko wrote: > serial# variable is used to correctly display device ID in > "fastboot devices". It also can be used further for displaying device ID > in "adb devices" (should be passed as "androidboot.serialno" to kernel > cmdline, via "bootargs"

[U-Boot] [PATCH 2/9] armv8: ls2080a: Move CONFIG_FSL_MC_ENET to Kconfig

2017-02-13 Thread York Sun
Use Kconfig option instead of config macro in header file. Clean up existing usage. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 8 include/configs/ls2080a_common.h | 1 - scripts/config_whitelist.txt | 1 - 3 files

[U-Boot] [PATCH 1/9] armv8: Add global variable resv_ram

2017-02-13 Thread York Sun
Use gd->arch.resv_ram to track reserved memory allocation. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 6 ++ arch/arm/include/asm/global_data.h| 3 +++ cmd/bdinfo.c | 4 3 files changed, 13

[U-Boot] [PATCH v7 1/2] gpio: at91_gpio: Remove CPU_HAS_PIO3 macro

2017-02-13 Thread Wenyou Yang
The intention of this patch is the preparation to introduce the pinctrl driver for AT91 PIO. Use "union" to make the PIO3 and PIO2's registers be together and make their offset aligned. Signed-off-by: Wenyou Yang --- Changes in v7: - Fix the missing conversion for the

[U-Boot] [PATCH v7 2/2] pinctrl: at91: Add pinctrl driver

2017-02-13 Thread Wenyou Yang
AT91 PIO controller is a combined gpio-controller, pin-mux and pin-config module. The peripheral's pins are assigned through per-pin based muxing logic. Each soc will have to describe the SoC limitation and pin configuration via DT. This will allow to do not need to touch the C code when adding

[U-Boot] [PATCH v7 0/2] pinctrl: at91: Add pinctrl driver

2017-02-13 Thread Wenyou Yang
The purpose of this patch set is to add the pinctrl driver for AT91 PIO controller. Changes in v7: - Fix the missing conversion for the at91_emac driver when building the at91rm9200 devices. Changes in v6: - Move PIO_SCDR_DIV define from mach/ to mach/at91_pio.h to fix the build error.

[U-Boot] db-88f6820-amc board fails to boot with latest u-boot master

2017-02-13 Thread Chris Packham
Hi, I just tried UART booting db-88f6820-amc with the latest u-boot master and it fails to reach the normal u-boot prompt. I don't know if this affects the normal SPI booting. I've bisected down to commit 94084eea3bd3 ("tools: kwbimage: Fix dest addr"). Reverting this gets things working again,

Re: [U-Boot] U-Boot of-platdata issue

2017-02-13 Thread Kever Yang
Hi Simon, Jaehoon, On 02/13/2017 05:51 PM, Jaehoon Chung wrote: On 02/13/2017 06:23 PM, Kever Yang wrote: Hi Simon, On 01/16/2017 12:15 PM, Simon Glass wrote: Hi Kever, On 15 January 2017 at 18:28, Kever Yang wrote: Hi Simon, I met two issue when using

[U-Boot] [PATCH 7/9] armv8: layerscape: Flush MMU tables after creattion

2017-02-13 Thread York Sun
MMU tables should be flushed if current code runs with d-cache on. This applies to early MMU tables with SPL boot, and all final MMU tables. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 9 + 1 file changed, 9 insertions(+) diff --git

[U-Boot] [PATCH 4/9] armv8: layerscape: Rewrite memory reservation

2017-02-13 Thread York Sun
For ARMv8 Layerscape SoCs, secure memory and MC memorey are reserved at the end of DDR. DDR is spit into two or three banks. This patch reverts commit aabd7ddb and simplifies the calculation of reserved memory, and moves the code into common SoC file. Secure memory is carved out first. DDR bank

[U-Boot] [PATCH 9/9] armv8: layerscape: Update early MMU for DDR after initialization

2017-02-13 Thread York Sun
In early MMU table, DDR has to be mapped as device memory to avoid speculative access. After DDR is initialized, it needs to be updated to normal memory to allow code execution. To simplify the code, dram_init() is moved into a common file as a weak function. Signed-off-by: York Sun

[U-Boot] [PATCH 8/9] armv8: mmu: Add a function to change mapping attributes

2017-02-13 Thread York Sun
Function mmu_change_region_attr() is added to change existing mapping with updated PXN, UXN and memory type. This is a break-before-make process during which the mapping becomes fault (invalid) before final attributres are set. Signed-off-by: York Sun ---

[U-Boot] [PATCH 3/9] armv8: ls2080a: Move CONFIG_SYS_MC_RSV_MEM_ALIGN to Kconfig

2017-02-13 Thread York Sun
Use Kconfig option instead of config macro in header file. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 8 include/configs/ls2080a_common.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 8 insertions(+), 2

[U-Boot] [PATCH 6/9] armv8: layerscape: Update MMU mapping with actual DDR size

2017-02-13 Thread York Sun
Update mapping with actual DDR size. Non-existing memory should not be mapped as "normal" memory to avoid speculative access. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 42 +++-- 1 file changed, 40 insertions(+), 2

[U-Boot] [PATCH] armv8/fsl-layerscape: Update erratum A009635 implementation

2017-02-13 Thread Priyanka Jain
Erratum A009635 is valid only for LS2080A SoC and its personality. Add SoC svr check for execution Signed-off-by: Priyanka Jain --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git

Re: [U-Boot] [ANN] U-Boot v2017.03-rc2 released

2017-02-13 Thread Wenyou.Yang
Hi Heiko, > -Original Message- > From: Heiko Schocher [mailto:h...@denx.de] > Sent: 2017年2月14日 14:26 > To: Tom Rini ; Tony Yang - A41535 > > Cc: u-boot@lists.denx.de; Andreas Bießmann ; > Joe Hershberger

Re: [U-Boot] [PATCH] net: macb: Fix ETH not found when clock not support

2017-02-13 Thread Heiko Schocher
Hello Wenyou, Am 14.02.2017 um 08:04 schrieb Wenyou Yang: For the boards such as smartweb on which the clock driver isn't supported, the ethernet fail to be found when booting up with the below log. ---8<--- Net: No ethernet found. --->8--- Signed-off-by: Wenyou Yang

Re: [U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Stefan Roese
Hi Yegor, On 13.02.2017 16:02, Yegor Yefremov wrote: On Mon, Feb 13, 2017 at 3:17 PM, Belisko Marek wrote: Hi Yegor, On Mon, Feb 13, 2017 at 12:57 PM, Yegor Yefremov wrote: My am335x based board doesn't detect USB sticks: U-Boot

Re: [U-Boot] [PATCH v6 1/2] gpio: at91_gpio: Remove CPU_HAS_PIO3 macro

2017-02-13 Thread Wenyou.Yang
Hi Andreas, > -Original Message- > From: Andreas Bießmann [mailto:andr...@biessmann.org] > Sent: 2017年2月14日 6:01 > To: Tony Yang - A41535 ; U-Boot Mailing List > > Cc: Stephen Warren ; Simon Glass ; >

[U-Boot] [PATCH 0/9] Rewrite ARMv8 layerscape MMU

2017-02-13 Thread York Sun
A recent debug revealed MMU for DDR shouldn't be enabled before DDR is initialized. Otherwise, a "normal memory" mapping may cause speculative access which may hang the system if accessing to DDR is not allowed at time. For Layerscape platforms, we have early MMU setup to speed up execution on

Re: [U-Boot] [PATCH] am33xx: board: Refactor USB initialization into separate function

2017-02-13 Thread Alex
On 02/12/2017 05:55 AM, Andreas Färber wrote: Am 06.02.2017 um 23:30 schrieb Alexandru Gagniuc: diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c index 190310f..f19e919 100644 --- a/arch/arm/mach-omap2/am33xx/board.c +++ b/arch/arm/mach-omap2/am33xx/board.c

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

2017-02-13 Thread Maxime Ripard
On Mon, Feb 13, 2017 at 04:12:04PM +0800, Icenowy Zheng wrote: > > 2017年2月13日 15:17于 Maxime Ripard 写道: > > > > Hi, > > > > On Sat, Feb 11, 2017 at 07:11:02PM +0800, Icenowy Zheng wrote: > > > @@ -0,0 +1,13 @@ > > > +CONFIG_ARM=y > > > +CONFIG_ARCH_SUNXI=y >

[U-Boot] [PATCH v2] armv7m: Add SysTick timer driver

2017-02-13 Thread Phil Edworthy
The SysTick is a 24-bit down counter that is found on all ARM Cortex M3, M4, M7 devices and is always located at a fixed address. Signed-off-by: Phil Edworthy --- v2: - Variables & constant renamed. - Use the calibration reg to determine if we use the cpu or ref clk

Re: [U-Boot] [PATCH v3 1/6] spl: Convert CONFIG_SPL_ABORT_ON_RAW_IMAGE into a positive option

2017-02-13 Thread Simon Glass
Hi Andrew, On 10 February 2017 at 12:58, Andrew F. Davis wrote: > On 02/10/2017 12:38 PM, Simon Glass wrote: >> Hi Andrew, >> >> On 8 February 2017 at 10:21, Andrew F. Davis wrote: >>> >>> CONFIG_SPL_ABORT_ON_RAW_IMAGE causes SPL to abort and move on when it >>>

Re: [U-Boot] how to trigger DM rescan ?

2017-02-13 Thread Simon Glass
Hi Hannes, On 13 February 2017 at 05:53, Hannes Schmelzer wrote: > > Hi Simon, > > forwarding this directly to you since nobody did response on the mailinglist. > Maybe you have some suggestion to me. Yes, I tend to notice things that are cc'd to me :-) > > many thanks,

Re: [U-Boot] [PATCH v2 2/4] regmap: use fdt address translation

2017-02-13 Thread Simon Glass
Hi, On 13 February 2017 at 08:17, Jean-Jacques Hiblot wrote: > In the DTS, the addresses are defined relative to the parent bus. We need > to translate them to get the address as seen by the CPU core. > > Signed-off-by: Jean-Jacques Hiblot > --- > > to:

Re: [U-Boot] [PATCH v3 3/9] STiH410: Add STi sysreset driver

2017-02-13 Thread Simon Glass
On 10 February 2017 at 08:04, wrote: > From: Patrice Chotard > > Signed-off-by: Patrice Chotard > --- > drivers/sysreset/Makefile | 1 + > drivers/sysreset/sysreset_sti.c | 82 >

Re: [U-Boot] [PATCH v3 4/9] STiH410: Add STi serial driver

2017-02-13 Thread Simon Glass
Hi Patrice, On 10 February 2017 at 08:04, wrote: > From: Patrice Chotard > > This patch adds support to ASC (asynchronous serial controller) > driver, which is basically a standard serial driver. This IP > is common across other

Re: [U-Boot] [ANN] U-Boot v2017.03-rc2 released

2017-02-13 Thread Heiko Schocher
Hello Tom, Am 14.02.2017 um 06:38 schrieb Heiko Schocher: Hello Tom, Am 14.02.2017 um 00:01 schrieb Tom Rini: Hey all, It's release day and v2017.03-rc2 is out. I think my patchwork queue is looking good currently but I'm open to being told there's important stuff outstanding. I'm probably

[U-Boot] [PATCH 5/9] driver: net: fsl-mc: Update calculation of MC RAM

2017-02-13 Thread York Sun
Since the reserved RAM is tracked by gd->arch.resv_ram, calculation of MC memory blocks can be simplified. The MC RAM is guaranteed to be aligned by the reservation process. Signed-off-by: York Sun CC: Priyanka Jain --- drivers/net/fsl-mc/mc.c | 59

Re: [U-Boot] [ANN] U-Boot v2017.03-rc2 released

2017-02-13 Thread Heiko Schocher
Hello Tom, Am 14.02.2017 um 00:01 schrieb Tom Rini: Hey all, It's release day and v2017.03-rc2 is out. I think my patchwork queue is looking good currently but I'm open to being told there's important stuff outstanding. I'm probably going to grab some Kconfig things and perhaps other

[U-Boot] [PATCH] net: macb: Fix ETH not found when clock not support

2017-02-13 Thread Wenyou Yang
For the boards such as smartweb on which the clock driver isn't supported, the ethernet fail to be found when booting up with the below log. ---8<--- Net: No ethernet found. --->8--- Signed-off-by: Wenyou Yang --- drivers/net/macb.c | 13 + 1 file changed,

Re: [U-Boot] of-platdata address map decode for 64-bits

2017-02-13 Thread Simon Glass
Hi Kever, On 13 February 2017 at 01:13, Kever Yang wrote: > Hi Simon, > > On 02/08/2017 01:10 PM, Simon Glass wrote: >> >> Hi Kever, >> >> On 4 February 2017 at 16:30, Kever Yang wrote: >>> >>> Hi Simon, >>> >>> For rk3399, the data for

Re: [U-Boot] db-88f6820-amc board fails to boot with latest u-boot master

2017-02-13 Thread Mario Six
On Tue, Feb 14, 2017 at 7:36 AM, Stefan Roese wrote: > Hi Chris, > > On 14.02.2017 02:48, Chris Packham wrote: >> >> I just tried UART booting db-88f6820-amc with the latest u-boot master >> and it fails to reach the normal u-boot prompt. I don't know if this >> affects the normal

Re: [U-Boot] db-88f6820-amc board fails to boot with latest u-boot master

2017-02-13 Thread Stefan Roese
Hi Chris, On 14.02.2017 02:48, Chris Packham wrote: I just tried UART booting db-88f6820-amc with the latest u-boot master and it fails to reach the normal u-boot prompt. I don't know if this affects the normal SPI booting. I've bisected down to commit 94084eea3bd3 ("tools: kwbimage: Fix dest

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 03:14:28PM +0100, Axel Haslam wrote: > Hi Tom > > On Mon, Feb 13, 2017 at 2:23 PM, Tom Rini wrote: > > On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel Haslam wrote: > >> The uboot binary on the AIS file starts at offset 0x8000. > >> This would be sector

Re: [U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Belisko Marek
Hi Yegor, On Mon, Feb 13, 2017 at 12:57 PM, Yegor Yefremov wrote: > My am335x based board doesn't detect USB sticks: > > U-Boot 2017.03-rc1 (Feb 13 2017 - 12:46:54 +0100) > > CPU : AM335X-GP rev 2.1 > I2C: ready > DRAM: 256 MiB > NAND: 256 MiB > MMC: OMAP

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Axel Haslam
On Mon, Feb 13, 2017 at 3:17 PM, Tom Rini wrote: > On Mon, Feb 13, 2017 at 03:14:28PM +0100, Axel Haslam wrote: >> Hi Tom >> >> On Mon, Feb 13, 2017 at 2:23 PM, Tom Rini wrote: >> > On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel Haslam wrote: >> >> The

[U-Boot] [GIT PULL] Xilinx fixes

2017-02-13 Thread Michal Simek
Hi Tom, here are some fixes, please pull them to your tree. Mike: I have rebased your origin patches because of some conflicts. Please check when they are applied. Thanks, Michal The following changes since commit f1cc97764be4383d2aeb56d5ba5415439a1d5c97: Merge branch 'master' of

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Andy Shevchenko
On Mon, 2017-02-13 at 14:41 +0100, Lukasz Majewski wrote: > > [1] https://github.com/andy-shev/u-boot/tree/edison > > [2] https://communities.intel.com/message/435516#435516 > > > > Ok. I will check this. Thanks for pointing out :-) Just in case, mentioned branch is occasionally rebased, so,

Re: [U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Yegor Yefremov
On Mon, Feb 13, 2017 at 3:17 PM, Belisko Marek wrote: > Hi Yegor, > > On Mon, Feb 13, 2017 at 12:57 PM, Yegor Yefremov > wrote: >> >> My am335x based board doesn't detect USB sticks: >> >> U-Boot 2017.03-rc1 (Feb 13 2017 - 12:46:54 +0100) >>

[U-Boot] [PATCH v1] mmc: pci: only compile on platforms that need it

2017-02-13 Thread Andy Shevchenko
From: Felipe Balbi We should only compile pci_mmc.c on platforms that actually need this. Some platforms are using generic sdhci through driver model. Signed-off-by: Felipe Balbi Signed-off-by: Andy Shevchenko

[U-Boot] [PATCH v2 3/4] drivers: ti_qspi: use syscon to get the address ctrl_mod_mmap register

2017-02-13 Thread Jean-Jacques Hiblot
We used to get the address of the optionnal ctrl_mod_mmap register as the third memory range of the "reg" property. the linux driver moved to use a syscon instead. In order to keep the DTS as close as possible to that of linux, we move to using a syscon as well. If SYSCON is not supported, the

[U-Boot] [PATCH v2 1/4] libfdt: Allow the SPL to perform fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address translation should be used. Signed-off-by: Jean-Jacques Hiblot --- to: s...@chromium.org lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index

[U-Boot] [PATCH v2 0/4] driver: ti_qspi: Use a SYSCON device to map the ctrl_mod_mmap register

2017-02-13 Thread Jean-Jacques Hiblot
This series allows the ti_qspi driver to use the same dts description as the linux kernel. In Linux since 4.6 the ctrl_mod_mmap is described in the DTS as a syscon. It used to be the 3rd memory range in "reg". The first two patches of this series are generic ones: * Allow the SPL version of

[U-Boot] [PATCH v2 4/4] configs: dra7x/am57x: Enable the SYSCON and REGMAP features

2017-02-13 Thread Jean-Jacques Hiblot
This is required by the ti_qspi driver to get from the DTS the address of the ctrl_mod_mmap register in SPL and in u-boot. Signed-off-by: Jean-Jacques Hiblot --- configs/am57xx_evm_defconfig| 6 ++ configs/am57xx_hs_evm_defconfig | 6 ++ configs/dra7xx_evm_defconfig

[U-Boot] [PATCH v2 2/4] regmap: use fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
In the DTS, the addresses are defined relative to the parent bus. We need to translate them to get the address as seen by the CPU core. Signed-off-by: Jean-Jacques Hiblot --- to: s...@chromium.org drivers/core/regmap.c | 14 -- 1 file changed, 8 insertions(+), 6

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Axel Haslam
Hi Tom On Mon, Feb 13, 2017 at 2:23 PM, Tom Rini wrote: > On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel Haslam wrote: >> The uboot binary on the AIS file starts at offset 0x8000. >> This would be sector 0x40 on a mmc card with 512 bytes per >> sector: 0x8000/0x200 = 0x40. >>

Re: [U-Boot] [PATCH v2 1/4] libfdt: Allow the SPL to perform fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
On 13/02/2017 16:41, Lokesh Vutla wrote: On 2/13/2017 8:47 PM, Jean-Jacques Hiblot wrote: Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address translation should be used. Signed-off-by: Jean-Jacques Hiblot Vignesh has posted a similar patch[1]. Sorry, I

[U-Boot] [PATCH 3/3] ARM: uniphier: rework spl_boot_device() and related code

2017-02-13 Thread Masahiro Yamada
The current implementation has ugly switch statements here and there, and duplicates similar code. Rework it using table lookups for SoC data and reduce code duplication. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile| 2

Re: [U-Boot] [PATCH v2 2/6] usb: host: xhci-omap: fix double weak board_usb_init functions

2017-02-13 Thread Marek Vasut
On 02/13/2017 12:35 PM, Uri Mashiach wrote: > A weak version of the function board_usb_init is implemented in: > common/usb.c > drivers/usb/host/xhci-omap.c > > To fix the double implementations: > * Convert the board_usb_init function in drivers/usb/host/xhci-omap.c > normal (not weak). > *

Re: [U-Boot] [PATCH v2 1/4] libfdt: Allow the SPL to perform fdt address translation

2017-02-13 Thread Lokesh Vutla
On 2/13/2017 8:47 PM, Jean-Jacques Hiblot wrote: > Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address > translation should be used. > > Signed-off-by: Jean-Jacques Hiblot Vignesh has posted a similar patch[1]. [1]http://patchwork.ozlabs.org/patch/727131/

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

2017-02-13 Thread Icenowy Zheng
2017年2月13日 15:17于 Maxime Ripard 写道: > > Hi, > > On Sat, Feb 11, 2017 at 07:11:02PM +0800, Icenowy Zheng wrote: > > @@ -0,0 +1,13 @@ > > +CONFIG_ARM=y > > +CONFIG_ARCH_SUNXI=y > > +# CONFIG_ARMV7_NONSEC is not set > > Why? It doesn't have Trustzone? The

Re: [U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Axel Haslam
Hi Tom On Mon, Feb 13, 2017 at 3:23 PM, Axel Haslam wrote: > On Mon, Feb 13, 2017 at 3:17 PM, Tom Rini wrote: >> On Mon, Feb 13, 2017 at 03:14:28PM +0100, Axel Haslam wrote: >>> Hi Tom >>> >>> On Mon, Feb 13, 2017 at 2:23 PM, Tom Rini

[U-Boot] [PATCH 2/3] ARM: uniphier: move spl_boot_mode() to a separate file

2017-02-13 Thread Masahiro Yamada
The spl_boot_mode() is unrelated to the other code in this file. Besides, this function is only called from common/spl/spl_mmc.c, so it is reasonable to guard with CONFIG_SPL_MMC_SUPPORT. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile

[U-Boot] [PATCH 1/3] ARM: uniphier: move MMC code to a separate file

2017-02-13 Thread Masahiro Yamada
Currently, arch/arm/mach-uniphier/boot-mode/boot-mode.c is messed up with unrelated code; there is no reason why the "mmcsetn" command must be placed in this file. Split out the MMC code into arch/arm/mach-uniphier/mmc-first-dev.c. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH v2 0/6] arm: am57xx: cl-som-am57x: fix usb

2017-02-13 Thread Uri Mashiach
Various USB related comits for the CL-SOM-AM57x module. --- V1 -> V2: Replace commit "fix XHCI registers base address" with "reintroduce the CONFIG_AM57XX symbol". Uri Mashiach (6): arm: am57xx: reintroduce the CONFIG_AM57XX symbol usb: host: xhci-omap: fix double weak board_usb_init

[U-Boot] [PATCH v2 1/6] arm: am57xx: reintroduce the CONFIG_AM57XX symbol

2017-02-13 Thread Uri Mashiach
The SOC family symbol CONFIG_AM57XX was removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX". The symbol is needed by the XHCI OMAP USB driver. Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery. Signed-off-by: Uri Mashiach

[U-Boot] [PATCH v2 4/6] arm: am57xx: cl-som-am57x: fix USB scan

2017-02-13 Thread Uri Mashiach
USB bus scan attempt: --cut-- => usb start starting USB... USB0: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... data abort pc : [] lr : [] reloc pc : [<8081b40e>]lr :

[U-Boot] [PATCH v2 6/6] arm: am57xx: cl-som-am57x: enable USB commands

2017-02-13 Thread Uri Mashiach
Add CONFIG_CMD_USB to the defconfig file. Signed-off-by: Uri Mashiach Reviewed-by: Tom Rini --- V1 -> V2: none configs/cl-som-am57x_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/cl-som-am57x_defconfig

[U-Boot] [PATCH v2 5/6] arm: am57xx: cl-som-am57x: enable USB storage

2017-02-13 Thread Uri Mashiach
Add CONFIG_USB_STORAGE to the defconfig file. Signed-off-by: Uri Mashiach Reviewed-by: Tom Rini --- V1 -> V2: none configs/cl-som-am57x_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/cl-som-am57x_defconfig

Re: [U-Boot] [PATCH 1/6] arm: am57xx: cl-som-am57x: fix XHCI registers base address

2017-02-13 Thread Lokesh Vutla
On Sunday 12 February 2017 09:17 PM, Tom Rini wrote: > On Sun, Feb 12, 2017 at 10:55:27AM +0200, Uri Mashiach wrote: >> Hi Tom, >> >> On 02/09/2017 10:29 PM, Tom Rini wrote: >>> On Thu, Feb 09, 2017 at 09:00:26AM +0200, Uri Mashiach wrote: >>> The following XHCI registers base address are

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Felipe Balbi
Hi, Marek Vasut writes: > On 02/10/2017 05:32 PM, Andy Shevchenko wrote: >> From: Felipe Balbi >> >> If last packet is short, we shouldn't write req->length bytes to >> non-volatile media, we should write only what's available to us, which >> is

Re: [U-Boot] [PATCH v1] usb: gadget: f_dfu: write req->actual bytes

2017-02-13 Thread Felipe Balbi
Hi Lukasz, Lukasz Majewski writes: > Hi Felipe, > > Thanks for the patch. > Please see my comments below. > > On 13 Feb 2017 11:42 am, Felipe Balbi wrote: > > Hi, > > Marek Vasut writes: > > On 02/10/2017 05:32 PM, Andy

[U-Boot] [PATCH 2/2] omapl138_lcdk: Set uboot raw mmc sector to 0x41

2017-02-13 Thread Axel Haslam
The uboot binary on the AIS file starts at offset 0x8000. This would be sector 0x40 on a mmc card with 512 bytes per sector: 0x8000/0x200 = 0x40. But because we usually skip the first mmc sector to preserve the partition table, the ais image is written starting on sector 0x1, and the u-boot

Re: [U-Boot] [PATCH 1/2] kconfig: re-sync with Linux 4.10

2017-02-13 Thread Tom Rini
On Sat, Feb 11, 2017 at 12:39:54PM +0900, Masahiro Yamada wrote: > Re-sync all files under the scripts/kconfig directory with > Linux 4.10. > > Some parts include U-Boot own modification. I made sure to not > revert the following commits: > > 5b8031ccb4ed ("Add more SPDX-License-Identifier

Re: [U-Boot] [PATCH 2/2] i2c: sandbox: remove code snippet from Kconfig help

2017-02-13 Thread Tom Rini
On Sat, Feb 11, 2017 at 12:39:55PM +0900, Masahiro Yamada wrote: > With the Kconfig re-sync with Linux 4.10, characters such as > '}', ';' in Kconfig help message cause warnings: > > $ make defconfig > *** Default configuration is based on 'sandbox_defconfig' > drivers/i2c/Kconfig:132:warning:

[U-Boot] [PATCH v2 2/6] usb: host: xhci-omap: fix double weak board_usb_init functions

2017-02-13 Thread Uri Mashiach
A weak version of the function board_usb_init is implemented in: common/usb.c drivers/usb/host/xhci-omap.c To fix the double implementations: * Convert the board_usb_init function in drivers/usb/host/xhci-omap.c normal (not weak). * The function board_usb_init in drivers/usb/host/xhci-omap.c

[U-Boot] [PATCH v2 3/6] arm: am57xx: cl-som-am57x: invoke clock API to enable/disable clocks

2017-02-13 Thread Uri Mashiach
Invoke enable_usb_clocks during board_usb_init and disable_usb_clocks during board_usb_exit to enable and disable clocks respectively. Modifications: * Enable USB clocks in the OMAP version of the function board_usb_init. * Disable USB clocks in the OMAP version of the function

[U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Yegor Yefremov
My am335x based board doesn't detect USB sticks: U-Boot 2017.03-rc1 (Feb 13 2017 - 12:46:54 +0100) CPU : AM335X-GP rev 2.1 I2C: ready DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment Net:not set. Validating first E-fuse MAC cpsw Hit any key to

Re: [U-Boot] [PATCH 1/6] arm: am57xx: cl-som-am57x: fix XHCI registers base address

2017-02-13 Thread Uri Mashiach
On 02/13/2017 01:46 PM, Lokesh Vutla wrote: On Sunday 12 February 2017 09:17 PM, Tom Rini wrote: On Sun, Feb 12, 2017 at 10:55:27AM +0200, Uri Mashiach wrote: Hi Tom, On 02/09/2017 10:29 PM, Tom Rini wrote: On Thu, Feb 09, 2017 at 09:00:26AM +0200, Uri Mashiach wrote: The following

[U-Boot] [PATCH 0/2] omapl: mmc boot help

2017-02-13 Thread Axel Haslam
The omapl-138 board can boot the ais image from mmc, but the right offset needs to be provided to SPL. This series fixes the uboot raw offset config option and adds help text for the user to copy the AIS image to the sd card. Axel Haslam (2): da850: Add instructions to copy AIS image to an MMC

[U-Boot] [PATCH 1/2] da850: Add instructions to copy AIS image to an MMC card

2017-02-13 Thread Axel Haslam
The da850 soc's can boot from a external mmc card, but the AIS image should be written to the correct sector. Add instructions to copy the AIS image to a MMC card. Signed-off-by: Axel Haslam --- board/davinci/da8xxevm/README.da850 | 16 1 file changed, 16

Re: [U-Boot] [U-Boot, v5, 1/2] gpio: at91_gpio: Remove CPU_HAS_PIO3 macro

2017-02-13 Thread Wenyou.Yang
Hi Andreas, > -Original Message- > From: Andreas Bießmann [mailto:andr...@biessmann.org] > Sent: 2017年2月13日 7:42 > To: Tony Yang - A41535 > Cc: U-Boot Mailing List ; Stephen Warren > > Subject: Re: [U-Boot,v5,1/2]

Re: [U-Boot] [PATCH] libfdt: use CONFIG_IS_ENABLED for OF_LIBFDT

2017-02-13 Thread Lokesh Vutla
On Monday 13 February 2017 01:04 PM, Vignesh R wrote: > Use CONFIG_IS_ENABLED() macro to check whether OF_LIBFDT is enabled, so > that code block is compiled irrespective of SPL or U-Boot build > depending on CONFIG_SPL_OF_LIBFDT(for SPL) or CONFIG_OF_LIBFDT(for > U-Boot). > > Signed-off-by:

[U-Boot] [PATCH] tools: kwbimage: Fix unchecked return value and fd leak

2017-02-13 Thread Mario Six
The return value of fstat was not checked in kwbimage, and in the case of an error, the already open file was not closed. Fix both errors. Reported-by: Coverity (CID: 155971) Reported-by: Coverity (CID: 155969) Signed-off-by: Mario Six --- tools/kwbimage.c | 13 +++--

Re: [U-Boot] U-Boot of-platdata issue

2017-02-13 Thread Kever Yang
Hi Simon, On 01/16/2017 12:15 PM, Simon Glass wrote: Hi Kever, On 15 January 2017 at 18:28, Kever Yang wrote: Hi Simon, I met two issue when using of-platdata 1. compitable name with '.' I get compile error as below: In file included from

Re: [U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-13 Thread Phil Edworthy
Hi Vikas, On 12 February 2017 21:10, Vikas MANOCHA wrote: > Hi Phil, > > > -Original Message- > > From: Phil Edworthy [mailto:phil.edwor...@renesas.com] > > Sent: Tuesday, February 07, 2017 6:34 AM > > To: Tom Rini > > Cc: Kamil Lulko ; Vikas

Re: [U-Boot] of-platdata address map decode for 64-bits

2017-02-13 Thread Kever Yang
Hi Simon, On 02/08/2017 01:10 PM, Simon Glass wrote: Hi Kever, On 4 February 2017 at 16:30, Kever Yang wrote: Hi Simon, For rk3399, the data for sdram driver in dts is big, I don't want to do the copy for it, Are you referring to the call to

Re: [U-Boot] [PATCH] tiny-printf: add static to locally used functions

2017-02-13 Thread Stefan Roese
On 12.02.2017 10:08, Masahiro Yamada wrote: These two functions are only used in lib/tiny-printf.c . Signed-off-by: Masahiro Yamada --- lib/tiny-printf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tiny-printf.c

[U-Boot] [PATCH] regmap: add support for address cell 2

2017-02-13 Thread Kever Yang
ARM64 is using 64bit address which address cell is 2 instead of 1, update to support it when of-platdata enabled. Signed-off-by: Kever Yang --- drivers/core/regmap.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-13 Thread Jelle van der Waa
The rsa_st struct has been made opaque in 1.1.x, add forward compatible code to access the n, e, d members of rsa_struct. EVP_MD_CTX_cleanup has been removed in 1.1.x and EVP_MD_CTX_reset should be called to reinitialise an already created structure. --- lib/rsa/rsa-sign.c | 33

[U-Boot] [PATCH v2 9/9] config: rk3399: enable SPL config for evb-rk3399

2017-02-13 Thread Kever Yang
Enable all the CONFIGs which need by SPL. Signed-off-by: Kever Yang --- Changes in v2: None Changes in v1: None configs/evb-rk3399_defconfig| 18 ++ include/configs/rk3399_common.h | 5 + 2 files changed, 23 insertions(+) diff --git

[U-Boot] [PATCH v2 6/9] arm64: rk3399: syscon addition for rk3399

2017-02-13 Thread Kever Yang
rk3399 has different syscon registers which may used in spl, add to support rk3399 spl. Signed-off-by: Kever Yang --- Changes in v2: None Changes in v1: None arch/arm/include/asm/arch-rockchip/clock.h| 2 ++ arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 40

Re: [U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-13 Thread Phil Edworthy
Hi Vikas, On 12 February 2017 20:53, Vikas MANOCHA wrote: > > On Fri, Feb 03, 2017 at 02:48:40PM +, Phil Edworthy wrote: > > > > > The SysTick is a 24-bit down counter that is found on all ARM Cortex > > > M3, M4, M7 devices and is always located at a fixed address. > > > > > > Signed-off-by:

Re: [U-Boot] [PATCH v3] spi: ich: Configure SPI BIOS parameters

2017-02-13 Thread Bin Meng
Hi Stefan, On Fri, Feb 10, 2017 at 6:17 PM, Stefan Roese wrote: > Hi Bin, > > On 10.02.2017 06:45, Bin Meng wrote: > > > > >>> @@ -127,6 +120,44 @@ struct spi_trans { >>> #define SPI_OPCODE_WREN0x06 >>> #define SPI_OPCODE_FAST_READ 0x0b >>> >>> +#define

[U-Boot] [PATCH 2/2] rsa: Fix deprecated warnings for OpenSSL 1.1.x

2017-02-13 Thread Jelle van der Waa
ERR_remove_thread_state is deprecated in OpenSSL 1.1.x and does not do anything anymore. Thread initialisation and deinitialisation is now handled by the OpenSSL library. Signed-off-by: Jelle van der Waa --- lib/rsa/rsa-sign.c | 8 ++-- 1 file changed, 2 insertions(+), 6

[U-Boot] [PATCH v2 3/9] clk: rk3399: update driver for spl

2017-02-13 Thread Kever Yang
Add ddr clock setting, add rockchip_get_pmucru API, and enable of-platdata support. Signed-off-by: Kever Yang Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None arch/arm/include/asm/arch-rockchip/clock.h | 7 ++

[U-Boot] [PATCH v2 2/9] arm64: rk3399: move grf register definitions to grf_rk3399.h

2017-02-13 Thread Kever Yang
rk3399 grf register bit defenitions should locate in header file, so that not only pinctrl can use it. Signed-off-by: Kever Yang Reviewed-by: Simon Glass --- Changes in v2: None Changes in v1: None arch/arm/include/asm/arch-rockchip/grf_rk3399.h

[U-Boot] [PATCH v2 0/9] rk3399: enable SPL driver

2017-02-13 Thread Kever Yang
This series patch enable basic driver for rk3399 SPL, the ATF support has been split as a separate patch. SPL_OF_PLATDATA is consider to be must because the dram driver has much configuration parameter from dts, but we don't want to do the copy. Other driver like clock, pinctrl, sdhci has

[U-Boot] [PATCH v2 1/9] arm64: rk3399: add ddr controller driver

2017-02-13 Thread Kever Yang
RK3399 support DDR3, LPDDR3, DDR4 sdram, this patch is porting from coreboot, support 4GB lpddr3 in this version. Signed-off-by: Kever Yang --- Changes in v2: - use lower-case hex for input dts data - using rk3288 like style to encode/decode sys_reg - gather some

[U-Boot] [PATCH v2 8/9] arm64: rk3399: add SPL support

2017-02-13 Thread Kever Yang
Add SPL support for rk3399, default with of-platdata enabled. Signed-off-by: Kever Yang --- Changes in v2: - split SPL patch into 4 patches Changes in v1: None arch/arm/Kconfig | 1 + arch/arm/mach-rockchip/Kconfig| 2 +

  1   2   >