[U-Boot] [PATCH v3 2/5] spi: make mode visible to both dm and non-dm

2015-12-14 Thread Jagan Teki
Couldn't find the exact reason to define 'mode' for dm, probably it is not using in non-dm drivers but it need to visible both dm and non-dm as mode data is getting dereferred in spi flash core ie common to both. Cc: Bin Meng Cc: Simon Glass Signed-off-by: Jagan Teki --- Changes for v3: make mo

Re: [U-Boot] [U-Boot, v2, 6/7] mtd/st_smi: Use page sizes respective to flash

2015-12-14 Thread Heiko Schocher
Hello Vipin, Am 06.12.2012 um 09:47 schrieb Vipin Kumar: The page size is a flash dependent property and the driver was using a macro in place of page size. This patch uses the proper page size wrt the flash device connected on board Signed-off-by: Vipin Kumar Acked-by: Stefan Roese --- dri

[U-Boot] [PATCH v2] dm: core: Add option to configure an offset for the address translation

2015-12-14 Thread Stefan Roese
Some platforms need to ability to configure an offset to the standard addresses extracted from the device-tree. This patch allows this by adding a function to DM to configure this offset (if needed). Signed-off-by: Stefan Roese Cc: Simon Glass --- v2: - Change translation_offset type from u32 to

Re: [U-Boot] [PATCH v3 2/5] spi: make mode visible to both dm and non-dm

2015-12-14 Thread Bin Meng
Hi Jagan, On Mon, Dec 14, 2015 at 4:49 PM, Jagan Teki wrote: > Couldn't find the exact reason to define 'mode' for dm, > probably it is not using in non-dm drivers but it need > to visible both dm and non-dm as mode data is getting > dereferred in spi flash core ie common to both. > > Cc: Bin Men

[U-Boot] [PATCH v3 2/5] spi: make mode visible to both dm and non-dm

2015-12-14 Thread Jagan Teki
Couldn't find the exact reason to define 'mode' for dm, probably it is not using in non-dm drivers but it need to visible both dm and non-dm as mode data is getting dereferred in spi flash core ie common to both. Cc: Bin Meng Cc: Simon Glass Signed-off-by: Jagan Teki --- Changes for v3: - none

Re: [U-Boot] [PATCH 0/8] m68k, mips, powerpc, kbuild: move CONFIG_SYS_TEXT_BASE

2015-12-14 Thread Angelo Dureghello
On 11/12/2015 04:22, Masahiro Yamada wrote: Currently, CONFIG_SYS_TEXT_BASE is defined in various ways: [1] by board/${VENDOR}/${BOARD}/config.mk [2] by CONFIG_SYS_EXTRA_OPTIONS (This was "options" field of boards.cfg before Kconfig conversion) [3] by include/configs/${BOARD}.h [4] by c

[U-Boot] [PATCH v3 3/5] spi: Use mode instead of op_mode_tx

2015-12-14 Thread Jagan Teki
Used mode member from spi_slave{} instead of op_mode_tx. Cc: Bin Meng Cc: Simon Glass Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/sf_probe.c | 2 +- drivers/mtd/spi/spi_flash.c | 4 ++-- drivers/spi/ich.c | 2 +- include/spi.h

[U-Boot] [PATCH v3 4/5] spi: Rename SPI_TX_BP|QPP to SPI_TX_BYTE|QUAD

2015-12-14 Thread Jagan Teki
Since SPI_TX_* are spi_slave{} members so use spi protocol notation instead spi flash programming, like SPI_TX_BP => SPI_TX_BYTE SPI_TX_QPP => SPI_TX_QUAD Cc: Bin Meng Cc: Simon Glass Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/sf_probe.c | 2

[U-Boot] [PATCH v3 1/5] sf: Get spi locally from spi_flash

2015-12-14 Thread Jagan Teki
For better code readabilty, get the spi pointer from spi_flash{} locally and use it instead of direct dereferring spi pinter as flash->spi->* Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - Fixed missing spi declaration for sst_write_* drivers/mtd/spi/spi_flash.c | 51 +++

[U-Boot] [PATCH v3 5/5] sf: Move spi_read_cmds_array locally

2015-12-14 Thread Jagan Teki
Since spi_read_cmds_array is used locally in spi_flash_scan, so move array to locally used function instead of defining global array. Reviewed-by: Bin Meng Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/spi_flash.c | 20 1 file

[U-Boot] [PATCH] i2c: mxc: allow executing the code that only applies to i.MX platforms

2015-12-14 Thread Gong Qianyu
The bus_i2c_init() is called before relocation and will assgin value to a static variable. If U-Boot is then still running in a flash device, it's theoretically not allowed to write data to flash without an erasing operation. For i.MX platforms, the U-Boot is always running in DDR. Actually it cau

Re: [U-Boot] [PATCH 3/5] ls102xa: Enable snoop and DVM message requests.

2015-12-14 Thread Yao Yuan
Hi York, I'm sorry I'm late replies. Thanks for reminding me. We have some investigates and then depend on the document we think both snoop request and DVM are supported on those port. So we think the setting should be ok in here. Best Regards, Yuan Yao > -Original Message- > From: Yor

[U-Boot] [PATCH 1/3] spi: fsl_qspi: fix an error of using GENMASK

