[PATCH 1/3] fixup! Add support for metadata in barebox images

2014-08-01 Thread Antony Pavlov
--- common/imd-barebox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/imd-barebox.c b/common/imd-barebox.c index 7122740..e9cd37d 100644 --- a/common/imd-barebox.c +++ b/common/imd-barebox.c @@ -13,12 +13,12 @@ void imd_used(const void *used) struct imd_header

[PATCH 3/3] MIPS: qemu-malta_defconfig: enable metadata in barebox image (IMD)

2014-08-01 Thread Antony Pavlov
Usage: $ qemu-system-mips -nodefaults -nographic -M malta -m 256 \ -serial stdio -monitor null \ -bios ./barebox-flash-image ... barebox:/ imd /dev/nor0 release: 2014.07.0-00401-gd863821 build: #148 Sat Aug 2 09:22:16 MSK 2014 Signed-off-by: Antony Pavlov --- arch/mi

[PATCH 2/3] MIPS: add support for metadata in barebox images

2014-08-01 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/lib/barebox.lds.S | 2 ++ arch/mips/pbl/zbarebox.lds.S | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index 4ee4252..c690e71 100644 --- a/arch/mips/lib/barebox.lds.S +++ b/arch/mips/lib/b

[PATCH 0/3] MIPS: add support for metadata in pbl-enabled barebox images

2014-08-01 Thread Antony Pavlov
This patch series make it possible to use metadata in big-endian qemu-malta barebox images. The first patch fixes up metadata for big-endian targets. Antony Pavlov (3): fixup! Add support for metadata in barebox images MIPS: add support for metadata in barebox images MIPS: qemu-malta_defcon

[PATCH] bus: mvebu: fix ranges fixup

2014-08-01 Thread Ezequiel Garcia
The current fixup code is slightly wrong, and only works when the root address cell number is one. However, Armada XP has a root address cell number of two. In this case we are currently applying the fixup on the child high base address, while it should be applied on the child low base address. F

Re: [PATCH 4/5] ARM: dts: mvebu: remove mbus ranges overwrite

2014-08-01 Thread Ezequiel Garcia
Sebastian, While testing the mvneta I found that Openblocks AX3-4 is broken on next: barebox just silently hangs. Here's my config: http://sprunge.us/OiVM. Maybe there is something wrong in the config? On 23 Jul 11:28 AM, Sebastian Hesselbarth wrote: > With proper DT fixup in place, we can now r

[PATCH] fixup! dtc: compile fdtget

2014-08-01 Thread Antony Pavlov
--- scripts/dtc/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/dtc/.gitignore b/scripts/dtc/.gitignore index cdabdc9..80f6b50 100644 --- a/scripts/dtc/.gitignore +++ b/scripts/dtc/.gitignore @@ -2,3 +2,4 @@ dtc dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h +fdtget --

Re: [PATCH 0/2] Add initial support of at91sam9m10g45ek device tree

2014-08-01 Thread Raphaël Poggi
Ah yes, sorry. I'll send a v2 to correct this. Thanks, Raphaël 2014-08-01 18:59 GMT+02:00 Sascha Hauer : > On Fri, Aug 01, 2014 at 03:42:16PM +0200, Raphael Poggi wrote: >> This patchset add the initial support of the at91sam9m10g45ek device tree, >> and >> add the pinctrl device tree binding fi

Re: [PATCH 0/2] Add initial support of at91sam9m10g45ek device tree

2014-08-01 Thread Sascha Hauer
On Fri, Aug 01, 2014 at 03:42:16PM +0200, Raphael Poggi wrote: > This patchset add the initial support of the at91sam9m10g45ek device tree, and > add the pinctrl device tree binding file. > > Raphaël Poggi (2) : > (1) dt-bindings: pinctrl: add at91 file > (2) dts: at91: initial sup

Re: [PATCH] fixup! ARM: add Canon A1100 ROM image generation

2014-08-01 Thread Sascha Hauer
On Fri, Aug 01, 2014 at 04:11:30PM +0400, Antony Pavlov wrote: > Signed-off-by: Antony Pavlov > --- > scripts/canon-a1100-image | 0 > 1 file changed, 0 insertions(+), 0 deletions(-) > mode change 100644 => 100755 scripts/canon-a1100-image > > diff --git a/scripts/canon-a1100-image b/scripts/ca

Re: [PATCH] ARM: atmel: sama5d3_xplained: import smc timing from U-Boot

