Re: [U-Boot] [PATCH] pci: gate print info of reading vender id with CONFIG_DM_PCI

2016-01-28 Thread Bin Meng
On Thu, Jan 28, 2016 at 3:43 PM, Qianyu Gong wrote: > Hi, > >> -Original Message- >> From: Bin Meng [mailto:bmeng...@gmail.com] >> Sent: Thursday, January 28, 2016 3:30 PM >> To: Qianyu Gong >> Cc: U-Boot Mailing List >> Subject: Re: [U-Boot] [PATCH] pci: gate print info of reading vende

Re: [U-Boot] [PATCH][RE-SUBMIT] usb: gadget: dwc2_udc_otg: modified the check condition for max packet size of ep_in in high speed

2016-01-28 Thread Lukasz Majewski
Hi Steve, > From: Frank Wang > > In current high speed fastboot, fs_ep_in.wMaxPacketSize is configured > 64 bytes as default, as a result, it failed to match the size at > initialization stage in usb controller. > Actually, hardware can support less than or equal to 512 bytes in > high speed mod

Re: [U-Boot] [PATCH 0/7] fdt: Replace u-boot-dtb.bin with u-boot.bin

2016-01-28 Thread Hans de Goede
Hi, On 28-01-16 04:58, Simon Glass wrote: Hi Hans, On 25 January 2016 at 13:30, Simon Glass wrote: At present u-boot.bin holds the plain U-Boot binary without the device tree. This is somewhat annoying since you need either u-boot.bin or u-boot-dtb.bin depending on whether device tree is use

Re: [U-Boot] [PATCH] pci: gate print info of reading vender id with CONFIG_DM_PCI

2016-01-28 Thread Qianyu Gong
> -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Thursday, January 28, 2016 4:02 PM > To: Qianyu Gong > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH] pci: gate print info of reading vender id with > CONFIG_DM_PCI > > On Thu, Jan 28, 2016 at 3:43 PM, Qi

Re: [U-Boot] [PATCH v2] armv7: add cacheline sizes where missing

2016-01-28 Thread Albert ARIBAUD
On Wed, 27 Jan 2016 08:46:11 +0100, Albert ARIBAUD wrote: > Some armv7 targets are missing a cache line size declaration. > In preparation for "arm: cache: Implement cache range check for v7" > patch, add these declarations with the appropriate value for > the target's SoC or CPU. > > Signed-off-

[U-Boot] [PATCH V2 1/3] imx: mx7dsabresd: move mmc_get_env_devno to soc code

2016-01-28 Thread Peng Fan
From: Peng Fan Move mmc_get_env_devno to soc.c and rename to mmc_get_env_dev to match the one in common/env_mmc.c. Introduce a weak function board_mmc_get_env_dev. Different boards can implement this according to sdhc controller which is used by the board. Signed-off-by: Peng Fan Cc: Stefano Ba

[U-Boot] [PATCH V2 3/3] imx: mx6: implement board_mmc_get_env_dev

2016-01-28 Thread Peng Fan
From: Peng Fan Implement board_mmc_get_env_dev for the boards. Following is examples: SD1/SD2/SD3: return devno; SD2/SD3: return devno - 1; SD2/SD4: if (devno == 2), return dev - 2; return dev - 1; Signed-off-by: Peng Fan Cc: Stefano Babic --- V2: no change board/freescale/mx6qarm2/mx6qar

[U-Boot] [PATCH V2 2/3] imx: mx6: implement mmc_get_env_dev

2016-01-28 Thread Peng Fan
From: Peng Fan Implement mmc_get_env_dev, devno can be got from smbr1 of SRC. Introduce a weak function board_mmc_get_env_dev, different boards can implement it according to different sdhc controllers that used by the board. Signed-off-by: Peng Fan Cc: Stefano Babic --- V2: Use CONFIG_ENV_IS

[U-Boot] [PATCH V2 00/11] imx: introduce rdc and boot auxiliary core

2016-01-28 Thread Peng Fan
From: Peng Fan To i.MX6SX and i.MX7D, there is a M4 core embedded. Resources can be shared or occupied exclusively by setting Resource domain controller between A9/7 core and M4 core. Refer "Chapter 52 Resource Domain Controller (RDC)" of i.MX 6SoloX RM and "Chapter 3.2 Resource Domain Controlle

[U-Boot] [PATCH V2 02/11] imx: imx-common: introduce Resource Domain Controller support

2016-01-28 Thread Peng Fan
From: Peng Fan Introduce Resource Domain Controller support for i.MX. Now i.MX6SX and i.MX7D supports this feature to assign masters and peripherals to different domains. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- V2: change imx_rdc_check_permission to support checking domain id. arc

[U-Boot] [PATCH V2 03/11] imx: mx6sx Add RDC mappings of masters and peripherals

2016-01-28 Thread Peng Fan
From: Peng Fan Add the definitions for the RDC mappings for i.MX6 SoloX. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- V2: no change arch/arm/include/asm/arch-mx6/imx-rdc.h | 4 + arch/arm/include/asm/arch-mx6/mx6sx_rdc.h | 155 ++ 2 files changed, 159 in

[U-Boot] [PATCH V2 01/11] imx: mx6: introduce rdc regs

2016-01-28 Thread Peng Fan
From: Peng Fan Introudce rdc regs structure and rdc sema reg structure for i.MX6. For now, to i.MX6, only i.MX6SX supports this. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- V2: no change arch/arm/include/asm/arch-mx6/imx-regs.h | 24 1 file changed, 24 inserti

