Re[2]: [PATCH 1/2] Introduce device_platform_driver() macro

2013-02-12 Thread Alexander Shiyan
... > > Besides, as far as I know currently we are not using __init section. > > Can we define this one in the linker script and release this memory after > > initialization is complete? > > What would you do then with the memory afterwards? The tlsf allocator > supports memory pools, so in theory

Re: [PATCH 0/3 v2] arm: add ARM Vexpress support

2013-02-12 Thread Sascha Hauer
On Mon, Feb 11, 2013 at 01:00:49PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > Hi, > > The following changes since commit e43e1498f65fe03cfc6b2744247eeccf27b26876: > > MIPS: pbl: fix none compression support (2013-02-05 09:43:17 +0100) > > are available in the git repository at: > > g

Re: [PATCH 1/2] arm: cache-l2x0 update sync define with Linux 3.5

2013-02-12 Thread Sascha Hauer
On Mon, Feb 11, 2013 at 06:01:29PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > Drop copy in cache-l2x0 > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Applied, thanks Sascha > --- > arch/arm/cpu/cache-l2x0.c | 32 +--- > arch/arm/include/asm/cache-l2x0.h | 150 >

Re: [PATCH 1/2] ahci: add generic driver

2013-02-12 Thread Sascha Hauer
On Mon, Feb 11, 2013 at 06:01:59PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Applied, thanks Sascha > --- > drivers/ata/Kconfig|4 > drivers/ata/Makefile |2 ++ > drivers/ata/ahci-generic.c | 47 > +++

Re: [PATCH v2] ARM i.MX6: Add support for SabreSD board

2013-02-12 Thread Hubert Feurstein
Hi Sascha, 2013/2/11 Sascha Hauer : [...] >> + >> +static int sabresd_mem_init(void) >> +{ >> + arm_add_mem_device("ram0", 0x1000, SZ_1G); >> + >> + return 0; >> +} >> +mem_initcall(sabresd_mem_init); > > This is not necessary anymore. I removed this while applying. Could you > verify

Re: [PATCH v2] ARM i.MX6: Add support for SabreSD board

