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 --- drivers/net/macb.

[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 - Use the calibration reg t

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

[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 emu

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 ; > Heiko Schocher ; Tony Yang - A41535 > > Subject: Re: [PATCH v6 1/2] gpio: at91_gpio: Re

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 > > > +# CONFIG_ARMV7_NONSEC is not s

[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, 9 insertions(+), 4 delet

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 > Subject: Re: [U-Boot] [ANN] U-Boot v2017.03-rc2 released > > Hello Tom, > > Am 1

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 SPI booting. >>

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 2017.03-rc1 (Feb 13 2017 - 12:46:54 +0100) CPU : AM335X-GP

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 a

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

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 cleanups

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 sdram driver in dts is big, I don't want to >>> do >>>

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, > Hannes > > > > ---

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: s...@chromium.org > > drivers/core/regmap

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 > + > 2 files changed, 83 insertions(+) > create mode 100644 drivers

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 >>> encounters RAW images, express th

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 STMicroelectronics SoCs > > Signed-off-by: Patrice Chotard Pleas

[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 a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/

[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 +++--

[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 deletions(-) diff --git

[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 --- arch/a

[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 --- arch/arm/cpu/armv8/cache_v8.c| 72 +

[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 deletions(-) diff

[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 a/arch/arm/cpu/armv8/fsl-la

[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 siz

[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 insertions(+) diff --git a/arc

[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 changed, 8 insertions

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" vari

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 doesn't detect USB sticks: > >> > >> U-Boot 2017.03-rc1 (Feb

[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 at91_emac driver when bui

[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 ne

[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. C

[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 of-platdata 1. compitable nam

[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 on

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 speci

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] 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 a connection with very ba

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 searc

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 p

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, >> >> First of all, sorry if my questions/problems are looks

[U-Boot] [PATCH v4 5/6] ARM: AM57xx: Disable non-FIT based image loading for HS devices

2017-02-13 Thread Andrew F. Davis
Disable support for loading non-FIT images for AM57xx platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs/am57xx_hs_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am57xx_hs_evm_defconfig b/config

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

2017-02-13 Thread Andrew F. Davis
CONFIG_SPL_ABORT_ON_RAW_IMAGE causes SPL to abort and move on when it encounters RAW images, express this same functionality as a positive option enabling support for RAW images: CONFIG_SPL_RAW_IMAGE_SUPPORT Signed-off-by: Andrew F. Davis --- Kconfig | 7 +++ READM

[U-Boot] [PATCH v4 4/6] ARM: AM43xx: Disable non-FIT based image loading for HS devices

2017-02-13 Thread Andrew F. Davis
Disable support for loading non-FIT images for AM43xx platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs/am43xx_hs_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am43xx_hs_evm_defconfig b/config

[U-Boot] [PATCH v4 6/6] ARM: DRA7xx: Disable non-FIT based image loading for HS devices

2017-02-13 Thread Andrew F. Davis
Disable support for loading non-FIT images for DRA7xx platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs/dra7xx_hs_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra7xx_hs_evm_defconfig b/config

[U-Boot] [PATCH v4 0/6] Allow disabling non-FIT image loading from SPL

2017-02-13 Thread Andrew F. Davis
Hello all, To address a needed feature brought up by Andreas[0], we need a way to disable SPL from loading non-FIT images. The function spl_parse_image_header is common to all SPL loading paths (common/spl/spl_(nand|net|nor|etc..)) so we add the check here. This version of the series is a bit di

[U-Boot] [PATCH v4 2/6] spl: Add option to enable SPL Legacy image support

2017-02-13 Thread Andrew F. Davis
Add a Kconfig option that enables Legacy image support, this allows boards to explicitly disable this, for instance when needed for security reasons. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- Kconfig | 8 common/spl/spl.c | 10 -- 2 files changed, 16

[U-Boot] [PATCH v4 3/6] ARM: AM335x: Disable non-FIT based image loading for HS devices

2017-02-13 Thread Andrew F. Davis
Disable support for loading non-FIT images for AM335x platforms using the high-security (HS) device variant. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs/am335x_hs_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am335x_hs_evm_defconfig b/config

[U-Boot] [PATCH] 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 | 23 +++ 1 file changed, 23 insertions(+)

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 05:11:09PM +0100, Axel Haslam wrote: > 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:

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

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 07:09:37PM +0200, 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] arm: am57xx: Set serial# variable

2017-02-13 Thread Sam Protsenko
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" variable). Serial number generating algorithm is described at [1]. [1]

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

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 01:35:40PM +0200, Uri Mashiach wrote: > A weak version of the function board_usb_init is implemented in: > common/usb.c > drivers/usb/host/xhci-omap.c [snip] > diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c > index bd1c809..21fa824 100644 > --- a/board/ti/dra7xx

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 CPU has Secure mode, but no TrustZone

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). > * The

[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 +- arch/arm/mach-uniphier/boar

[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 | 1 + arch/arm/mach-uniph

[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 --- arch/arm/mach-uniphier/Make

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 wrote: >>> > On Mon, Feb 13, 2017 at 11:44:57AM +0100, Axel

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 had missed this one

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/ Thanks and regards,

[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 fdtde

[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| 6 ++ co

[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 deletions(-) diff

[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 81f47ef..1edfbf2 10064

[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 dri

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) >> >> CPU : AM335X-GP rev 2.1 >> I2C: ready >> DRAM: 2

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, fo

[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 --- drivers/mmc/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[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 git://git.

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 uboot binary on the AIS file starts at offse

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 SD/MMC: 0, OMAP SD/MMC: 1 > Using

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 0x40 on a mmc card w

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. >> >> But because we us

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

2017-02-13 Thread Lukasz Majewski
Hi Felipe, > > 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 Shevchenko wrote: > >

[U-Boot] [PATCH 10/10] arm64: a3720: Disable DB configurations on ESPRESSOBin board

2017-02-13 Thread kostap
From: Konstantin Porotchkin Bypass XHCI and AHCi board configuration flow on ESPRESSOBin community board. The community board does not have i2c expander and USB VBUS is always on, so the scan for AHCi and USB devices can be faster. Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal

[U-Boot] [PATCH 09/10] arm64: mvebu: Add default config for ESPRESSOBin board

2017-02-13 Thread kostap
From: Konstantin Porotchkin Add initial default configuration for Marvell ESPRESSOBin community board based on Aramda-3720 SoC Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- configs/mvebu_espressobin-88f3720_defconfig | 67 + 1 file ch

[U-Boot] [PATCH 05/10] mvebu: neta: Add support for board init function

2017-02-13 Thread kostap
From: Konstantin Porotchkin Add ability to use board-specific initialization flow to NETA driver (for instance Ethernet switch bring-up) Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- drivers/net/mvneta.c | 16 +++- 1 file changed, 15 insertions(+), 1

[U-Boot] [PATCH 04/10] arm64: a37xx: Handle pin controls in early board init

2017-02-13 Thread kostap
From: Konstantin Porotchkin Fix the default pin control values in a board-specific function on early board init stage. This fix allows the NETA driver to work in RGMII mode until the full-featured pin control driver gets introduced. Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Iga

[U-Boot] [PATCH 08/10] arm64: dts: Add device tree for ESPRESSOBin board

2017-02-13 Thread kostap
From: Konstantin Porotchkin Initial DTS file for Marvell ESPRESSOBin comunity board based on Armada-3720 SoC. The Marvell ESPRESSOBin is a tiny board made by Globalscale and available on KickStarter site. It has dual core Armv8 Marvell SoC (Armada-3720) with 512MB/1GB/2GB DDR3 RAM, mini-PCIe 2.0

[U-Boot] [PATCH 07/10] mvebu: a37xx: Add init for ESPRESSBin Topaz switch

2017-02-13 Thread kostap
From: Konstantin Porotchkin Implement the board-specific network init function for ESPRESSOBin community board, setting the on-board Topaz switch port to forward mode and allow network connection through any of the available Etherenet ports. Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese

[U-Boot] [PATCH 06/10] mvebu: neta: a37xx: Add fixed link support to neta driver

2017-02-13 Thread kostap
From: Konstantin Porotchkin Add support for fixed link to NETA driver. This feature requred for proper support of SFP modules and onboard connected devices like Ethernet switches Signed-off-by: Konstantin Porotchkin Signed-off-by: Terry Zhou Cc: Stefan Roese Cc: Igal Liberman --- drivers/ne

[U-Boot] [PATCH 02/10] arm64: a37xx: Enable bubt command support on A3720-DB

2017-02-13 Thread kostap
From: Konstantin Porotchkin Enable mvebu bubt command support on A3720 DB Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- configs/mvebu_db-88f3720_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mvebu_db-88f3720_defconfig b/configs/mvebu_

[U-Boot] [PATCH 03/10] arm64: a37xx: dts: Add pin control nodes to DT

2017-02-13 Thread kostap
From: Konstantin Porotchkin Add pin control nodes for North and South bridges to Armada-37xx DT Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- arch/arm/dts/armada-37xx.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/armada-37

[U-Boot] [PATCH 01/10] arm64: a37xx: Enable Marvell ETH PHY support

2017-02-13 Thread kostap
From: Konstantin Porotchkin Enable support for Marvell Ethernet PHYs on A37xx platforms Signed-off-by: Konstantin Porotchkin Cc: Stefan Roese Cc: Igal Liberman --- include/configs/mvebu_db-88f3720.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/mvebu_db-88f3720.h b/inc

[U-Boot] [PATCH 00/10] Add Marvell ESPRESSOBin community board support

2017-02-13 Thread kostap
From: Konstantin Porotchkin This patch set adds support for Marvell ESPRESSOBin community board. The Marvell ESPRESSOBin is a tiny board made by Globalscale and available on KickStarter site. It has (current board version 3.1.1): - Dual core Cortex-A53 @1.2GHz CPU (Marvell Armada-3720) - 512MB/1G

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

2017-02-13 Thread Tom Rini
On Mon, Feb 13, 2017 at 01:34:52PM +0200, Uri Mashiach wrote: > 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 b

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 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. > > But because we usually skip the first mmc sector to preserve > the partition tabl

[U-Boot] ZYNQ direct MAC connection

2017-02-13 Thread Hannes Schmelzer
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 a connection with very bad hacks in various files. In linux such things are working with "fixed-link". Al

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

2017-02-13 Thread Hannes Schmelzer
Hi Simon, forwarding this directly to you since nobody did response on the mailinglist. Maybe you have some suggestion to me. many thanks, Hannes Forwarded Message Subject:how to trigger DM rescan ? Date: Wed, 8 Feb 2017 08:05:31 +0100 From: Hannes Schmelzer To

[U-Boot] [PATCH 3/3] configs: am43xx_evm: Enable SPL_DM

2017-02-13 Thread Lokesh Vutla
Enable SPL_DM on all AM43xx based platforms Signed-off-by: Lokesh Vutla --- configs/am43xx_evm_defconfig | 7 ++- configs/am43xx_evm_usbhost_boot_defconfig | 7 ++- configs/am43xx_hs_evm_defconfig | 7 ++- include/configs/am43xx_evm.h | 4 4 f

[U-Boot] [PATCH 1/3] ARM: dts: am43xx: Add u-boot specific dtsi

2017-02-13 Thread Lokesh Vutla
Add u-boot specific dtsi for am43xx-gp-evm so that it will be used for SPL. Signed-off-by: Lokesh Vutla --- arch/arm/dts/am437x-gp-evm-u-boot.dtsi | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 arch/arm/dts/am437x-gp-evm-u-boot.dtsi diff --git a/ar

[U-Boot] [PATCH 2/3] config: am43xx_usbhost_boot: sync with am43xx_evm

2017-02-13 Thread Lokesh Vutla
am43xx_evm defconfig has been modified without making changes in am43xx_usbhost_boot defconfig. Synce here. Signed-off-by: Lokesh Vutla --- - The only reason to have usbhost defconfig is that the load address is different from that of other bootmodes. configs/am43xx_evm_usbhost_boot_defconfig

[U-Boot] [PATCH 0/3] ARM: AM43xx: Enable SPL_DM

2017-02-13 Thread Lokesh Vutla
Enable SPL_DM on all AM4xx based boards. This series depends on: - DRA7 SPL_DM series[1] - http://patchwork.ozlabs.org/patch/727106/ [1] https://www.mail-archive.com/u-boot@lists.denx.de/msg238751.html Lokesh Vutla (3): ARM: dts: am43xx: Add u-boot specific dtsi config: am43xx_usbhost_boot:

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

2017-02-13 Thread Lokesh Vutla
On Monday 13 February 2017 05:42 PM, Uri Mashiach wrote: > > > 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 wrot

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: ig

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 tag

[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 binary

  1   2   >