[U-Boot] [PATCH V2 06/11] imx: imx-common: introduce boot auxiliary core

2016-01-28 Thread Peng Fan
From: Peng Fan To boot a auxiliary core in asymmetric multicore system, introduce the new command "bootaux" to do it. Example of boot auxliary core from 0x7000 where stores the boot head information that should be parsed by auxiliary core, "bootaux 0x7000". Introduce Kconfig option IMX_BO

[U-Boot] [PATCH V2 04/11] imx: mx7d: Add RDC support

2016-01-28 Thread Peng Fan
From: Peng Fan Add the peripherals/masters definitions and registers base addresses for mx7d RDC. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- V2: no change arch/arm/include/asm/arch-mx7/imx-rdc.h | 16 +++ arch/arm/include/asm/arch-mx7/imx-regs.h | 3 + arch/arm/include/asm/arch-m

[U-Boot] [PATCH V2 05/11] imx: mx7d: clock support for RDC

2016-01-28 Thread Peng Fan
From: Peng Fan If CONFIG_IMX_RDC is enabled, enable clock for RDC and SEMAPHORE. Signed-off-by: Peng Fan --- V2: no change arch/arm/cpu/armv7/mx7/clock.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/armv7/mx7/clock.c b/arch/arm/cpu/armv7/mx7/clock.c index 77db6e8..4

[U-Boot] [PATCH V2 07/11] imx: mx6: implement functions to boot auxiliary core

2016-01-28 Thread Peng Fan
From: Peng Fan Implement arch_auxiliary_core_up and arch_auxiliary_core_check_up. arch_auxiliary_core_check_up is used to check whether M4 is running or not. arch_auxiliary_core_up is to boot M4 core, the m4 core will use the pc and stack which is set in arch_auxiliary_core_up to set R15 and R13

[U-Boot] [PATCH V2 09/11] imx: mx7: implement functions to boot auxiliary core

2016-01-28 Thread Peng Fan
From: Peng Fan Implement arch_auxiliary_core_up and arch_auxiliary_core_check_up. arch_auxiliary_core_check_up is used to check whether M4 is running or not. arch_auxiliary_core_up is to boot M4 core, the m4 core will use the pc and stack which is set in arch_auxiliary_core_up to set R15 and R13

[U-Boot] [PATCH V2 08/11] imx: mx6sxsabresd: add command and macros for boot m4 core

2016-01-28 Thread Peng Fan
From: Peng Fan Introduce macros and command to support booting M4 core for i.MX6SX SabreSD board. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- V2: no change include/configs/mx6sxsabresd.h | 24 1 file changed, 24 insertions(+) diff --git a/include/configs/mx6s

[U-Boot] [PATCH V2 10/11] imx: mx7dsabresd: add command and macros for boot m4 core

2016-01-28 Thread Peng Fan
From: Peng Fan Introduce macros and command to support booting M4 core for i.MX7D SabreSD board. Signed-off-by: Ye.Li Signed-off-by: Peng Fan --- V2: no change include/configs/mx7dsabresd.h | 24 1 file changed, 24 insertions(+) diff --git a/include/configs/mx7dsa

[U-Boot] [PATCH V2 11/11] imx: mx7d: isolate resources to domain 0 for A7 core

2016-01-28 Thread Peng Fan
From: Peng Fan In current design, if any peripheral was assigned to both A7 and M4, it will receive ipg_stop or ipg_wait when any of the 2 platforms enter low power mode. We will have a risk that, if A7 enter wait, M4 enter stop, peripheral will have chance to get ipg_stop and ipg_wait asserted s

[U-Boot] [PATCH v4 02/13] drivers: clk: Add clock driver for Microchip PIC32 Microcontroller.

2016-01-28 Thread Purna Chandra Mandal
PIC32 clock module consists of multiple oscillators, PLLs, mutiplexers and dividers capable of supplying clock to various controllers on or off-chip. Signed-off-by: Purna Chandra Mandal Reviewed-by: Simon Glass Reviewed-by: Daniel Schwierzeck --- Changes in v4: None Changes in v3: - rename cl

[U-Boot] [PATCH v4 05/13] drivers: serial: add driver for Microchip PIC32 UART controller.

