[U-Boot] [PATCH] mmc: implement mmc power on write protect function

2015-12-03 Thread Lin Huang
set the mmc specific addresss and range as power on write protection, and can't earse and write this range if you enable it after mmc power on. Signed-off-by: Lin Huang --- drivers/mmc/mmc.c | 89 +++ include/mmc.h | 10 ++- 2 files cha

Re: [U-Boot] [PATCH] iocon: Disable FIT_VERBOSE

2015-12-03 Thread Dirk Eibach
Hi Tom, 2015-12-01 21:50 GMT+01:00 Tom Rini : > In order to fit into image constraints again, remove this feature. > > Signed-off-by: Tom Rini > --- > configs/iocon_defconfig |1 + > include/configs/iocon.h |2 -- > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/configs

Re: [U-Boot] [PATCH v2 02/26] dm: pci: Add a dm_ prefix to pci_get_bdf()

2015-12-03 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Most driver model PCI functions have a dm_ prefix. At some point, when the > old code is converted to driver model and the old functions are removed, we > will drop that prefix. > > For consistency, we should use the dm_ prefix for all driver m

Re: [U-Boot] [PATCH v2 03/26] dm: pci: Add a dm_ prefix to pci_bus_find_bdf()

2015-12-03 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Most driver model PCI functions have a dm_ prefix. At some point, when the > old code is converted to driver model and the old functions are removed, we > will drop that prefix. > > For consistency, we should use the dm_ prefix for all driver m

Re: [U-Boot] [PATCH v2 04/26] dm: pci: Use driver model PCI API in auto-config

2015-12-03 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > At present we are using legacy functions even in the auto-configuration code > used by driver model. Add a new pci_auto.c version which uses the correct > API. > > Create a new pci_internal.h header to hold functions that are used within > the

Re: [U-Boot] [PATCH v2 05/26] dm: pci: Add a driver-model version of pci_find_device()

2015-12-03 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Add a function which scans the driver model device information rather > than scanning the PCI bus again. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > Tested-by: Bin Meng

Re: [U-Boot] [PATCH v3 1/3] spl: mmc: Fix compiler warning with CONFIG_DM_MMC

