[U-Boot] [PATCH] tools/kwbimage.c: Fix generation of binary header

2015-10-27 Thread Stefan Roese
The binary header ends with one lword, defining if another header follows this one. This additions 4 bytes need to be taken into account in the generation of the header size. And the complete 4 bytes at the end of this binary header need to get cleared. Signed-off-by: Stefan Roese Cc: Luka Perkov

Re: [U-Boot] [PATCH v5 14/14] dm-sf: Re-factorize spi_flash_std_probe code

2015-10-27 Thread Jagan Teki
On 28 October 2015 at 11:01, Bin Meng wrote: > Hi Jagan, > > On Wed, Oct 28, 2015 at 1:18 PM, Jagan Teki wrote: >> On 28 October 2015 at 00:50, Troy Kisky >> wrote: >>> On 10/27/2015 11:37 AM, Jagan Teki wrote: spi_flash_probe_tail code looks not in proper shape to add more functional

Re: [U-Boot] [PATCH v3 4/4] exynos: more debug and cleanup in do_sdhci_init()

2015-10-27 Thread Jaehoon Chung
Hi, All. On 10/05/2015 08:47 PM, Tobias Jakobi wrote: > Add more debug printfs in do_sdhci_init() for calls > that can potentially fail. > > Acked-by: Przemyslaw Marczak > Signed-off-by: Tobias Jakobi > --- > drivers/mmc/s5p_sdhci.c | 20 +++- > 1 file changed, 11 insertions(+)

[U-Boot] [PATCH v5] arm: atmel: Add SAMA5D2 Xplained board

2015-10-27 Thread Wenyou Yang
The board supports following features: - Boot media support: SD card/e.MMC/SPI flash, - Support LCD display (optional, disabled by default), - Support ethernet, - Support USB mass storage. Signed-off-by: Wenyou Yang --- The patch is based on the following patches sent in mailing list.

Re: [U-Boot] [PATCH v4] arm: atmel: Add SAMA5D2 Xplained board

2015-10-27 Thread Yang, Wenyou
Hi Bo Shen, Thank you for your feedback. > -Original Message- > From: Bo Shen [mailto:voice.s...@gmail.com] > Sent: 2015年10月28日 11:07 > To: Yang, Wenyou > Cc: U-Boot Mailing List; andreas.de...@googlemail.com > Subject: Re: [PATCH v4] arm: atmel: Add SAMA5D2 Xplained board > > Hi Wenyou,

[U-Boot] [PATCH v4] mmc: atmel: Add atmel sdhci support

2015-10-27 Thread Wenyou Yang
The SDHCI is introduced by sama5d2, named as Secure Digital Multimedia Card Controller(SDMMC). It supports the embedded MultiMedia Card (e.MMC) Specification V4.41, the SD Memory Card Specification V3.0, and the SDIO V3.0 specification. It is compliant with the SD Host Controller Standard V3.0 spec

Re: [U-Boot] [PATCH] i2c: Instantiate I2C controllers when selected

2015-10-27 Thread Heiko Schocher
Hello Michal, Am 27.10.2015 um 16:02 schrieb Michal Simek: Do not enable both I2C controllers by default. Enable them only when they are selected. Signed-off-by: Michal Simek --- drivers/i2c/zynq_i2c.c | 4 1 file changed, 4 insertions(+) Thanks! I will accept this patch, but it is

Re: [U-Boot] [PATCH v3] mmc: atmel: Add atmel sdhci support

2015-10-27 Thread Yang, Wenyou
Hi Bo Shen, Thank you for your review. > -Original Message- > From: Bo Shen [mailto:voice.s...@gmail.com] > Sent: 2015年10月28日 11:03 > To: Yang, Wenyou > Cc: U-Boot Mailing List; andreas.de...@googlemail.com; Pantelis Antoniou > Subject: Re: [PATCH v3] mmc: atmel: Add atmel sdhci support >

[U-Boot] [PATCH 2/7] kirkwood: Remove duplicate definition of CONFIG_CMD_FAT

2015-10-27 Thread Quentin Armitage
include/configs/guruplug.h defined CONFIG_CMD_FAT twice. Signed-off-by: Quentin Armitage --- include/configs/guruplug.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/configs/guruplug.h b/include/configs/guruplug.h index 318ea87..48dd0e6 100644 --- a/include/co

[U-Boot] [PATCH 7/7] kirkwood: Move common definitions into common file

2015-10-27 Thread Quentin Armitage
Create include/configs/mv-plug-common.h for common definitions for Sheevaplug, Guruplug and Dreamplug. This will make it easier to ensure the built u-boots stay in track with each other Signed-off-by: Quentin Armitage --- include/configs/dreamplug.h | 29 + include/confi

[U-Boot] [PATCH 1/7] kirkwood: standardise the configuration

2015-10-27 Thread Quentin Armitage
The Marvell plugs are very similar systems, and so it makes sense for their u-boots to have the same commands/configuration. Add EXT4 and MII to Dreamplug, DATE to Guruplug and Sheevaplug. Add CONFIG_SYS_ALT_MEMTEST to Sheevaplug. There are still command differences around NAND, SPI/NOR. Also def

[U-Boot] [PATCH 0/7] When building u-boot for a Sheevaplug and a Dreamplug, I noticed that