2016-01-28 Thread Purna Chandra Mandal
From: Paul Thacker This adds PIC32 UART controller support based on driver model. Signed-off-by: Paul Thacker Signed-off-by: Purna Chandra Mandal Reviewed-by: Daniel Schwierzeck Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- Changes in v4: - update kconfig dependency (DM_SERIAL && MA

[U-Boot] [PATCH v4 01/13] MIPS: initial infrastructure for Microchip PIC32 architecture

2016-01-28 Thread Purna Chandra Mandal
Create initial directory, Kconfigs needed for PIC32 architecture support. Also add PIC32 specific register definition required for drivers. Signed-off-by: Purna Chandra Mandal Reviewed-by: Daniel Schwierzeck Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: - drop empty choice in m

[U-Boot] [PATCH v4 03/13] drivers: pinctrl: Add pinctrl driver for Microchip PIC32.

2016-01-28 Thread Purna Chandra Mandal
In PIC32 pin-controller is a combined gpio-controller, pin-mux and pin-config module. Remappable peripherals are assigned pins through per-pin based muxing logic. And pin configuration are performed on specific port registers which are shared along with gpio controller. Note, non-remappable periphe

[U-Boot] [PATCH v4 04/13] drivers: gpio: add driver for Microchip PIC32 GPIO controller.

2016-01-28 Thread Purna Chandra Mandal
In PIC32 GPIO controller is part of PIC32 pin controller. PIC32 has ten independently programmable ports and each with multiple pins. Each of these pins can be configured and used as GPIO, provided they are not in use for other peripherals. Signed-off-by: Purna Chandra Mandal Reviewed-by: Tom Rin

[U-Boot] [PATCH v4 10/13] board: add SDHCI support for PIC32MZDASK board.

2016-01-28 Thread Purna Chandra Mandal
Enable MMC, SDHCI, FAT_FS support for PIC32MZ[DA] StarterKit. Also add custom scripts, rules to boot Linux from microSD card. Signed-off-by: Purna Chandra Mandal --- Changes in v4: None Changes in v3: - use distro boot commands from config_distro_bootcmd.h - separate old booting logic as legacy

[U-Boot] [PATCH v4 09/13] drivers: mmc: add driver for Microchip PIC32 SDHCI controller.

2016-01-28 Thread Purna Chandra Mandal
From: Andrei Pistirica This driver implements platform specific glue and fixups for PIC32 internal SDHCI controller. Signed-off-by: Andrei Pistirica Signed-off-by: Sandeep Sheriker Mallikarjun Signed-off-by: Purna Chandra Mandal Reviewed-by: Tom Rini Reviewed-by: Daniel Schwierzeck --- C

[U-Boot] [PATCH v4 06/13] drivers: ddr: Add DDR2 SDRAM controller driver for Microchip PIC32.

2016-01-28 Thread Purna Chandra Mandal
This driver initializes PIC32 DDR2 SDRAM controller and internal DDR2 Phy module. DDR2 controller operates in half-rate mode (upto 533MHZ frequency). Signed-off-by: Paul Thacker Signed-off-by: Purna Chandra Mandal Reviewed-by: Daniel Schwierzeck Reviewed-by: Tom Rini Reviewed-by: Simon Glass

[U-Boot] [PATCH v4 07/13] MIPS: Add support for Microchip PIC32MZ[DA] SoC family.

2016-01-28 Thread Purna Chandra Mandal
Add Microchip PIC32MZ[DA] SoC family support. Signed-off-by: Purna Chandra Mandal --- Changes in v4: - drop forcing DM_SERIAL, PIC32_SERIAL, PIC32_PINCTRL in mach-pic32/Kconfig - drop extra include - rename clock compatible to "pic32mzda-clk" from "pic32mzda_clk". - fix typo 'clock-cells' to '#

[U-Boot] [PATCH v4 08/13] board: Add Microchip PIC32MZ[DA]-Starter-Kit board.

2016-01-28 Thread Purna Chandra Mandal
This adds support for Microchip PIC32MZ[DA] StarterKit board based on a PIC32MZ[DA] family of microcontroller. Signed-off-by: Purna Chandra Mandal --- Changes in v4: - create defconfig by 'make savedefconfig' - drop explicit SYS_BAUDRATE_TABLE in favor of default one Changes in v3: - drop SKI

[U-Boot] [PATCH v4 11/13] drivers: net: phy: add SMSC LAN8740 Phy support.

2016-01-28 Thread Purna Chandra Mandal
Add SMSC LAN8740 Phy support required for PIC32MZDA devices. Signed-off-by: Purna Chandra Mandal Reviewed-by: Tom Rini Reviewed-by: Daniel Schwierzeck --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/net/phy/smsc.c | 10 ++ 1 file changed, 10 insertions(+) di

[U-Boot] [PATCH v4 12/13] drivers: net: Add ethernet driver for Microchip PIC32.

2016-01-28 Thread Purna Chandra Mandal
This driver implements MAC and MII layer of the ethernet controller. Network data transfer is handled by controller internal DMA engine. Ethernet controller is configurable through device-tree file. Signed-off-by: Purna Chandra Mandal --- Changes in v4: - drop ioremap() success check - drop _d

[U-Boot] [PATCH v4 13/13] board: Enable ethernet, tftpboot support to pic32mzdask board.

2016-01-28 Thread Purna Chandra Mandal
This adds ethernet, TFTP support for PIC32MZ[DA] Starter Kit. Also custom environment variables/scripts are added to help boot from network. Signed-off-by: Purna Chandra Mandal --- Changes in v4: None Changes in v3: None Changes in v2: - replace unbounded loop with wait_for_bit() - replace regi

[U-Boot] [PATCH][v2] armv8: ls2080ardb: invert irq pins polarity for AQR405 PHY

2016-01-28 Thread shh.xie
From: Shaohui Xie To use AQR405 PHY's interrupt, we need to invert the relative IRQ pins polarity by setting IRQCR register, because AQR405 interrupt is low active but GIC accepts high active. Signed-off-by: Shaohui Xie --- changes in v2: 1. move Interrupt register offset define to immap_lsch3.

[U-Boot] [PATCH 1/2][v2] net: phy: introduce a quirk PHY_FLAG_BROKEN_RESET

2016-01-28 Thread shh.xie
From: Shaohui Xie Current driver always performs a phy soft reset when connecting the phy device, but soft reset is not always supported by a phy device, so introduce a quirk PHY_FLAG_BROKEN_RESET to let such a phy device to skip soft reset. This commit uses 'flags' of phy device structure to sto

Re: [U-Boot] [PATCH 1/2] net: phy: introduce a quirk PHY_BROKEN_RESET

2016-01-28 Thread Shaohui Xie
> -Original Message- > From: Joe Hershberger [mailto:joe.hershber...@gmail.com] > Sent: Wednesday, January 27, 2016 11:37 PM > To: shaohui 谢 > Cc: u-boot ; Joe Hershberger ; > Shaohui Xie ; York Sun > Subject: Re: [U-Boot] [PATCH 1/2] net: phy: introduce a quirk PHY_BROKEN_RESET > > On T

Re: [U-Boot] [PATCH] Use correct spelling of "U-Boot"

2016-01-28 Thread Heiko Schocher
Hello Bin, Am 27.01.2016 um 08:28 schrieb Bin Meng: Correct spelling of "U-Boot" shall be used in all written text (documentation, comments in source files etc.). Signed-off-by: Bin Meng --- I cc'ed all maintainers, please help review in case I made any mistakes. Also we should keep an eye on

[U-Boot] [PATCH v4 00/13] Initial Microchip PIC32MZ[DA] Support

2016-01-28 Thread Purna Chandra Mandal
This patch series adds support for Microchip PIC32MZ[DA] MIPS microcontroller platform. All drivers required to boot from MMC uSD card and network are included in it; clock, pinctrl, gpio, DDR2, serial, SDHCI, ethernet. This series been tested on PIC32MZ[DA] Starter Kit. This series is generated

[U-Boot] [PATCH 2/2][v2] net: phy: implements probe for Cortina phy

2016-01-28 Thread shh.xie
From: Shaohui Xie Cortina phy cannot support soft reset, this commit implements probe for Cortina PHY to tell phylib to skip phy soft reset by setting PHY_FLAG_BROKEN_RESET in flags. Signed-off-by: Shaohui Xie Acked-by: Joe Hershberger --- changes in v2: 1. use PHY_FLAG_BROKEN_RESET instead of

Re: [U-Boot] [PATCH v4] mmc: socfpga_dw_mmc: Enable calibration for drvsel and smplsel

2016-01-28 Thread Trent Piepho
On Wed, 2016-01-27 at 21:13 +0800, Chin Liang See wrote: > On Wed, 2016-01-27 at 00:01 +, Trent Piepho wrote: > > On Fri, 2015-11-27 at 15:22 +0800, Chin Liang See wrote: > > > Enable SDMMC calibration to determine the best setting for > > > drvsel and smplsel. Calibration will be triggered if

Re: [U-Boot] [PATCH] rpi: fix up Model B entries

2016-01-28 Thread popcorn mix
I believe this is accurate for identifying boards from revision numbers: https://github.com/AndrewFromMelbourne/raspberry_pi_revision >From the firmware, old style revision numbers: case 0x02: case 0x03: boardrev = MAKE_BOARDREV(MODELB, 1_1); break; case 0x04: case 0x05: case

[U-Boot] [PATCH] powerpc/t208xqds: fix esdhc peripheral clock support

2016-01-28 Thread Yangbo Lu
The patch that enabled eSDHC peripheral clock support had an obvious error as below. This patch is used to fix it. +#define define CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK Fixes: 3285e6cbcc1b ("powerpc/t2080qds: enable eSDHC peripheral clock support") Signed-off-by: Yangbo Lu --- include/configs/T20

[U-Boot] [PATCH v1] arm: imx: Add support for GE Bx50v3 boards

2016-01-28 Thread Akshay Bhat
Add support for GE B450v3, B650v3 and B850v3 boards. The boards are based on Advantech BA16 module which has a imx6 processor. The boards support: - FEC Ethernet - USB Ports - SDHC and MMC boot - SPI NOR - LVDS and HDMI display Basic information about the module: - Module manufacturer: Advan

Re: [U-Boot] [PATCH 2/2] include:configs: Add usb device-tree fixup for all fsl platforms

2016-01-28 Thread Ramneek Mehresh
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Wednesday, January 27, 2016 5:13 PM > To: Ramneek Mehresh > Cc: Ramneek Mehresh ; u- > b...@lists.denx.de; Simon Glass > Subject: Re: [PATCH 2/2] include:configs: Add usb device-tree fixup for all > fsl > platforms

Re: [U-Boot] [PATCH 2/2] include:configs: Add usb device-tree fixup for all fsl platforms

2016-01-28 Thread Marek Vasut
On Thursday, January 28, 2016 at 12:05:29 PM, Ramneek Mehresh wrote: > > -Original Message- > > From: Marek Vasut [mailto:ma...@denx.de] > > Sent: Wednesday, January 27, 2016 5:13 PM > > To: Ramneek Mehresh > > Cc: Ramneek Mehresh ; u- > > b...@lists.denx.de; Simon Glass > > Subject: Re:

Re: [U-Boot] [PATCH v3 1/6] dm: implement a DMA uclass

2016-01-28 Thread Mugunthan V N
Hi Simon On Thursday 28 January 2016 04:23 AM, Simon Glass wrote: > Hi Mugunthan, > > On 27 January 2016 at 04:57, Mugunthan V N wrote: >> Implement a DMA uclass so that the devices like ethernet, spi, >> mmc etc can offload the data transfers from/to the device and >> memory. >> >> Signed-off-b

Re: [U-Boot] [PATCH 2/2] include:configs: Add usb device-tree fixup for all fsl platforms

2016-01-28 Thread Ramneek Mehresh
> -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Thursday, January 28, 2016 5:04 PM > To: Ramneek Mehresh > Cc: Ramneek Mehresh ; u- > b...@lists.denx.de; Simon Glass > Subject: Re: [PATCH 2/2] include:configs: Add usb device-tree fixup for all > fsl > platforms

Re: [U-Boot] [PATCH 1/3] mips: ath79: Fix compiler warning on const assignment

2016-01-28 Thread Wills Wang
On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: The assignment const T var; var = value; is illegal, since var is constant. Drop the const to fix the compiler warning. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Wills Wang --- arch/mips/mach-ath79/reset.c | 2 +- 1 f

Re: [U-Boot] [PATCH 2/3] mips: ath79: Drop SYS_MIPS_CACHE_INIT_RAM_LOAD

2016-01-28 Thread Wills Wang
On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: Drop SYS_MIPS_CACHE_INIT_RAM_LOAD from the Kconfig, since this option is bogus. The DRAM is not active when this option comes into play, so any attempt to restore valid cache state from invalid DRAM must fail. Disable this option to pre

Re: [U-Boot] [PATCH 1/3] mips: ath79: Fix compiler warning on const assignment

2016-01-28 Thread Marek Vasut
On Thursday, January 28, 2016 at 02:23:48 PM, Wills Wang wrote: > On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: > > The assignment const T var; var = value; is illegal, since var is > > constant. Drop the const to fix the compiler warning. > > > > Signed-off-by: Marek Vasut > > Cc: D

Re: [U-Boot] [PATCH 2/3] mips: ath79: Drop SYS_MIPS_CACHE_INIT_RAM_LOAD

2016-01-28 Thread Marek Vasut
On Thursday, January 28, 2016 at 02:25:08 PM, Wills Wang wrote: > On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: > > Drop SYS_MIPS_CACHE_INIT_RAM_LOAD from the Kconfig, since this option > > is bogus. The DRAM is not active when this option comes into play, so > > any attempt to restore

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-28 Thread Wills Wang
On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-28 Thread Wills Wang
On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-28 Thread Marek Vasut
On Thursday, January 28, 2016 at 02:31:11 PM, Wills Wang wrote: > On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: > > In order to support boards with ath79 from different vendors and > > thus located under /board/$VENDOR/ , we need to define SYS_VENDOR > > and SYS_SOC in the board-level

[U-Boot] [PATCH v2 01/15] armv8: ls2080: Add SFP Configs for LS2080/LS2085

2016-01-28 Thread Saksham Jain
In LS2080/LS2085, SFP is LE and Ver is 3.4 The base address is 0x01e80200 SFP will be used in Secure Boot to read fuses. Signed-off-by: Aneesh Bansal Signed-off-by: Saksham Jain --- Changes for v2: - No changes arch/arm/include/asm/arch-fsl-layerscape/config.h | 4 arch/arm/in

[U-Boot] [PATCH v2 00/15] Add Support for Secure Boot on LS208x

2016-01-28 Thread Saksham Jain
Secure Boot ESBC has been enabled on FSL LS208x platforms. This patchset is dependent on http://patchwork.ozlabs.org/patch/571612/ Changes for v2: - changed function fsl_secboot_validate to return address of image - corrected Bootscript header for ls1043 and ls1021 Saksham Jain (1

[U-Boot] [PATCH v2 02/15] armv8: ls2080: Add Secure Boot configs: SEC, Security Monitor, SRK and RCW

2016-01-28 Thread Saksham Jain
For ls2080, Added configs for various IPs used during secure boot Added address and endianness for SEC and Security Monitor. SRK - Fuses in SFP (Fused for public keys hash) These are stored in LE format. Signed-off-by: Aneesh Bansal Signed-off-by: Saksham Jain --- Changes for v2: - No c

[U-Boot] [PATCH v2 03/15] SECURE BOOT: Add new ESBC header for ls-ch3 Secure Boot

2016-01-28 Thread Saksham Jain
For Secure Boot, a header is used to identify key table, signature and image address. For LS-CH3, there is a new header structure being used. The following changes are there in the new header: 1) Currently IE Table (Key extension) feature is not supported 2) Single Key feature is not supported. Ke

