Re: [PATCH 1/2] memsize: Make get_ram_size RAM proof

2013-03-04 Thread Sascha Hauer
On Tue, Feb 26, 2013 at 05:55:41PM +0100, Maxime Ripard wrote: > get_ram_size cannot be used when running from RAM at the moment, even > though it backs up the memory cells it modifies, since it can also > modify the get_ram_size function itself. > > Avoid testing the memory area where barebox is

Re: [For-next PATCH 1/1] switch more boards to lwl-y

2013-03-04 Thread Sascha Hauer
On Fri, Feb 22, 2013 at 01:44:14PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Applied, thanks Sascha > --- > arch/arm/boards/freescale-mx6-sabresd/Makefile |7 +++ > arch/arm/boards/highbank/Makefile |3 +-- > arch

v2013.03.0

2013-03-04 Thread Sascha Hauer
Hi All, We have a march release. It's one of the bigger releases (257 non merge patches) Have fun! Sascha Alexander Aring (5): remap_range: make function 'remap_range' global arm-mmu: move PAGE_ALIGN macro to common.h

[PATCH 03/37] of: removed unused variables

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/of/base.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 86dca6a..01d4e4f 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -932,10 +932,8 @@ int of_unflatten_dtb(struct fdt_hea

[PATCH 01/37] of: unflatten: allocate root node explicitly

2013-03-04 Thread Sascha Hauer
By doing so of_new_node does not depend on the global root_node anymore. Signed-off-by: Sascha Hauer --- drivers/of/base.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index fd9b8e1..d134f1e 100644 --- a/drivers/of

[PATCH 04/37] of: Let of_find_node_by_path iterate over tree

2013-03-04 Thread Sascha Hauer
of_find_node_by_path iterates over the allnodes list. Depending on where the node we look for is, this can be significantly slower than using the tree structure to look for a node, so iterate over the tree instead. Signed-off-by: Sascha Hauer --- drivers/of/base.c | 37

[PATCH 06/37] ARM bootm: Use of_get_fixed_tree

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c |8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index dc29004..cf192cf 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -181,13 +181,7 @@ static int do_boo

[PATCH v2] remove libfdt

2013-03-04 Thread Sascha Hauer
In the beginning we only had libfdt to handle devicetrees. With devicetree probing support we gained two parallel universes for handling devicetrees. This series cleans this up by switching to the internal devicetree completely and removing libfdt. The dtb format is now only used while flattening/

[PATCH 02/37] of: export of_find_child

2013-03-04 Thread Sascha Hauer
of_find_child is a useful function. Export it and rename it to of_find_child_by_name. Signed-off-by: Sascha Hauer --- drivers/of/base.c | 16 +++- include/of.h |2 ++ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c inde

[PATCH 05/37] of: remove allnodes list

2013-03-04 Thread Sascha Hauer
The allnodes list makes it hard to handle multiple devicetrees. Having a list to iterate over all nodes of a tree is still good to have though. This patch uses the list_head of the root node as the head of the list. This way the root node is no longer part of the list, but when iterating over a tre

[PATCH 07/37] of: Add of_set_property and of_create_node

2013-03-04 Thread Sascha Hauer
Add functions to create a new device node and to create/set a new property based on the nodepath. Signed-off-by: Sascha Hauer --- drivers/of/base.c | 79 + include/of.h |3 ++ 2 files changed, 82 insertions(+) diff --git a/drivers/o

[PATCH 09/37] of: Add missing prototype for of_device_is_compatible

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- include/of.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/of.h b/include/of.h index 3305f03..d780dcf 100644 --- a/include/of.h +++ b/include/of.h @@ -121,6 +121,9 @@ int of_get_named_gpio(struct device_node *np, struct device_node *of_find_nod

[PATCH 08/37] of_node command: use of_create_node

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- commands/of_node.c | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/commands/of_node.c b/commands/of_node.c index a370e26..bf9799c 100644 --- a/commands/of_node.c +++ b/commands/of_node.c @@ -39,6 +39,7 @@ static i

[PATCH 16/37] of/fdt: use optimized endianess conversion

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- include/libfdt_env.h |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/libfdt_env.h b/include/libfdt_env.h index e83aa96..6486187 100644 --- a/include/libfdt_env.h +++ b/include/libfdt_env.h @@ -3,13 +3,12 @@ #include #inc

[PATCH 21/37] of: move oftree Kconfig to the top of the drivers menu

2013-03-04 Thread Sascha Hauer
Using OFDEVICE is a basic decision, so move it to the top of the driver menu. Signed-off-by: Sascha Hauer --- drivers/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/Kconfig b/drivers/Kconfig index 16ca5b9..b213849 100644 --- a/drivers/Kconfig +++ b/drivers

[PATCH 30/37] of_property command: Fix crash with empty property value

2013-03-04 Thread Sascha Hauer
the of_property command crashes when an empty property value was given. This is because xrealloc is called with a length argument of 0. Fix this. Signed-off-by: Sascha Hauer --- commands/of_property.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/commands/of_pr

[PATCH 23/37] bootm: Use of_print_nodes instead of fdt_print

2013-03-04 Thread Sascha Hauer
Now that we use the unflattened tree in bootm we can use of_print_nodes instead of printing the flattened tree. Signed-off-by: Sascha Hauer --- commands/bootm.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/bootm.c b/commands/bootm.c index 38233e7..65a75e2

[PATCH 11/37] of: Add root node argument to of_find_node_by_path

2013-03-04 Thread Sascha Hauer
This makes of_find_node_by_path usable with multiple trees. Signed-off-by: Sascha Hauer --- arch/arm/boards/highbank/init.c |2 +- commands/of_node.c |2 +- commands/of_property.c | 10 -- commands/oftree.c | 10 +- drivers/of/base.

[PATCH 18/37] of: move OFTREE Kconfig option to drivers/of/

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/of/Kconfig |4 lib/Kconfig|4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 95f10d0..5e53d25 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -1,2 +1,6 @@ +c

[PATCH 25/37] of: Add of property write functions for u32

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/of/base.c | 25 + include/of.h | 11 +++ 2 files changed, 36 insertions(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index b9db261..9f9d9a0 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -350,6 +

[PATCH 17/37] oftree command: Use of_print_nodes

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- commands/oftree.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/commands/oftree.c b/commands/oftree.c index 83ffe12..612d01a 100644 --- a/commands/oftree.c +++ b/commands/oftree.c @@ -156,7 +156,14 @@ static int do_oftree(int

[PATCH 29/37] of_* commands: print usage when insufficient arguments are given

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- commands/of_node.c |3 +++ commands/of_property.c |3 +++ 2 files changed, 6 insertions(+) diff --git a/commands/of_node.c b/commands/of_node.c index 2f6ecae..171ea2c 100644 --- a/commands/of_node.c +++ b/commands/of_node.c @@ -54,6 +54,9 @@ static int

[PATCH 20/37] oftree command: retire CMD_OFTREE_PROBE Kconfig option

2013-03-04 Thread Sascha Hauer
Whether or not the user wishes devicetree probe support can now be decided indepentently of the oftree command, so retire the CMD_OFTREE_PROBE option and use OFDEVICE in the code instead. Signed-off-by: Sascha Hauer --- commands/Kconfig |7 --- commands/oftree.c |2 +- 2 files chang

[PATCH 27/37] of: Add missing prototype for size/address counting functions

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- include/of.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/of.h b/include/of.h index eeea016..85adc80 100644 --- a/include/of.h +++ b/include/of.h @@ -72,6 +72,9 @@ int of_match(struct device_d *dev, struct driver_d *drv); int of_add_initrd(str

[PATCH 31/37] ARM: bootm: rework concatenated oftree

2013-03-04 Thread Sascha Hauer
Without compiled in devicetree support we used to copy the concatenated devicetree directly behind the zImage. This is unnecessary, even if we do not have devicetree support we can copy the devicetree whereever we like and pass the kernel a pointer to it. This makes the code a bit easier. While at

[PATCH 26/37] of: make value of property in of_new_property optional

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/of/base.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 9f9d9a0..5891138 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -677,8 +677,10 @@ struct property *of_new_property(

[PATCH 12/37] of: Add of_write_number helper

2013-03-04 Thread Sascha Hauer
The counterpart to of_read_number: Write a 32bit or 64bit number to a devicetree. Signed-off-by: Sascha Hauer --- include/of.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/of.h b/include/of.h index 63c99b2..6154490 100644 --- a/include/of.h +++ b/include/of.h @@ -96

[PATCH 13/37] of: Add initrd helper

2013-03-04 Thread Sascha Hauer
Add a helper to set the initrd properties in the unflattened tree. Signed-off-by: Sascha Hauer --- drivers/of/base.c | 39 +++ include/of.h |3 +++ 2 files changed, 42 insertions(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 721db29..

[PATCH 36/37] of: remove unused libfdt

2013-03-04 Thread Sascha Hauer
Now that we are completely independent of libfdt remove the unused code. Signed-off-by: Sascha Hauer --- arch/arm/boards/at91sam9m10ihd/hw_version.c |1 - arch/arm/boards/at91sam9x5ek/hw_version.c |1 - arch/arm/boards/highbank/init.c |3 +- arch/arm/boards/sama5d3xek/h

[PATCH 35/37] ARM bootm: Switch initrd support to unflattened tree

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/lib/armlinux.c |2 -- arch/arm/lib/bootm.c| 11 +++- common/oftree.c | 66 --- 3 files changed, 10 insertions(+), 69 deletions(-) diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armli

[PATCH 37/37] of: make locally used functions static

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/of/base.c |6 +++--- include/of.h |2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index ada3fc1..d22031f 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -96,7 +96,7 @@ static

[PATCH 19/37] of: make OFDEVICE a user selectable option

2013-03-04 Thread Sascha Hauer
OFDEVICE decides whether or not we compile in support for probing devices from the devicetree. Let the user decide this explicitly. This makes the oftree, of_node and of_property commands independent of devicetree device support since being able to manipulate devicetrees has nothing to do with prob

[PATCH 22/37] of: Pass barebox internal format devicetree to of_get_fixed_tree

2013-03-04 Thread Sascha Hauer
With this every devicetree is first converted to the barebox internal format before it's converted back to dtb again. Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c | 10 +- commands/bootm.c |9 - common/oftree.c | 19 +-- include/of.h

[PATCH 10/37] of: let of_unflatten_dtb return the unflattened tree

2013-03-04 Thread Sascha Hauer
In order to be able to handle multiple devicetrees, do not assume the tree to be unflattened is the barebox internal one. Instead, just return a pointer to it and assign the barebox internal root_node external to the unflatten function. Signed-off-by: Sascha Hauer --- arch/arm/boards/highbank/in

[PATCH 33/37] of: Add reservemap handling

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/of/dtb.c | 65 ++ include/of.h | 10 + 2 files changed, 75 insertions(+) diff --git a/drivers/of/dtb.c b/drivers/of/dtb.c index 3867128..856b591 100644 --- a/drivers/of/dtb.c +++ b/drivers

[PATCH 34/37] bootm: Pass unflattened devicetree to handlers

2013-03-04 Thread Sascha Hauer
This makes it possible to modify the tree in the handlers. This is necessary because the initrd addresses are only known inside the handlers, but not to the generic bootm code. Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c|8 ++-- arch/ppc/Kconfig|1 + arch/ppc/lib

[PATCH 14/37] of: make unflatten independent of libfdt

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/of/base.c | 160 + include/of.h |2 +- 2 files changed, 127 insertions(+), 35 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 4dbe11e..8bb80e6 100644 --- a/drivers/of/base.

[PATCH 28/37] of: fixup unflattened devicetree

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/boards/at91sam9x5ek/hw_version.c | 31 +++-- arch/arm/boards/highbank/init.c | 33 +- arch/ppc/mach-mpc5xxx/cpu.c | 26 +++ common/memory.c | 48 ++-- com

[PATCH 15/37] of: make flatten independent of libfdt

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- common/oftree.c |8 ++- drivers/of/base.c | 180 - include/of.h |6 +- 3 files changed, 162 insertions(+), 32 deletions(-) diff --git a/common/oftree.c b/common/oftree.c index 82e5ddd..555aa0b 100

[PATCH 32/37] of: memory: Use of_write_number

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- common/memory.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/common/memory.c b/common/memory.c index 1d2e3a3..61cca0d 100644 --- a/common/memory.c +++ b/common/memory.c @@ -164,19 +164,6 @@ int release_sdram_regio

[PATCH 24/37] of: move flat devicetree functions to separate file

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/of/Makefile |2 +- drivers/of/base.c | 372 --- drivers/of/dtb.c| 401 +++ 3 files changed, 402 insertions(+), 373 deletions(-) create mode 100644 drive

[PATCH 08/10] mtd nand i.MX: remove unused code

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand_imx.c |7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c index d056c7c..22bdb74 100644 --- a/drivers/mtd/nand/nand_imx.c +++ b/drivers/mtd/nand/nand_imx.c @@ -1192,13 +1192,6

[PATCH] nand bad block erase and i.MX bbt tool

2013-03-04 Thread Sascha Hauer
This series contains some NAND related updates. First an option is introduced to allow erasing bad blocks. While this is a dangerous operation it is needed during development or when some foreign flash driver has touched the NAND. The option is hidden behind a Kconfig option and must be enabled ex

[PATCH 04/10] nand command: use loff_t for block offset

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- commands/nand.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/commands/nand.c b/commands/nand.c index f000142..d00845f 100644 --- a/commands/nand.c +++ b/commands/nand.c @@ -36,7 +36,8 @@ static int do_nand(int argc, char *argv[

[PATCH 05/10] nand command: use enumeration for command instead of bitmask

2013-03-04 Thread Sascha Hauer
A command can only be one of NAND_*, so use an enumeration instead of a bitmask. Signed-off-by: Sascha Hauer --- commands/nand.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/nand.c b/commands/nand.c index d00845f..79f6735 100644 --- a/commands/nand.

[PATCH 03/10] mtd nand: introduce bbm.h

2013-03-04 Thread Sascha Hauer
This file is present in current kernels. In order to get closer to current mtd support introduce it for barebox aswell. Signed-off-by: Sascha Hauer --- include/linux/mtd/bbm.h | 86 ++ include/linux/mtd/nand.h | 77 +++-

[PATCH 09/10] mtd: nand: Add bbt parameter

2013-03-04 Thread Sascha Hauer
The information which kind of bbt (if any) is used is hidden somewhere in the NAND layer. Expose it to a device parameter to make it detectable and visible during runtime. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand_base.c | 19 +++ 1 file changed, 19 insertions(+) d

[PATCH 01/10] mtd: nand: register nand flashes with nand specific function

2013-03-04 Thread Sascha Hauer
This allows us to have some NAND specific stuff during registration, like for example adding NAND specific device parameters. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/atmel_nand.c |2 +- drivers/mtd/nand/nand_base.c | 11 +++ drivers/mtd/nand/nand_imx.c |

[PATCH 06/10] nand command: check for directly after option parsing

2013-03-04 Thread Sascha Hauer
Allo subcommands need at least one nonopt arg, so check for it right after parsing the options and drop the check in the MARKBAD command. Signed-off-by: Sascha Hauer --- commands/nand.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/comman

[PATCH 07/10] mtd: nand: replace NAND_USE_FLASH_BBT with NAND_BBT_USE_FLASH

2013-03-04 Thread Sascha Hauer
To sync with the kernel. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/atmel_nand.c |2 +- drivers/mtd/nand/nand_bbt.c |4 ++-- drivers/mtd/nand/nand_imx.c |2 +- drivers/mtd/nand/nand_s3c24xx.c |2 +- drivers/mtd/nand/nand_write.c |2 +- include/linux/mtd/bbm.

[PATCH 02/10] mtd: Add parameter to allow erasing bad blocks

2013-03-04 Thread Sascha Hauer
While erasing bad blocks is a potentially dangerous operation it is sometimes needed during development or when some foreign code has touched the flash. This patch adds a device parameter 'erasebad' to allow erasing bad blocks. Since this is not wanted during production this is behind a Kconfig op

[PATCH 10/10] mtd: nand: Add command to generate a flash BBT

2013-03-04 Thread Sascha Hauer
With 2k NAND flashes the data layout in memory is not what is written on the flash device. This leads to the result that the factory provided bad block markers are not recognized correctly. To preserve the factory bad block information the i.MX NAND driver will not scan for the bad blocks itself w

Re: [PATCH 13/37] of: Add initrd helper

2013-03-04 Thread Alexander Aring
Hi Sascha, On Mon, Mar 04, 2013 at 10:53:16AM +0100, Sascha Hauer wrote: > Add a helper to set the initrd properties in the unflattened tree. > > Signed-off-by: Sascha Hauer > --- > drivers/of/base.c | 39 +++ > include/of.h |3 +++ > 2 files chang

[PATCH] usb: ehci: initialize ehci_data

2013-03-04 Thread Sascha Hauer
Without it fields of ehci_data may be unitialized and the driver crashes. Signed-off-by: Sascha Hauer --- drivers/usb/host/ehci-hcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 0c789e4..7c389aa 100644 ---

Re: [PATCH 6/7] tegra: add proper timer driver

2013-03-04 Thread Lucas Stach
Am Sonntag, den 03.03.2013, 11:07 +0400 schrieb Antony Pavlov: > On 3 March 2013 03:13, Lucas Stach wrote: > > Am Freitag, den 01.03.2013, 18:23 +0100 schrieb Sascha Hauer: > >> On Fri, Mar 01, 2013 at 10:22:52AM +0100, Lucas Stach wrote: > >> > Replace the ad-hoc clocksource implementation with a

Re: [PATCH] usb: ehci: initialize ehci_data

2013-03-04 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:00 Mon 04 Mar , Sascha Hauer wrote: > Without it fields of ehci_data may be unitialized and the driver > crashes. > > Signed-off-by: Sascha Hauer > --- > drivers/usb/host/ehci-hcd.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ehci-hcd.c

Re: [PATCH 6/7] tegra: add proper timer driver

2013-03-04 Thread Antony Pavlov
On 4 March 2013 21:09, Lucas Stach wrote: > Am Sonntag, den 03.03.2013, 11:07 +0400 schrieb Antony Pavlov: >> On 3 March 2013 03:13, Lucas Stach wrote: >> > Am Freitag, den 01.03.2013, 18:23 +0100 schrieb Sascha Hauer: >> >> On Fri, Mar 01, 2013 at 10:22:52AM +0100, Lucas Stach wrote: >> >> > Rep

Re: [PATCH] usb: ehci: initialize ehci_data

2013-03-04 Thread Sascha Hauer
On Mon, Mar 04, 2013 at 08:05:29PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 17:00 Mon 04 Mar , Sascha Hauer wrote: > > Without it fields of ehci_data may be unitialized and the driver > > crashes. > > > > Signed-off-by: Sascha Hauer > > --- > > drivers/usb/host/ehci-hcd.c |2

Re: [PATCH] usb: ehci: initialize ehci_data

2013-03-04 Thread Alexander Aring
On Mon, Mar 04, 2013 at 08:16:17PM +0100, Sascha Hauer wrote: > On Mon, Mar 04, 2013 at 08:05:29PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 17:00 Mon 04 Mar , Sascha Hauer wrote: > > > Without it fields of ehci_data may be unitialized and the driver > > > crashes. > > > > > > S

Re: [PATCH] usb: ehci: initialize ehci_data

2013-03-04 Thread Sascha Hauer
On Mon, Mar 04, 2013 at 08:25:49PM +0100, Alexander Aring wrote: > On Mon, Mar 04, 2013 at 08:16:17PM +0100, Sascha Hauer wrote: > > On Mon, Mar 04, 2013 at 08:05:29PM +0100, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > On 17:00 Mon 04 Mar , Sascha Hauer wrote: > > > > Without it fields o

Re: [PATCH] usb: ehci: initialize ehci_data

2013-03-04 Thread Alexander Aring
On Mon, Mar 04, 2013 at 08:28:35PM +0100, Sascha Hauer wrote: > On Mon, Mar 04, 2013 at 08:25:49PM +0100, Alexander Aring wrote: > > On Mon, Mar 04, 2013 at 08:16:17PM +0100, Sascha Hauer wrote: > > > On Mon, Mar 04, 2013 at 08:05:29PM +0100, Jean-Christophe > > > PLAGNIOL-VILLARD wrote: > > > > O

Re: [PATCH 1/7] tegra: move address map to tegra20-silicon.h

2013-03-04 Thread Antony Pavlov
On 3 March 2013 03:25, Lucas Stach wrote: > Am Freitag, den 01.03.2013, 14:17 +0100 schrieb Jean-Christophe > PLAGNIOL-VILLARD: >> On 10:22 Fri 01 Mar , Lucas Stach wrote: >> > The address map is specific to the Tegra20 SoC. Move it to a >> > file with an appropriate name. While at it clarify

[PATCH 2/2] ARM: OMAP: beagle: Add missing MMC iomux setup

2013-03-04 Thread Sascha Hauer
When the board is booted from NAND we have to setup the iomux to make the SD card work. Unfortunately this still is not enough :( The SD card still will only work when booting from it. Signed-off-by: Sascha Hauer --- arch/arm/boards/beagle/lowlevel.c | 11 +++ 1 file changed, 11 insertio

[PATCH] OMAP3 updates

2013-03-04 Thread Sascha Hauer
Two patches for OMAP3. One calls the internal ROM to invalidate the L2 cache and removes the previously used omap3_invalidate_dcache function. I don't know exactly what'S going on here, but it makes the beagle board much more stable. In earlier days this was not needed, maybe because we didn't enab

[PATCH 1/2] ARM: OMAP3: invalidate L2 cache using ROM API

2013-03-04 Thread Sascha Hauer
Code taken from U-Boot. This makes the beagle board much more reliable. Signed-off-by: Sascha Hauer --- arch/arm/boards/beagle/lowlevel.c | 2 - arch/arm/boards/omap343xdsp/lowlevel.c | 2 - arch/arm/mach-omap/Makefile | 4 +- arch/arm/mach-omap/auxc

[PATCH] ARM: Add relocatable binary support

2013-03-04 Thread Sascha Hauer
The following adds relocatable binary support for ARM. This can be useful when a suitable memory location for the barebox binary is not known at compile time, for example when compiling for multiple SoCs. In most cases enabling this feature will only result in the visible effect that the binary ge

[PATCH 1/6] ARM: make cpu architecture detection available as static inline function

2013-03-04 Thread Sascha Hauer
When we have multi cpu support compiled in we need the cpu architecture early so that we can pick the correct cacheflush function. Make it available as static inline function and add a comment above it that this function normally should not be used. Signed-off-by: Sascha Hauer --- arch/arm/cpu/c

[PATCH 5/6] ARN: fixup vector addresses for relocatable binaries

2013-03-04 Thread Sascha Hauer
With relocatable binaries the vector addresses cannot be supplied by the linker. This adds support for fixing them up during runtime. Signed-off-by: Sascha Hauer --- arch/arm/cpu/exceptions.S | 55 +- arch/arm/cpu/mmu.c | 2 ++ arch/a

[PATCH 6/6] ARM: Add relocatable binary support

2013-03-04 Thread Sascha Hauer
For making the same binary executable on different SoCs which have different DRAM addresses we have to be independent of the compile time link address. This patch adds relocatable binary support for the ARM architecture. With this two new functions are available. relocate_to_current_adr will fixup

[PATCH 3/6] ARM: provide accessor functions for linker variables

2013-03-04 Thread Sascha Hauer
With relocatable binaries the linker is not able to supply absolute addresses. These only get available when the relocation function is being run. Since for early initialization we need some variables before relocation, we supply them relatively to some known address in the binary. This means that

[PATCH 4/6] ARM boards: Use accessor functions to access linker variables

2013-03-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/boards/friendlyarm-tiny210/lowlevel.c | 3 ++- arch/arm/mach-imx/external-nand-boot.c | 27 +++--- drivers/mtd/nand/nand_s3c24xx.c| 2 +- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/arch/ar

[PATCH 2/6] ARM: add early mmu cache flush function and use it in setup_c

2013-03-04 Thread Sascha Hauer
Since recently with MMU_EARLY support it may happen that setup_c runs with data caches enabled, so we have to make sure the caches are flushed before we jump to the new binary. Signed-off-by: Sascha Hauer --- arch/arm/cpu/cache.c | 33 + arch/arm/cpu/setup

Re: [PATCH 6/6] ARM: Add relocatable binary support

2013-03-04 Thread Alexander Shiyan
> For making the same binary executable on different SoCs which have > different DRAM addresses we have to be independent of the compile > time link address. > > This patch adds relocatable binary support for the ARM architecture. > With this two new functions are available. relocate_to_current_ad

Re: [PATCH 6/6] ARM: Add relocatable binary support

2013-03-04 Thread Sascha Hauer
On Tue, Mar 05, 2013 at 12:10:02AM +0400, Alexander Shiyan wrote: > > For making the same binary executable on different SoCs which have > > different DRAM addresses we have to be independent of the compile > > time link address. > > > > This patch adds relocatable binary support for the ARM archi

Re: [PATCH 09/10] mtd: nand: Add bbt parameter

2013-03-04 Thread Juergen Beisert
Sascha Hauer wrote: > [...] > --- a/drivers/mtd/nand/nand_base.c > +++ b/drivers/mtd/nand/nand_base.c > @@ -1688,6 +1688,23 @@ static int mtd_set_erasebad(struct device_d *dev, > struct param_d *param, return 0; > } > > +static const char *mtd_get_bbt_type(struct device_d *dev, struct param_d *p)

Re: [PATCH 10/10] mtd: nand: Add command to generate a flash BBT

2013-03-04 Thread Juergen Beisert
Sascha Hauer wrote: > [...] > +static int do_imx_nand_bbm(int argc, char *argv[]) > +{ > + int opt, ret; > + struct cdev *cdev; > + struct mtd_info *mtd; > + int yes = 0; > + void *bbt; > + > + while ((opt = getopt(argc, argv, "y")) > 0) { > + switch (opt) { > +

Re: [PATCH 1/6] ARM: make cpu architecture detection available as static inline function

2013-03-04 Thread Alexander Aring
Hi, On Mon, Mar 04, 2013 at 09:03:04PM +0100, Sascha Hauer wrote: > When we have multi cpu support compiled in we need the cpu architecture > early so that we can pick the correct cacheflush function. Make it available > as static inline function and add a comment above it that this function > nor

Re: [PATCH 1/1] devfs: add symlink support

2013-03-04 Thread Jean-Christophe PLAGNIOL-VILLARD
ping On 12:35 Sat 16 Feb , Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > fs/devfs.c | 70 > ++ > include/driver.h |1 + > 2 files changed, 71 insertions(+) > > diff --git a/fs

Re: [PATCH 6/6] ARM: Add relocatable binary support

2013-03-04 Thread Alexander Aring
Hi, On Mon, Mar 04, 2013 at 09:03:09PM +0100, Sascha Hauer wrote: > For making the same binary executable on different SoCs which have > different DRAM addresses we have to be independent of the compile > time link address. > > This patch adds relocatable binary support for the ARM architecture.

Re: New environment ?

2013-03-04 Thread Sascha Hauer
Hi George, On Sat, Mar 02, 2013 at 09:47:44AM -0800, George Pontis wrote: > I'm interested to update my bsp to use the new environment. I am not finding > any info that describe the structure or how it is intended to be configured > and used. Can someone provide a pointer to something, or write a

Re: [PATCH] defaultenv-2: add boot sequence

2013-03-04 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:20 Fri 22 Feb , Sascha Hauer wrote: > From: Jean-Christophe PLAGNIOL-VILLARD > > This allows to boot a sequence of boot entries until one succeeds. > > boot sources can be passed in $global.boot.default, which is now treated > as a list. Also a list of boot entries can be specified as

[PATCH 1/1] highbank: switch to defaultenv-2

2013-03-04 Thread Jean-Christophe PLAGNIOL-VILLARD
Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- Hi, depends on boot sequence support Best Regards, J. arch/arm/boards/highbank/env/boot/ahci | 21 + arch/arm/boards/highbank/env/boot/mmc | 21 + arch/arm/boards/hi

Re: [PATCH 05/10] nand command: use enumeration for command instead of bitmask

2013-03-04 Thread Alexander Aring
Hi, On Mon, Mar 04, 2013 at 11:13:49AM +0100, Sascha Hauer wrote: > A command can only be one of NAND_*, so use an enumeration instead > of a bitmask. > > Signed-off-by: Sascha Hauer > --- > commands/nand.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git

Re[2]: [PATCH 6/6] ARM: Add relocatable binary support

2013-03-04 Thread Alexander Shiyan
> On Tue, Mar 05, 2013 at 12:10:02AM +0400, Alexander Shiyan wrote: > > > For making the same binary executable on different SoCs which have > > > different DRAM addresses we have to be independent of the compile > > > time link address. > > > > > > This patch adds relocatable binary support for t

Re: [PATCH 6/6] ARM: Add relocatable binary support

2013-03-04 Thread Sascha Hauer
On Tue, Mar 05, 2013 at 08:32:11AM +0400, Alexander Shiyan wrote: > > On Tue, Mar 05, 2013 at 12:10:02AM +0400, Alexander Shiyan wrote: > > > > For making the same binary executable on different SoCs which have > > > > different DRAM addresses we have to be independent of the compile > > > > time l