2015-10-27 Thread Quentin Armitage
the commands available were not consistent. Particularly important was the omission of support for the ext4 commands on the Dreamplug. This series of patches starts by making the available commands (excluding flash related commands) consistent across the Sheevaplug, Guruplug and Dreamplug. After t

[U-Boot] [PATCH 4/7] kirkwood: Use common definition for filesystems

2015-10-27 Thread Quentin Armitage
include/configs/mv-common.h brings in the required filesystems if CONFIG_SYS_MVFS is defined, so use it for Sheevaplug and Guruplug. Signed-off-by: Quentin Armitage --- include/configs/guruplug.h | 25 ++--- include/configs/sheevaplug.h | 25 ++---

[U-Boot] [PATCH 3/7] kirkwood: Move configuration of some commands to _defconfig files

2015-10-27 Thread Quentin Armitage
For Marvell plugs, move the configuration of DHCP, NAND/SF, PING and USB commands, and HUSH_PARSER into the _defconfig file, rather than the include/configs/*plug.h files. This avoids compiler warnings of duplicate definitions if the option is selected in the .config, but also defined in the inclu

[U-Boot] [PATCH 5/7] kirkwood: Align configuration files

2015-10-27 Thread Quentin Armitage
Cosmetic: CONFIG_OF_LIBFDT was in a different position in the config file for the Dreamplug, compared to the Sheevaplug and Guruplug. Signed-off-by: Quentin Armitage --- include/configs/dreamplug.h |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/configs/dr

[U-Boot] [PATCH 6/7] kirkwood: Remove duplicate definition from dreamplug.h

2015-10-27 Thread Quentin Armitage
CONFIG_DISPLAY_CPUINFO is already defined in mv-common.h Signed-off-by: Quentin Armitage --- include/configs/dreamplug.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/include/configs/dreamplug.h b/include/configs/dreamplug.h index 0c01209..97b3def 100644 --- a/inc

Re: [U-Boot] [PATCH v5 14/14] dm-sf: Re-factorize spi_flash_std_probe code

2015-10-27 Thread Bin Meng
Hi Jagan, On Wed, Oct 28, 2015 at 1:18 PM, Jagan Teki wrote: > On 28 October 2015 at 00:50, Troy Kisky > wrote: >> On 10/27/2015 11:37 AM, Jagan Teki wrote: >>> spi_flash_probe_tail code looks not in proper shape >>> to add more functionalities. hence refactorized >>> so-that it's more readable

Re: [U-Boot] [PATCH v2] arm: at91: clock: Add the generated clock support

2015-10-27 Thread Yang, Wenyou
Hi Bo Shen, Thank you for your review. > -Original Message- > From: Bo Shen [mailto:voice.s...@gmail.com] > Sent: 2015年10月28日 11:14 > To: Yang, Wenyou > Cc: U-Boot Mailing List; andreas.de...@googlemail.com > Subject: Re: [PATCH v2] arm: at91: clock: Add the generated clock support > > H

Re: [U-Boot] [PATCH v5 14/14] dm-sf: Re-factorize spi_flash_std_probe code

2015-10-27 Thread Jagan Teki
On 28 October 2015 at 00:50, Troy Kisky wrote: > On 10/27/2015 11:37 AM, Jagan Teki wrote: >> spi_flash_probe_tail code looks not in proper shape >> to add more functionalities. hence refactorized >> so-that it's more readable and hence we may extend >> more functionalies to it. >> >> Signed-off-b

Re: [U-Boot] [PATCH 0/2] Enable DFU for RAM on Allwinner devices

2015-10-27 Thread Siarhei Siamashka
On Wed, 28 Oct 2015 00:27:48 +0100 Piotr Król wrote: > On Tue, Oct 27, 2015 at 06:31:24AM +0200, Siarhei Siamashka wrote: > > On Mon, 26 Oct 2015 12:18:35 +0100 > > Piotr Król wrote: > > > > > On Sun, Oct 25, 2015 at 06:44:45AM +0200, Siarhei Siamashka wrote: > > > > Hello, > > > > > > > > DFU

Re: [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash

2015-10-27 Thread Vignesh R
On 10/22/2015 11:30 AM, Vignesh R wrote: > This adds support to update firmware on qspi flash present on > am437x-sk-evm and am43xx-epos-evm via DFU. > > On device: > => setenv dfu_alt_info ${dfu_alt_info_qspi} > => dfu 0 sf 0:0 > > On host: > $ sudo dfu-util -l > $ sudo dfu-util -D u-boot.bin

[U-Boot] [PATCH] mmc: Use lldiv() for 64-bit division in write_raw_image()

2015-10-27 Thread Siarhei Siamashka
This fixes compilation problems when using a hardfloat toolchain on ARM, which manifest themselves as "libgcc.a(_udivmoddi4.o) uses VFP register arguments, u-boot does not". These problems have been reported in the U-Boot mailing list: http://lists.denx.de/pipermail/u-boot/2015-October/230314.

Re: [U-Boot] [PATCH v2] arm: imx: Switch Wandboard to use config_distro_bootcmd.h.

2015-10-27 Thread Vagrant Cascadian
On 2015-10-27, Fabio Estevam wrote: > On Tue, Oct 27, 2015 at 5:49 PM, Vagrant Cascadian wrote: > >> +#define BOOT_TARGET_DEVICES(func) \ >> + func(MMC, mmc, 0) \ >> + func(MMC, mmc, 1) \ >> + func(USB, usb, 0) \ >> + func(PXE, pxe, na) \ >> + func(DHCP, dhcp, na) > >

Re: [U-Boot] [PATCH v2] arm: at91: clock: Add the generated clock support

2015-10-27 Thread Bo Shen
Hi Wenyou, On 10/26/2015 11:31 AM, Wenyou Yang wrote: Some peripherals may need a second clock source that may be different from the system clock. This second clock is the generated clock (GCK) and is managed by the PMC via PMC_PCR. For simplicity, the clock source of the GCK is fixed to PLLA_C

Re: [U-Boot] [PATCH v4] arm: atmel: Add SAMA5D2 Xplained board

2015-10-27 Thread Bo Shen
Hi Wenyou, On 10/27/2015 17:59 PM, Wenyou Yang wrote: The board supports following features: - Boot media support: SD card/e.MMC/SPI flash, - Support LCD display (optional, disabled by default), - Support ethernet, - Support USB mass storage. Signed-off-by: Wenyou Yang --- The patch is

Re: [U-Boot] [PATCH v3] mmc: atmel: Add atmel sdhci support

2015-10-27 Thread Bo Shen
Hi Wenyou, On 10/26/2015 11:38 AM, Wenyou Yang wrote: The SDHCI is introduced by sama5d2, named as Secure Digital Multimedia Card Controller(SDMMC). It supports the embedded MultiMedia Card (e.MMC) Specification V4.41, the SD Memory Card Specification V3.0, and the SDIO V3.0 specification. It is

[U-Boot] [PATCH] ls102xa: fdt: Disable IFC in SD boot for QSPI

2015-10-27 Thread Alison Wang
As QSPI/DSPI and IFC are pin multiplexed, IFC is disabled in SD boot for QSPI. This patch will add fdt support for this rule. Signed-off-by: Alison Wang --- arch/arm/cpu/armv7/ls102xa/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arc

Re: [U-Boot] [PATCH 0/2] Enable DFU for RAM on Allwinner devices

2015-10-27 Thread Piotr Król
On Tue, Oct 27, 2015 at 06:31:24AM +0200, Siarhei Siamashka wrote: > On Mon, 26 Oct 2015 12:18:35 +0100 > Piotr Król wrote: > > > On Sun, Oct 25, 2015 at 06:44:45AM +0200, Siarhei Siamashka wrote: > > > Hello, > > > > > > DFU allows to transfer large files (such as initrd images) much > > > fast

Re: [U-Boot] [PATCH v2] arm: imx: Switch Wandboard to use config_distro_bootcmd.h.

2015-10-27 Thread Fabio Estevam
Hi Vagrant, On Tue, Oct 27, 2015 at 5:49 PM, Vagrant Cascadian wrote: > +#define BOOT_TARGET_DEVICES(func) \ > + func(MMC, mmc, 0) \ > + func(MMC, mmc, 1) \ > + func(USB, usb, 0) \ > + func(PXE, pxe, na) \ > + func(DHCP, dhcp, na) I never used config_distro_bootcm

Re: [U-Boot] [PATCH] mx7dsabresd: enable DFU support

2015-10-27 Thread Fabio Estevam
On Tue, Oct 27, 2015 at 9:00 PM, Tzu-Jung Lee wrote: > On the target board: > > => dfu 0 mmc 0 > > On the host PC: > > $ dfu-util -l > > Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=0, name="image" > Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=1, name="u-boot" > Foun

[U-Boot] [PATCH] mx7dsabresd: enable DFU support

2015-10-27 Thread Tzu-Jung Lee
On the target board: => dfu 0 mmc 0 On the host PC: $ dfu-util -l Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=0, name="image" Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=1, name="u-boot" Found DFU: [0525:a4a5] devnum=0, cfg=1, intf=0, alt=2, name="bootimg" Fo

[U-Boot] [PATCH] image.c: Fix non-Android booting with ramdisk and/or device tree

2015-10-27 Thread Tom Rini
In 1fec3c5 I added a check that if we had an Android image we default to trying the kernel address for a ramdisk. However when we don't have an Android image buf is NULL and we oops here. Ensure that we have 'buf' to check first. Reported-by: elipe Balbi Signed-off-by: Tom Rini --- common/ima

Re: [U-Boot] Fastboot behaviour with sparse images

2015-10-27 Thread Colin Cross
On Monday, October 12, 2015 at 6:43:37 AM UTC-7, Maxime Ripard wrote: > > Hi, > > I'm currently writing the support in U-Boot for NAND-backed devices > using fastboot [1], and that work derived a bit to supporting the > sparse images. > > For "regular" images that are being stored, we expect a

[U-Boot] [PATCH] tools/env: allow config filename to be passed via command line argument

2015-10-27 Thread Michael Heimpold
When for example generating/manipulating SD card/eMMC images which contain U-Boot and its environment(s), it is handy to use a given configuration file instead of the compiled-in default one. And since the default configuration file is expected under /etc it's hard for an usual linux user account w

Re: [U-Boot] [PATCH 3/3] vexpress64: store env in flash

2015-10-27 Thread Linus Walleij
On Tue, Oct 27, 2015 at 1:49 PM, Ryan Harkin wrote: > Either way, AFAIK, the existing CFI code does not handle AFS support. > I think the CFI code would need extending to write the footer if we > wanted the afs command to show the config in another way. Could that > be what Peter Pearse did? Uh

Re: [U-Boot] [PATCH 1/4] armv8: enable compilation with CONFIG_SYS_NONCACHED_MEMORY

2015-10-27 Thread Tom Warren
Albert, > -Original Message- > From: Albert ARIBAUD [mailto:albert.u.b...@aribaud.net] > Sent: Wednesday, October 21, 2015 11:26 PM > To: Stephen Warren > Cc: u-boot@lists.denx.de; Simon Glass ; Tom Warren > ; Stephen Warren ; Thierry > Reding ; York Sun ; Michal > Simek > Subject: Re: [

[U-Boot] [PATCH] arm: imx: Switch mx6cuboxi to use config_distro_bootcmd.h.

2015-10-27 Thread Vagrant Cascadian
This allows for more flexible and standardized boot across multiple platforms. Remove redundant legacy boot environment. Cc: Otavio Salvador Signed-off-by: Vagrant Cascadian --- include/configs/mx6cuboxi.h | 88 + 1 file changed, 24 insertions(+), 6

[U-Boot] [PATCH v2] arm: imx: Switch Wandboard to use config_distro_bootcmd.h.

2015-10-27 Thread Vagrant Cascadian
This allows for more flexible and standardized boot across multiple platforms. Remove redundant legacy boot environment. Signed-off-by: Vagrant Cascadian --- Changes in v2: - Remove redundant legacy boot environment. Cc: Otavio Salvador include/configs/wandboard.h | 80 ++

Re: [U-Boot] u-boot device model SPI + SPI Flash

2015-10-27 Thread Michal Simek
On 10/27/2015 12:12 PM, Hoefle Marco wrote: > > >> -Original Message- >> From: Michal Simek [mailto:michal.si...@xilinx.com] >> Sent: Montag, 26. Oktober 2015 14:52 >> To: Jagan Teki ; Hoefle Marco >> ; Michal Simek >> Cc: u-boot@lists.denx.de >> Subject: Re: [U-Boot] u-boot device model

Re: [U-Boot] u-boot device model SPI + SPI Flash

2015-10-27 Thread Michal Simek
Hi Marco, petalinux 2015.4 will be released with SPI DM model. I have just debug it and it is working fine but it requires some changes in the mainline to get it work properly. It is not working properly on Microblaze. I expect there is no problem to use this driver on zynq. Just give me some tim

Re: [U-Boot] [PATCH v5 14/14] dm-sf: Re-factorize spi_flash_std_probe code

2015-10-27 Thread Troy Kisky
On 10/27/2015 11:37 AM, Jagan Teki wrote: > spi_flash_probe_tail code looks not in proper shape > to add more functionalities. hence refactorized > so-that it's more readable and hence we may extend > more functionalies to it. > > Signed-off-by: Jagan Teki > --- > drivers/mtd/spi/sf_probe.c | 22

Re: [U-Boot] [PATCH] arm: imx: Switch Wandboard to use config_distro_bootcmd.h.

2015-10-27 Thread Vagrant Cascadian
On 2015-10-27, Vagrant Cascadian wrote: > This allows for more flexible and standardized boot across multiple > platforms. Remove most redundant legacy boot environment. Er, Bad commit message, this patch doesn't actually "Remove most redundant legacy boot environment" at all. Leftovers from an ea

Re: [U-Boot] [PATCH] arm: imx: Switch Wandboard to use config_distro_bootcmd.h.

2015-10-27 Thread Otavio Salvador
On Tue, Oct 27, 2015 at 5:13 PM, Vagrant Cascadian wrote: > On 2015-10-27, Vagrant Cascadian wrote: >> This allows for more flexible and standardized boot across multiple >> platforms. Remove most redundant legacy boot environment. > > Er, Bad commit message, this patch doesn't actually "Remove mo

Re: [U-Boot] [PATCH] arm: imx: Switch Wandboard to use config_distro_bootcmd.h.

2015-10-27 Thread Otavio Salvador
On Tue, Oct 27, 2015 at 5:06 PM, Vagrant Cascadian wrote: > This allows for more flexible and standardized boot across multiple > platforms. Remove most redundant legacy boot environment. > > Cc: Otavio Salvador > Signed-off-by: Vagrant Cascadian You need to remove the old environment script wh

Re: [U-Boot] [PATCH v2 00/28] dm: input: Move keyboard drivers to driver model

2015-10-27 Thread Simon Glass
Hi Bin, On 27 October 2015 at 01:20, Bin Meng wrote: > Hi Simon, > > On Tue, Oct 27, 2015 at 2:40 PM, Bin Meng wrote: >> Hi Simon, >> >> On Mon, Oct 19, 2015 at 11:17 AM, Simon Glass wrote: >>> This series adds a new uclass for keyboards and converts some drivers >>> over to use it. >>> >>> Thi

[U-Boot] [PATCH] arm: imx: Switch Wandboard to use config_distro_bootcmd.h.

2015-10-27 Thread Vagrant Cascadian
This allows for more flexible and standardized boot across multiple platforms. Remove most redundant legacy boot environment. Cc: Otavio Salvador Signed-off-by: Vagrant Cascadian --- include/configs/wandboard.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/con

Re: [U-Boot] [PATCH v1 01/12] rockchip: define SUPPORT_SPL and SPL config in RK3288 config

2015-10-27 Thread Simon Glass
Hi Lin, On 26 October 2015 at 18:27, hl wrote: > Hi Simon, > > > On 26/10/15 12:12, Simon Glass wrote: > > Hi, > > On Oct 22, 2015 7:22 PM, "hl" wrote: >> >> Hi Simon, >> >> >> On 23/10/15 09:04, Simon Glass wrote: >>> >>> Hi Eddie, >>> >>> On 22 October 2015 at 18:54, Eddie Cai wrote: >>>

Re: [U-Boot] [PATCH 1/3] arm: mvebu: a38x: Remove unsupported topologies

2015-10-27 Thread Luka Perkov
On Mon, Oct 26, 2015 at 10:43:47AM +0100, Stefan Roese wrote: > On 23.10.2015 19:53, Kevin Smith wrote: > >A lot of extra configuration information was left over in the > >Marvell serdes and DDR3 initialization code for boards that > >U-boot does not support. Remove this extra config information,

[U-Boot] [PATCH v5 13/14] sf: Re-factorize spi_flash_probe_tail code

2015-10-27 Thread Jagan Teki
spi_flash_probe_tail code looks not in proper shape to add more functionalities. hence refactorized so-that it's more readable and hence we may extend more functionalies to it. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 3 +- drivers/mtd/spi/sf_ops.c | 7 ++--- drivers/

[U-Boot] [PATCH v5 14/14] dm-sf: Re-factorize spi_flash_std_probe code

2015-10-27 Thread Jagan Teki
spi_flash_probe_tail code looks not in proper shape to add more functionalities. hence refactorized so-that it's more readable and hence we may extend more functionalies to it. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_probe.c | 22 ++ 1 file changed, 14 insertions(+),

[U-Boot] [PATCH v5 10/14] sf: Use static for file-scope functions

2015-10-27 Thread Jagan Teki
Use static for file-scope functions and removed them from header files. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 20 drivers/mtd/spi/sf_ops.c | 11 ++- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/drivers/mtd/spi/sf_intern

[U-Boot] [PATCH v5 12/14] sf: probe: Use spi_flash_scan in dm-spi-flash

2015-10-27 Thread Jagan Teki
This patch add support to use spi_flash_scan in dm-spi-flash probe, so-that it can access the spi_flash functionalities same as non-dm sf probe. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_probe.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --gi

[U-Boot] [PATCH v5 09/14] sf: Flash power up read-only based on idcode0

2015-10-27 Thread Jagan Teki
Using macro's for flash power up read-only access code leads wrong behaviour hence use idcode0 for runtime detection, hence the flash which require this functionality gets detected at runtime. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 2 ++ drivers/mtd/spi/sf_ops.c | 7 +

[U-Boot] [PATCH v5 08/14] sf: Use flash function pointers in dm_spi_flash_ops

2015-10-27 Thread Jagan Teki
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. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 2 -- drivers/mtd/spi/sf_probe.c | 15 +++ include/spi_flash.

[U-Boot] [PATCH v5 11/14] sf: Remove unneeded header includes

2015-10-27 Thread Jagan Teki
Removed unneeded header includes in sf_ops and sf_probe. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 2 -- drivers/mtd/spi/sf_probe.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c index e04f8aa..d3e8a83 100644 --- a/driv

[U-Boot] [PATCH v5 06/14] sf: Fix Makefile

2015-10-27 Thread Jagan Teki
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/Makefile index ff48b25..66c4424 100644 --- a/drivers/mtd/spi/Makefil

[U-Boot] [PATCH v5 03/14] sf: Move read_id code to sf_ops

2015-10-27 Thread Jagan Teki
read_id code is related to spi_flash stuff hence moved to sf_ops. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 3 +-- drivers/mtd/spi/sf_ops.c | 21 ++--- drivers/mtd/spi/sf_probe.c| 15 +-- 3 files changed, 20 insertions(+), 19 deletions(-)

[U-Boot] [PATCH v5 04/14] sf: probe: Code cleanup

2015-10-27 Thread Jagan Teki
- Move bar read code below the bar write hance both at once place, hence it easy for #ifdef macro only once and readable. - Move read_cmd_array at top Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 81 +++- 1 file changed, 39 insertions(+

[U-Boot] [PATCH v5 07/14] sf: Use simple name for register access functions

2015-10-27 Thread Jagan Teki
Most of the register access function are static, so used simple name to represent each. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_ops.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/s

[U-Boot] [PATCH v5 05/14] sf: Use static for file-scope functions

2015-10-27 Thread Jagan Teki
Use static for file-scope functions and removed them from header files. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_internal.h | 18 -- drivers/mtd/spi/sf_ops.c | 11 ++- 2 files changed, 6 insertions(+), 23 deletions(-) diff --git a/drivers/mtd/spi/sf_internal

[U-Boot] [PATCH v5 02/14] sf: Move spi_flash_scan code to sf_ops

2015-10-27 Thread Jagan Teki
Intension is that sf_ops should deals all spi_flash related stuff and sf_probe (which should renamed future) should be an interface layer for spi_flash versus spi drivers. sf_ops => spi_flash interface sf_probe => interface layer vs spi_flash(sf_probe) to spi drivers Signed-off-by: Jagan Teki --

[U-Boot] [PATCH v5 01/14] sf: spi_flash_validate_params => spi_flash_scan

2015-10-27 Thread Jagan Teki
Rename spi_flash_validate_params to spi_flash_scan as this code not only deals with params setup but also configure all spi_flash attributes. And also moved all flash related code into spi_flash_scan for future functionality addition. Signed-off-by: Jagan Teki --- drivers/mtd/spi/sf_probe.c | 1

[U-Boot] [PATCH v5 00/14] sf: Tunning spi-flash layer

2015-10-27 Thread Jagan Teki
The main intension of these patches is to separate the core flash code and flash-to-spi drivers interface code. This gives proper enhancement for adding new features like MTD Core, SPI NOR framework. sf_ops: Core spi-flash handling (non-dm, becuase sharing code) sf_probe: flash-to-spi driver inte

[U-Boot] [PATCH] spi: altera_spi: Minor cleanup

2015-10-27 Thread Jagan Teki
- Moved macro definitions to top - Give tab space to CONFIG_ALTERA_SPI_IDLE_VAL value - Re-arrange header includes to ascending order Cc: Thomas Chou Signed-off-by: Jagan Teki --- drivers/spi/altera_spi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/spi

[U-Boot] [PATCH v6 03/23] spi: altera_spi: Use BIT macro

2015-10-27 Thread Jagan Teki
Replace numerical bit shift with BIT macro in altera_spi :%s/(1 << nr)/BIT(nr)/g where nr = 0, 1, 2 31 Cc: Marek Vasut Cc: Thomas Chou Reviewed-by: Tom Rini Signed-off-by: Jagan Teki --- Changes for v6: - Rebase to master drivers/spi/altera_spi.c | 4 ++-- 1 file changed, 2 in

Re: [U-Boot] [PATCH v2 00/14] dm: arm: zynq: Convert serial driver to driver model

2015-10-27 Thread Simon Glass
Hi Michal, On Oct 27, 2015 08:27, "Michal Simek" wrote: > > Hi Simon, > > On 10/18/2015 03:41 AM, Simon Glass wrote: > > This series updates the Zynq serial driver to use driver model. Along the > > way several problems are fixed: > > > > - Support for /chosen/stdout-path using an alias > > - Fix

[U-Boot] [PATCH] fdt: Rewrite the logic in fdt_fixup_ethernet()

2015-10-27 Thread Bin Meng
Currently in fdt_fixup_ethernet() the MAC address fix up is handled in a loop of which the exit condition is to test the "eth%daddr" env is not NULL. However this creates unnecessary constrains that those "eth%daddr" env variables must be sequential even if "ethernet%d" does not start from 0 in the

Re: [U-Boot] [PATCH 0/4] ARM: tegra: GPU WPR region support

2015-10-27 Thread Tom Warren
Sorry, Alex. Missed these. > -Original Message- > From: Alexandre Courbot [mailto:gnu...@gmail.com] > Sent: Sunday, October 25, 2015 10:50 PM > To: Alex Courbot > Cc: Tom Warren ; Stephen Warren > ; Thierry Reding ; u- > b...@lists.denx.de; linux-te...@vger.kernel.org > Subject: Re: [PATC

Re: [U-Boot] [PATCH v2] arm: socfpga: Add SoCFPGA SR1500 board

2015-10-27 Thread Dinh Nguyen
Hi Stefan, On 10/26/2015 03:36 AM, Stefan Roese wrote: > The SR1500 board is a CycloneV based board, similar to the EBV > SoCrates, equipped with the following devices: > > - SPI NOR > - eMMC > - Ethernet > > Signed-off-by: Stefan Roese > Cc: Marek Vasut > Cc: Pavel Machek > Cc: Dinh Nguyen

[U-Boot] [PATCH 4/8] net: zynq: Add dummy packet to fix packet duplication issue

2015-10-27 Thread Michal Simek
Target is duplicating packets. IP prefetches another BD and process it when the first one is sent. Adding one dummy BD to the chain fix the problem with packet duplication. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) d

[U-Boot] [PATCH 8/8] net: zynq: Fix MDC setting for zynq

2015-10-27 Thread Michal Simek
Based on spec: "MDC must not exceed 2.5 MHz (MDC is only active during MDIO read and write operations)" Zynq is running on 111MHz. Current setting is 32 which is 111/32=3.47 which is above of 2.5MHz. Using 48 divider will give us correct setting according spec (111/48=2.31). Signed-off-by: Michal

Re: [U-Boot] [PATCH v2 00/14] dm: arm: zynq: Convert serial driver to driver model

2015-10-27 Thread Michal Simek
Hi Simon, On 10/18/2015 03:41 AM, Simon Glass wrote: > This series updates the Zynq serial driver to use driver model. Along the > way several problems are fixed: > > - Support for /chosen/stdout-path using an alias > - Fix to fdtgrep which is currently breaking alias building > - Avoid building

[U-Boot] [PATCH] zynq: sdhci: Define max clock by macro

2015-10-27 Thread Michal Simek
zc1571 with silicon can operate on 200MHz maximum frequency. Setup this frequency by default and fix setting for ep108. Signed-off-by: Michal Simek --- drivers/mmc/zynq_sdhci.c | 2 +- include/configs/xilinx_zynqmp.h| 3 +++ include/configs/xilinx_zynqmp_ep.h | 1 + include/config

[U-Boot] [PATCH 6/8] net: zynq: Fix mdc clock division setting for 100Mbit/s

2015-10-27 Thread Michal Simek
Using set and clear macro is incorrect because it is not overwritting origin mdc clock division setup. For example origin setup is 8(0b001) and new setup is 64(0b100) which means 0b101 is setup which is 96 divider. Using writel to rewrite all setting like for 1000Mbit/s case. Signed-off-by: Michal

[U-Boot] [PATCH 5/8] net: zynq: Wait till packet is sent

2015-10-27 Thread Michal Simek
Wait till BD is process to ensure that packet was sent successfully. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index e49aa86127d1..c

[U-Boot] [PATCH 7/8] net: zynq: Remove unused MDCCLKDIV2 macro

2015-10-27 Thread Michal Simek
Driver cleanup. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index a9384ce73144..3962c83f7ac6 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -59,7 +59,6 @@ #define

[U-Boot] [PATCH 1/8] net: zynq: Allocate BD_SPACE in connection to RX_BUF

2015-10-27 Thread Michal Simek
BD_SEPRN_SPACE should not have hard coded value and it will be calculated based on the number of buffer descriptors that we would like to use. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/zynq_gem.c b/driv

[U-Boot] [PATCH 2/8] net: zynq: Setup BD when structures are filled

2015-10-27 Thread Michal Simek
Fix incorrect sequence in BD handling. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 5aa21b9f24a7..f13a244c7756 100644 --- a/drivers/net/zynq_gem.c +++ b/driv

[U-Boot] [PATCH 3/8] net: zynq: Do not report TX underrun

2015-10-27 Thread Michal Simek
Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index f13a244c7756..7084488b25ec 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -458,8 +458,6 @@ static int zynq_gem_se

[U-Boot] [PATCH] net: phy: Add support for Texas Instruments DP83867

2015-10-27 Thread Michal Simek
From: "Edgar E. Iglesias" Code is taken from Linux kernel driver. Signed-off-by: Edgar E. Iglesias Signed-off-by: Michal Simek --- drivers/net/phy/Makefile | 1 + drivers/net/phy/phy.c| 3 + drivers/net/phy/ti.c | 205 +++ 3 files chang

[U-Boot] [PATCH 1/2] net: zynq: Add debug message to phyread/phywrite

2015-10-27 Thread Michal Simek
Add debug messages to phyread/write to help with PHY debug. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 9175d2cae8f7..3d21ad617359 100644 --- a/driv

[U-Boot] [PATCH 1/3] net: zynq: Extend register description with offsets

2015-10-27 Thread Michal Simek
Extend comments with register offset to help with debuggging. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 72f1332c8008..d98c229f4

[U-Boot] [PATCH 3/3] net: zynq: Disable secondary queues

2015-10-27 Thread Michal Simek
From: "Edgar E. Iglesias" Zynq has no priority queues. ZynqMP requires this change to get network working. This patch was not needed on ep108 for uknown reason even it should be used. Tested on Zynq and ZynqMP. Signed-off-by: Edgar E. Iglesias Signed-off-by: Michal Simek --- drivers/net/zynq

[U-Boot] [PATCH 2/3] net: zynq: Fix clearing statistic

2015-10-27 Thread Michal Simek
Previous loop was completely bogus. Iterration should go just over statistic counters. Signed-off-by: Michal Simek --- 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 d98c229f4330..f32862fd0b

[U-Boot] [PATCH 2/2] net: zynq: Add support for different PHY interface types

2015-10-27 Thread Michal Simek
MII is setup by default for all cases. The most of boards are using RGMII but PHY drivers are not doing any specific setting that's why MII setting was working fine. With TI DP83867 is necessary to setup paramaters based on interface type. Use one setting per board for it which is something what w

[U-Boot] [PATCH] common: mii: Do not allow to exceed max phy limit

2015-10-27 Thread Michal Simek
Phy can have addresses 0-31. Check this boundary to ensure that user can't call commands on phy address 32 and more. Signed-off-by: Michal Simek --- common/cmd_mii.c | 5 + 1 file changed, 5 insertions(+) diff --git a/common/cmd_mii.c b/common/cmd_mii.c index 5e9079da0487..7ef7532a502a 100

Re: [U-Boot] u-boot device model SPI + SPI Flash

2015-10-27 Thread Hoefle Marco
Hello Michal, ok I will then stop trying to get SPI working on mainline and watch your commits on https://github.com/Xilinx/u-boot-xlnx We have a custom Artix Board here and I would be happy to test your commits on our hardware. Thanks, Marco Von: Mic

[U-Boot] [PATCH] i2c: Instantiate I2C controllers when selected

2015-10-27 Thread Michal Simek
Do not enable both I2C controllers by default. Enable them only when they are selected. Signed-off-by: Michal Simek --- drivers/i2c/zynq_i2c.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/zynq_i2c.c b/drivers/i2c/zynq_i2c.c index b3264af4526e..380863bde148 100644 --- a/dr

[U-Boot] [PATCH 3/3] dm: sf: Add support for all targets which requires MANUAL_RELOC

2015-10-27 Thread Michal Simek
It is follow up patch based on "dm: Add support for all targets which requires MANUAL_RELOC" (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) to update function pointers for DM. Using post_bind is not ideal but it is one on current option what can be used. Variable reloc_done has to be used do not

[U-Boot] [PATCH 2/3] dm: core: Add missing entries for manual relocation

2015-10-27 Thread Michal Simek
Patches: "dm: core: Add a post_bind method for parents" (sha1: 0118ce79577f9b0881f99a6e4f8a79cd5014cb87) "dm: core: Add a uclass pre_probe() method for devices" (sha1: 02c07b3741f1b825934b1a6eb8f23530532dc426) "dm: core: Allow the uclass to set up a device's child after binding" (sha1: 081f2fcbd9a9

[U-Boot] [PATCH 1/3] dm: spi: Add support for all targets which requires MANUAL_RELOC

2015-10-27 Thread Michal Simek
It is follow up patch based on "dm: Add support for all targets which requires MANUAL_RELOC" (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) to update function pointers for DM. Signed-off-by: Michal Simek --- drivers/spi/spi-uclass.c | 20 1 file changed, 20 insertions(+)

[U-Boot] [PATCH] spi: sf: add support for throughput mesurement of sf read/write

2015-10-27 Thread Mugunthan V N
This patch adds time measurement and throughput calculation for sf read/write commands. The output of sf read changes from ---8<--- SF: 4096 bytes @ 0x0 Read: OK --->8--- to ---8<--- SF: 4096 bytes @ 0x0 Read: OK in 6 ms (666 KiB/s) --->8--- Signed-off-by: Mugunthan V N --- common/cmd_sf.c |

Re: [U-Boot] [PATCH V3 07/14] dm: adc: add simple ADC uclass implementation

2015-10-27 Thread Przemyslaw Marczak
Hello all, On 10/27/2015 01:08 PM, Przemyslaw Marczak wrote: This commit adds: - new uclass id: UCLASS_ADC - new uclass driver: drivers/adc/adc-uclass.c The new uclass's API allows for ADC operation on: * single-channel with channel selection by a number * multti-channel with channel selection

Re: [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot

2015-10-27 Thread Marek Vasut
On Tuesday, October 27, 2015 at 02:15:24 PM, Thomas Chou wrote: > Hi Marek, Hi, > On 10/27/2015 05:07 PM, Marek Vasut wrote: > > On Tuesday, October 27, 2015 at 04:24:10 AM, Thomas Chou wrote: > >> Use common sequence for reserve_uboot, as the result is > >> the same. > >> > >> Signed-off-by: Th

Re: [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot

2015-10-27 Thread Thomas Chou
Hi Marek, On 10/27/2015 05:07 PM, Marek Vasut wrote: On Tuesday, October 27, 2015 at 04:24:10 AM, Thomas Chou wrote: Use common sequence for reserve_uboot, as the result is the same. Signed-off-by: Thomas Chou Shouldn't we just implement relocation properly ? This patch is not quite relat

Re: [U-Boot] u-boot device model SPI + SPI Flash

2015-10-27 Thread Hoefle Marco
Ok renaming it worked and I could extract the petalinux bsp. Thanks for the hint. The dts I found is very similar to the one we use successfully in the mainline Linux Kernel. There SPI + SPI Flash are working. However, I think (please correct me if I am wrong) the petalinux u-boot config does n

Re: [U-Boot] [PATCH 3/3] vexpress64: store env in flash

2015-10-27 Thread Ryan Harkin
Hi Linus, On 27 October 2015 at 11:49, Linus Walleij wrote: > On Wed, Oct 21, 2015 at 11:54 AM, Ryan Harkin wrote: > >> Juno has 1 flash part with 259 sectors. The first 255 sectors are >> 0x4 (256kb) and are followed by 4 sectors of 0x1 (64KB). >> >> FVP models simulate a 64MB NOR flas

Re: [U-Boot] [PATCH 2/3] vexpress64: remove #error

2015-10-27 Thread Ryan Harkin
On 27 October 2015 at 11:36, Linus Walleij wrote: > On Wed, Oct 21, 2015 at 11:54 AM, Ryan Harkin wrote: > >> This patch allows vexpress64 targets to be compiled when >> CONFIG_SYS_FLASH_CFI is enabled. > > I can't see what this has to do with enabling CFI? The errors happen when I enable CFI on

[U-Boot] [PATCH V3 05/14] dm: pmic: add s2mps11 PMIC I/O driver

2015-10-27 Thread Przemyslaw Marczak
This driver allows I/O operations on the Samsung S2MPS11 PMIC, which provides lots of LDO/BUCK outputs. To enable it, update defconfig with: - CONFIG_PMIC_S2MPS11 and additional, if were not defined: - CONFIG_CMD_PMIC - CONFIG_ERRNO_STR The binding info: doc/device-tree-bindings/pmic/s2mps11.txt

[U-Boot] [PATCH V3 08/14] dm: adc: add Exynos54xx compatible ADC driver

2015-10-27 Thread Przemyslaw Marczak
This commit adds driver for Exynos54xx ADC subsystem. The driver is implemented using driver model, amd provides ADC uclass's methods for ADC single channel operations: - adc_start_channel() - adc_channel_data() - adc_stop() The basic parameters of ADC conversion, are: - sample rate: 600KSPS - ou

  1   2   >