[U-Boot] [PATCH v2 04/15] SECURE BOOT: Add Secure Boot support on ls2080aqds/rdb

2016-01-28 Thread Saksham Jain
Following changes have been made to enable secure boot: 1) Sec_init has been called in starting to initialize SEC Block (CAAM) which will be used for Secure Boot validation later for both ls2080a qds and rdb 2) 64Bit address in ESBC Header has been enabled as this SoC is based on armv8 3) Secure Bo

[U-Boot] [PATCH v2 05/15] armv8: fsl-lsch3: Add bootscript header address for Secure Boot

2016-01-28 Thread Saksham Jain
During secure boot, Linux image along with other images are validated using bootscript. This bootscript also needs to be validated before it is executed. This requires a header for bootscript. When secure boot is enabled, default bootcmd is changed to first validate bootscript using the header and

[U-Boot] [PATCH v2 06/15] SECURE BOOT: Copy Bootscript and header from NOR to DDR for LS2080/5

2016-01-28 Thread Saksham Jain
During Secure Boot, a bootscript is validated using its header. This patch copies both these images to DDR from NOR and then validates and executed them from DDR. (If NOR is the boot source for LS2080 and LS2085). This copy step is done to make this step common across booting sources. Because in c

[U-Boot] [PATCH v2 07/15] SECURE BOOT: Change env variable "fdt_high" for LS2080a and LS2085a