2015-12-03 Thread Nikita Kiryanov
On Wed, Dec 02, 2015 at 10:59:11AM -0700, Simon Glass wrote: > Since commit 4188ba3 we get the following warning on rockchip boards: > > common/spl/spl_mmc.c:31:24: warning: ‘mmc’ may be used uninitialized in this > function [-Wmaybe-uninitialized] > count = mmc->block_dev.block_read(0, sector,

[U-Boot] [PATCH 4/5][v3] armv8/ls1043ardb: SECURE BOOT target added for NOR

2015-12-03 Thread Aneesh Bansal
LS1043ARDB Secure Boot Target from NOR has been added. - Configs defined to enable esbc_validate. - ESBC Address in header is made 64 bit. - SMMU is re-configured in Bypass mode. Signed-off-by: Aneesh Bansal --- Changes in v3: - Enabled CONFIG_SYS_NS16550=y, CONFIF_DM=y and other options simila

Re: [U-Boot] [PATCH v2 06/26] dm: pci: scsi: Use driver-model PCI API

2015-12-03 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Adjust the SCSI command to use driver model for its PCI interface. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Use dm_pci_get_bdf() > Reviewed-by: Bin Meng Tested-by: Bin Meng ___

Re: [U-Boot] [PATCH v2 07/26] dm: pci: Add a driver-model version of pci_find_class()

2015-12-03 Thread Bin Meng
On Mon, Nov 30, 2015 at 4:17 AM, Simon Glass wrote: > Add a function which scans the driver model device information rather > than scanning the PCI bus again. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > Tested-by: Bin Meng

Re: [U-Boot] [PATCH 1/1] fsl_qspi: Pet the watchdog while reading/writing

2015-12-03 Thread Huan Wang
Hi, York, > On Wednesday 25 November 2015 02:20:53, Huan Wang wrote: > > [Alison Wang] I didn't meet any issue when using sf commands to write > > and read the serial flash. > > > > Hi, Alexander, > > > > Could you show me the detail commands and process when you meet > such > > issue? Then I

[U-Boot] dm: Introduce SPI-NOR framework

2015-12-03 Thread Jagan Teki
Hi Simon, I re-phrase all the question from previous thread and continue in this for more discussion on spi-nor development. > Is it intended that SPI flash should be a driver for the MTD uclass? > Others would be NAND and CFI. From what I can tell MTD has the same > operations as SPI flash (e

Re: [U-Boot] [PATCH v7 00/34] sf: MTD support

2015-12-03 Thread Jagan Teki
Hi Simon, On 1 December 2015 at 04:47, Simon Glass wrote: > Hi Jagan, > > On 27 November 2015 at 02:21, Jagan Teki wrote: >> Hi Bin, >> >> On 27 November 2015 at 07:55, Bin Meng wrote: >>> Hi Jagan, >>> >>> On Fri, Nov 27, 2015 at 2:54 AM, Jagan Teki wrote: Hi Simon, Some how I'

Re: [U-Boot] [PATCH] sf: Remove #ifdef #endif in Makefile

2015-12-03 Thread Jagan Teki
Hi Bin, On 1 December 2015 at 15:37, Bin Meng wrote: > The #ifdef #endif in drivers/mtd/spi/Makefile actually does nothing > but causes confusion. Remove it. > > Signed-off-by: Bin Meng > --- > > drivers/mtd/spi/Makefile | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/mtd/spi/

Re: [U-Boot] [PATCH] sf: Remove #ifdef #endif in Makefile

2015-12-03 Thread Bin Meng
Hi Jagan, On Thu, Dec 3, 2015 at 6:17 PM, Jagan Teki wrote: > Hi Bin, > > On 1 December 2015 at 15:37, Bin Meng wrote: >> The #ifdef #endif in drivers/mtd/spi/Makefile actually does nothing >> but causes confusion. Remove it. >> >> Signed-off-by: Bin Meng >> --- >> >> drivers/mtd/spi/Makefile

Re: [U-Boot] [PATCH v7 06/34] sf: Fix Makefile

2015-12-03 Thread Bin Meng
On Thu, Nov 26, 2015 at 8:03 PM, Jagan Teki wrote: > This patch removes unneeded ifdef and fixed accordingly. > > Signed-off-by: Jagan Teki > --- > drivers/mtd/spi/Makefile | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/mtd/spi/Makefile b/drivers/mtd/spi/Ma

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-03 Thread Jagan Teki
Hi Bin, On 3 December 2015 at 10:14, Bin Meng wrote: > Hi Simon, > > On Thu, Dec 3, 2015 at 5:05 AM, Simon Glass wrote: >> +Jagan >> >> Hi Bin, >> >> On 1 December 2015 at 18:41, Bin Meng wrote: >>> >>> Hi Simon, >>> >>> On Wed, Dec 2, 2015 at 12:32 AM, Simon Glass wrote: >>> > Hi Bin, >>> > >

[U-Boot] [PATCH] dm: core: Distinguish between OF_TRANSLATE and SPL_OF_TRANSLATE

2015-12-03 Thread Michal Simek
Kconfig description is the same for both. Extend SPL one to indicate that this option is for SPL only. Signed-off-by: Michal Simek --- drivers/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index 15681df6d379..b68a26f

Re: [U-Boot] [PATCH] dm: core: Distinguish between OF_TRANSLATE and SPL_OF_TRANSLATE

2015-12-03 Thread Stefan Roese
On 03.12.2015 12:12, Michal Simek wrote: Kconfig description is the same for both. Extend SPL one to indicate that this option is for SPL only. Signed-off-by: Michal Simek --- drivers/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/Kconfig b/dri

Re: [U-Boot] [PATCH] dm: core: Add platform specific bus translation function

2015-12-03 Thread Stefan Roese
Hi Simon, On 02.12.2015 18:45, Simon Glass wrote: > Hi Stefan, > > On 2 December 2015 at 10:43, Stefan Roese wrote: >> Hi Simon, >> >> ( Last mail for tonight - a glass of quite nice red wine is >> waiting for me ... ;) ) >> > > That's the only sad thing about me being so many hours behind. Sti

Re: [U-Boot] [PATCH 7/7] dm: x86: spi: Convert ICH SPI driver to driver model PCI API

2015-12-03 Thread Jagan Teki
On 1 December 2015 at 09:41, Simon Glass wrote: > At present this SPI driver works by searching the PCI buses for its > peripheral. It also uses the legacy PCI API. > > In addition the driver has code to determine the type of Intel PCH that is > used (version 7 or version 9). Now that we have prop

Re: [U-Boot] [PATCH] imx: mx7dsabresd: Add QSPI support

2015-12-03 Thread Jagan Teki
On 30 November 2015 at 15:31, Stefano Babic wrote: > On 30/11/2015 10:45, Peng Fan wrote: >> Support qspi flashes for mx7dsabresd >> 1. introduce pin mux settings >> 2. enable qspi clock >> 3. introduce related macro definitions >> >> Default QSPI is not enabled, since we need hardware rework to u

Re: [U-Boot] [PATCH] arm: mvebu: Add SPI driver model support

2015-12-03 Thread Jagan Teki
On 27 November 2015 at 15:56, Stefan Roese wrote: > This patch enables the DM support for the SPI driver and the > SPI NOR flash chips. Some MVEBU boards boot from SPI NOR, so > adding the aliases and enabling CONFIG_DM_SEQ_ALIAS is needed > here. > > Signed-off-by: Stefan Roese > Cc: Luka Perkov

Re: [U-Boot] [PATCH] spi: ti_qspi: Use 4-byte opcode for mmap read

2015-12-03 Thread Jagan Teki
On 23 November 2015 at 17:43, Vignesh R wrote: > ti-qspi driver currently uses 3-byte addressing mode(and opcodes) for > memory-mapped read. This restricts maximum addressable flash size to > 16MB. > Enable the 4-byte addressing(and use 4-byte opcode) for memory-mapped > read to allow access to ad

Re: [U-Boot] [PATCH] iocon: Disable FIT_VERBOSE

2015-12-03 Thread Tom Rini
On Thu, Dec 03, 2015 at 09:40:46AM +0100, Dirk Eibach wrote: > Hi Tom, > > 2015-12-01 21:50 GMT+01:00 Tom Rini : > > In order to fit into image constraints again, remove this feature. > > > > Signed-off-by: Tom Rini > > --- > > configs/iocon_defconfig |1 + > > include/configs/iocon.h |2

Re: [U-Boot] [PATCH] spi: ti_qspi: Use 4-byte opcode for mmap read

2015-12-03 Thread Vignesh R
On 12/03/2015 05:25 PM, Jagan Teki wrote: > On 23 November 2015 at 17:43, Vignesh R wrote: >> ti-qspi driver currently uses 3-byte addressing mode(and opcodes) for >> memory-mapped read. This restricts maximum addressable flash size to >> 16MB. >> Enable the 4-byte addressing(and use 4-byte opco

Re: [U-Boot] [PATCH] spi: ti_qspi: Use 4-byte opcode for mmap read

2015-12-03 Thread Jagan Teki
On Thursday 03 December 2015 05:51 PM, Vignesh R wrote: On 12/03/2015 05:25 PM, Jagan Teki wrote: On 23 November 2015 at 17:43, Vignesh R wrote: ti-qspi driver currently uses 3-byte addressing mode(and opcodes) for memory-mapped read. This restricts maximum addressable flash size to 16MB. En

[U-Boot] Please pull u-boot-sparc/master

2015-12-03 Thread Francois Retief
Hello Tom, Please pull from u-boot-sparc master: The following changes since commit be30dfbabbee12770221f434d2aa08627e712b97: iocon: Disable FIT_VERBOSE (2015-12-01 15:49:42 -0500) are available in the git repository at: http://git.denx.de/u-boot-sparc.git master for you to fetch changes

Re: [U-Boot] [PATCH] dm: core: Distinguish between OF_TRANSLATE and SPL_OF_TRANSLATE

2015-12-03 Thread Michal Simek
On 3.12.2015 12:22, Stefan Roese wrote: > On 03.12.2015 12:12, Michal Simek wrote: >> Kconfig description is the same for both. Extend SPL one to indicate >> that this option is for SPL only. >> >> Signed-off-by: Michal Simek >> --- >> >> drivers/core/Kconfig | 2 +- >> 1 file changed, 1 insert

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-03 Thread Bin Meng
Hi Jagan, On Thu, Dec 3, 2015 at 6:24 PM, Jagan Teki wrote: > Hi Bin, > > On 3 December 2015 at 10:14, Bin Meng wrote: >> Hi Simon, >> >> On Thu, Dec 3, 2015 at 5:05 AM, Simon Glass wrote: >>> +Jagan >>> >>> Hi Bin, >>> >>> On 1 December 2015 at 18:41, Bin Meng wrote: Hi Simon,

Re: [U-Boot] [PATCH v3] dm: core: Enable optional use of fdt_translate_address()

2015-12-03 Thread Bin Meng
Hi Stefan, Simon, On Mon, Oct 19, 2015 at 7:16 AM, Simon Glass wrote: > On 29 September 2015 at 23:00, Stefan Roese wrote: >> The current "simple" address translation simple_bus_translate() is not >> working on some platforms (e.g. MVEBU). As here more complex "ranges" >> properties are used in

Re: [U-Boot] [PATCH v3] dm: core: Enable optional use of fdt_translate_address()

2015-12-03 Thread Stefan Roese
Hi Bin, On 03.12.2015 14:34, Bin Meng wrote: Hi Stefan, Simon, On Mon, Oct 19, 2015 at 7:16 AM, Simon Glass wrote: On 29 September 2015 at 23:00, Stefan Roese wrote: The current "simple" address translation simple_bus_translate() is not working on some platforms (e.g. MVEBU). As here more c

[U-Boot] [PATCH v4] common: board: Dont relocate FDT incase of CONFIG_OF_EMBED

2015-12-03 Thread Michal Simek
From: Siva Durga Prasad Paladugu Don't relocate fdt in case of CONFIG_OF EMBED as the fdt is already embedded with u-boot image. Update fdt_blob after relocation as the fdt will be copied during u-boot relocation. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek Reviewed-b

[U-Boot] [PATCH v3 02/14] ARM: zynq: Remove CONFIG_API

2015-12-03 Thread Michal Simek
CONFIG_API is causing compilation error when DM_ETH is enabled because eth_get_dev() is not available. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None include/configs/zynq-common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/zynq-common.h b/includ

[U-Boot] [PATCH v3 01/14] ARM: zynq: Remove PHYLIB from config to defconfig

2015-12-03 Thread Michal Simek
Move PHYLIB from board config to defconfig Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None configs/zynq_microzed_defconfig| 1 + configs/zynq_picozed_defconfig | 1 + configs/zynq_zc702_defconfig | 1 + configs/zynq_zc706_defconfig | 1 + configs/zyn

[U-Boot] [PATCH v3 05/14] net: gem: Change mii function not to use eth_device structure

2015-12-03 Thread Michal Simek
Next step to move driver to driver model. Do not use eth_device structure. Use private structure instead. Add iobase to private structure to store gem iobase. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 32 +++- 1

[U-Boot] [PATCH v3 03/14] net: gem: Do not continue if phy is not found

2015-12-03 Thread Michal Simek
Add return value for phy detection algorithm to stop init function when phy is not found. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/zynq_gem.c b/

[U-Boot] [PATCH v3 08/14] net: gem: Check if priv->phydev is valid

2015-12-03 Thread Michal Simek
Check return value. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 86bb75905071..d5540ec2155c 100644 --- a/drivers/net/zynq_gem.c +++ b/dr

[U-Boot] [PATCH v3 10/14] net: gem: Remove zynq_gem_of_init()

2015-12-03 Thread Michal Simek
This function was used for OF init before DM. Remove this function as the part of move to DM. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 42 -- include/netdev.h | 1 -

[U-Boot] [PATCH v3 07/14] net: gem: Extract phy init code

2015-12-03 Thread Michal Simek
Move phy init code out of zynq_gem_init. DM drivers are normally calling this code from probe function. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 47 ++- 1 file changed, 30 insertions(+), 17 dele

[U-Boot] [PATCH v3 14/14] net: gem: Move gem to Kconfig

2015-12-03 Thread Michal Simek
Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None configs/xilinx_zynqmp_ep_defconfig | 1 + configs/zynq_microzed_defconfig| 1 + configs/zynq_picozed_defconfig | 1 + configs/zynq_zc702_defconfig | 1 + configs/zynq_zc706_defconfig | 1 + configs/zynq_

[U-Boot] [PATCH v3 13/14] net: gem: Read information about interface from DT

2015-12-03 Thread Michal Simek
Do not set interface via configs. Read information from DT. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c i

[U-Boot] [PATCH v3 06/14] net: gem: Remove phydev variable

2015-12-03 Thread Michal Simek
Resort code to use priv->phydev variable directly. It will simplify move to DM. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/net/zynq_gem.c b/

[U-Boot] [PATCH v3 11/14] net: gem: Fix miiphy_read name

2015-12-03 Thread Michal Simek
Sync it with write function. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index a569c77aeb60..4e93707c7ab1 100644 --- a/driv

[U-Boot] [PATCH v3 04/14] net: gem: Change mdio_wait prototype to pass regs

2015-12-03 Thread Michal Simek
Pass regs instead of dev because this will be chagned by driver model. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index

[U-Boot] [PATCH v3 12/14] net: gem: Move driver to DM

2015-12-03 Thread Michal Simek
- Enable DM_ETH by default for Zynq and ZynqMP - Remove board_eth_init code - Change miiphy_read function to return value instead of error code based on DM requirement - Do not enable EMIO DT support by default Signed-off-by: Michal Simek --- Changes in v3: - Add remove function reported by Bi

[U-Boot] [PATCH v3 09/14] net: gem: Enable MDIO bus earlier

2015-12-03 Thread Michal Simek
Enable access to MDIO before zynq_gem_init is called. It enables read information about phy earlier. Signed-off-by: Michal Simek --- Changes in v3: None Changes in v2: None drivers/net/zynq_gem.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net/zyn

Re: [U-Boot] [PATCH 1/1] fsl_qspi: Pet the watchdog while reading/writing

2015-12-03 Thread Alexander Stein
Hi, On Thursday 03 December 2015 09:49:40, Huan Wang wrote: > [Alison Wang] I could not reproduce the issue. Maybe I don't have the > external watchdog which will reset after ~1.5s as Alexander mentioned. Could you try to set the internal watchdog to 1s timeout? This should be more or less the s

Re: [U-Boot] [PATCH v3 10/16] drivers: mtd: spi: sf_probe: add compatible for spansion spi flash

2015-12-03 Thread Jagan Teki
Hi Mugunthan, On 23 November 2015 at 18:42, Jagan Teki wrote: > On 23 November 2015 at 16:59, Mugunthan V N wrote: >> On Friday 20 November 2015 05:57 PM, Jagan Teki wrote: >>> On 20 November 2015 at 11:31, Mugunthan V N wrote: Jagan On Thursday 19 November 2015 03:40 PM, Jagan T

Re: [U-Boot] [PATCH 1/1] fsl_qspi: Pet the watchdog while reading/writing

2015-12-03 Thread York Sun
On 12/03/2015 01:49 AM, Wang Huan-B18965 wrote: >> >> The actual command which results in a watchdog reset is 'sf read >> 0x8104 0x20 0x40'. Please note that this uses an external >> watchdog which is enabled by default and resets after ~1.5s. The command >> itself takes about 2s (

Re: [U-Boot] [PATCH v3 05/16] spi: Add support for dual and quad mode

2015-12-03 Thread Jagan Teki
On 19 November 2015 at 12:35, Mugunthan V N wrote: > spi bus can support dual and quad wire data transfers for tx and > rx. So defining dual and quad modes for both tx and rx. Also add > support to parse bus width used for spi tx and rx transfers. > > Signed-off-by: Mugunthan V N > Reviewed-by: S

Re: [U-Boot] [PATCH v3 02/14] ARM: zynq: Remove CONFIG_API

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:17, Michal Simek wrote: > CONFIG_API is causing compilation error when DM_ETH is enabled because > eth_get_dev() is not available. Then how come, freebsd elf generate w/o CONFIG_API? > > Signed-off-by: Michal Simek > --- > > Changes in v3: None > Changes in v2: None > >

Re: [U-Boot] [PATCH v3 01/14] ARM: zynq: Remove PHYLIB from config to defconfig

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:17, Michal Simek wrote: > Move PHYLIB from board config to defconfig > > Signed-off-by: Michal Simek > --- Reviewed-by: Jagan Teki thanks! -- Jagan. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/l

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-12-03 Thread Chin Liang See
On Thu, 2015-12-03 at 01:10 +0100, Marek Vasut wrote: > On Thursday, November 12, 2015 at 03:33:42 AM, Chin Liang See wrote: > > On Thu, 2015-11-12 at 01:53 +0100, Marek Vasut wrote: > > > On Thursday, November 12, 2015 at 01:49:09 AM, Chin Liang See > > > wrote: > > > > Hi Marek, > > > > > > > >

Re: [U-Boot] [PATCH v3 12/14] net: gem: Move driver to DM

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:18, Michal Simek wrote: > - Enable DM_ETH by default for Zynq and ZynqMP > - Remove board_eth_init code > - Change miiphy_read function to return value instead of error code > based on DM requirement > - Do not enable EMIO DT support by default > > Signed-off-by: Michal

Re: [U-Boot] [PATCH v3 14/14] net: gem: Move gem to Kconfig

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:18, Michal Simek wrote: > Signed-off-by: Michal Simek > --- Reviewed-by: Jagan Teki > > Changes in v3: None > Changes in v2: None > > configs/xilinx_zynqmp_ep_defconfig | 1 + > configs/zynq_microzed_defconfig| 1 + > configs/zynq_picozed_defconfig | 1 + > co

Re: [U-Boot] [PATCH v3 13/14] net: gem: Read information about interface from DT

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:18, Michal Simek wrote: > Do not set interface via configs. Read information from DT. > > Signed-off-by: Michal Simek > --- Reviewed-by: Jagan Teki thanks! -- Jagan. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.

Re: [U-Boot] [PATCH] arm: socfpga: Fix cache configuration

2015-12-03 Thread Marek Vasut
On Thursday, December 03, 2015 at 05:11:23 PM, Chin Liang See wrote: [...] > > I have another board where I cannot use UBI on QSPI NOR and reverting > > this > > patch magically fixes things. > > I was testing this too as enabling the UBIFS on NOR and here are my > output. Wonder how to simulate

Re: [U-Boot] [PATCH v3 10/14] net: gem: Remove zynq_gem_of_init()

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:17, Michal Simek wrote: > This function was used for OF init before DM. > Remove this function as the part of move to DM. > > Signed-off-by: Michal Simek > Reviewed-by: Simon Glass > --- Reviewed-by: Jagan Teki thanks! -- Jagan. __

Re: [U-Boot] [PATCH v3 03/14] net: gem: Do not continue if phy is not found

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:17, Michal Simek wrote: > Add return value for phy detection algorithm to stop init function when > phy is not found. > > Signed-off-by: Michal Simek > --- Reviewed-by: Jagan Teki thanks! -- Jagan. ___ U-Boot mailing list U-

Re: [U-Boot] [PATCH v3 11/14] net: gem: Fix miiphy_read name

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:17, Michal Simek wrote: > Sync it with write function. > > Signed-off-by: Michal Simek > --- Reviewed-by: Jagan Teki thanks! -- Jagan. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v3 08/14] net: gem: Check if priv->phydev is valid

2015-12-03 Thread Jagan Teki
On 3 December 2015 at 20:17, Michal Simek wrote: > Check return value. > > Signed-off-by: Michal Simek > --- Reviewed-by: Jagan Teki thanks! -- Jagan. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v5] arm: Add sata support on Layerscape ARMv8 board

2015-12-03 Thread York Sun
On 12/01/2015 07:27 PM, yuantian.t...@freescale.com wrote: > From: Tang Yuantian > > Freescale ARM-based Layerscape contains a SATA controller > which comply with the serial ATA 3.0 specification and the > AHCI 1.3 specification. > This patch adds SATA feature on ls2080aqds, ls2080ardb and > ls

Re: [U-Boot] [PATCH v7 08/34] sf: Use flash function pointers in dm_spi_flash_ops

2015-12-03 Thread Jagan Teki
Hi Simon, On 26 November 2015 at 23:20, Simon Glass wrote: > Hi Jagan, > > On 26 November 2015 at 04:03, Jagan Teki wrote: >> flash operations are defined as static and reuse them >> with function-pointers so call them with generic >> function pounters instead of calling like normal functions. >

Re: [U-Boot] [PATCH v3] dm: core: Enable optional use of fdt_translate_address()

2015-12-03 Thread Stephen Warren
On 12/03/2015 07:12 AM, Stefan Roese wrote: Hi Bin, On 03.12.2015 14:34, Bin Meng wrote: Hi Stefan, Simon, On Mon, Oct 19, 2015 at 7:16 AM, Simon Glass wrote: On 29 September 2015 at 23:00, Stefan Roese wrote: The current "simple" address translation simple_bus_translate() is not working o

[U-Boot] [PATCH 1/2] sunxi: twi: enable clocks on sun7i

2015-12-03 Thread Olliver Schinagl
From: Olliver Schinagl Commit 6c739c5d added code to enable i2c bus 4 and 5 on the sun7i SoC but forgot to enable the clocks for these 2 i2c busses. This patch enables the clocks for i2c bus 4 and 5 on sun7i. Signed-off-by: Olliver Schinagl --- arch/arm/cpu/armv7/sunxi/clock_sun4i.c | 4

[U-Boot] [PATCH 0/2] arm: sunxi: twi: enable clock for sun7i

2015-12-03 Thread Olliver Schinagl
From: Olliver Schinagl Paul enabled all I2C ports for sunxi but forgot the clock on twi 4 and 5 for sun7i. And a small non code changing whitespace fix Tested on Olimex Lime2 Olliver Schinagl (2): sunxi: twi: enable clocks on sun7i sun4i: clock: cleanup some whitespace errors arch/arm/c

[U-Boot] [PATCH 2/2] sun4i: clock: cleanup some whitespace errors

2015-12-03 Thread Olliver Schinagl
From: Olliver Schinagl Add some spaces around operators. Signed-off-by: Olliver Schinagl --- arch/arm/cpu/armv7/sunxi/clock_sun4i.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/armv7/sunxi/clock_sun4i.c b/arch/arm/cpu/armv7/sunxi/clock_sun4i.c index e

Re: [U-Boot] [PATCH] distro_bootcmd: do not try to fetch unused bootfile for PXE

2015-12-03 Thread Stephen Warren
On 12/02/2015 04:15 PM, Stefan Brüns wrote: pxe get derives the pxelinux config file name from the bootfile name, but the bootfile itself is never used and might not even exist. Disable bootfile autoload to avoid the delay. I wasn't CC'd on this and only accidentally noticed it, since it just

[U-Boot] [PATCH 1/2] spi: Get spi-3wire from dts

2015-12-03 Thread Jagan Teki
spi-3wire is used when SI/SO signals shared so get the same from dts node and assign to mode on slave plat->mode. Cc: Simon Glass Signed-off-by: Jagan Teki --- drivers/spi/spi-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c inde

Re: [U-Boot] [PATCH] dm: core: Add platform specific bus translation function

2015-12-03 Thread Simon Glass
Hi Stefan, On 3 December 2015 at 04:31, Stefan Roese wrote: > > Hi Simon, > > On 02.12.2015 18:45, Simon Glass wrote: > > Hi Stefan, > > > > On 2 December 2015 at 10:43, Stefan Roese wrote: > >> Hi Simon, > >> > >> ( Last mail for tonight - a glass of quite nice red wine is > >> waiting for me .

[U-Boot] [PATCH 2/2] spi: ti_qspi: Fix SPI_3WIRE checking using mode

2015-12-03 Thread Jagan Teki
SPI_3WIRE is spi mode not spi flags, so this patch fixed the spi-3wire checking throgh mode instead of flags. Cc: Mugunthan V N Cc: Simon Glass Signed-off-by: Jagan Teki --- drivers/spi/ti_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/ti_qspi.c b/driver

Re: [U-Boot] [PATCH v3 02/14] ARM: zynq: Remove CONFIG_API

2015-12-03 Thread Jeroen Hofstee
Hi, On 03-12-15 17:09, Jagan Teki wrote: On 3 December 2015 at 20:17, Michal Simek wrote: CONFIG_API is causing compilation error when DM_ETH is enabled because eth_get_dev() is not available. Then how come, freebsd elf generate w/o CONFIG_API? Signed-off-by: Michal Simek --- Changes in v

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

2015-12-03 Thread Pavel Machek
Hi! > > > OK, this is bad. Originally, if we didn't specify these in the DT, we > > > would > > > use the default values of 0x3 and 0x0 , but now we do the > > > calibration. I wonder, > > > do we care about DT ABI compatibility on the U-Boot level or not ? > > > > If the compatibility failed, it

Re: [U-Boot] [PATCHv2 1/9] arm: socfpga: arria10: add system manager defines

2015-12-03 Thread Pavel Machek
On Tue 2015-12-01 10:48:31, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Add system manager defines for Arria10. > > Signed-off-by: Dinh Nguyen With whitespace cleaned up: Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http:/

Re: [U-Boot] [PATCHv2 2/9] arm: socfpga: arria10: add reset manager for Arria10

2015-12-03 Thread Pavel Machek
On Tue 2015-12-01 19:51:39, Marek Vasut wrote: > On Tuesday, December 01, 2015 at 05:48:32 PM, dingu...@opensource.altera.com > wrote: > > From: Dinh Nguyen > > > > Add the defines for the reset manager and some basic reset functionality. > > > > Signed-off-by: Dinh Nguyen > > --- > > v2: inte

Re: [U-Boot] [PATCHv2 4/9] arm: socfpga: arria10: add misc functions for Arria10

2015-12-03 Thread Pavel Machek
> > +#if defined(CONFIG_TARGET_SOCFPGA_ARRIA10) > > + puts("CPU : Altera SOCFPGA Arria 10 Platform\n"); > > No FPGA type detection happens on A10 ? :) Also, CPU is not "Arria 10 > platform", > CPU is still Altera SoCFPGA or possibly Altera SoCFPGA Arria 10 , right ? > Well. .. cpu is "gener

Re: [U-Boot] [PATCH] arm: socfpga: fix up a questionable macro for SDMMC

2015-12-03 Thread Pavel Machek
On Tue 2015-12-01 17:33:02, Dinh Nguyen wrote: > On 12/01/2015 05:30 PM, Marek Vasut wrote: > > On Wednesday, December 02, 2015 at 12:20:47 AM, > > dingu...@opensource.altera.com > > wrote: > >> From: Dinh Nguyen > >> > >> Not sure what made this macro questionable, but edit the macro to be > >>

Re: [U-Boot] [PATCHv4 3/9] arm: socfpga: arria10: add reset manager for Arria10

2015-12-03 Thread Pavel Machek
On Wed 2015-12-02 13:31:27, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Add the defines for the reset manager and some basic reset functionality. > > Signed-off-by: Dinh Nguyen > --- > v4: rename mod_reset names to be used by both gen5 and a10 > v3: remove duplicate reset func

Re: [U-Boot] [PATCH 1/8] x86: fsp: Simplify fsp_continue()

2015-12-03 Thread Simon Glass
Hi Bin, On 2 December 2015 at 22:11, Bin Meng wrote: > Hi Simon, > > On Thu, Dec 3, 2015 at 5:05 AM, Simon Glass wrote: >> Hi Bin, >> >> On 2 December 2015 at 01:58, Bin Meng wrote: >>> There is no need to pass shared_data to fsp_continue() so we can >>> remove unnecessary codes that simplifies

Re: [U-Boot] Next for x86?

2015-12-03 Thread Simon Glass
Hi Bin, On 2 December 2015 at 21:57, Bin Meng wrote: > Hi Simon, > > On Thu, Nov 26, 2015 at 12:52 AM, Simon Glass wrote: >> Hi Bin, >> >> On 19 November 2015 at 20:38, Bin Meng wrote: >>> Hi Simon, >>> >>> On Fri, Nov 20, 2015 at 11:09 AM, Simon Glass wrote: Hi, I'm wondering w

Re: [U-Boot] [PATCH 4/8] x86: fsp: Rename shared_data to fsp_config_data

2015-12-03 Thread Simon Glass
Hi Bin, On 2 December 2015 at 22:18, Bin Meng wrote: > Hi Simon, > > On Thu, Dec 3, 2015 at 5:05 AM, Simon Glass wrote: >> Hi Bin, >> >> On 2 December 2015 at 01:59, Bin Meng wrote: >>> FSP has several config data like UPD, HDA verb table which can be >>> overridden or provided by bootloader. C

Re: [U-Boot] [PATCH v2 12/14] net: gem: Move driver to DM

2015-12-03 Thread Simon Glass
Hi Michal, On 2 December 2015 at 22:00, Bin Meng wrote: > Hi Michal, > > On Wed, Dec 2, 2015 at 9:51 PM, Michal Simek wrote: >> On 2.12.2015 14:16, Bin Meng wrote: >>> Hi Michal, >>> >>> On Wed, Dec 2, 2015 at 7:36 PM, Michal Simek >>> wrote: >> >> ... >> + + offset = fdtdec_lo

Re: [U-Boot] [PATCH 7/8] x86: fsp: Move VPD/UPD verification to update_fsp_configs()

2015-12-03 Thread Simon Glass
Hi Bin, On 2 December 2015 at 22:22, Bin Meng wrote: > Hi Simon, > > On Thu, Dec 3, 2015 at 5:05 AM, Simon Glass wrote: >> Hi Bin, >> >> On 2 December 2015 at 01:59, Bin Meng wrote: >>> Since VPD/UPD may not exist on every FSP, move the codes that >>> verifies VPD/UPD to chipset-specific update

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-03 Thread Simon Glass
Hi, On 3 December 2015 at 06:27, Bin Meng wrote: > Hi Jagan, > > On Thu, Dec 3, 2015 at 6:24 PM, Jagan Teki wrote: >> Hi Bin, >> >> On 3 December 2015 at 10:14, Bin Meng wrote: >>> Hi Simon, >>> >>> On Thu, Dec 3, 2015 at 5:05 AM, Simon Glass wrote: +Jagan Hi Bin, On 1

Re: [U-Boot] [PATCH 1/2] spi: Get spi-3wire from dts

2015-12-03 Thread Simon Glass
On 3 December 2015 at 10:12, Jagan Teki wrote: > spi-3wire is used when SI/SO signals shared so get > the same from dts node and assign to mode on slave > plat->mode. > > Cc: Simon Glass > Signed-off-by: Jagan Teki > --- > drivers/spi/spi-uclass.c | 2 ++ > 1 file changed, 2 insertions(+) Acke

Re: [U-Boot] [PATCH v3 12/14] net: gem: Move driver to DM

2015-12-03 Thread Simon Glass
On 3 December 2015 at 07:48, Michal Simek wrote: > > - Enable DM_ETH by default for Zynq and ZynqMP > - Remove board_eth_init code > - Change miiphy_read function to return value instead of error code > based on DM requirement > - Do not enable EMIO DT support by default > > Signed-off-by: Micha

Re: [U-Boot] [PATCH 2/2] spi: ti_qspi: Fix SPI_3WIRE checking using mode

2015-12-03 Thread Simon Glass
On 3 December 2015 at 10:12, Jagan Teki wrote: > SPI_3WIRE is spi mode not spi flags, so this patch fixed > the spi-3wire checking throgh mode instead of flags. > > Cc: Mugunthan V N > Cc: Simon Glass > Signed-off-by: Jagan Teki > --- > drivers/spi/ti_qspi.c | 2 +- > 1 file changed, 1 inserti

Re: [U-Boot] [PATCH v3 12/14] net: gem: Move driver to DM

2015-12-03 Thread Joe Hershberger
Hi Simon, On Thu, Dec 3, 2015 at 12:57 PM, Simon Glass wrote: > > On 3 December 2015 at 07:48, Michal Simek wrote: > > > > - Enable DM_ETH by default for Zynq and ZynqMP > > - Remove board_eth_init code > > - Change miiphy_read function to return value instead of error code > > based on DM req

Re: [U-Boot] [PATCH v3 12/14] net: gem: Move driver to DM

2015-12-03 Thread Simon Glass
Hi Joe, On 3 December 2015 at 12:00, Joe Hershberger wrote: > Hi Simon, > > On Thu, Dec 3, 2015 at 12:57 PM, Simon Glass wrote: >> >> On 3 December 2015 at 07:48, Michal Simek wrote: >> > >> > - Enable DM_ETH by default for Zynq and ZynqMP >> > - Remove board_eth_init code >> > - Change miiphy_

Re: [U-Boot] [PATCH] iocon: Disable FIT_VERBOSE

2015-12-03 Thread Dirk Eibach
Hi Tom, 2015-12-03 13:19 GMT+01:00 Tom Rini : > On Thu, Dec 03, 2015 at 09:40:46AM +0100, Dirk Eibach wrote: >> Hi Tom, >> >> 2015-12-01 21:50 GMT+01:00 Tom Rini : >> > In order to fit into image constraints again, remove this feature. >> > >> > Signed-off-by: Tom Rini >> > --- >> > configs/ioco

Re: [U-Boot] [PATCHv4 4/9] arm: socfpga: arria10: add misc functions for Arria10

2015-12-03 Thread Dinh Nguyen
On 12/02/2015 08:47 PM, Marek Vasut wrote: > On Wednesday, December 02, 2015 at 08:31:28 PM, > dingu...@opensource.altera.com > wrote: >> From: Dinh Nguyen >> >> Add arch_early_init_r function. The Arria10 has a firewall protection >> around the SDRAM and OCRAM. These firewalls are to be disable

[U-Boot] [PATCHv5 1/2] arm: socfpga: arria10: add reset manager for Arria10

2015-12-03 Thread dinguyen
From: Dinh Nguyen Add the defines for the reset manager and some basic reset functionality. Signed-off-by: Dinh Nguyen --- v5: rename the mod_reest on A10 to match those in gen5 v4: rename mod_reset names to be used by both gen5 and a10 v3: remove duplicate reset function use CONFIG_SOCFPGA

[U-Boot] [PATCH 2/2] arm: socfpga: add define for bootinfo bsel bit shift

2015-12-03 Thread dinguyen
From: Dinh Nguyen On arria5/cyclone5 parts, the bsel bits are at shift 0, while for arria10, the bsel bits are at shift 12. Add SYSMGR_BOOTINFO_BSEL_SHIFT define so that the reading the bsel can generic. Suggested-by: Marek Vasut Signed-off-by: Dinh Nguyen --- arch/arm/mach-socfpga/include/ma

Re: [U-Boot] [PATCHv2 4/9] arm: socfpga: arria10: add misc functions for Arria10

2015-12-03 Thread Marek Vasut
On Thursday, December 03, 2015 at 07:35:54 PM, Pavel Machek wrote: > > > +#if defined(CONFIG_TARGET_SOCFPGA_ARRIA10) > > > + puts("CPU : Altera SOCFPGA Arria 10 Platform\n"); > > > > No FPGA type detection happens on A10 ? :) Also, CPU is not "Arria 10 > > platform", CPU is still Altera SoCFPGA

Re: [U-Boot] [U-Boot,v3,09/13] ns16550: unify serial_tegra

2015-12-03 Thread Stephen Warren
On 11/22/2015 08:53 AM, Tom Rini wrote: On Thu, Nov 19, 2015 at 09:48:11PM +0800, Thomas Chou wrote: Unify serial_tegra, and use the generic binding. Signed-off-by: Thomas Chou Reviewed-by: Tom Rini Acked-by: Simon Glass Applied to u-boot/master, thanks! FYI, this patch causes at least

Re: [U-Boot] [PATCH v5 1/8] dm: tegra: pci: Move CONFIG_PCI_TEGRA to Kconfig

2015-12-03 Thread Stephen Warren
On 11/19/2015 08:26 PM, Simon Glass wrote: Move this option to Kconfig and fix up all users. The version of this that got committed (as fde7e18938d8) contains merge markers in a four files. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.d

Re: [U-Boot] [U-Boot,v3,09/13] ns16550: unify serial_tegra

2015-12-03 Thread Simon Glass
Hi Stephen, On 3 December 2015 at 14:33, Stephen Warren wrote: > On 11/22/2015 08:53 AM, Tom Rini wrote: >> >> On Thu, Nov 19, 2015 at 09:48:11PM +0800, Thomas Chou wrote: >> >>> Unify serial_tegra, and use the generic binding. >>> >>> Signed-off-by: Thomas Chou >>> Reviewed-by: Tom Rini >>> Ac

Re: [U-Boot] [PATCH v5 1/8] dm: tegra: pci: Move CONFIG_PCI_TEGRA to Kconfig

2015-12-03 Thread Simon Glass
Hi, On 3 December 2015 at 14:35, Stephen Warren wrote: > On 11/19/2015 08:26 PM, Simon Glass wrote: >> >> Move this option to Kconfig and fix up all users. > > > The version of this that got committed (as fde7e18938d8) contains merge > markers in a four files. Ugh. I had that problem locally in

Re: [U-Boot] [PATCH] Don't try to stat() a colon separated list of files in multi or script mode

2015-12-03 Thread Simon Glass
Hi, On 3 December 2015 at 14:55, Nye Liu wrote: > > On 11/19/2015 6:15 AM, Simon Glass wrote: >> Hi, >> >> On 18 November 2015 at 17:37, Nye Liu wrote: >>> --- >>> tools/mkimage.c | 32 +++- >>> 1 file changed, 19 insertions(+), 13 deletions(-) >>> >> >> Can you plea

  1   2   >