[U-Boot] [PATCH 6/6] mmc: sdhci: drop CONFIG_ from CONFIG_SDHCI_CMD_MAX_TIMEOUT

2016-08-25 Thread Masahiro Yamada
No need for per-SoC adjustment for this parameter. It should be determined by the slowest hardware. Currently, no board overrides this CONFIG, so 3.2 sec is large enough. (If not, we can make it even larger.) Signed-off-by: Masahiro Yamada --- drivers/mmc/sdhci.c | 6 ++ 1 file changed,

[U-Boot] [PATCH 1/6] mmc: sdhci: move sdhci_reset() call to sdhci_init()

2016-08-25 Thread Masahiro Yamada
If CONFIG_BLK is enabled, add_sdhci() is never called. So, sdhci_reset() is not called, either. This is a problem for my board as it needs the reset to start from a sane state. Move the add_sdhci() call to sdhci_init(), which is visited by both of the with/without CONFIG_BLK cases. Signed-off-by

[U-Boot] [PATCH 4/6] mmc: sdhci: move SDMA capability check to sdhci_setup_cfg()

2016-08-25 Thread Masahiro Yamada
If CONFIG_BLK is enabled, add_sdhci() is never called. Move this quirk handling to sdhci_setup_cfg(), which is now the central place for hardware capability checks. Signed-off-by: Masahiro Yamada --- drivers/mmc/sdhci.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-)

[U-Boot] [PATCH 3/6] mmc: sdhci: move broken voltage quirk handling to sdhci_setup_cfg()

2016-08-25 Thread Masahiro Yamada
If CONFIG_BLK is enabled, add_sdhci() is never called. Move this quirk handling to sdhci_setup_cfg(), which is now the central place for hardware capability checks. Signed-off-by: Masahiro Yamada --- drivers/mmc/sdhci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/

[U-Boot] [PATCH 0/6] mmc: sdhci: some fixes for CONFIG_BLK migration and macro renaming

2016-08-25 Thread Masahiro Yamada
Masahiro Yamada (6): mmc: sdhci: move sdhci_reset() call to sdhci_init() mmc: sdhci: move error message to more relevant place mmc: sdhci: move broken voltage quirk handling to sdhci_setup_cfg() mmc: sdhci: move SDMA capability check to sdhci_setup_cfg() mmc: sdhci: drop CONFIG_ from C

[U-Boot] [PATCH 2/6] mmc: sdhci: move error message to more relevant place