2016-01-28 Thread Saksham Jain
"fdt_high" env variable has been changed to 0xa000 for ls2080a and ls2085a during Secure Boot. This env_varible is used to specify the upper limit to be used for copying flat device tree. This address must be visible to kernel. The "fdt_high" value has been set during Secure Boot to same value

[U-Boot] [PATCH v2 13/15] SECURE BOOT: Halt execution when secure boot fail after reset request

2016-01-28 Thread Saksham Jain
In case of fatal failure during secure boot execution (e.g. header not found) it is needed that the execution stops. Earlier, we were asserting reset request in case in case of failure. But if the RESET_REQ is not tied off to HRESET, this allows the execution to continue. This can either be taken

[U-Boot] [PATCH v2 08/15] armv8 : ls2080: Add config for endianess of CCSR GUR

2016-01-28 Thread Saksham Jain
The GUR (DCFG) registers in CCSR space are in LE format for ls2080/ls2085. Defined a config CONFIG_SYS_FSL_CCSR_GUR_LE in arch/arm/include/asm/arch-fsl-layerscape/config.h Signed-off-by: Aneesh Bansal Signed-off-by: Saksham Jain --- Changes for v2: - No changes arch/arm/include/asm/arc

[U-Boot] [PATCH v2 10/15] crypto/fsl: Correct 64bit Write when MMU disabled