2013-02-12 Thread Sascha Hauer
On Tue, Feb 12, 2013 at 09:42:46AM +0100, Hubert Feurstein wrote: > Hi Sascha, > > 2013/2/11 Sascha Hauer : > [...] > >> + > >> +static int sabresd_mem_init(void) > >> +{ > >> + arm_add_mem_device("ram0", 0x1000, SZ_1G); > >> + > >> + return 0; > >> +} > >> +mem_initcall(sabresd_mem_in

[PATCH] defenv2: move config-board out of /env/init

2013-02-12 Thread Sascha Hauer
Having the board config file in /env/init has the problem that the settings in /env/config are overwritten in the init sequence. This moves the config-board files to /env/ and sources them explicitly from /env/bin/init before sourcing /env/config Signed-off-by: Sascha Hauer --- arch/arm/boards/

[PATCH] console: consolidate common console code

2013-02-12 Thread Sascha Hauer
The full console and the simple console share a good amount of code, share this in console_common.c. Signed-off-by: Sascha Hauer --- common/Makefile |4 +-- common/console.c| 85 - common/console_common.c | 87 ++

Re: [PATCH v2] amba: add oftree probe support

2013-02-12 Thread Sascha Hauer
On Mon, Feb 11, 2013 at 10:52:17PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD This breaks some configs: config: arm imx233-olinuxino_defconfig drivers/built-in.o: In function `add_of_amba_device': /home/sha/dude/barebox/bar

Re: [PATCH] ARM i.MX28: change default watchdog reset method

2013-02-12 Thread Sascha Hauer
On Mon, Feb 11, 2013 at 11:42:05AM +0100, Steffen Trumtrar wrote: > The default setting for the imx28 watchdog is to do a power-off reset. If the > SoC is only powered via battery, then the watchdog powers the chip down, > though. > According to the datasheet it should still be possible to execute

Re: [PATCH] console: consolidate common console code

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:55 Tue 12 Feb , Sascha Hauer wrote: > The full console and the simple console share a good amount of code, > share this in console_common.c. maybe console_none too Best Regards, J. > > Signed-off-by: Sascha Hauer > --- > common/Makefile |4 +-- > common/console.c|

[PATCH 1/1] amba: add oftree probe support

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
move ARM_AMBA Kconfig to drivers/amba/Kconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- v3: only probe amba device when amba is enable Best Regards, J. arch/arm/Kconfig |3 --- drivers/Kconfig |1 + drivers/amba/Kconfig |2 ++ drivers/amba/bus.c |1 +

[PATCH] console: consolidate common console code

2013-02-12 Thread Sascha Hauer
The different console implementations share a good amount of code, share this in console_common.c. Signed-off-by: Sascha Hauer --- common/Makefile |2 +- common/console.c| 85 common/console_common.c | 110 ++

[PATCH 0/3] vexpress: detect the mapping based on the amba devices

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, so we can run on a9 on the non legacy hw The following changes since commit 2d91386102612773074832d55e2ef11702fbb432: arm: add vexpress board support (2013-02-12 05:53:04 +0800) are available in the git repository at: git://git.jcrosoft.org/barebox.git delivery/vexpress for yo

[PATCH 1/3] amba: introduce amba_device_get_pid/cid

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use it on vexpress to detect the hardware mapping Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/amba/bus.c | 10 +++--- include/linux/amba/bus.h | 28 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/drivers/amba/b

[PATCH 2/3] sp804: introduce amba_is_arm_sp804 to detect if the sp804 is present at the address

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/clocksource/amba-sp804.c |6 +++--- include/linux/amba/sp804.h | 30 ++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 include/linux/amba/sp804.h diff --git a/drivers/clocks

[PATCH 3/3] vexpress: detect the board periph mapping and detecting the sp804 mapping

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
at 0x10011000 for a9 legacy otherwise at 0x1c11 as the new board also support Cortex-A9 so this is working qemu/arm-softmmu/qemu-system-arm -M vexpress-a15 -m 1024 -smp 1 -kernel build/vexpress/barebox -pflash build/vexpress/flash -nographic -cpu cortex-a9 Signed-off-by: Jean-Christophe PL

[PATCH 1/1] ahci-generic: add oftree support

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
calxeda use the generic driver but have it's own compatible cf Linux kernel Documentation Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/ata/ahci-generic.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/ata/ahci-generic.c b/drivers/ata/ah

Re: [PATCH 1/1] ahci-generic: add oftree support

2013-02-12 Thread Rob Herring
On 02/12/2013 07:10 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > calxeda use the generic driver but have it's own compatible cf Linux kernel > Documentation > > Cc: Rob Herring > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > drivers/ata/ahci-generic.c | 11 +++ > 1 file cha

Re: [PATCH 1/1] ahci-generic: add oftree support

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 07:41 Tue 12 Feb , Rob Herring wrote: > On 02/12/2013 07:10 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > > calxeda use the generic driver but have it's own compatible cf Linux kernel > > Documentation > > > > Cc: Rob Herring > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > >

[PATCH] Do not print error message when successfully attaching more than one UBI device

2013-02-12 Thread Xavier Douville
Hi This patch fix a bug where an error message is printed when attaching more than one UBI device. ubi_attach_mtd_dev() returns the UBI device number (>=0) on success. Signed-off-by: Xavier Douville --- commands/ubi.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff -

[PATCH v2 1/2] Introduce device_platform_driver() macro

2013-02-12 Thread Alexander Shiyan
device_platform_driver() - Helper macro for drivers that don't do anything special in module registration. This eliminates a lot of boilerplate. Driver registration will called on device_initcall. Signed-off-by: Alexander Shiyan --- include/driver.h | 12 1 file changed, 12 insertio

[PATCH v2 2/2] Use new device_platform_driver() macro for drivers

2013-02-12 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan --- arch/sandbox/board/hostfile.c | 8 +--- drivers/ata/ahci.c | 8 +--- drivers/ata/intf_platform_ide.c| 8 +--- drivers/ata/pata-imx.c | 8 +--- drivers/ata/sata-imx.c | 8 +--- drivers/i2

[PATCH 1/1] highbank: use the provided dtb by the firmware to probe barebox device and mem size

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
the dtb is at 0x1000 if no dtb present use C code device kepp in C the timer/gpio/uart Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/highbank/env/bin/init_board |7 + arch/arm/boards/highbank/init.c | 44 ---

Re: [PATCH 1/1] highbank: use the provided dtb by the firmware to probe barebox device and mem size

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi. it's a rfc Best Regards, J. On 22:11 Tue 12 Feb , Jean-Christophe PLAGNIOL-VILLARD wrote: > the dtb is at 0x1000 > > if no dtb present use C code device > > kepp in C the timer/gpio/uart > > Cc: Rob Herring > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > arch/arm/b

Re: [PATCH 1/1] commands/ubi.c: Add support for VID header offset in ubiattach

2013-02-12 Thread Marc Kleine-Budde
On 02/11/2013 04:14 PM, Xavier Douville wrote: > Hi > > Sascha Hauer wrote: >> I don't know exactly, but I suspect something is wrong on your board >> then. Normally the VID header offset should be detected correctly >> automatically. Does the kernel also need a special VID header offset? >> Have

Re: [PATCH 1/1] commands/ubi.c: Add support for VID header offset in ubiattach

2013-02-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 23:49 Tue 12 Feb , Marc Kleine-Budde wrote: > On 02/11/2013 04:14 PM, Xavier Douville wrote: > > Hi > > > > Sascha Hauer wrote: > >> I don't know exactly, but I suspect something is wrong on your board > >> then. Normally the VID header offset should be detected correctly > >> automatically

Re: [PATCH 2/3] arm: add highbank support

2013-02-12 Thread Rob Herring
On 02/11/2013 01:08 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: > currently only tested under qemu > > qemu-system-arm -M highbank -nographic -m 4089 -kernel > build/highbank/arch/arm/pbl/zbarebox -tftp "." -drive > id=disk,if=ide,file=disk.img -device ide-drive,drive=disk,bus=ide.0 > > with: >

Re: [PATCH 1/1] highbank: use the provided dtb by the firmware to probe barebox device and mem size

2013-02-12 Thread Rob Herring
On 02/12/2013 03:11 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: > the dtb is at 0x1000 > > if no dtb present use C code device > > kepp in C the timer/gpio/uart > > Cc: Rob Herring > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > arch/arm/boards/highbank/env/bin/init_board |7 +++