2014-08-01 Thread Sascha Hauer
On Fri, Aug 01, 2014 at 04:06:36PM +0800, Bo Shen wrote: > From: Matteo Fortini > > The configuration for NAND has been aligned with values > from U-Boot and completed with TIMINGS initialization > > Signed-off-by: Matteo Fortini > [voice.s...@atmel.com: apply this patch from Matteo Fortini for

[PATCH 0/2] Add initial support of at91sam9m10g45ek device tree

2014-08-01 Thread Raphael Poggi
This patchset add the initial support of the at91sam9m10g45ek device tree, and add the pinctrl device tree binding file. Raphaël Poggi (2) : (1) dt-bindings: pinctrl: add at91 file (2) dts: at91: initial support of at91sam9m10g45ek dts arch/arm/dts/Makefile |1 +

[PATCH 1/2] dt-bindings: pinctrl: add at91 file

2014-08-01 Thread Raphael Poggi
From: Raphaël Poggi Signed-off-by: Raphaël Poggi --- include/dt-bindings/pinctrl/at91.h | 35 +++ 1 file changed, 35 insertions(+) create mode 100644 include/dt-bindings/pinctrl/at91.h diff --git a/include/dt-bindings/pinctrl/at91.h b/include/dt-bindings/pin

[PATCH 2/2] dts: at91: initial support of at91sam9m10g45ek dts

2014-08-01 Thread Raphael Poggi
From: Raphaël Poggi Signed-off-by: Raphaël Poggi --- arch/arm/dts/Makefile |1 + arch/arm/dts/at91sam9g45.dtsi | 105 + arch/arm/dts/at91sam9m10g45ek.dts | 22 3 files changed, 128 insertions(+) create mode 100644 arch/arm/dts

Re: 'commands: add hwclock' partially apllied!

2014-08-01 Thread Sascha Hauer
On Fri, Aug 01, 2014 at 03:55:02PM +0400, Antony Pavlov wrote: > Sascha! > > I have just got recent barebox 'next' branch with this commit: Fixed, sorry. I lost this while resolving conflicts. Sascha -- Pengutronix e.K. | | Industrial Linu

[PATCH 5/7] mtd: omap gpmc: reserve 14 byte/subpage for ECC in BCH8 romcode

2014-08-01 Thread Sascha Hauer
As done in the Kernel. The Kernel has a comment this is done to be compatible with the ROM code. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand_omap_gpmc.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/

[PATCH 3/7] ARM: phyCORE-am335x: Add support for more SDRAM configurations

2014-08-01 Thread Sascha Hauer
This adds support for 256MB and 128MB RAM configurations of the phyCORE-AM335x. This is done as new images. Signed-off-by: Sascha Hauer --- arch/arm/boards/phytec-phycore-am335x/lowlevel.c | 109 ++- images/Makefile.am33xx | 14 ++- 2 files changed,

[PATCH 7/7] ARM: AM3355x: Update defconfig

2014-08-01 Thread Sascha Hauer
Most diffstat comes from refreshing the config. The only real change is that the NAND xload update handler is enabled now. Signed-off-by: Sascha Hauer --- arch/arm/configs/am335x_defconfig | 83 --- 1 file changed, 42 insertions(+), 41 deletions(-) diff --git

[PATCH 6/7] mtd: omap gpmc: fix bch8 nand-ecc-opt property

2014-08-01 Thread Sascha Hauer
We interpret the ECC option "bch8" as OMAP_ECC_BCH8_CODE_HW, but the Kernel uses OMAP_ECC_BCH8_CODE_HW_ROMCODE in this case instead. To make the interpretation of the ti,nand-ecc-opt property compatible to the Kernel we have to use OMAP_ECC_BCH8_CODE_HW_ROMCODE for "bch8" Signed-off-by: Sascha Hau

[PATCH 4/7] mtd: omap gpmc: fix ecc bytes/size

2014-08-01 Thread Sascha Hauer
The ecc bytes / size are per subpage, not per page. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand_omap_gpmc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/nand_omap_gpmc.c index 59712b8..5ff1647 100

[PATCH 2/7] ARM: phyCORE-am335x: read back SDRAM controller settings

2014-08-01 Thread Sascha Hauer
- use am335x_barebox_entry() to remove the need for hardcoded SDRAM size - remove hardcoded memory settings from device tree since there are different memory sizes available for this board. Signed-off-by: Sascha Hauer --- arch/arm/boards/phytec-phycore-am335x/lowlevel.c | 4 ++-- arch/arm/dt

[PATCH] Phytec phyCORE AM335x updates

2014-08-01 Thread Sascha Hauer
The Phytec phyCORE-AM335x comes in various different RAM settings. This series adds support for the 128MB and 256MB configurations. Also the NAND ECC mode setting is fixed, it is now compatible to the Kernel. With this the phyBOARD WEGA is working. Some of the devices are different from the phyCOR

[PATCH 1/7] ARM: AM33xx: Add SDRAM size detection

2014-08-01 Thread Sascha Hauer
This adds a function which reads back the SDRAM controller settings. This is used in a AM33xx specific barebox entry function and a SDRAM driver which registers a SDRAM memory bank. Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/Makefile | 1 + arch/arm/mach-omap/am33xx

[PATCH] of_mtd: add soft_bch and hw_oob_first ecc modes

2014-08-01 Thread Raphaël Poggi
Signed-off-by: Raphaël Poggi --- drivers/of/of_mtd.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/of_mtd.c b/drivers/of/of_mtd.c index 239f1f9..46eef67 100644 --- a/drivers/of/of_mtd.c +++ b/drivers/of/of_mtd.c @@ -20,6 +20,8 @@ static const char *nand_ecc_modes[] = {

[PATCH] i2c: at91: add at91sam9x5 config

2014-08-01 Thread Raphaël Poggi
Signed-off-by: Raphaël Poggi --- drivers/i2c/busses/i2c-at91.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index 399f6a9..4aa4e4e 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c @@ -346,6

[PATCH 0/2] Add atmel pinctrl driver

2014-08-01 Thread Raphaël Poggi
This patchset add atmel pinctrl/gpio driver and the corresponding clocks for the at91sam9g45 device. The pinctrl driver also include the gpio driver (like in linux) because the gpio and pinctrl parts share same structures. Raphaël Poggi (2) : (1) pinctrl: at91: add pinctrl driver

[PATCH 2/2] at91sam9g45: add device tree gpio clocks

2014-08-01 Thread Raphaël Poggi
Signed-off-by: Raphaël Poggi --- arch/arm/mach-at91/at91sam9g45.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c index 9a50deb..f6031f0 100644 --- a/arch/arm/mach-at91/at91sam9g45.c +++ b/arch/arm/mach-at91/at91sam9g

[PATCH 1/2] pinctrl: at91: add pinctrl driver

2014-08-01 Thread Raphaël Poggi
This driver is based on mach-at91/gpio.c and linux pinctrl driver. The driver contains the gpio and pinctrl parts (like in linux) because the two parts share some structures and logics. Signed-off-by: Raphaël Poggi --- drivers/pinctrl/Kconfig|6 + drivers/pinctrl/Makefile |

[PATCH 4/5] mtd: atmel_nand: retrieve ecc_mode from pdata

2014-08-01 Thread Raphaël Poggi
By retrieving the ecc_mode from pdata we can use the same code for device tree and non device tree probing. Which was not possible before, because ecc_mode was arbitrarily set to NAND_ECC_SOFT. Signed-off-by: Raphaël Poggi --- drivers/mtd/nand/atmel_nand.c |4 ++-- 1 file changed, 2 insert

[PATCH 5/5] board: atmel: initialise ecc_mode

2014-08-01 Thread Raphaël Poggi
This commit initialise the ecc_mode (NAND_ECC_SOFT) on atmel board init which missing it. Signed-off-by: Raphaël Poggi --- arch/arm/boards/at91sam9260ek/init.c|1 + arch/arm/boards/at91sam9261ek/init.c|1 + arch/arm/boards/at91sam9263ek/init.c|1 + arch/arm/boards/at91sa

[PATCH 1/5] mtd: atmel_nand: add support for device tree

2014-08-01 Thread Raphaël Poggi
Signed-off-by: Raphaël Poggi --- drivers/mtd/nand/atmel_nand.c | 108 - 1 file changed, 107 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 337e225..b7b0e3a 100644 --- a/drivers/mtd/nand/atmel_

[PATCH 0/5] Add device tree support of Atmel NAND driver

2014-08-01 Thread Raphaël Poggi
This patchset adds the device tree support for the Atmel NAND driver. The first patch adds the device tree in the atmel_nand driver. The second patch removes the NAND_ATMEL_PMECC config. With this removal we can manage in a better way the device tree / non device tree probing of the driver, beca

[PATCH 3/5] board: atmel: initialise the has_pmecc member

2014-08-01 Thread Raphaël Poggi
--- arch/arm/boards/at91sam9n12ek/init.c|1 + arch/arm/boards/at91sam9x5ek/init.c |1 + arch/arm/boards/sama5d3_xplained/init.c |1 + arch/arm/boards/sama5d3xek/init.c |1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm/boards/at91sam9n12ek/init.c b/arch/ar

[PATCH 2/5] mtd: nand: remove NAND_ATMEL_PMECC

2014-08-01 Thread Raphaël Poggi
By removing this CONFIG_, we can use a structure member to retrieve the config, either through the plateform data or through the device tree. So we can handle cases when the driver is probed using device tree or not. Signed-off-by: Raphaël Poggi --- arch/arm/mach-at91/include/mach/board.h |

[PATCH 2/2] at91sam9g45: clock: add i2c clocks

2014-08-01 Thread Raphaël Poggi
Add the device tree and non device tree at91 i2c clocks. Signed-off-by: Raphaël Poggi --- arch/arm/mach-at91/at91sam9g45.c |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c index f6031f0..d0f950c 100644 --- a/arch/arm/m

[PATCH 0/2] Add device tree support of i2c Atmel driver

2014-08-01 Thread Raphaël Poggi
This patcheset adds the device tree support for i2c Atmel driver and the corresping clocks for the at91sam9g45 device. Raphaël Poggi (2) : (1) i2c: at91: add support of device tree (2) at91sam9g45: clock: add i2c clocks arch/arm/mach-at91/at91sam9g45.c |4 +++ drivers/i2c/buss

[PATCH 1/2] i2c: at91: add support of device tree

2014-08-01 Thread Raphaël Poggi
Signed-off-by: Raphaël Poggi --- drivers/i2c/busses/i2c-at91.c | 60 +++-- 1 file changed, 52 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index 4aa4e4e..944a8b3 100644 --- a/drivers/i2c/busses/i2c-

[PATCH] fixup! ARM: add Canon A1100 ROM image generation

2014-08-01 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- scripts/canon-a1100-image | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 scripts/canon-a1100-image diff --git a/scripts/canon-a1100-image b/scripts/canon-a1100-image old mode 100644 new mode 100755 -- 2.0.1 _

'commands: add hwclock' partially apllied!

2014-08-01 Thread Antony Pavlov
Sascha! I have just got recent barebox 'next' branch with this commit: commit 7154e7cdb970a1ff4a7105daf57fc92ff4b8e63c Author: Antony Pavlov Date: Wed Jul 30 00:10:20 2014 +0400 commands: add hwclock The hwclock command allows to query or set the hardware clock (RTC). Ba

[PATCH] fixup! Add support for metadata in barebox images

2014-08-01 Thread Jan Luebbe
stat() and mmap() don't work on MTD devices, so use lseek() and read() instead. Signed-off-by: Jan Luebbe --- scripts/bareboximd.c | 61 +++- 1 file changed, 46 insertions(+), 15 deletions(-) diff --git a/scripts/bareboximd.c b/scripts/bareboximd.

[PATCH] Makefile: remove drivers/serial/Makefile.rej file

2014-08-01 Thread Bo Shen
This file is introduced by commit: 949df9c Remove it. Signed-off-by: Bo Shen --- This patch is base on the next branch. drivers/serial/Makefile.rej | 7 --- 1 file changed, 7 deletions(-) delete mode 100644 drivers/serial/Makefile.rej diff --git a/drivers/serial/Makefile.rej b/drivers/ser

[PATCH] ARM: atmel: sama5d3_xplained: import smc timing from U-Boot

2014-08-01 Thread Bo Shen
From: Matteo Fortini The configuration for NAND has been aligned with values from U-Boot and completed with TIMINGS initialization Signed-off-by: Matteo Fortini [voice.s...@atmel.com: apply this patch from Matteo Fortini for sama5d3xek to sama5d3_xplained board] Signed-of

[PATCH v2] commands: of_dump switch to get fixed devictree

2014-08-01 Thread Jan Weitzel
Add a switch to get the devicetree processed by the registered fixups. This is also whats the kernel gets. Signed-off-by: Jan Weitzel --- v2: fix CMD OPS commands/of_dump.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/commands/of_dump.c b/commands/of_