2016-01-28 Thread Saksham Jain
When MMU is disabled, 64bit Write must be at a memory aligned at 64bit Boundary. So, this commit splits the 64bit write into 2 -32bit writes as the memory location is not guaranteed to be 64bit aligned. The alignment exception only occurs when MMU is disabled. Signed-off-by: Aneesh Bansal Signed-

[U-Boot] [PATCH v2 09/15] armv8: fsl-lsch3: Disable SMMU during Secure Boot

2016-01-28 Thread Saksham Jain
During secure boot, SMMU is enabled on POR by SP bootrom. SMMU needs to be put in Bypass mode in uboot to enable CAAM transcations to pass through. During Nonsecure Boot, SP BootROM doesn't enable SMMU and at reset SMMU is in bypass mode. Signed-off-by: Aneesh Bansal Signed-off-by: Saksham Jain

[U-Boot] [PATCH v2 11/15] crypto/fsl: Make CAAM transactions cacheable

2016-01-28 Thread Saksham Jain
To solve CAAM coherency issue on ls2080a and ls2085a. When Caches are enabled and CAAM's DMA's AXI transcations are not made cacheable, Core reads/write data from/to Caches and CAAM does from Main Memory. This forces data flushes to synchronize various data structures But even if any data in proxim

[U-Boot] [PATCH v2 15/15] SECURE_BOOT: Enable IE (Key extention) Feature in Ls2085a & LS2088a

2016-01-28 Thread Saksham Jain
For validating images from uboot (Such as Kernel Image), either keys from SoC fuses can be used or keys from a veriied table of public keys can be used. The latter feature is called IE Key Extension Feature. For earlier SoCs, BootROM used to verify IE Key Table and then write the address of this t

[U-Boot] [PATCH v2 12/15] SECURE_BOOT: Use default bootargs during Secure Boot

2016-01-28 Thread Saksham Jain
For secure boot, currently we were using fixed bootargs for all SoCs. This is not needed and we can use the bootargs which are used in non-secure boot. Incase bootargs are not defined for non-secure boot of any platform, we use default bootargs. Signed-off-by: Aneesh Bansal Signed-off-by: Saksham

[U-Boot] [PATCH v2 14/15] SECURE BOOT: Change fsl_secboot_validate function to output image addr

2016-01-28 Thread Saksham Jain
Currently, fsl_secboot_validate function used to set env variable "img_addr" to contain address of image being validated. The function has been changed to output image addr via argument img_addr_ptr. The command esbc_validate sets the env variable "img_addr". This change helps when fsl_secboot_va

[U-Boot] [RFC PATCH] dfu: allow get_medium_size() to return bigger medium sizes than 2GiB

2016-01-28 Thread Heiko Schocher
change the get_medium_size() function from - long (*get_medium_size)(struct dfu_entity *dfu); + int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); so it can return bigger medium sizes than 2GiB, and the return value is seperate from the size. Signed-off-by: Heiko Schocher --

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-28 Thread Wills Wang
On Thursday, January 28, 2016 09:44 PM, Marek Vasut wrote: On Thursday, January 28, 2016 at 02:31:11 PM, Wills Wang wrote: On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need t

Re: [U-Boot] [PATCH] [RFC] net: Add ag7xxx driver for Atheros MIPS

2016-01-28 Thread Joe Hershberger
Hi Marek, On Wed, Jan 27, 2016 at 4:10 PM, Marek Vasut wrote: > Add ethernet driver for the AR71xx and AR9xxx Atheros MIPS machines. > > Signed-off-by: Marek Vasut > Cc: Daniel Schwierzeck > Cc: Joe Hershberger > Cc: Wills Wang > --- > arch/mips/dts/ap121.dts| 8 + > arch/mips/dts/ar93

Re: [U-Boot] [PATCH] [RFC] net: Add ag7xxx driver for Atheros MIPS

2016-01-28 Thread Marek Vasut
On Thursday, January 28, 2016 at 03:49:06 PM, Joe Hershberger wrote: > Hi Marek, > > On Wed, Jan 27, 2016 at 4:10 PM, Marek Vasut wrote: > > Add ethernet driver for the AR71xx and AR9xxx Atheros MIPS machines. > > > > Signed-off-by: Marek Vasut > > Cc: Daniel Schwierzeck > > Cc: Joe Hershberge

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-28 Thread Marek Vasut
On Thursday, January 28, 2016 at 03:43:58 PM, Wills Wang wrote: > On Thursday, January 28, 2016 09:44 PM, Marek Vasut wrote: > > On Thursday, January 28, 2016 at 02:31:11 PM, Wills Wang wrote: > >> On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: > >>> In order to support boards with ath7

Re: [U-Boot] [RFC PATCH] dfu: allow get_medium_size() to return bigger medium sizes than 2GiB

