[U-Boot] [PULL] Please pull u-boot-imx

2015-04-12 Thread Stefano Babic
Hi Tom, pleas pull from u-boot-imx, thanks ! The following changes since commit 21866c34a1b4098a8868c9250daf01baf84c2397: at91sam9rlek_mmc_defconfig: Add CONFIG_ARCH_AT91=y (2015-03-20 10:47:38 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for

Re: [U-Boot] [PATCH v2 0/6] Add support for Colibri Vybrid Modules

2015-04-12 Thread maitysanchayan
Hello, On 15-04-13 01:28:07, Marek Vasut wrote: > On Sunday, April 12, 2015 at 07:33:41 AM, maitysancha...@gmail.com wrote: > > Hi, > > > > On 15-04-11 18:46:15, Marek Vasut wrote: > > > On Wednesday, April 08, 2015 at 03:20:04 PM, Sanchayan Maity wrote: > > > > Hello, > > > > > > > > This is th

[U-Boot] [PATCH v3 0/8] Allow sandbox to use config_distro_bootcmd

2015-04-12 Thread Sjoerd Simons
Testing whether images will correctly boot with the standard distro bootcmds can be rather time-consuming as it tends to require flashing the images and booting on a device. Ditto for testing changes to config_distro_bootcmd. Adding support for sandbox to run distro bootcmds makes things a lot mo

Re: [U-Boot] Compile minnowboard max error

2015-04-12 Thread li yuqian
Hi Any one can help me figure out what is the wrong for that, is that a bug?Thank you > From: liyuqia...@outlook.com > To: u-boot@lists.denx.de > Date: Sat, 11 Apr 2015 14:17:37 + > Subject: Re: [U-Boot] Compile minnowboard max error > > i found following command was wrong: > > > > > >

Re: [U-Boot] [PATCH v2 5/6] usb: host: Add ehci-vf USB driver for ARM Vybrid SoC's

2015-04-12 Thread Marek Vasut
On Monday, April 13, 2015 at 07:37:42 AM, maitysancha...@gmail.com wrote: > Hello, > > On 15-04-13 01:29:39, Marek Vasut wrote: > > On Wednesday, April 08, 2015 at 03:20:09 PM, Sanchayan Maity wrote: > > > This driver adds support for the USB peripheral on Freescale Vybrid > > > SoC's. > > > > >

Re: [U-Boot] [PATCH v2 5/6] usb: host: Add ehci-vf USB driver for ARM Vybrid SoC's

2015-04-12 Thread maitysanchayan
Hello, On 15-04-13 01:29:39, Marek Vasut wrote: > On Wednesday, April 08, 2015 at 03:20:09 PM, Sanchayan Maity wrote: > > This driver adds support for the USB peripheral on Freescale Vybrid > > SoC's. > > > > Signed-off-by: Sanchayan Maity > > --- > > arch/arm/include/asm/arch-vf610/crm_regs.h

[U-Boot] [PATCH v6 12/15] tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0

2015-04-12 Thread Jan Kiszka
From: Ian Campbell These registers can be used to prevent non-secure world from accessing a megabyte aligned region of RAM, use them to protect the u-boot secure monitor code. At first I tried to do this from s_init(), however this inexplicably causes u-boot's networking (e.g. DHCP) to fail, whi

[U-Boot] [PATCH v6 09/15] tegra: Make tegra_powergate_power_on public

2015-04-12 Thread Jan Kiszka
Will be used for unpowergating CPUs. Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian Campbell --- arch/arm/include/asm/arch-tegra/powergate.h | 1 + arch/arm/mach-tegra/powergate.c | 2 +- 2 files changed, 2 ins

[U-Boot] [PATCH v6 05/15] ARM: Factor out reusable psci_get_cpu_stack_top

2015-04-12 Thread Jan Kiszka
This algorithm will be useful on Tegra as well, plus we will need it for making _psci_target_pc per-CPU. CC: Marc Zyngier Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian Campbell --- arch/arm/cpu/armv7/psci.S | 14 ++

[U-Boot] [PATCH v6 08/15] virt-dt: Allow reservation of secure region when in a RAM carveout

2015-04-12 Thread Jan Kiszka
In this case the secure code lives in RAM, and hence the memory node in the device tree needs to be adjusted. This avoids that the OS will map and possibly access the reservation. Add support for setting CONFIG_ARMV7_SECURE_RESERVE_SIZE to carve out such a region. We only support cutting off memor

[U-Boot] [PATCH v6 15/15] jetson-tk1: Add PSCI configuration options and reserve secure code

2015-04-12 Thread Jan Kiszka
From: Ian Campbell The secure world code is relocated to the MB just below the top of 4G, we reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is not protected in h/w. See next patch. Signed-off-by: Ian Campbell Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed

[U-Boot] [PATCH v6 03/15] ARM: Factor out reusable psci_cpu_off_common

2015-04-12 Thread Jan Kiszka
Move parts of sunxi's psci_cpu_off into psci_cpu_off_common, namely cache disabling and flushing, clrex and the disabling of SMP for the dying CPU. These steps are apparently generic for ARMv7 and will be reused for Tegra124 support. As the way of disabled SMP is not architectural, though commonly

[U-Boot] [PATCH v6 11/15] tegra124: Add PSCI support for Tegra124

2015-04-12 Thread Jan Kiszka
This is based on Thierry Reding's work and uses Ian Campell's preparatory patches. It comes with full support for CPU_ON/OFF PSCI services. The algorithm used in this version for turning CPUs on and off was proposed by Peter De Schrijver and Thierry Reding in http://thread.gmane.org/gmane.comp.boot

[U-Boot] [PATCH v6 00/15] Add PSCI support for Jetson TK1/Tegra124 + CNTFRQ fix

2015-04-12 Thread Jan Kiszka
Changes in v6: - rebased over master - included Thierry's SMMU enabling patch - moved activation patch at the end so that it can be held back This version can also be found at https://github.com/siemens/u-boot/tree/jetson-tk1-v6. Jan CC: Ian Campbell CC: Marc Zyngier CC: Thierry Reding Ia

[U-Boot] [PATCH v6 13/15] tegra: Set CNTFRQ for secondary CPUs

2015-04-12 Thread Jan Kiszka
We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to happen for all cores. Fixing this resolves problems of KVM with emulating the generic timer/counter. Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian Cam

[U-Boot] [PATCH v6 14/15] ARM: tegra: Enable SMMU when going non-secure

2015-04-12 Thread Jan Kiszka
From: Thierry Reding Make sure to enable the SMMU when booting the kernel in non-secure mode. This is necessary because some of the SMMU registers are restricted to TrustZone-secured requestors, hence the kernel wouldn't be able to turn the SMMU on. At the same time, enable translation for all me

[U-Boot] [PATCH v6 01/15] sun7i: Remove duplicate call to psci_arch_init

2015-04-12 Thread Jan Kiszka
This is already invoked a few cycles later in monitor mode by _secure_monitor (_sunxi_cpu_entry calls _do_nonsec_entry which triggers _secure_monitor via smc #0). Drop it here, it serves no purpose. CC: Marc Zyngier Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Te

[U-Boot] [PATCH v6 07/15] tegra124: Add more registers to struct mc_ctlr

2015-04-12 Thread Jan Kiszka
From: Ian Campbell I will need mc_security_cfg0/1 in a future patch and I added the rest while debugging, so thought I might as well commit them. Signed-off-by: Ian Campbell Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian

[U-Boot] [PATCH v6 10/15] tegra: Add ap_pm_init hook

2015-04-12 Thread Jan Kiszka
This function will be used to initialize CPU power management for Tegra SOCs. For now it does nothing. Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Tested-by: Thierry Reding Tested-by: Ian Campbell --- arch/arm/include/asm/arch-tegra/ap.h | 5 + board/nvidi

[U-Boot] [PATCH v6 06/15] ARM: Put target PC for PSCI CPU_ON on per-CPU stack

2015-04-12 Thread Jan Kiszka
Use a per-CPU variable for saving the target PC during CPU_ON operations. This allows us to run this service independently on targets that have more than 2 cores and also core-local power control. CC: Marc Zyngier Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewed-by: Thierry Reding Test

[U-Boot] [PATCH v6 02/15] ARM: Factor out common psci_get_cpu_id

2015-04-12 Thread Jan Kiszka
Will be required for obtaining the ID of the current CPU in shared PSCI functions. The default implementation requires a dense ID space and only supports a single cluster. Therefore, the functions can be overloaded in cases where these assumptions do not hold. CC: Marc Zyngier Signed-off-by: Jan

[U-Boot] [PATCH v6 04/15] ARM: Factor out reusable psci_cpu_entry

2015-04-12 Thread Jan Kiszka
_sunxi_cpu_entry can be converted completely into a reusable psci_cpu_entry. Tegra124 will use it as well. As with psci_disable_smp, also the enabling is designed to be overloaded in cased SMP is not controlled via ACTLR. CC: Marc Zyngier Signed-off-by: Jan Kiszka Reviewed-by: Tom Rini Reviewe

Re: [U-Boot] [PATCH v2 0/6] Add support for Colibri Vybrid Modules

2015-04-12 Thread Marek Vasut
On Monday, April 13, 2015 at 03:36:56 AM, Fabio Estevam wrote: > Hi Marek, > > On Sun, Apr 12, 2015 at 8:28 PM, Marek Vasut wrote: > > I was concerned about the placement of the PHY reg definition. I didn't > > hear from Fabio on the result of this decision and I don't really mind > > that either

[U-Boot] [PATCH] ARM: rpi: add a couple more revision IDs

2015-04-12 Thread Stephen Warren
According to Gordon Henderson's WiringPi library, there are some more Pi revision IDs out there. Add support for them. http://git.drogon.net/?p=wiringPi;a=blob_plain;f=wiringPi/wiringPi.c;hb=5edd177112c99416f68ba3e8c6c4db6ed942e796 At least ID 0x13 is out in the wild: Reported-by: Chee-Yang Chau

Re: [U-Boot] [PATCH 2/2] ARM: zynq: add default ps7_init_gpl.c/h for Zed, MicroZed, ZC70x

2015-04-12 Thread Sören Brinkmann
On Mon, 2015-04-13 at 10:28AM +0900, Masahiro Yamada wrote: > Hi Sören, > > 2015-04-12 11:45 GMT+09:00 Sören Brinkmann : > > >> > >> > Does this mechanism allow to build for one of the supported boards (e.g. > >> > zc706) using custom init files? We need to maintain this capability, > >> > IMHO,

Re: [U-Boot] [PATCH] patman: check git format.subjectprefix setting when generate patches prefix

2015-04-12 Thread Josh Wu
Hi, Simon On 4/11/2015 1:51 AM, Simon Glass wrote: Hi Josh, On 7 April 2015 at 23:13, Josh Wu wrote: For the local project, we may specified format.subjectprefix setting. Then the patch will be formated as [Project_prefix][PATCH]. But patman will not check this setting. It will remove the for

[U-Boot] [PATCH v2] ARM: tegra: move NVIDIA common files to arch/arm/mach-tegra

2015-04-12 Thread Masahiro Yamada
All the Tegra boards borrow the files from board/nvidia/common/ directory, i.e., board/nvidia/common/* are not vendor-common files, but SoC-common files. Move NVIDIA common files to arch/arm/mach-tegra/ to clean up Makefiles. As arch/arm/mach-tegra/board.c already exists, this commit renames boar

Re: [U-Boot] [PATCH v2 0/6] Add support for Colibri Vybrid Modules

2015-04-12 Thread Fabio Estevam
Hi Marek, On Sun, Apr 12, 2015 at 8:28 PM, Marek Vasut wrote: > I was concerned about the placement of the PHY reg definition. I didn't > hear from Fabio on the result of this decision and I don't really mind > that either way. I thought that maybe we should relax about the 'register access via

Re: [U-Boot] [PATCH 2/2] ARM: zynq: add default ps7_init_gpl.c/h for Zed, MicroZed, ZC70x

2015-04-12 Thread Masahiro Yamada
Hi Sören, 2015-04-12 11:45 GMT+09:00 Sören Brinkmann : >> >> > Does this mechanism allow to build for one of the supported boards (e.g. >> > zc706) using custom init files? We need to maintain this capability, >> > IMHO, since these initfiles are generated by Xilinx tools depending on >> > variou

Re: [U-Boot] [PATCH v2 5/6] usb: host: Add ehci-vf USB driver for ARM Vybrid SoC's

2015-04-12 Thread Marek Vasut
On Wednesday, April 08, 2015 at 03:20:09 PM, Sanchayan Maity wrote: > This driver adds support for the USB peripheral on Freescale Vybrid > SoC's. > > Signed-off-by: Sanchayan Maity > --- > arch/arm/include/asm/arch-vf610/crm_regs.h| 10 ++ > arch/arm/include/asm/arch-vf610/imx-regs.h|

Re: [U-Boot] [PATCH v2 0/6] Add support for Colibri Vybrid Modules

2015-04-12 Thread Marek Vasut
On Sunday, April 12, 2015 at 07:33:41 AM, maitysancha...@gmail.com wrote: > Hi, > > On 15-04-11 18:46:15, Marek Vasut wrote: > > On Wednesday, April 08, 2015 at 03:20:04 PM, Sanchayan Maity wrote: > > > Hello, > > > > > > This is the second version of the patchset which adds support for the > > >

Re: [U-Boot] [PATCH] usb: dwc2: retry NAK'd interrupt transfers

2015-04-12 Thread Marek Vasut
On Sunday, April 12, 2015 at 05:52:02 AM, Stephen Warren wrote: > IIUC, interrupt transfers are NAK'd by devices until they wish to trigger > an interrupt, and e.g. EHCI controllers retry these in HW until they are > ACK'd. However, DWC2 doesn't seem to retry, so we need to do this in SW. > In prac

[U-Boot] [PATCH v3 8/8] sandbox: add config_distro_defaults and config_distro_bootcmd

2015-04-12 Thread Sjoerd Simons
Make the sandbox setup more generic/examplary by including config_distro_defaults.h and config_distro_bootcmd.h. Among other things this makes it easy to test whether images will boot though with the standard distro bootcmds by running e.g: u-boot -c 'host bind 0 myimage.img ; boot' By default

[U-Boot] [PATCH v3 6/8] config_distro_bootcmd.h: Add shared block definition for the host interface

2015-04-12 Thread Sjoerd Simons
Define the common shared block environment for the host interface in preperation for the sandbox build to use config_distro_bootcmd. Signed-off-by: Sjoerd Simons Acked-by: Simon Glass Acked-by: Stephen Warren --- Changes in v3: None Changes in v2: None include/config_distro_bootcmd.h | 13 ++

[U-Boot] [PATCH v3 7/8] pxe: Ensure all memory access is to mapped memory

2015-04-12 Thread Sjoerd Simons
Properly map memory through map_sysmem so that pxe can be used from the sandbox. Tested in sandbox as well as on jetson-tk1, odroid-xu3, snow as peach-pi boards Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- Changes in v3: None Changes in v2: - Prevent uncessary casts - Always unmap m

[U-Boot] [PATCH v3 3/8] sandbox: Add support for bootz

2015-04-12 Thread Sjoerd Simons
Add dummy bootz_setup implementation allowing the u-boot sandbox to run bootz. This recognizes both ARM and x86 zImages to validate a valid zImage was loaded. Signed-off-by: Sjoerd Simons --- Changes in v3: - Fill in *start and *end with proper values Changes in v2: - Move into sandbox/lib/boo

[U-Boot] [PATCH v3 4/8] sandbox: Renamed sb command to host

2015-04-12 Thread Sjoerd Simons
As suggested by Simon Glass, rename the sb command to host but keep the old sb command as an alias Signed-off-by: Sjoerd Simons --- Changes in v3: - Improve deprecated sb command short line - Don't document subcommands for sb anymore Changes in v2: None common/Makefile |

[U-Boot] [PATCH v3 5/8] sandbox: Implement host dev [device]

2015-04-12 Thread Sjoerd Simons
A common pattern to check if a certain device exists (e.g. in config_distro_bootcmd) is to use: dev [device] Implement host dev [device] so this pattern can be used for sandbox host devices. Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None commo

[U-Boot] [PATCH v3 1/8] sandbox: only do sandboxfs for hostfs interface

2015-04-12 Thread Sjoerd Simons
Only do sandbox filesystem access when using the hostfs device interface, rather then falling back to it in all cases. This prevents confusion situations due to the fallback being taken rather then an unsupported error being raised. Signed-off-by: Sjoerd Simons Reviewed-by: Simon Glass Acked-by:

[U-Boot] [PATCH v3 2/8] sandbox: Split bootm code out into lib/bootm

2015-04-12 Thread Sjoerd Simons
Follow the convention of other architectures and move the platform specific linux bootm code into sandbox/lib/bootm.c. Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/cpu/cpu.c| 12 arch/sandbox/lib/Makefile | 1 +

Re: [U-Boot] [PATCH 2/4] sunxi: Proper iNet board config naming

2015-04-12 Thread Michal Suchanek
On 12 April 2015 at 22:26, Paul Kocialkowski wrote: > Le dimanche 12 avril 2015 à 22:22 +0200, Paul Kocialkowski a écrit : >> The official name for the iNet manufacturer is iNet with a lowercase i and an >> uppercase N. > > +CC the board maintainer > Acked-by: Michal Suchanek Thanks __

Re: [U-Boot] [PATCH 2/4] sunxi: Proper iNet board config naming

2015-04-12 Thread Paul Kocialkowski
Le dimanche 12 avril 2015 à 22:22 +0200, Paul Kocialkowski a écrit : > The official name for the iNet manufacturer is iNet with a lowercase i and an > uppercase N. +CC the board maintainer > Signed-off-by: Paul Kocialkowski > --- > board/sunxi/MAINTAINERS | 4 ++-- > configs/Inet_86VS_defc

[U-Boot] [PATCH 3/4] sunxi: iNet 3W support

2015-04-12 Thread Paul Kocialkowski
The iNet 3W is an A10 tablet with 1GiB RAM and a 1024x768 screen. Also see: http://linux-sunxi.org/INet_3W Signed-off-by: Paul Kocialkowski --- board/sunxi/MAINTAINERS | 5 + configs/iNet_3W_defconfig | 17 + 2 files changed, 22 insertions(+) create mode 100644 configs/i

[U-Boot] [PATCH 2/4] sunxi: Proper iNet board config naming

2015-04-12 Thread Paul Kocialkowski
The official name for the iNet manufacturer is iNet with a lowercase i and an uppercase N. Signed-off-by: Paul Kocialkowski --- board/sunxi/MAINTAINERS | 4 ++-- configs/Inet_86VS_defconfig | 16 configs/iNet_86VS_defconfig | 16 3 files changed, 18 inserti

[U-Boot] [PATCH 1/4] sunxi: Removed dram files cleanup in MAINTAINERS

2015-04-12 Thread Paul Kocialkowski
A few dram files were still listed as maintained even though they were removed some time ago Signed-off-by: Paul Kocialkowski --- board/sunxi/MAINTAINERS | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index f368d6f..458d4e5 100644 --- a/bo

[U-Boot] [PATCH 4/4] sunxi: iNet 3F support

2015-04-12 Thread Paul Kocialkowski
The iNet 3F is an A10 tablet with 1GiB RAM and a 1024x768 screen. Also see: http://linux-sunxi.org/INet_3F Signed-off-by: Paul Kocialkowski --- board/sunxi/MAINTAINERS | 5 + configs/iNet_3F_defconfig | 18 ++ 2 files changed, 23 insertions(+) create mode 100644 configs/

[U-Boot] [PATCH] arm, imx6: add support for aristainetos2 board

2015-04-12 Thread Heiko Schocher
add support for imx6dl based aristainetos2 board U-Boot 2015.04-rc5-00066-g60f6ed4 (Apr 10 2015 - 08:46:27) CPU: Freescale i.MX6DL rev1.1 at 792 MHz Reset cause: WDOG Board: aristaitenos2 Watchdog enabled I2C: ready DRAM: 1 GiB NAND: 1024 MiB MMC: FSL_SDHC: 0 SF: Detected N25Q128A

[U-Boot] [PATCH] video, lg4573: add support for the lg4573 display

2015-04-12 Thread Heiko Schocher
Signed-off-by: Heiko Schocher --- drivers/video/Makefile | 1 + drivers/video/lg4573.c | 231 + include/video.h| 4 + 3 files changed, 236 insertions(+) create mode 100644 drivers/video/lg4573.c diff --git a/drivers/video/Makefile b/d

[U-Boot] [PATCH] video, ipu: make ldb clock frequenz overwriteable through board code

2015-04-12 Thread Heiko Schocher
the ldb clock can be setup in board code (for example set through PLL5). Update the ldb_clock rate also through board code. This should be removed, if a clock framework is availiable. Signed-off-by: Heiko Schocher --- drivers/video/ipu.h| 1 + drivers/video/ipu_common.c | 11 +

[U-Boot] [PATCH] video, ipu: make ldb_clock configurable

2015-04-12 Thread Heiko Schocher
make the ldb_clock configurable through the new define CONFIG_SYS_LDB_CLOCK. This is needed as the ldb clock is not always 65000, for example on the aristainetos2 board, where the ldb clock derives from PLL5 clock. Signed-off-by: Heiko Schocher --- drivers/video/ipu_common.c | 6 +- 1 f

[U-Boot] [PATCH] cmd, nand: add more info to "nand info"

2015-04-12 Thread Heiko Schocher
add subpagesize, nand options and bbt options to the "nand info" output. => nand info Device 0: nand0, sector size 256 KiB Page size 4096 b OOB size 256 b Erase size262144 b subpagesize 4096 b options 0x 200 bbt options 0x8000 Signed-off-by: Heiko Sc

[U-Boot] [PATCH] mxs_nand: Fix ECC strength for NAND flash with OOB size of 256

2015-04-12 Thread Heiko Schocher
On the i.mx6 based aristainetos2 board a Toshiba TH58NYG3S0HBAI4 is used, which has 4096 pagesize and 256b oob. The ECC strength was not correct detected by U-Boot Signed-off-by: Heiko Schocher --- drivers/mtd/nand/mxs_nand.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/na

[U-Boot] [PATCH] arm, imx6, i2c: add I2C4 for MX6DL

2015-04-12 Thread Heiko Schocher
add I2C4 modul for MX6DL based boards. Signed-off-by: Heiko Schocher --- checkpatch shows: WARNING: line over 80 characters +#define MXC_CCM_CCGR1_I2C4_SERIAL_MASK (3 << MXC_CCM_CCGR1_I2C4_SERIAL_OFFSET) but the hole file is full of lines longer than80 characters, so I let this

[U-Boot] [RESEND PATCH v4 1/3] mtd, spi: add MTD layer driver

2015-04-12 Thread Heiko Schocher
From: Daniel Schwierzeck add MTD layer driver for spi, original patch from: http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced changes from Heiko Schocher against this patch: - remove compile error if not defining CONFIG_SPI_FLASH_MTD: LD

[U-Boot] [RESEND PATCH v4 3/3] spi, sf: use offset and size in sf cmd from mtdpartition

2015-04-12 Thread Heiko Schocher
with this patch, it is possible to get the offset and size information from the mtdpartiton setting in "mtdparts", similiar to the "nand" commandos. => sf sf - SPI flash sub-system Usage: sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus and ch

[U-Boot] [RESEND PATCH v4 2/3] mtd, nand: move common functions from cmd_nand.c to common place

2015-04-12 Thread Heiko Schocher
move common functions from cmd_nand.c (for calculating offset and size from cmdline paramter) to common place, so they could used from other commands which use mtd partitions. For onenand the arg_off_size() is left in common/cmd_onenand.c. It should use now the common arg_off() function, but as I

[U-Boot] [RESEND PATCH v4 0/3] spi, sf: add mtdparts feature to spi and sf commands

2015-04-12 Thread Heiko Schocher
This patchserie add the popssibility to define mtd partitions on spi nor flash, and use this settings with the sf commands. steps: - add MTD layer driver for spi, original patch from: http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced and addap