2015-12-14 Thread Gong Qianyu
This commit fixes the change of bad490a24212c068c5b718b9189f47ea4075d078. Signed-off-by: Gong Qianyu --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ed39114..d8d37cd 100644 --- a/drivers/spi/fsl_

[U-Boot] [PATCH 2/3] spi: fsl_qspi: fix compile warning for 64-bit platform

2015-12-14 Thread Gong Qianyu
This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] priv->regs = (struct fsl_qspi_regs *)plat

Re: [U-Boot] [PATCH] i2c: mxc: allow executing the code that only applies to i.MX platforms

2015-12-14 Thread York Sun
On 12/14/2015 06:23 PM, Gong Qianyu wrote: > The bus_i2c_init() is called before relocation and will assgin > value to a static variable. If U-Boot is then still running in a > flash device, it's theoretically not allowed to write data to flash > without an erasing operation. For i.MX platforms,

[U-Boot] [PATCH 1/3] spi: fsl_qspi: fix an error of using GENMASK

2015-12-14 Thread Gong Qianyu
This commit fixes the change of bad490a24212c068c5b718b9189f47ea4075d078. Signed-off-by: Gong Qianyu --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ed39114..d8d37cd 100644 --- a/drivers/spi/fsl_

[U-Boot] [PATCH 2/3] spi: fsl_qspi: fix compile warning for 64-bit platform

2015-12-14 Thread Gong Qianyu
This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] priv->regs = (struct fsl_qspi_regs *)plat

Re: [U-Boot] [PATCH 3/5] ls102xa: Enable snoop and DVM message requests.

2015-12-14 Thread York Sun
On 12/14/2015 06:35 PM, Yuan Yao-B46683 wrote: > Hi York, > > I'm sorry I'm late replies. > > Thanks for reminding me. > We have some investigates and then depend on the document we think both snoop > request and DVM are supported on those port. > So we think the setting should be ok in here.

[U-Boot] [PATCH 1/3] spi: fsl_qspi: fix an error of using GENMASK

2015-12-14 Thread Gong Qianyu
This commit fixes the change of bad490a24212c068c5b718b9189f47ea4075d078. Signed-off-by: Gong Qianyu --- drivers/spi/fsl_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ed39114..d8d37cd 100644 --- a/drivers/spi/fsl_

[U-Boot] [PATCH 2/3] spi: fsl_qspi: fix compile warning for 64-bit platform

2015-12-14 Thread Gong Qianyu
This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] priv->regs = (struct fsl_qspi_regs *)plat

[U-Boot] [PATCH 3/3] spi: fsl_quadspi: Fix qspi_op_rdid memcpy issue

2015-12-14 Thread Gong Qianyu
In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch add checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to the dest memory. Signed-off-by: Gong Qianyu --- drivers/spi/

Re: [U-Boot] [PATCH 3/3] spi: fsl_quadspi: Fix qspi_op_rdid memcpy issue