2016-01-28 Thread Lukasz Majewski
Hi Heiko, > change the get_medium_size() function from > - long (*get_medium_size)(struct dfu_entity *dfu); > + int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); > > so it can return bigger medium sizes than 2GiB, and the return > value is seperate from the size. > > Signed-

Re: [U-Boot] [RFC PATCH] dfu: allow get_medium_size() to return bigger medium sizes than 2GiB

2016-01-28 Thread Joe Hershberger
On Thu, Jan 28, 2016 at 8:24 AM, Heiko Schocher wrote: > change the get_medium_size() function from > - long (*get_medium_size)(struct dfu_entity *dfu); > + int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); > > so it can return bigger medium sizes than 2GiB, and the return > v

Re: [U-Boot] [PATCH v4 11/13] drivers: net: phy: add SMSC LAN8740 Phy support.

2016-01-28 Thread Joe Hershberger
On Thu, Jan 28, 2016 at 4:00 AM, Purna Chandra Mandal wrote: > Add SMSC LAN8740 Phy support required for PIC32MZDA devices. > > Signed-off-by: Purna Chandra Mandal > Reviewed-by: Tom Rini > Reviewed-by: Daniel Schwierzeck Acked-by: Joe Hershberger _

Re: [U-Boot] [PATCH 1/2][v2] net: phy: introduce a quirk PHY_FLAG_BROKEN_RESET

2016-01-28 Thread Joe Hershberger
On Thu, Jan 28, 2016 at 1:55 AM, wrote: > From: Shaohui Xie > > Current driver always performs a phy soft reset when connecting the phy > device, but soft reset is not always supported by a phy device, so > introduce a quirk PHY_FLAG_BROKEN_RESET to let such a phy device to skip > soft reset. Th

Re: [U-Boot] [PATCH 1/2] x86: x86-common.h: Add CONFIG_BOOTDELAY