2016-08-25 Thread Masahiro Yamada
"Hardware doesn't specify base clock frequency" may not be only the error case of sdhci_setup_cfg(). It is better to print this where the corresponding error is triggered. Signed-off-by: Masahiro Yamada --- drivers/mmc/sdhci.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(

[U-Boot] [PATCH 5/6] mmc: sdhci: drop CONFIG_ from CONFIG_SDHCI_CMD_DEFAULT_TIME

2016-08-25 Thread Masahiro Yamada
This CONFIG is not configurable since it is not guarded by #ifndef. Nobody has complained about that, so there is no need to keep it as a CONFIG option. Signed-off-by: Masahiro Yamada --- drivers/mmc/sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/sdh

[U-Boot] [PATCH v2 1/6] mmc: sdhci: move sdhci_reset() call to sdhci_init()

2016-08-25 Thread Masahiro Yamada
If CONFIG_BLK is enabled, add_sdhci() is never called. So, sdhci_reset() is not called, either. This is a problem for my board as it needs the reset to start from a sane state. Move the add_sdhci() call to sdhci_init(), which is visited by both of the with/without CONFIG_BLK cases. Signed-off-by

[U-Boot] [PATCH v2 0/6] mmc: sdhci: some fixes for CONFIG_BLK migration and macro renaming

2016-08-25 Thread Masahiro Yamada
Changes in v2: - Adjust comment block Masahiro Yamada (6): mmc: sdhci: move sdhci_reset() call to sdhci_init() mmc: sdhci: move error message to more relevant place mmc: sdhci: move broken voltage quirk handling to sdhci_setup_cfg() mmc: sdhci: move SDMA capability check to sdhci_setup

[U-Boot] [PATCH v2 5/6] mmc: sdhci: drop CONFIG_ from CONFIG_SDHCI_CMD_DEFAULT_TIME

2016-08-25 Thread Masahiro Yamada
This CONFIG is not configurable since it is not guarded by #ifndef. Nobody has complained about that, so there is no need to keep it as a CONFIG option. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mmc/sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[U-Boot] [PATCH v2 3/6] mmc: sdhci: move broken voltage quirk handling to sdhci_setup_cfg()

2016-08-25 Thread Masahiro Yamada
If CONFIG_BLK is enabled, add_sdhci() is never called. Move this quirk handling to sdhci_setup_cfg(), which is now the central place for hardware capability checks. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mmc/sdhci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

[U-Boot] [PATCH v2 6/6] mmc: sdhci: drop CONFIG_ from CONFIG_SDHCI_CMD_MAX_TIMEOUT

2016-08-25 Thread Masahiro Yamada
No need for per-SoC adjustment for this parameter. It should be determined by the slowest hardware. Currently, no board overrides this CONFIG, so 3.2 sec is large enough. (If not, we can make it even larger.) Signed-off-by: Masahiro Yamada --- Changes in v2: - Adjust comment block drivers

[U-Boot] [PATCH v2 4/6] mmc: sdhci: move SDMA capability check to sdhci_setup_cfg()

2016-08-25 Thread Masahiro Yamada
If CONFIG_BLK is enabled, add_sdhci() is never called. Move this quirk handling to sdhci_setup_cfg(), which is now the central place for hardware capability checks. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mmc/sdhci.c | 19 --- 1 file changed, 8 insertion

[U-Boot] [PATCH v2 2/6] mmc: sdhci: move error message to more relevant place

2016-08-25 Thread Masahiro Yamada
"Hardware doesn't specify base clock frequency" may not be only the error case of sdhci_setup_cfg(). It is better to print this where the corresponding error is triggered. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mmc/sdhci.c | 15 +-- 1 file changed, 9 insert

[U-Boot] [PATCH] board/BuR/common: increase NET_RETRY_COUNT to 10

2016-08-25 Thread Hannes Schmelzer
Sometimes boards may need more time to become stable network connection due to several reasons: - phy speed - link-partner (switch) Therefore we increase the retry-count to 10 for making sure that network connection works always. Signed-off-by: Hannes Schmelzer --- include/configs/bur_cfg_co

Re: [U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-25 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 08/24/2016 12:39 PM, Sriram Dash wrote: >> Currently the controller by default enables the Receive Detect feature >> in P3 mode in USB 3.0 PHY. However, USB 3.0 PHY does not reliably >> support receive detection in P3 mode. >> Enabling the USB3 controll

[U-Boot] [PATCH 3/3] ARM: dts: uniphier: add u-boot, dm-pre-reloc to use eMMC boot on sLD3

2016-08-25 Thread Masahiro Yamada
The eMMC on sLD3 is assigned with dedicated pins (only multiplexed with GPIO), so it shouldn't hurt to enable eMMC on SPL all the time. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ph1-sld3-ref.dts | 8 arch/arm/dts/uniphier-ph1-sld3.dtsi| 1 + 2 files changed, 9 insert

[U-Boot] [PATCH 2/3] ARM: uniphier: increase CONFIG_SYS_MALLOC_F_LEN for sLD3

2016-08-25 Thread Masahiro Yamada
Commit 76c52ce29fd7 ("ARM: uniphier: increase CONFIG_SYS_MALLOC_F_LEN to bind all nodes") missed to increase this config for sLD3. This change is needed to add "u-boot,dm-pre-reloc" to some nodes; more devices are bound, more malloc memory is needed. Signed-off-by: Masahiro Yamada --- configs/

[U-Boot] [PATCH 1/3] ARM: uniphier: display revision of Micro Support Card 3.6.x kindly

2016-08-25 Thread Masahiro Yamada
The revision of the original support card (rev 3.5, rev 3.6) fits in the 8 bit width revision register. When it was extended in a weird way, it was versioned in the format of "3.6.x" (where it should have been "3.7", of course). What is worse, only the sub-level version "6.x" was recorded in the

[U-Boot] [PATCH 0/3] ARM: uniphier: some more fixes for v2016.09

2016-08-25 Thread Masahiro Yamada
Masahiro Yamada (3): ARM: uniphier: display revision of Micro Support Card 3.6.x kindly ARM: uniphier: increase CONFIG_SYS_MALLOC_F_LEN for sLD3 ARM: dts: uniphier: add u-boot,dm-pre-reloc to use eMMC boot on sLD3 arch/arm/dts/uniphier-ph1-sld3-ref.dts | 8 arch/arm/dts/uni

Re: [U-Boot] [PATCH 1/2] fastboot: more support for reboot-bootloader command

2016-08-25 Thread Paul Kocialkowski
Le mercredi 24 août 2016 à 16:52 -0700, Steve Rae a écrit : > So, I wanted to: > (1) simplify this to not depend on any env variable, and not depend on > the CONFIG_BOOTCOMMAND (can this be accidentally wiped out in the > environment?) I'm not sure it really simplifies much. fastboot is a boot com

Re: [U-Boot] [PATCH v1] cmd/sf: probe flash with speed of last known flash or speed from devicetree

2016-08-25 Thread Vignesh R
On Wednesday 24 August 2016 07:40 PM, Hannes Schmelzer wrote: > On 08/24/2016 02:21 PM, Hannes Schmelzer wrote: >> On 08/24/2016 01:12 PM, Vignesh R wrote: >>> >>> On Wednesday 24 August 2016 04:21 PM, Hannes Schmelzer wrote: On 08/24/2016 12:35 PM, Vignesh R wrote: [...] >>> AFAIU, saveen

[U-Boot] [PATCH v2 3/3] x86: qemu: efi: Add two boards for EFI 32-bit and 64-bit payload

2016-08-25 Thread Bin Meng
This introduces two board defconfig files for generating EFI 32-bit and 64-bit payloads, to run on QEMU x86 target. With these in place, hopefully buildman will catch any build error with EFI payload support on x86. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - Add mai

[U-Boot] [PATCH v2 2/3] x86: efi: Fix EFI 64-bit payload build warnings

2016-08-25 Thread Bin Meng
There are lots of warnings when building EFI 64-bit payload. include/asm-generic/bitops/__fls.h:17:2: warning: left shift count >= width of type if (!(word & (~0ul << 32))) { ^ In fact, U-Boot itself as EFI payload is running in 32-bit mode. So BITS_PER_LONG need

[U-Boot] [PATCH v2 1/3] x86: efi: payload: Make EFI payload build again

2016-08-25 Thread Bin Meng
Since commit 73c5c39 "Makefile: Drop unnecessary -dtb suffixes", EFI payload does not build anymore. This fixes the build. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None include/efi.h | 2 +- lib/efi/efi_stub.c | 6 +++--- 2 files changed, 4 insertions(+), 4 del

Re: [U-Boot] mx7: ums command does not mount SD card partitions

2016-08-25 Thread Ye Li
Hi Fabio, I just tried 'ums' on mx7d sabresd with latest u-boot-imx codes. It works well on my board. I don't see your issue. My SD card has a FAT partition. I can access it from my host after running the "ums 0 mmc 0". Best regards, Ye Li -Original Message- From: U-Boot [mailto:u-bo

Re: [U-Boot] [PATCH v1] cmd/sf: probe flash with speed of last known flash or speed from devicetree

2016-08-25 Thread Hannes Schmelzer
On 08/25/2016 10:39 AM, Vignesh R wrote: On Wednesday 24 August 2016 07:40 PM, Hannes Schmelzer wrote: On 08/24/2016 02:21 PM, Hannes Schmelzer wrote: On 08/24/2016 01:12 PM, Vignesh R wrote: On Wednesday 24 August 2016 04:21 PM, Hannes Schmelzer wrote: On 08/24/2016 12:35 PM, Vignesh R wrot

[U-Boot] [PATCH] ARM: uniphier: change UNIPHIER_SERIAL to default y option

2016-08-25 Thread Masahiro Yamada
This is very likely to be necessary for normal use cases. Set its default to 'y' for shorter defconfig files. Signed-off-by: Masahiro Yamada --- configs/uniphier_ld11_defconfig | 1 - configs/uniphier_ld20_defconfig | 1 - configs/uniphier_ld4_sld8_defconfig | 1 - configs/uniphier_p

Re: [U-Boot] [PATCH v1] cmd/sf: probe flash with speed of last known flash or speed from devicetree

2016-08-25 Thread Vignesh R
On Thursday 25 August 2016 03:02 PM, Hannes Schmelzer wrote: > On 08/25/2016 10:39 AM, Vignesh R wrote: >> >> On Wednesday 24 August 2016 07:40 PM, Hannes Schmelzer wrote: >>> On 08/24/2016 02:21 PM, Hannes Schmelzer wrote: On 08/24/2016 01:12 PM, Vignesh R wrote: > On Wednesday 24 Augus

[U-Boot] [RFC v1 PATCH] ARM7: Kconfig: cache: fix cacheline size based on arm type

2016-08-25 Thread Ravi Babu
The CONFIG_SYS_CACHELINE_SIZE is not defined for some of the platforms due to which buildman iill fail for these platforms. Fixing this issue in generic way in Kconfig by selecting cacheline size based on arm processor type. This patch is based on linux kernel commit 5637a126 Signed-off-by: Ravi

Re: [U-Boot] [PATCH] sf: fix sf probe

2016-08-25 Thread Stefan Roese
(Added Tom to Cc) On 17.08.2016 09:19, Wenyou Yang wrote: From: Cyrille Pitchen This patch fixes the "sf probe" command. The very first SPI flash probe passes, for instance when u-boot tries to read its environment settings from a (Q)SPI memory but next "sf probe" commands fail because the fla

[U-Boot] [PATCH] net: mvneta: Round up top tx buffer boundaries for dcache ops

2016-08-25 Thread Stefan Roese
check_cache_range() warns that the top boundaries are not properly aligned when flushing or invalidating the buffers and make these operations fail. This gets rid of the warnings: CACHE: Misaligned operation at range ... Signed-off-by: Stefan Roese Cc: Joe Hershberger --- drivers/net/mvneta.c

[U-Boot] [PATCH] ARM: uniphier: support system reset functionality for PSCI

2016-08-25 Thread Masahiro Yamada
This supports the system reset via PSCI for ARMv7 SoCs. Because the system reset is not supported on PSCI 0.1, let's define CONFIG_ARMV7_PSCI_1_0. (it is supported since PSCI 0.2, but there is no CONFIG to enable it in U-Boot for now.) Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/

[U-Boot] [PATCH] nand: arasan_nfc: Clear ecc on bit while sending read command

2016-08-25 Thread Siva Durga Prasad Paladugu
Clear ecc ON bit while sending read command as all types of read command(like reading spare) doesnt need ECC to be enabled. It has been anyway taken care in other places whereever required using arasan_nand_enable_ecc(). Signed-off-by: Siva Durga Prasad Paladugu --- drivers/mtd/nand/arasan_nfc.c

Re: [U-Boot] [PATCH v3 1/7] usb: xhci-rockchip: add rockchip dwc3 controller driver

2016-08-25 Thread Simon Glass
On 23 August 2016 at 22:02, Kever Yang wrote: > From: MengDongyang > > This patch add support for rockchip dwc3 controller, which corresponding > to the two type-C port on rk3399 evb. > Only support usb2.0 currently for we have not enable the usb3.0 phy > driver and PD(fusb302) driver. > > Signed

Re: [U-Boot] [PATCH 02/42] moveconfig: Add an option to commit changes

2016-08-25 Thread Simon Glass
Hi Masshiro, On 24 August 2016 at 19:40, Masahiro Yamada wrote: > 2016-08-25 1:51 GMT+09:00 Simon Glass : >> The moveconfig tool is quite clever and generally produces results that >> are suitable for sending as a patch without further work. The main required >> step is to add the changes to a co

Re: [U-Boot] [PATCH 01/42] moveconfig: Add an option to skip prompts

2016-08-25 Thread Simon Glass
Hi Masahiro, On 24 August 2016 at 19:45, Masahiro Yamada wrote: > Hi Simon, > > > 2016-08-25 1:51 GMT+09:00 Simon Glass : >> At present it is not easy to use moveconfig from a script since it asks >> for user input a few times. Add a -y option to skip this and assume that >> 'y' was entered. > >

Re: [U-Boot] [PATCH 32/42] Convert CONFIG_SPL_PINCTRL_SUPPORT to Kconfig

2016-08-25 Thread Simon Glass
Hi Masahiro, On 24 August 2016 at 19:34, Masahiro Yamada wrote: > 2016-08-25 1:52 GMT+09:00 Simon Glass : >> Move this option to Kconfig and tidy up existing uses. >> >> Signed-off-by: Simon Glass >> --- >> >> configs/chromebook_jerry_defconfig | 1 + >> configs/evb-rk3288_defconfig | 1 +

Re: [U-Boot] [PATCH 07/42] Kconfig: spl: Add SPL support options to Kconfig

2016-08-25 Thread Simon Glass
Hi Masahiro, On 24 August 2016 at 19:28, Masahiro Yamada wrote: > 2016-08-25 1:51 GMT+09:00 Simon Glass : >> There are a lot of SPL options in U-Boot to enable various features and >> drivers. Currently these do not use Kconfig. Add them to Kconfig along >> with suitable help, and drop them from

Re: [U-Boot] [PATCH 00/42] Kconfig: Move CONFIG_SPL_..._SUPPORT to Kconfig

2016-08-25 Thread Simon Glass
Hi Heiko, On 24 August 2016 at 22:30, Heiko Schocher wrote: > Hello Simon, > > > Am 24.08.2016 um 18:51 schrieb Simon Glass: >> >> This series moves all the CONFIG_SPL_..._SUPPORT options to Kconfig and >> fixes up existing boards to continue to build. > >> >> >> It also adds a few small but usef

Re: [U-Boot] [RFC PATCH 2/2] Makefile: Give a build error if ad-hoc CONFIG options are added

2016-08-25 Thread Simon Glass
Hi Stephen, On 24 August 2016 at 10:24, Stephen Warren wrote: > On 08/24/2016 08:44 AM, Simon Glass wrote: >> >> New CONFIG options should be added via Kconfig. To help prevent new ad-hoc >> CONFIGs from being added, give a build error when these are detected. > > > Acked-by: Stephen Warren > Te

Re: [U-Boot] [PATCH] rockchip: Disable SPL_MMC_SUPPORT if ROCKCHIP_SPL_BACK_TO_BROM is enabled.

2016-08-25 Thread Simon Glass
Hi Sandy, On 24 August 2016 at 15:00, Sandy Patterson wrote: > > On Wed, Aug 24, 2016 at 9:27 AM, Sandy Patterson > wrote: >> >> >> On Fri, Aug 12, 2016 at 8:59 PM, Sandy Patterson >> wrote: >>> >>> CONFIG_SPL_MMC_SUPPORT is used pretty much for every board except jerry, >>> so we can refactor

Re: [U-Boot] [PATCH 06/42] Use separate options for TPL support

2016-08-25 Thread Simon Glass
Hi Stephen, On 24 August 2016 at 12:16, Stephen Warren wrote: > On 08/24/2016 10:51 AM, Simon Glass wrote: >> >> At present TPL uses the same options as SPL support. In a few cases the >> board >> config enables or disables the SPL options depending on whether >> CONFIG_TPL_BUILD is defined. >> >

Re: [U-Boot] [PATCH 06/42] Use separate options for TPL support

2016-08-25 Thread Simon Glass
Hi Masahiro, On 24 August 2016 at 20:20, Masahiro Yamada wrote: > 2016-08-25 1:51 GMT+09:00 Simon Glass : >> At present TPL uses the same options as SPL support. In a few cases the board >> config enables or disables the SPL options depending on whether >> CONFIG_TPL_BUILD is defined. >> >> With

Re: [U-Boot] [PATCH 19/42] Convert CONFIG_SPL_GPIO_SUPPORT to Kconfig

2016-08-25 Thread Simon Glass
Hi, On 24 August 2016 at 13:30, Tom Rini wrote: > On Wed, Aug 24, 2016 at 08:01:54PM +0200, Maxime Ripard wrote: >> Hi Simon, >> >> On Wed, Aug 24, 2016 at 10:52:03AM -0600, Simon Glass wrote: >> > Move this option to Kconfig and tidy up existing uses. >> > >> > Signed-off-by: Simon Glass >> > -

Re: [U-Boot] mx7: ums command does not mount SD card partitions

2016-08-25 Thread Fabio Estevam
Hi Ye Li, On Thu, Aug 25, 2016 at 3:25 AM, Ye Li wrote: > Hi Fabio, > >I just tried 'ums' on mx7d sabresd with latest u-boot-imx codes. It works > well on my board. I don't see your issue. My SD card has a FAT partition. I > can access it from my host after running the "ums 0 mmc 0". Thank

[U-Boot] [PATCH] i2c: mvtwsi: Fix order of address bytes (high to low)

2016-08-25 Thread Stefan Roese
Patch f8a10ed1 [i2c: mvtwsi: Make address length variable] accidentally inverted the sequence of address bytes sent to the I2C device. This patch corrects this by sending the highest byte first and the lowest byte last again. Tested on theadorable Armada-XP board. Signed-off-by: Stefan Roese Cc:

Re: [U-Boot] [RFC v1 PATCH] ARM7: Kconfig: cache: fix cacheline size based on arm type

2016-08-25 Thread Tom Rini
On Thu, Aug 25, 2016 at 03:55:16PM +0530, Ravi Babu wrote: > The CONFIG_SYS_CACHELINE_SIZE is not defined for > some of the platforms due to which buildman iill > fail for these platforms. > > Fixing this issue in generic way in Kconfig by > selecting cacheline size based on arm processor type. >

Re: [U-Boot] [PATCH 1/1] ARM: Move SYS_CACHELINE_SIZE over to Kconfig

2016-08-25 Thread Adam Ford
On Sun, Aug 21, 2016 at 8:30 AM, Tom Rini wrote: > This series moves the CONFIG_SYS_CACHELINE_SIZE. First, in nearly all cases > we > are mirroring the values used by the Linux Kernel here. Also, so long as (and > in this case, it is true) we implement flushes in hunks that are no larger > tha

Re: [U-Boot] [PATCH 00/42] Kconfig: Move CONFIG_SPL_..._SUPPORT to Kconfig

2016-08-25 Thread Adam Ford
On Wed, Aug 24, 2016 at 11:51 AM, Simon Glass wrote: > This series moves all the CONFIG_SPL_..._SUPPORT options to Kconfig and > fixes up existing boards to continue to build. > Tested on DM3730 (OMAP3630) and it seems to work. Tested by Adam Ford > It also adds a few small but useful features

[U-Boot] [PATCH] arm: mvebu: theadorable: Configure board for PCIe 2.0 capability

2016-08-25 Thread Stefan Roese
Use a board-specific board_sat_r_get() function to configure the board for PCIe 2.0 capability (e.g. 5GB/s link speed). Otherwise the default of 2.5GB/s will be established. Signed-off-by: Stefan Roese --- board/theadorable/theadorable.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/

Re: [U-Boot] [RFC v1 PATCH] ARM7: Kconfig: cache: fix cacheline size based on arm type

2016-08-25 Thread Lukasz Majewski
Hi Tom, > On Thu, Aug 25, 2016 at 03:55:16PM +0530, Ravi Babu wrote: > > > The CONFIG_SYS_CACHELINE_SIZE is not defined for > > some of the platforms due to which buildman iill > > fail for these platforms. > > > > Fixing this issue in generic way in Kconfig by > > selecting cacheline size based

[U-Boot] [PATCH 0/3] AM57x EVM: Enable USB DFU support

2016-08-25 Thread Sekhar Nori
Hi, Here is a patch series that enables USB DFU support on AM57x GP EVM. Thanks, Sekhar Sekhar Nori (3): configs: dra7xx: get rid of duplicate #define board: ti: am57xx-evm: fix build warnings ARM: am57xx_evm: enable DFU support board/ti/am57xx/board.c | 20 -- co

[U-Boot] [PATCH 1/3] configs: dra7xx: get rid of duplicate #define

2016-08-25 Thread Sekhar Nori
CONFIG_DFU_RAM is repeated twice in dra7xx_evm.h file. Remove the duplicate. Signed-off-by: Sekhar Nori --- include/configs/dra7xx_evm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index b66949f4155b..4ea993d3f5db 100644 --- a/in

[U-Boot] [PATCH 2/3] board: ti: am57xx-evm: fix build warnings

2016-08-25 Thread Sekhar Nori
USB1 is not used on AM57xx GP EVM in device mode. Enabling DWC3 USB support for AM57xx EVM gives the following warnings: CC board/ti/am57xx/board.o ../board/ti/am57xx/board.c:448:27: warning: 'usb_otg_ss1' defined but not used [-Wunused-variable] static struct dwc3_device usb_otg_ss1 = {

[U-Boot] [PATCH 3/3] ARM: am57xx_evm: enable DFU support

2016-08-25 Thread Sekhar Nori
AM57xx GP EVM has USB2 port of the SoC exposed as USB client port. It is useful to be able to use this port for USB DFU downloads. Enable USB DFU support. Tested on AM57x GP EVM Rev A3 using DFU to download to connected SD card, on board eMMC and to the RAM. Also tested to make sure connected ma

Re: [U-Boot] OMAP3 SPL Overflow

2016-08-25 Thread Adam Ford
On Mon, Aug 22, 2016 at 7:08 AM, Tom Rini wrote: > On Mon, Aug 22, 2016 at 10:13:24AM +0530, Lokesh Vutla wrote: >> >> >> On Sunday 21 August 2016 06:15 PM, Tom Rini wrote: >> > On Sun, Aug 21, 2016 at 06:29:42AM -0500, Adam Ford wrote: >> > >> >> Using Git bisect, it appears to me that >> >> a78c

Re: [U-Boot] [PATCH 3/3] nitrogen6x: add secure boot support

2016-08-25 Thread Fabio Estevam
Hi Gary, On Wed, Aug 24, 2016 at 7:17 AM, Gary Bisson wrote: >> I agree with the comment in your cover letter, that this belongs >> in a common place. > > Does Fabio agree with that? Also, should we differenciate the options What about placing the options below: +/* Secure boot (HAB) support *

Re: [U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Change burst beat and outstanding pipelined transfers requests

2016-08-25 Thread york sun
On 08/24/2016 07:25 PM, Marek Vasut wrote: > On 08/24/2016 07:41 PM, york sun wrote: >> Ha! I misunderstood. I read this >> "Enable burst length set, and define it as 4/8/16" and somehow my brain >> interpreted it as a date. I must be traveling too much recently. :) > > And now you're even top-post

Re: [U-Boot] [PATCH] net: mvneta: Round up top tx buffer boundaries for dcache ops

2016-08-25 Thread Joe Hershberger
On Thu, Aug 25, 2016 at 6:19 AM, Stefan Roese wrote: > check_cache_range() warns that the top boundaries are not properly > aligned when flushing or invalidating the buffers and make these > operations fail. > > This gets rid of the warnings: > CACHE: Misaligned operation at range ... > > Signed-o

[U-Boot] [PATCH v2 3/5] mx6_common: add secure boot support

2016-08-25 Thread Gary Bisson
Selecting the proper options to enable the build of the HAB tools. Note, this support is disabled by default, one will have to select the SECURE_BOOT configuration through menuconfig to enable it. See doc/README.mxc_hab for more details. Signed-off-by: Gary Bisson --- include/configs/mx6_commo

[U-Boot] [PATCH v2 0/5] Add i.MX HAB encryption support

2016-08-25 Thread Gary Bisson
Hi all, This patch is actually a follow-up of the one from Peng Fan: https://patchwork.ozlabs.org/patch/616568/ As he mentioned at the time, the current i.MX source code doesn't allow to build a U-Boot that supports encryption features (dek commands). The reason is that the commit 2bb01482 did so

[U-Boot] [PATCH v2 2/5] arm: imx-common: introduce back usec2ticks

2016-08-25 Thread Gary Bisson
From: Peng Fan This commit "2bb014820c49a63902103bac710bc86b5772e843" do some clean up to use the code in lib/time.c. But usec2ticks is still being used by security related job ring code. Bring back the function to avoid build break when CONFIG_FSL_CAAM is defined. The computation logic has been

[U-Boot] [PATCH v2 1/5] arm: imx-common: add SECURE_BOOT option to Kconfig

2016-08-25 Thread Gary Bisson
So the option can easily be selected through menuconfig. Signed-off-by: Gary Bisson --- arch/arm/imx-common/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/imx-common/Kconfig b/arch/arm/imx-common/Kconfig index 1b7da5a..1a09a2c 100644 --- a/arch/arm/imx-common/Kconfig

[U-Boot] [PATCH v2 5/5] nitrogen6x: add secure boot support

2016-08-25 Thread Gary Bisson
Declaring a CSF section makes the imximage tool increase the size of data to be loaded by the BootROM and also adds a pointer to that CSF section in the IVT header to the BootROM can check the signature. Signed-off-by: Gary Bisson --- board/boundary/nitrogen6x/nitrogen6dl.cfg | 3 +++ board/bo

[U-Boot] [PATCH v2 4/5] mx7_common: add secure boot support

2016-08-25 Thread Gary Bisson
Selecting the proper options to enable the build of the HAB tools. Note, this support is disabled by default, one will have to select the SECURE_BOOT configuration through menuconfig to enable it. See doc/README.mxc_hab for more details. Also remove duplicate options from board config headers.

[U-Boot] [PATCH] common/xyzModem.c: Fix delay timeout calculation

2016-08-25 Thread Andrew F. Davis
When waiting for input in CYGACC_COMM_IF_GETC_TIMEOUT we delay 2 seconds by incrementing and checking a counter variable every 20 uSeconds. The overhead in the loop calling tstc() millions of times causes the timeout to be closer to 20 seconds. Delay longer per iteration to reduce overhead and brin

[U-Boot] [PATCH] timer: Fix possible underflow in udelay

2016-08-25 Thread Andrew F. Davis
When the inputed usec is too large we process it in chunks of CONFIG_WD_PERIOD size. Subtracting this from usec until usec is zero. If usec is not an integer multiple of CONFIG_WD_PERIOD it will underflow and the condition will not become false when it should. Fix this logic. Signed-off-by: Andrew

[U-Boot] [PATCH] warp7: Adjust CONFIG_MMCROOT for booting a mainline kernel

2016-08-25 Thread Fabio Estevam
When booting a mainline kernel on warp7 we have: - mmc0: Wifi SDIO chip - mmc1: eMMC , so point CONFIG_MMCROOT to use mmcblk1 instead. Signed-off-by: Fabio Estevam --- include/configs/warp7.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/warp7.h b/include/c

[U-Boot] [PATCH] common/xyzModem.c: Fix delay timeout calculation

2016-08-25 Thread Andrew F. Davis
When waiting for input in CYGACC_COMM_IF_GETC_TIMEOUT we delay 2 seconds by incrementing and checking a counter variable every 20 uSeconds. The overhead in the loop calling tstc() millions of times causes the timeout to be closer to 20 seconds. Delay longer per iteration to reduce overhead and brin

Re: [U-Boot] [PATCH] timer: Fix possible underflow in udelay

2016-08-25 Thread Troy Kisky
On 8/25/2016 11:40 AM, Andrew F. Davis wrote: > When the inputed usec is too large we process it in chunks of > CONFIG_WD_PERIOD size. Subtracting this from usec until usec is > zero. If usec is not an integer multiple of CONFIG_WD_PERIOD it > will underflow and the condition will not become false

Re: [U-Boot] [PATCH] timer: Fix possible underflow in udelay

2016-08-25 Thread Andrew F. Davis
On 08/25/2016 02:02 PM, Troy Kisky wrote: > On 8/25/2016 11:40 AM, Andrew F. Davis wrote: >> When the inputed usec is too large we process it in chunks of >> CONFIG_WD_PERIOD size. Subtracting this from usec until usec is >> zero. If usec is not an integer multiple of CONFIG_WD_PERIOD it >> will un

Re: [U-Boot] [PATCH] warp7: Adjust CONFIG_MMCROOT for booting a mainline kernel

2016-08-25 Thread Otavio Salvador
On Thu, Aug 25, 2016 at 3:27 PM, Fabio Estevam wrote: > When booting a mainline kernel on warp7 we have: > - mmc0: Wifi SDIO chip > - mmc1: eMMC > > , so point CONFIG_MMCROOT to use mmcblk1 instead. > > Signed-off-by: Fabio Estevam As far as I know, the sold WaRP7 boards are shipped with the NXP

Re: [U-Boot] [PATCH] warp7: Adjust CONFIG_MMCROOT for booting a mainline kernel

2016-08-25 Thread Fabio Estevam
Hi Otavio, On Thu, Aug 25, 2016 at 5:13 PM, Otavio Salvador wrote: > On Thu, Aug 25, 2016 at 3:27 PM, Fabio Estevam wrote: >> When booting a mainline kernel on warp7 we have: >> - mmc0: Wifi SDIO chip >> - mmc1: eMMC >> >> , so point CONFIG_MMCROOT to use mmcblk1 instead. >> >> Signed-off-by: Fa

Re: [U-Boot] [PATCH] spi: tegra: fix hand in set_mode()

2016-08-25 Thread Tom Warren
Jagan, Are you planning on taking this in via the SPI repo, or can I take it in to Tegra? Tom > -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Saturday, August 20, 2016 7:17 PM > To: Simon Glass > Cc: U-Boot Mailing List ; Jagan Teki > ; Tom Warren ; S

Re: [U-Boot] [PATCH] warp7: Adjust CONFIG_MMCROOT for booting a mainline kernel

2016-08-25 Thread Otavio Salvador
On Thu, Aug 25, 2016 at 5:26 PM, Fabio Estevam wrote: > On Thu, Aug 25, 2016 at 5:13 PM, Otavio Salvador > wrote: >> On Thu, Aug 25, 2016 at 3:27 PM, Fabio Estevam wrote: >>> When booting a mainline kernel on warp7 we have: >>> - mmc0: Wifi SDIO chip >>> - mmc1: eMMC >>> >>> , so point CONFIG_MM

[U-Boot] [PATCH 1/3] warp7: Add a secure mode target

2016-08-25 Thread Fabio Estevam
From: Fabio Estevam NXP kernel expects to boot in secure mode, so introduce warp7_secure_defconfig target which selects CONFIG_ARMV7_BOOT_SEC_DEFAULT. Signed-off-by: Fabio Estevam --- configs/warp7_secure_defconfig | 36 1 file changed, 36 insertions(+) c

[U-Boot] [PATCH 2/3] warp7: Handle mmcroot for mainline and NXP

2016-08-25 Thread Fabio Estevam
From: Fabio Estevam The rootfs appears at mmcblk2 in the NXP kernel and at mmcblk1 in mainline kernel. Load the correct mmcblk device depending on the selection of the CONFIG_ARMV7_BOOT_SEC_DEFAULT variable. CONFIG_ARMV7_BOOT_SEC_DEFAULT is selected in warp7_secure_defconfig, which is used to b

[U-Boot] [PATCH 3/3] warp7: Print secure/non-secure mode info

2016-08-25 Thread Fabio Estevam
From: Fabio Estevam warp7 has two targets: - warp7_defconfig: boots in non-secure mode - warp7_secure_defconfig: boots in secure mode Print the mode that is being used to help users to easily identify which target is running on the board. Signed-off-by: Fabio Estevam --- board/warp7/

Re: [U-Boot] [PATCH] warp7: Adjust CONFIG_MMCROOT for booting a mainline kernel

2016-08-25 Thread Fabio Estevam
On Thu, Aug 25, 2016 at 5:56 PM, Otavio Salvador wrote: > Well ... > > warp7: Select secure boot > > In order to boot NXP 4.1.15 we need to boot in secure mode. > > So enable the variable CONFIG_ARMV7_BOOT_SEC_DEFAULT by default. > > Signed-off-by: Breno Lima > > From Breno, sent to the mailing

Re: [U-Boot] [PATCH 1/3] warp7: Add a secure mode target

2016-08-25 Thread Otavio Salvador
On Thu, Aug 25, 2016 at 5:57 PM, Fabio Estevam wrote: > From: Fabio Estevam > > NXP kernel expects to boot in secure mode, so introduce > warp7_secure_defconfig target which selects CONFIG_ARMV7_BOOT_SEC_DEFAULT. > > Signed-off-by: Fabio Estevam Breno has sent the patch to include this on the m

Re: [U-Boot] [PATCH] warp7: Adjust CONFIG_MMCROOT for booting a mainline kernel

2016-08-25 Thread Otavio Salvador
On Thu, Aug 25, 2016 at 6:01 PM, Fabio Estevam wrote: > On Thu, Aug 25, 2016 at 5:56 PM, Otavio Salvador > wrote: ... >> Someone using mainline kernel is expected to know how to set mmcroot >> variable or so. I would not include this patch at all. > > This would be a bad customer experience. Much

[U-Boot] [PATCH v3 01/11] spl: Kconfig: Add SPL__BOOT as Kconfig option

2016-08-25 Thread Andrew F. Davis
Currently U-Boot proper has Kconfig options that enable the generation of U-Boot binaries that are capable of being booted from the selected boot media type. The same set of generation targets for SPL are assumed with various methods and config header hackery. On some platforms the options for SPL,

[U-Boot] [PATCH v3 03/11] am33xx: config.mk: Add support for additional secure boot image types

2016-08-25 Thread Andrew F. Davis
Depending on the boot media, different images are needed for secure devices. The build generates u-boot*_HS_* files as appropriate for the different boot modes. For AM33xx devices additional image types are needed for various SPL boot modes as the ROM checks for the name of the boot mode in the fi

[U-Boot] [PATCH v3 07/11] ti: omap-common: Allow AM33xx devices to be built securely

2016-08-25 Thread Andrew F. Davis
Like OMAP54xx and AM43xx family SoCs, AM33xx based SoCs have high security enabled models. Allow AM33xx devices to be built with HS Device Type Support. Signed-off-by: Andrew F. Davis --- arch/arm/cpu/armv7/omap-common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a

[U-Boot] [RFC PATCH v3 11/11] defconfig: Add a config for AM335x High Security EVM with SD Boot support

2016-08-25 Thread Andrew F. Davis
Add a new defconfig file for the AM335x High Security EVM. This config is specific for the case of SD card booting, we the boot types to be seperate defconfigs as some options change depending on boot type, in addition this allows us to trim the SPL size as we only need to support one boot media.

[U-Boot] [PATCH v3 10/11] ti_armv7_common: Disable Falcon Mode on HS devices

2016-08-25 Thread Andrew F. Davis
Authentication of images in Falcon Mode is not supported. Do not enable SPL_OS_BOOT when TI_SECURE_DEVICE is enabled. This prevents attempting to directly load kernel images which will fail, for security reasons, on HS devices, the board is locked if a non-authenticatable image load is attempted, s

[U-Boot] [PATCH v3 09/11] config: Remove usage of CONFIG_STORAGE_EMMC

2016-08-25 Thread Andrew F. Davis
This config option seems to be unused and is probably vestigial. Remove it. Signed-off-by: Andrew F. Davis --- include/configs/am335x_evm.h | 2 -- include/configs/am335x_shc.h | 2 -- include/configs/am335x_sl50.h | 2 -- include/configs/bav335x.h | 2 -- 4 files changed, 8 deletions(-)

[U-Boot] [PATCH v3 00/11] Allow secure boot on AM33xx devices

2016-08-25 Thread Andrew F. Davis
Hello all, I've recently been tasked with enabling authenticated boot for AM33xx based devices. This work is similar to what has already been done for the AM43xx and AM57xx SoCs and leverages much of the infrastructure from them. The big difference here is the size of SRAM available on AM33xx bei

[U-Boot] [PATCH v3 08/11] am335x: configs: Use ISW_ENTRY_ADDR to set SPL_TEXT_BASE

2016-08-25 Thread Andrew F. Davis
The SPL load address changes based on boot time in HS devices, ISW_ENTRY_ADDR is used to set this address for AM43xx based SoCs for similar reasons. Add this same logic for AM33xx devices. Signed-off-by: Andrew F. Davis --- include/configs/ti_am335x_common.h | 2 +- 1 file changed, 1 insertion(+

[U-Boot] [PATCH v3 04/11] doc: Update info on using AM33xx secure devices from TI

2016-08-25 Thread Andrew F. Davis
Add a section describing the additional boot types used on AM33xx secure devices. Signed-off-by: Andrew F. Davis --- doc/README.ti-secure | 32 1 file changed, 32 insertions(+) diff --git a/doc/README.ti-secure b/doc/README.ti-secure index 54c996d..9b0fbf9 10064

[U-Boot] [PATCH v3 02/11] Kconfig: Separate AM33XX SOC config from target board config

2016-08-25 Thread Andrew F. Davis
The config option AM33XX is used in several boards and should be defined as a stand-alone option for this SOC. We break this out from target boards that use this SoC and common headers then enable AM33XX on in all the boards that used these targets to eliminate any functional change with this patch

[U-Boot] [PATCH v3 05/11] am33xx: config.mk: Fix option used to enable SPI SPL image type

2016-08-25 Thread Andrew F. Davis
Before the addition of SPL boot media type Kconfig options there was no way to determine what boot media the SPL would be booted from, so it was assumed that if the SPL could load U-Boot proper via SPI then the SPL itself would probably also be loaded from SPI. Use the new SPL_SPI_BOOT option to e

[U-Boot] [PATCH v3 06/11] board: am33xx-hs: Allow post-processing of FIT image on AM33xx

2016-08-25 Thread Andrew F. Davis
When CONFIG_FIT_IMAGE_POST_PROCESS or CONFIG_SPL_FIT_IMAGE_POST_PROCESS is enabled board_fit_image_post_process will be called, add this function to am33xx boards when CONFIG_TI_SECURE_DEVICE is set to verify the loaded image. Signed-off-by: Andrew F. Davis --- board/ti/am335x/board.c | 8 ++

Re: [U-Boot] [PATCH 19/42] Convert CONFIG_SPL_GPIO_SUPPORT to Kconfig

2016-08-25 Thread Tom Rini
On Thu, Aug 25, 2016 at 06:04:47AM -0600, Simon Glass wrote: > Hi, > > On 24 August 2016 at 13:30, Tom Rini wrote: > > On Wed, Aug 24, 2016 at 08:01:54PM +0200, Maxime Ripard wrote: > >> Hi Simon, > >> > >> On Wed, Aug 24, 2016 at 10:52:03AM -0600, Simon Glass wrote: > >> > Move this option to Kc

Re: [U-Boot] [PATCH] sunxi: Tune H3 DRAM PLL to improve lock time

2016-08-25 Thread Thomas Kaiser
Jens Kuske wrote: > The H3 PLL5 used for DRAM barely manages to lock to the required > frequency before DRAM controller starts, sometimes leading to wrong > delay-line calibration results. > This patch changes the PLL tuning parameters to the same values as > boot0 used, which speeds up the lo

Re: [U-Boot] [PATCH 1/3] warp7: Add a secure mode target

2016-08-25 Thread Fabio Estevam
Hi Otavio, On Thu, Aug 25, 2016 at 6:02 PM, Otavio Salvador wrote: > Breno has sent the patch to include this on the main config; being the Breno's patch has not been submitted to the list. It has only being applied into u-boot-fslc. > official kernel using this enabled I think it makes sense

Re: [U-Boot] [PATCH] warp7: Adjust CONFIG_MMCROOT for booting a mainline kernel

2016-08-25 Thread Fabio Estevam
Hi Otavio, On Thu, Aug 25, 2016 at 6:06 PM, Otavio Salvador wrote: > Mangling the mmcroot depending of secure boot is hidden things from > user, in my point of view. Yes, I agree. It seems like a more elegant solution is to use UUID to specify the rootfs location. Will prepare a v2. Thanks _

Re: [U-Boot] OMAP3 SPL Overflow

2016-08-25 Thread Tom Rini
On Thu, Aug 25, 2016 at 11:02:04AM -0500, Adam Ford wrote: > On Mon, Aug 22, 2016 at 7:08 AM, Tom Rini wrote: > > On Mon, Aug 22, 2016 at 10:13:24AM +0530, Lokesh Vutla wrote: > >> > >> > >> On Sunday 21 August 2016 06:15 PM, Tom Rini wrote: > >> > On Sun, Aug 21, 2016 at 06:29:42AM -0500, Adam Fo

[U-Boot] Pull request, u-boot-tegra/master

2016-08-25 Thread Tom Warren
Tom, Please pull u-boot-tegra/master into U-Boot/master. Thanks! All Tegra builds are OK, and Stephen's automated test system reports that all tests pass. The following changes since commit 46fe9eb08812cc27a0d5cd97d97373c14d578fe9: Merge branch 'master' of git://git.denx.de/u-boot-net (2016-0

  1   2   >