2015-12-14 Thread Gong Q . Y .
Oh, so sorry for the mess... The network seems to get problems..:( Regards, Qianyu > -Original Message- > From: Gong Qianyu [mailto:qianyu.g...@freescale.com] > Sent: Monday, December 14, 2015 6:37 PM > To: u-boot@lists.denx.de > Cc: Hu Mingkai-B21284; Sun York-R58495; Yuan Yao-B46683; >

Re: [U-Boot] [PATCH] i2c: mxc: allow executing the code that only applies to i.MX platforms

2015-12-14 Thread Gong Q . Y .
> -Original Message- > From: Sun York-R58495 > Sent: Monday, December 14, 2015 6:37 PM > To: Gong Qianyu-B52263; u-boot@lists.denx.de > Cc: Hu Mingkai-B21284; Sun York-R58495; Fan Peng-B51431 > Subject: Re: [PATCH] i2c: mxc: allow executing the code that only applies > to i.MX platforms >

Re: [U-Boot] [PATCH] i2c: mxc: allow executing the code that only applies to i.MX platforms

2015-12-14 Thread York Sun
On 12/14/2015 07:03 PM, Gong Qianyu-B52263 wrote: > >> -Original Message- >> From: Sun York-R58495 >> Sent: Monday, December 14, 2015 6:37 PM >> To: Gong Qianyu-B52263; u-boot@lists.denx.de >> Cc: Hu Mingkai-B21284; Sun York-R58495; Fan Peng-B51431 >> Subject: Re: [PATCH] i2c: mxc: allow

Re: [U-Boot] ARMv7 MMU shareability issue

2015-12-14 Thread Marek Vasut
On Monday, December 14, 2015 at 08:48:16 AM, Pavel Machek wrote: > Hi! > > > This patch has several effects: > > > > - it selects proper ARMv7 translation table level 1 bit definitions; > > - it provides proper ARMv7 definitions for WT/WB/WA; > > - it selects proper ARMv7 settings for TTBR0. > >

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Marek Vasut
On Monday, December 14, 2015 at 08:54:38 AM, Pavel Machek wrote: > (Please, trim your emails when replying) > > On Mon 2015-12-14 01:58:04, Marek Vasut wrote: > > On Monday, December 14, 2015 at 01:43:58 AM, Chin Liang See wrote: > > > On Mon, 2015-12-14 at 01:22 +0100, Marek Vasut wrote: > > > >

Re: [U-Boot] [PATCH V2 1/1] Revert "spi: fsl_qspi: Use GENMASK"

2015-12-14 Thread Stefano Babic
Hi Jagan, Marek, Troy, On 11/12/2015 16:24, Marek Vasut wrote: > On Friday, December 11, 2015 at 03:59:14 PM, Jagan Teki wrote: >> On 11 December 2015 at 02:57, Troy Kisky > wrote: >>> If GENMASK is REALLY desired, it should be GENMASK(23,0) >>> But since GENMASK is obviously more confusing, let

Re: [U-Boot] [PATCH V2] arm: novena: Switch novena to config_distro_bootcmd

2015-12-14 Thread Stefano Babic
Hi Vagrant, On 13/12/2015 00:16, Vagrant Cascadian wrote: > On 2015-11-24, Marek Vasut wrote: >> From: Vagrant Cascadian >> >> Switch Novena to distro bootcmd > > Anything remaining on this? Can we hope to see it in 2016.01? > > >> so it can be used with debian easily. > > I suspect other di

Re: [U-Boot] ARMv7 MMU shareability issue

2015-12-14 Thread Albert ARIBAUD
Hello Pavel, On Mon, 14 Dec 2015 08:48:16 +0100, Pavel Machek wrote: > Hi! > > > This patch has several effects: > > > > - it selects proper ARMv7 translation table level 1 bit definitions; > > - it provides proper ARMv7 definitions for WT/WB/WA; > > - it selects proper ARMv7 settings for TTBR0

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Pavel Machek
On Mon 2015-12-14 12:09:08, Marek Vasut wrote: > On Monday, December 14, 2015 at 08:54:38 AM, Pavel Machek wrote: > > (Please, trim your emails when replying) > > > Try this: > > > > > > mtdparts=1m(u-boot),256k(env1),256k(env2),14848k(boot),112m(root),-@1536k > > > (UBI) > > > > > > This will c

Re: [U-Boot] [PATCH 00/11] Add support for Synology DS414 and some related fixes

2015-12-14 Thread Phil Sutter
Hi Stefan, On Mon, Dec 14, 2015 at 08:38:06AM +0100, Stefan Roese wrote: > On 13.12.2015 01:29, Phil Sutter wrote: > > This patch series ultimately adds support for Synology DS414 NAS after a > > few fixes: > > * Patches 1-3 and 5 fix various files for enabled debugging. > > * Patch 4 updates the

[U-Boot] [PATCH] include: Correct "requset" typoes in misc.h

2015-12-14 Thread Robert P. J. Day
Signed-off-by: Robert P. J. Day --- diff --git a/include/misc.h b/include/misc.h index 7e9badf..2b78814 100644 --- a/include/misc.h +++ b/include/misc.h @@ -32,7 +32,7 @@ int misc_write(struct udevice *dev, int offset, void *buf, int size); * * @dev: the device * @request: command to be

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Marek Vasut
On Monday, December 14, 2015 at 12:26:39 PM, Pavel Machek wrote: > On Mon 2015-12-14 12:09:08, Marek Vasut wrote: > > On Monday, December 14, 2015 at 08:54:38 AM, Pavel Machek wrote: > > > (Please, trim your emails when replying) > > > > > > > Try this: > > > > > > > > mtdparts=1m(u-boot),256k(en

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Pavel Machek
On Mon 2015-12-14 12:31:32, Marek Vasut wrote: > On Monday, December 14, 2015 at 12:26:39 PM, Pavel Machek wrote: > > On Mon 2015-12-14 12:09:08, Marek Vasut wrote: > > > On Monday, December 14, 2015 at 08:54:38 AM, Pavel Machek wrote: > > > > (Please, trim your emails when replying) > > > > > > >

[U-Boot] [PATCH] sata: Add SATA driver with DMA support for Marvell Kirkwood and Armada XP

2015-12-14 Thread Stefan Roese
From: Tor Krill This patch adds a new SATA driver for the Marvell Kirkwood and Armada 370 / XP SoC's. This driver supports the SATA controller of some Mavell SoC's. Here a (most likely incomplete) list of the supported SoC's: - Kirkwood - Armada 370 - Armada XP This driver implementation is an

[U-Boot] [PATCH 03/14] arm: mvebu: db-mv784mp-gp: Enable cache command

2015-12-14 Thread Stefan Roese
Th cache command can be useful sometimes. So lets enable it on the AXP eval board. Signed-off-by: Stefan Roese Cc: Luka Perkov --- include/configs/db-mv784mp-gp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/db-mv784mp-gp.h b/include/configs/db-mv784mp-gp.h index 3fb0cfb.

[U-Boot] [PATCH 04/14] arm: mvebu: Enable L2 cache on Armada XP

2015-12-14 Thread Stefan Roese
Until now, the L2 cache was never enabled again in U-Boot. To get even better performance (bootup time), lets enable the L2 cache in U-Boot. This code was taken from the Linux kernel. A performance gain was measured on the DB-MV784MP-GP board by testing with tftpboot and sata commands. This patch

[U-Boot] [PATCH 01/14] arm: mvebu: db-mv784mp-gp: Switch from IDE to SATA support

2015-12-14 Thread Stefan Roese
Enable the newly introduced SATA driver for the Marvell AXP with DMA support instead of the PIO-only IDE driver. This increases the transfer speed. And is also more in-line with the Armada 38x ports, which also use a SATA driver (AHCI) and the "sata" U-Boot commands. Signed-off-by: Stefan Roese C

[U-Boot] [PATCH 14/14] arm: mvebu: Make serdes setup on Armada XP less noisy

2015-12-14 Thread Stefan Roese
Change some of the PEX configuration output lines from always output to only ouput upon specific debug enabling. This changes the SPL output from: U-Boot SPL 2016.01-rc2-00037-g9353a7f (Dec 10 2015 - 10:27:42) High speed PHY - Version: 2.1.5 (COM-PHY-V20) Update Device ID PEX0782611ab Update Devi

[U-Boot] [PATCH 06/14] arm: mvebu: Don't call arch_cpu_init() from SPL at all

2015-12-14 Thread Stefan Roese
This patch removes the call to arch_cpu_init() in the SPL U-Boot version. As SPL does not need all the configuration done in this function. And also does not need the reconfiguration of the internal register address to 0xf100. This will be done by the main U-Boot later on. This also fixes a pr

[U-Boot] [PATCH 05/14] arm: mvebu: Add v7_outer_cache_disable function for AXP & A38x

2015-12-14 Thread Stefan Roese
Add functionality to correctly disable the L2 cache on the Armada XP and 38x platforms. Without this, booting into Linux on ClearFog (A38x) results in a hangup without any output on the serial console at all. Even with earlyprintk enabled. Signed-off-by: Stefan Roese Cc: Luka Perkov --- arch/a

[U-Boot] [PATCH 08/14] arm: mvebu: Don't disable cache at startup on Armada XP at all

2015-12-14 Thread Stefan Roese
This patch leaces the cache configuration untouched for the AXP in the setup done by the BootROM. Resulting in the cache still being enabled at the startup of U-Boot. This leads to a slightly faster boot to the U-Boot prompt (or Linux of course). Signed-off-by: Stefan Roese Cc: Luka Perkov ---

[U-Boot] [PATCH 13/14] arm: mvebu: Don't include "netdev.h" in cpu.c

2015-12-14 Thread Stefan Roese
This is not needed any more since the switch to DM / DTS network initialization on MVEBU. Lets remove it, as it otherwise leads to compilation warning when CONFIG_NET is not enabled. Signed-off-by: Stefan Roese Cc: Luka Perkov --- arch/arm/mach-mvebu/cpu.c | 1 - 1 file changed, 1 deletion(-)

[U-Boot] [PATCH 09/14] arm: mvebu: Simplify code in setup_usb_phys() a bit

2015-12-14 Thread Stefan Roese
Use the clrbits() / setbits() functions instead of clrsetbits() when bit are only cleared or set. Signed-off-by: Stefan Roese Cc: Luka Perkov --- arch/arm/mach-mvebu/cpu.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mv

[U-Boot] [PATCH 07/14] arm: mvebu: Remove SYS_MALLOC_CLEAR_ON_INIT from DB-MV784MP-GP AXP board

2015-12-14 Thread Stefan Roese
By removing CONFIG_SYS_MALLOC_CLEAR_ON_INIT, the bootup time is a bit faster. Signed-off-by: Stefan Roese Cc: Luka Perkov --- configs/db-mv784mp-gp_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/db-mv784mp-gp_defconfig b/configs/db-mv784mp-gp_defconfig index d8c667a..6dda

[U-Boot] [PATCH 10/14] arm: mvebu: Don't use 0 as board ID as its used for the custom boards

2015-12-14 Thread Stefan Roese
Using board ID 0 is reserved for the non-Marvell "custom" boards. So move the board ID's to reflect this. Signed-off-by: Stefan Roese Cc: Luka Perkov Cc: Phil Sutter --- arch/arm/mach-mvebu/serdes/axp/board_env_spec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm

[U-Boot] [PATCH 11/14] arm: mvebu: Add support for MV78260

2015-12-14 Thread Stefan Roese
This patch adds support for the dual core Armada XP variant, the MV78260. It has some minor differences to the 4-core MV78460, e.g. only 12 serdes lanes. Signed-off-by: Stefan Roese Cc: Luka Perkov Cc: Phil Sutter --- arch/arm/mach-mvebu/cpu.c | 5 +++- arch/arm/mach-

[U-Boot] [PATCH 02/14] arm: mvebu: db-mv784mp-gp: Enable common file-system support

2015-12-14 Thread Stefan Roese
This patch adds the common FS options to the Marvell AXP eval board. This includes EXT2, EXT4, FAT and VFAT. And of course the generic FS commands. Signed-off-by: Stefan Roese Cc: Luka Perkov --- include/configs/db-mv784mp-gp.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/

[U-Boot] [PATCH 12/14] arm: mvebu: Make ECC support configurable on Armada XP

2015-12-14 Thread Stefan Roese
Currently, ECC support is enabled for all Armada XP boards. So the DDR3 driver tries to configure the controller with ECC support, even on boards without ECC. This patch makes this ECC optional which now can be configured on a board-per-board basis. Signed-off-by: Stefan Roese Cc: Luka Perkov Cc

Re: [U-Boot] [PATCH 00/11] Add support for Synology DS414 and some related fixes

2015-12-14 Thread Stefan Roese
Hi Phil, (added Dennis, as he is also interested in this new git branch) On 14.12.2015 12:26, Phil Sutter wrote: > On Mon, Dec 14, 2015 at 08:38:06AM +0100, Stefan Roese wrote: >> On 13.12.2015 01:29, Phil Sutter wrote: >>> This patch series ultimately adds support for Synology DS414 NAS after a

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Marek Vasut
On Monday, December 14, 2015 at 12:51:16 PM, Pavel Machek wrote: > On Mon 2015-12-14 12:31:32, Marek Vasut wrote: > > On Monday, December 14, 2015 at 12:26:39 PM, Pavel Machek wrote: > > > On Mon 2015-12-14 12:09:08, Marek Vasut wrote: > > > > On Monday, December 14, 2015 at 08:54:38 AM, Pavel Mach

Re: [U-Boot] [PATCH] include: Correct "requset" typoes in misc.h

2015-12-14 Thread Thomas Chou
Hi Robert, On 2015年12月14日 19:28, Robert P. J. Day wrote: Signed-off-by: Robert P. J. Day --- diff --git a/include/misc.h b/include/misc.h index 7e9badf..2b78814 100644 --- a/include/misc.h +++ b/include/misc.h @@ -32,7 +32,7 @@ int misc_write(struct udevice *dev, int offset, void *buf, int

[U-Boot] [PATCH v2 2/2] ns16550: zap the rockchip serial compatible string

2015-12-14 Thread Thomas Chou
Zap the rockchip serial compatible string, because rockchip serial has "snps,dw-apb-uart" compatible string in the dts. Signed-off-by: Thomas Chou --- drivers/serial/ns16550.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns165

[U-Boot] [PATCH v2 1/2] ns16550: replace with binding files from Linux kernel

2015-12-14 Thread Thomas Chou
Replace ns16550.txt with binding files from Linux kernel. As suggested by Stephen Warren, we should keep the directory structure, filenames, and file content identical to the bindings in the Linux kernel. Signed-off-by: Thomas Chou --- doc/device-tree-bindings/serial/8250.txt | 66

Re: [U-Boot] [PATCH 2/3] dm: ns16550: Allow the driver to be omitted if requested

2015-12-14 Thread Thomas Chou
Hi Simon, On 2015年12月14日 12:36, Simon Glass wrote: Allow the ns16550 debug UART to be used without the full driver. Signed-off-by: Simon Glass --- drivers/serial/ns16550.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 3fab3f

Re: [U-Boot] [PATCH 1/3] dm: serial: Allow the UART driver to be dropped from the image

2015-12-14 Thread Thomas Chou
Hi Simon, On 2015年12月14日 12:36, Simon Glass wrote: In very very space-constrained devices even the full UART driver is too large. In this case the debug UART can still be used in some cases. Add options to enable the UART driver in SPL and U-Boot proper. Enable both options by default. Signed-

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Pavel Machek
On Mon 2015-12-14 13:20:28, Marek Vasut wrote: > On Monday, December 14, 2015 at 12:51:16 PM, Pavel Machek wrote: > > On Mon 2015-12-14 12:31:32, Marek Vasut wrote: > > > On Monday, December 14, 2015 at 12:26:39 PM, Pavel Machek wrote: > > > > On Mon 2015-12-14 12:09:08, Marek Vasut wrote: > > > >

Re: [U-Boot] [PATCH 3/3] rockchip: Use the debug UART on rk3036

2015-12-14 Thread Thomas Chou
Hi Simon, On 2015年12月14日 12:37, Simon Glass wrote: Rather than using a new debug UART implementation, use the standard one provided by U-Boot. Signed-off-by: Simon Glass --- arch/arm/mach-rockchip/Makefile | 1 - arch/arm/mach-rockchip/rk3036-board-spl.c | 9 - arch/arm/mac

Re: [U-Boot] [U-Boot, PATCHv1, 1/3] net: Add ability to set MAC address via EEPROM to Kconfig

2015-12-14 Thread Olliver Schinagl
Hey Joe, On 10-12-15 21:25, Joe Hershberger wrote: Hi Olliver, On Thu, Dec 10, 2015 at 4:40 AM, Olliver Schinagl wrote: Hans, Joe, On 10-12-15 11:29, Hans de Goede wrote: Hi Olliver and Joe, On 11/30/2015 05:50 PM, Oliver Schinagl wrote: From: Olliver Schinagl This patch allows Kconfig

[U-Boot] [PATCH][v2] armv8: fsl-layerscape: fixes lsch2 serdes registers define

2015-12-14 Thread shh.xie
From: Shaohui Xie Fixes lsch2 SerDes registers define according to LS1043A RM Rev D. Signed-off-by: Shaohui Xie --- changes in v2: 1. fixes indent. .../include/asm/arch-fsl-layerscape/immap_lsch2.h | 67 +++--- 1 file changed, 47 insertions(+), 20 deletions(-) diff --git a/a

[U-Boot] [PATCH v2 3/5] sunxi: net: Enable eeprom on OLinuXino Lime2 boards

2015-12-14 Thread Olliver Schinagl
This patch enables the I2C EEPROM to be probed for a MAC address on the OLinuXino board. Signed-off-by: Olliver Schinagl --- configs/A20-OLinuXino-Lime2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/A20-OLinuXino-Lime2_defconfig b/configs/A20-OLinuXino-Lime2_defconfig

[U-Boot] [PATCH v2 2/5] sunxi: net: Allow the sunxi to set the MAC from an EEPROM

2015-12-14 Thread Olliver Schinagl
This patch uses the newly introduced Kconfig options to set the MAC address from an EEPROM, this will be especially useful for the Olimex OLinuXino series of sunxi boards as they all have an 2k i2c eeprom chip. The MAC address is in the eeprom is ignored if there is already a MAC address in the en

[U-Boot] [PATCH v2 4/5] tools: Allow crc8 to be used

2015-12-14 Thread Olliver Schinagl
This patch enables crc8 to be used from within the tools directory using u-boot/crc.h. Signed-off-by: Olliver Schinagl --- include/u-boot/crc.h | 3 +++ tools/Makefile | 1 + 2 files changed, 4 insertions(+) diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h index 754ac72..cbcf175 1

[U-Boot] [PATCH v2 5/5] tools: Add tool to add crc8 to a mac address

2015-12-14 Thread Olliver Schinagl
This patch adds a little tool that takes a generic MAC address and generates a CRC byte for it. The output is the full MAC address without any separators, ready written into an EEPROM. Signed-off-by: Olliver Schinagl --- tools/Makefile | 4 tools/gen_mac_addr.c | 51 +

[U-Boot] [PATCH v2 1/5] net: Add ability to set MAC address via EEPROM to Kconfig

2015-12-14 Thread Olliver Schinagl
This patch allows Kconfig to enable and set parameters to make it possible to read the MAC address from an EEPROM. This patch only sets up some environment variables, it is up to the specific boards to actually use these defines. Besides the various tuneables as to how to access the eeprom (bus, a

[U-Boot] [PATCH v2 0/5] Retrieve MAC address from EEPROM

2015-12-14 Thread Olliver Schinagl
Changes since v1: * Do not CRC the id byte, move it just after the crc byte. One of the reasons I decided to move it after the crc8 was mostly due to mass generation of MAC + CRC combo's where the ID is still unknown. Also not crc-ing the ID means that it is much easier for a user to change it (via

Re: [U-Boot] [PATCH 2/7] ARM: BeagleBoard-X15: Enable HW leveling

2015-12-14 Thread Dmitry Lifshitz
Hi Lokesh, We are working on U-Boot for CompuLab board based on AM57xx SoC (CL-SOM-AM57x). We figured out the following note in AM57xx TRM for EMIF register EMIF_DDR_PHY_CONTROL_1, bits 25:27 (WRLVL_MASK, RDLVLGATE_MASK, RDLVL_MASK) "NOTE: Read-Write Leveling is not supported on this device. Se

Re: [U-Boot] [PATCH] i2c: mxc: allow executing the code that only applies to i.MX platforms

2015-12-14 Thread Gong Q . Y .
>> On 12/14/2015 07:03 PM, Gong Qianyu-B52263 wrote: >> >>> -Original Message- >>> From: Sun York-R58495 >>> Sent: Monday, December 14, 2015 6:37 PM >>> To: Gong Qianyu-B52263; u-boot@lists.denx.de >>> Cc: Hu Mingkai-B21284; Sun York-R58495; Fan Peng-B51431 >>> Subject: Re: [PATCH] i2c: m

Re: [U-Boot] [PATCH 2/3] serial: uartlite: Add support for debug console

2015-12-14 Thread Thomas Chou
Hi Michal, On 2015年12月11日 19:54, Michal Simek wrote: Signed-off-by: Michal Simek --- drivers/serial/Kconfig| 7 +++ drivers/serial/serial_xuartlite.c | 23 +++ 2 files changed, 30 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconf

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Marek Vasut
On Monday, December 14, 2015 at 01:53:53 PM, Pavel Machek wrote: > On Mon 2015-12-14 13:20:28, Marek Vasut wrote: > > On Monday, December 14, 2015 at 12:51:16 PM, Pavel Machek wrote: > > > On Mon 2015-12-14 12:31:32, Marek Vasut wrote: > > > > On Monday, December 14, 2015 at 12:26:39 PM, Pavel Mach

Re: [U-Boot] [PATCH 00/11] Add support for Synology DS414 and some related fixes

2015-12-14 Thread Phil Sutter
Hi Stefan, On Mon, Dec 14, 2015 at 01:06:07PM +0100, Stefan Roese wrote: > Okay. I've sent the new patches to the list. And also added a branch > to the "u-boot-a38x.git" gitlab repository. You can find a full > working version in this branch now "mvebu-dm-spl-2015-12-14": > > https://gitlab.denx

[U-Boot] [PATCH] arc: cache - utilize IO coherency (AKA IOC) engine

2015-12-14 Thread Alexey Brodkin
With release of ARC HS38 v2.1 new IO coherency engine could be built-in ARC core. This hardware module ensures coherency between DMA-ed data from peripherals and L2 cache. With L2 and IOC enabled there's no overhead for L2 cache manual maintenance which results in significantly improved IO bandwid

[U-Boot] [PATCH] usb: add support of generic OHCI devices

2015-12-14 Thread Alexey Brodkin
This driver is meant to be used with any OHCI-compatible host controller in case if there's no need for platform-specific glue such as setup of controller or PHY's power mode via GPIOs etc. Signed-off-by: Alexey Brodkin Cc: Simon Glass Cc: Marek Vasut --- drivers/usb/host/Kconfig| 8 +

[U-Boot] [PATCH] arc: cache - accommodate different L1 cache line lengths

2015-12-14 Thread Alexey Brodkin
ARC core could be configured with different L1 and L2 (AKA SLC) cache line lengths. At least these values are possible and were really used: 32, 64 or 128 bytes. Current implementation requires cache line to be selected upon U-Boot configuration and then it will only work on matching hardware. Ind

Re: [U-Boot] [PATCH 00/11] Add support for Synology DS414 and some related fixes

2015-12-14 Thread Stefan Roese
Hi Phil, On 14.12.2015 15:03, Phil Sutter wrote: On Mon, Dec 14, 2015 at 01:06:07PM +0100, Stefan Roese wrote: Okay. I've sent the new patches to the list. And also added a branch to the "u-boot-a38x.git" gitlab repository. You can find a full working version in this branch now "mvebu-dm-spl-20

Re: [U-Boot] [PATCH 3/3] serial: uartlite: Add uartlite to Kconfig

2015-12-14 Thread Thomas Chou
Hi Michal, On 2015年12月11日 19:54, Michal Simek wrote: - Move config option out of board file. - Remove uartlite address from config file Signed-off-by: Michal Simek --- board/xilinx/microblaze-generic/xparameters.h | 4 configs/microblaze-generic_defconfig | 1 + drivers/seri

[U-Boot] Support for AMD 64-bit ARM cpus (A1100)

2015-12-14 Thread Аладышев Константин
Is there any support in u-boot for new AMD 64-bit ARM cpus? Particulary for A1100 model ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/3] serial: uartlite: Move driver to DM

2015-12-14 Thread Thomas Chou
Hi Michal, On 2015年12月11日 19:54, Michal Simek wrote: Enable SPL DM too. Signed-off-by: Michal Simek --- arch/microblaze/Kconfig | 1 + configs/microblaze-generic_defconfig | 2 + doc/driver-model/serial-howto.txt| 1 - drivers/serial/serial_xuartlite.c| 176 +++

Re: [U-Boot] [PATCH v2] dm: core: Add option to configure an offset for the address translation

2015-12-14 Thread Simon Glass
Hi Stefan, On 14 December 2015 at 02:20, Stefan Roese wrote: > Some platforms need to ability to configure an offset to the standard > addresses extracted from the device-tree. This patch allows this by > adding a function to DM to configure this offset (if needed). > > Signed-off-by: Stefan Roes

[U-Boot] do the files arch/powerpc/include/asm/fsl_{law, lbc}.h duplicate info?

2015-12-14 Thread Robert P. J. Day
quite possibly a silly question but i'm looking at the header files related to the powerpc local bus local access windows (of which i am still woefully ignorant), and i see the following in two different header files under arch/powerpc/include/asm. fsl_law.h: #def

[U-Boot] [PATCH v3] dm: core: Add option to configure an offset for the address translation

2015-12-14 Thread Stefan Roese
Some platforms need to ability to configure an offset to the standard addresses extracted from the device-tree. This patch allows this by adding a function to DM to configure this offset (if needed). Signed-off-by: Stefan Roese Acked-by: Simon Glass Cc: Simon Glass --- v3: - Add comment to vari

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Chin Liang See
On Mon, 2015-12-14 at 02:25 +0100, Marek Vasut wrote: > On Monday, December 14, 2015 at 02:22:32 AM, Chin Liang See wrote: > [...] > > > > and rethinking, we can have 2 MTD_PARTITION > > > > where one for backward compatiblity (supporting raw) while > > > > another > > > > for > > > > UBI. > > >

Re: [U-Boot] [PATCH 3/3] serial: uartlite: Add uartlite to Kconfig

2015-12-14 Thread Michal Simek
On 14.12.2015 15:35, Thomas Chou wrote: > Hi Michal, > > On 2015年12月11日 19:54, Michal Simek wrote: >> - Move config option out of board file. >> - Remove uartlite address from config file >> >> Signed-off-by: Michal Simek >> --- >> >> board/xilinx/microblaze-generic/xparameters.h | 4 >>

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Chin Liang See
On Mon, 2015-12-14 at 14:34 +0100, Marek Vasut wrote: > On Monday, December 14, 2015 at 01:53:53 PM, Pavel Machek wrote: > > On Mon 2015-12-14 13:20:28, Marek Vasut wrote: > > > On Monday, December 14, 2015 at 12:51:16 PM, Pavel Machek wrote: [..] > I sense the overlapping partitions are a matter

[U-Boot] [PATCH] eeprom: fix eeprom write procedure

2015-12-14 Thread Alexey Brodkin
This fixes commit 1a37889b0ad084a740b4f785031d7ae9955d947b: --->8 eeprom: Pull out the RW loop Unify the code for doing read/write into single function, since the code for both the read and write is almost identical. This again trims down the code duplicatio

Re: [U-Boot] [PATCH 2/3] serial: uartlite: Add support for debug console

2015-12-14 Thread Michal Simek
Hi, On 14.12.2015 14:14, Thomas Chou wrote: > Hi Michal, > > On 2015年12月11日 19:54, Michal Simek wrote: >> Signed-off-by: Michal Simek >> --- >> >> drivers/serial/Kconfig| 7 +++ >> drivers/serial/serial_xuartlite.c | 23 +++ >> 2 files changed, 30 inserti

[U-Boot] [PATCH] serial: Use static inline for _debug_uart_init()

2015-12-14 Thread Michal Simek
Reported-by: Thomas Chou Signed-off-by: Michal Simek --- drivers/serial/serial_xuartlite.c | 2 +- drivers/serial/serial_zynq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index fe87b515d902..

Re: [U-Boot] [PATCH 1/3] serial: uartlite: Move driver to DM

2015-12-14 Thread Michal Simek
On 14.12.2015 15:47, Thomas Chou wrote: > Hi Michal, > > On 2015年12月11日 19:54, Michal Simek wrote: >> Enable SPL DM too. >> >> Signed-off-by: Michal Simek >> --- >> >> arch/microblaze/Kconfig | 1 + >> configs/microblaze-generic_defconfig | 2 + >> doc/driver-model/serial-how

[U-Boot] [PATCH] armv7: omap-common: Rework SPL board_mmc_init()

2015-12-14 Thread Tom Rini
Since the changes in a1e56cf the way that we had board_mmc_init() structured for OMAP parts (so that we always report device 0) are no longer functional. For now, make the case of booting from the second device initialize both devices (we have no devices that only have the second device as MMC).

[U-Boot] [PATCH] net: macb: sama5d4 is not gigabit capable

2015-12-14 Thread Gregory CLEMENT
During the initialization of PHY the gigabit bit capable is set if the controller is a GEM. However, for sama5d4, the GEM is not gigabit capable. Improperly setting the GBE capability leads to an unresponsive MAC controller. This patch fix this behavior allowing to use the gmac with the sama5d4. S

[U-Boot] [PATCH 3/3] sf: Fix quad bit set for micron devices

2015-12-14 Thread Jagan Teki
Setting up quad bit for micron devices need to do the same way as other flash devices like spansion, winbond etc does using enhanced volatile config register so this patch adds this support instead of printing "QEB is volatile" Cc: Bin Meng Cc: Peter Pan Cc: Fabio Estevam Signed-off-by: Jagan T

[U-Boot] [PATCH 2/3] sf: Use BIT macro

2015-12-14 Thread Jagan Teki
Used BIT macro like 1 << nr as BIT(nr) where nr is 0...n Cc: Bin Meng Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_i

Re: [U-Boot] [PATCH v2 1/2] ns16550: replace with binding files from Linux kernel

2015-12-14 Thread Stephen Warren
On 12/14/2015 05:45 AM, Thomas Chou wrote: Replace ns16550.txt with binding files from Linux kernel. As suggested by Stephen Warren, we should keep the directory structure, filenames, and file content identical to the bindings in the Linux kernel. Acked-by: Stephen Warren (I assume that the n

[U-Boot] [PATCH 1/3] sf: Minor cleanup

2015-12-14 Thread Jagan Teki
- Tab space - Place all read commands at one place. - Re-arrange write commands. Cc: Bin Meng Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.

Re: [U-Boot] [PATCH v2 2/2] ns16550: zap the rockchip serial compatible string

2015-12-14 Thread Stephen Warren
On 12/14/2015 05:45 AM, Thomas Chou wrote: Zap the rockchip serial compatible string, because rockchip serial has "snps,dw-apb-uart" compatible string in the dts. More importantly, the rockchip compatible value isn't defined in the binding. ___ U-Bo

Re: [U-Boot] [PATCH] fs: ext4: Remove ext4fs_free_node()

2015-12-14 Thread Stephen Warren
On 12/09/2015 05:54 PM, Tom Rini wrote: The function ext4fs_free_node() exists for dealing with "dirnode" structures that we allocate. However, we do not allocate these dynamically as needed but rather as a single instance in ext4fs_mount() that we zalloc(). Coverity scan notes that in two plac

Re: [U-Boot] [PATCH] fs: ext4: Remove ext4fs_free_node()

2015-12-14 Thread Tom Rini
On Mon, Dec 14, 2015 at 12:32:13PM -0700, Stephen Warren wrote: > On 12/09/2015 05:54 PM, Tom Rini wrote: > >The function ext4fs_free_node() exists for dealing with "dirnode" > >structures that we allocate. However, we do not allocate these > >dynamically as needed but rather as a single instance

Re: [U-Boot] [U-Boot,1/1,v2] stm32: Convert serial driver to DM

2015-12-14 Thread Tom Rini
On Tue, Dec 01, 2015 at 09:08:19AM +0100, Kamil Lulko wrote: > Signed-off-by: Kamil Lulko > Cc: Simon Glass > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U

Re: [U-Boot] [U-Boot, 2/2] siemens, am33x: remove ddr3 delay workaround

2015-12-14 Thread Tom Rini
On Wed, Dec 02, 2015 at 03:27:57PM +0100, Egli, Samuel wrote: > Signed-off-by: Samuel Egli > Cc: Roger Meier > Cc: Heiko Schocher Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot

Re: [U-Boot] VxWorks: fixup MAC address for VxWorks

2015-12-14 Thread Tom Rini
On Tue, Dec 01, 2015 at 11:39:01PM -0800, Miao Yan wrote: > VxWorks 7 kernels retrieve 'local-mac-addr' from dtb and use > that for NIC MAC address. As a result, when booting the same > kernel image on multiple boards, there will be address > conflicts. > > So fixup MAC address when booting VxWor

  1   2   >