2016-01-28 Thread Stefan Roese
Hi Bin, On 26.01.2016 07:48, Bin Meng wrote: On Tue, Jan 19, 2016 at 2:19 PM, Bin Meng wrote: On Mon, Jan 18, 2016 at 9:49 PM, Stefan Roese wrote: Without this CONFIG_BOOTDELAY, autobooting does not work at all. As autoboot_command() from common/* will not get called. So lets define CONFIG_B

Re: [U-Boot] Include patchwork patch ID in commit message?

2016-01-28 Thread Joe Hershberger
Hi Heiko, On Thu, Jan 28, 2016 at 12:39 AM, Heiko Schocher wrote: > Hello Tom, > > Am 28.01.2016 um 00:45 schrieb Tom Rini: >> >> On Wed, Jan 27, 2016 at 05:15:17PM -0600, Joe Hershberger wrote: >>> >>> On Wed, Jan 27, 2016 at 4:22 PM, Tom Rini wrote: On Wed, Jan 27, 2016 at 03:08:09PM

Re: [U-Boot] Include patchwork patch ID in commit message?

2016-01-28 Thread Joe Hershberger
On Thu, Jan 28, 2016 at 12:13 AM, Heiko Schocher wrote: > Hello Joe, > > Am 27.01.2016 um 22:08 schrieb Joe Hershberger: >> >> Hi Tom, >> >> I'm playing with the idea of including the patchwork patch ID in the >> commit message of each commit that I apply to provide better >> cross-reference abili

Re: [U-Boot] Include patchwork patch ID in commit message?

2016-01-28 Thread Joe Hershberger
On Wed, Jan 27, 2016 at 7:49 PM, Bin Meng wrote: > On Thu, Jan 28, 2016 at 9:30 AM, Tom Rini wrote: >> On Wed, Jan 27, 2016 at 06:05:01PM -0600, Joe Hershberger wrote: >>> On Wed, Jan 27, 2016 at 5:45 PM, Tom Rini wrote: >>> > On Wed, Jan 27, 2016 at 05:15:17PM -0600, Joe Hershberger wrote: >>>

Re: [U-Boot] Include patchwork patch ID in commit message?

2016-01-28 Thread Tom Rini
On Thu, Jan 28, 2016 at 07:49:40AM +0100, Heiko Schocher wrote: > Hello Bin, > > Am 28.01.2016 um 02:49 schrieb Bin Meng: > >On Thu, Jan 28, 2016 at 9:30 AM, Tom Rini wrote: > >>On Wed, Jan 27, 2016 at 06:05:01PM -0600, Joe Hershberger wrote: > >>>On Wed, Jan 27, 2016 at 5:45 PM, Tom Rini wrote:

Re: [U-Boot] Include patchwork patch ID in commit message?

2016-01-28 Thread Tom Rini
On Thu, Jan 28, 2016 at 07:39:54AM +0100, Heiko Schocher wrote: [snip] > Out of topic maybe tbot can help you here a lot. I have an automated > build for example for the smartweb board [1], which does: > > + - clone u-boot.git > + - set toolchain > + - get a list of patchwork

Re: [U-Boot] [PATCH 1/2] x86: x86-common.h: Add CONFIG_BOOTDELAY

2016-01-28 Thread Stefan Roese
Hi Bin, (added Simon to Cc) On 26.01.2016 07:48, Bin Meng wrote: On Tue, Jan 19, 2016 at 2:19 PM, Bin Meng wrote: On Mon, Jan 18, 2016 at 9:49 PM, Stefan Roese wrote: Without this CONFIG_BOOTDELAY, autobooting does not work at all. As autoboot_command() from common/* will not get called. So

Re: [U-Boot] [PATCH 1/2] x86: x86-common.h: Add CONFIG_BOOTDELAY

2016-01-28 Thread Simon Glass
Hi Stefan, On 28 January 2016 at 09:13, Stefan Roese wrote: > > Hi Bin, > > (added Simon to Cc) > > On 26.01.2016 07:48, Bin Meng wrote: >> >> On Tue, Jan 19, 2016 at 2:19 PM, Bin Meng wrote: >>> >>> On Mon, Jan 18, 2016 at 9:49 PM, Stefan Roese wrote: Without this CONFIG_BOOTDELAY, a

[U-Boot] [PATCH v2] net: Add bootfile in DHCP Request

2016-01-28 Thread amessier . tyco
From: Alexandre Messier Add the bootfile name in the DHCP Request packet, in addition to it already being sent in the DHCP Discover. This is needed by some DHCP servers so that the bootfile name is properly returned by the server to the client in the DHCP Ack, as expected by U-Boot. Signed-off-

Re: [U-Boot] [PATCH 1/2] x86: x86-common.h: Add CONFIG_BOOTDELAY

2016-01-28 Thread Stefan Roese
Hi Simon, On 28.01.2016 17:16, Simon Glass wrote: Hi Stefan, On 28 January 2016 at 09:13, Stefan Roese wrote: Hi Bin, (added Simon to Cc) On 26.01.2016 07:48, Bin Meng wrote: On Tue, Jan 19, 2016 at 2:19 PM, Bin Meng wrote: On Mon, Jan 18, 2016 at 9:49 PM, Stefan Roese wrote: Witho

[U-Boot] [PATCH] autoboot.c: Fill env vars in process_fdt_options() only if TEXT_BASE is set

2016-01-28 Thread Stefan Roese
The x86 build target "efi-x86" has no TEXT_BASE configured. And with the introduction of CONFIG_BOOTDELAY for x86, this function is now called for this board as well. Resulting in compile errors for this target. Without TEXT_BASE it makes no sense to fill these values. So lets only configure the e

[U-Boot] [PATCH 00/26] spl: Support loading a FIT image containing U-Boot

2016-01-28 Thread Simon Glass
We need a way to support more than one board per binary in U-Boot with device tree. Various methods have been discussed. The one that seems to make the most sense is to adjust SPL so that it can load a FIT which contains U-Boot and several device tree binaries. This is how things with with Linux: l

[U-Boot] [PATCH 01/26] mkimage: Move argument processing into its own function

2016-01-28 Thread Simon Glass
At present main() is very long. Split out the argument processing to make it easier to follow. Signed-off-by: Simon Glass --- tools/mkimage.c | 56 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/tools/mkimage.c b/tools/mk

[U-Boot] [PATCH 02/26] mkimage: Convert to use getopt()

2016-01-28 Thread Simon Glass
The current way of parsing arguments is a bit clumsy. It seems better to use getopt() which is commonly used for this purpose. Convert the code to use getopt() and make a few minor adjustments as needed. Signed-off-by: Simon Glass --- tools/mkimage.c | 233 -

[U-Boot] [PATCH 05/26] mkimage: Show an error message when usage() is called

2016-01-28 Thread Simon Glass
Sometimes incorrect arguments are supplied but the reason is not obvious to the user. Add some helpful messages. Signed-off-by: Simon Glass --- tools/mkimage.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index cf4f8db..

[U-Boot] [PATCH 03/26] mkimage: Sort the option processing code by option

2016-01-28 Thread Simon Glass
Adjust the code so that option alphabetical order matches the order in the switch() statement. This makes it easier to find options. Signed-off-by: Simon Glass --- tools/mkimage.c | 50 +- 1 file changed, 25 insertions(+), 25 deletions(-) diff --

[U-Boot] [PATCH 04/26] mkimage: Move usage() up to the top

2016-01-28 Thread Simon Glass
To avoid a forward declaration, move the usage() function higher in the file. Signed-off-by: Simon Glass --- tools/mkimage.c | 81 ++--- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index 00

[U-Boot] [PATCH 07/26] libfdt: Add a function to write a property placeholder

2016-01-28 Thread Simon Glass
The existing function to add a new property to a tree being built requires that the entire contents of the new property be passed in. For some applications it is more convenient to be able to add the property contents later, perhaps by reading from a file. This avoids double-buffering of the conten

[U-Boot] [PATCH 12/26] fdt: Allow libfdt to be used in SPL

2016-01-28 Thread Simon Glass
Add an option to enable libfdt in SPL. This can be useful when decoding FIT files in SPL. We need to make sure this option is not enabled in SPL by this change. Also this option needs to be enabled in host builds. Si add a new IMAGE_USE_LIBFDT #define which can be used in files that are built on t

[U-Boot] [PATCH 08/26] Correct defconfig ordering

2016-01-28 Thread Simon Glass
Various boards have the wrong Kconfig ordering now. To avoid a misleading diff in the next patch, reorder the configuration correctly. Signed-off-by: Simon Glass --- configs/am335x_gp_evm_defconfig | 2 +- configs/am437x_sk_evm_defconfig | 6 +++--- configs/apalis_t30_defcon

[U-Boot] [PATCH 11/26] fdt: Adjust DEFAULT_DEVICE_TREE to device on OF_CONTROL

2016-01-28 Thread Simon Glass
This option has no meaning without OF_CONTROL, so add a dependency. Signed-off-by: Simon Glass --- dts/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/dts/Kconfig b/dts/Kconfig index fb2d79e..ba83d5f 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -53,6 +53,7 @@ endchoice config DE

  1   2   3   >