[PATCH v4 3/4] ns16550: write zero to ier only once

2012-01-17 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/serial/serial_ns16550.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 3382acd..802331d 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drivers/serial/seri

[PATCH v4 2/4] ns16550: make ns16550_serial_init_port() shorter

2012-01-17 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/serial/serial_ns16550.c | 20 +++- 1 files changed, 3 insertions(+), 17 deletions(-) diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 4cef469..3382acd 100644 --- a/drivers/serial/serial_ns16550.c +++ b

[PATCH v4 0/2] ns16550-related patches

2012-01-17 Thread Antony Pavlov
This patch series consist of two ns16550-related patches. [PATCH v4 1/4] ns16550: support for UART with broken FIFO [PATCH v4 2/4] ns16550: make ns16550_serial_init_port() shorter [PATCH v4 3/4] ns16550: write zero to ier only once [PATCH v4 4/4] ns16550: fix ier selection The 1st one adds the fl

[PATCH v4 1/4] ns16550: support for UART with broken FIFO

2012-01-17 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/serial/serial_ns16550.c | 18 -- include/ns16550.h |2 ++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 1217a5f..4cef469 100644 --

[PATCH v4 4/4] ns16550: fix ier selection

2012-01-17 Thread Antony Pavlov
The document "PC16550D Universal Asynchronous Receiver Transmitter with FIFOs" (vers. June 1995, http://www.national.com/ds/PC/PC16550D.pdf) states that IER (Interrupt Enable Register) is accessible if the bit DLAB = 0 (DLAB is bit 7 in LCR; in barebox DLAB known as LCR_BKSE). So before IER access

[PATCH 2/2] at91: specify the bare_init max size for each soc

2012-01-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/Kconfig | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 8f3b8ce..41e9b99 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/m

[PATCH 1/2] introduce barebox_bare_init_size to known the bare_init size and check it

2012-01-17 Thread Jean-Christophe PLAGNIOL-VILLARD
this allow to check we do not exceed the size of the SRAM as example introduce BAREBOX_MAX_BARE_INIT_SIZE the maximum size of bare_init this will allow your bare_init will fit in SRAM as example ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE Signed-off-by: Jean-Christophe PLAGNIOL-VILL

Re: [RFC] ns16550: support for UART with broken FIFO

2012-01-17 Thread Jean-Christophe PLAGNIOL-VILLARD
On 23:40 Tue 17 Jan , Antony Pavlov wrote: > On 17 January 2012 18:53, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 17:27 Tue 17 Jan     , Antony Pavlov wrote: > >> On 17 January 2012 17:09, Sascha Hauer wrote: > >> > On Tue, Jan 17, 2012 at 02:39:06PM +0400, Antony Pavlov wrote: > >> >>

[PATCH v3 1/2] ns16550: support for UART with broken FIFO

2012-01-17 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/serial/serial_ns16550.c | 18 -- include/ns16550.h |2 ++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 1217a5f..4cef469 100644 --

[PATCH v3 0/2] ns16550-related patches

2012-01-17 Thread Antony Pavlov
This patch series consist of two ns16550-related patches. The 1st one adds the flag (NS16650_FLAG_DISABLE_FIFO) in internal ns16550 data structure to recognise UART with broken FIFO (or UART without FIFO at all) and the code to use this flag. The flag can be set in board-related code. The 2nd one

[PATCH v3 2/2] ns16550: make ns16550_serial_init_port() shorter

2012-01-17 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/serial/serial_ns16550.c | 14 ++ 1 files changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 4cef469..a09ad07 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drive

[PATCH v2] ns16550: support for UART with broken FIFO

2012-01-17 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/serial/serial_ns16550.c | 17 +++-- include/ns16550.h |2 ++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 1217a5f..391a539 100644 ---

[PATCH] USB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor

2012-01-17 Thread Sascha Hauer
From: Jason Kridner cherry-picked from U-Boot. commit 69716c1900274a89bd5cbd1b0bb276ceaaa04f61 Author: Jason Kridner Date: Wed Apr 20 08:54:16 2011 -0500 USB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor Remove __attribute__ ((packed)) to prevent byte access to

Re: [RFC] ns16550: support for UART with broken FIFO

2012-01-17 Thread Antony Pavlov
On 17 January 2012 18:53, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 17:27 Tue 17 Jan     , Antony Pavlov wrote: >> On 17 January 2012 17:09, Sascha Hauer wrote: >> > On Tue, Jan 17, 2012 at 02:39:06PM +0400, Antony Pavlov wrote: >> >> Signed-off-by: Antony Pavlov >> >> --- >> >>  drivers/seri

Re: [RFC] ns16550: support for UART with broken FIFO

2012-01-17 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:27 Tue 17 Jan , Antony Pavlov wrote: > On 17 January 2012 17:09, Sascha Hauer wrote: > > On Tue, Jan 17, 2012 at 02:39:06PM +0400, Antony Pavlov wrote: > >> Signed-off-by: Antony Pavlov > >> --- > >>  drivers/serial/serial_ns16550.c |   19 +-- > >>  include/ns16550.h    

[PATCH 2/2 v2] calao/boards: specify BAREBOX_MAX_IMAGE_SIZE to 256KiB

2012-01-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/configs/tny_a9260_defconfig|1 + arch/arm/configs/tny_a9263_defconfig|1 + arch/arm/configs/tny_a9g20_defconfig|1 + arch/arm/configs/usb_a9260_defconfig|1 + arch/arm/configs/usb_a9263_12

[PATCH 1/2 v3] add config to check if the size of barebox exceed the target size

2012-01-17 Thread Jean-Christophe PLAGNIOL-VILLARD
CONFIG_BAREBOX_MAX_IMAGE_SIZE will allow to detected silent oversize result Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- v3: use cmd mecanism Best Regards, J. Makefile | 11 +++ common/Kconfig |7 +++ 2 files changed, 18 insertions(+), 0 deletions(-) dif

Re: [PATCH 1/2 v2] add config to check if the size of barebox exceed the target size

2012-01-17 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:21 Tue 17 Jan , Sascha Hauer wrote: > On Mon, Jan 16, 2012 at 05:19:52PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > CONFIG_BAREBOX_MAX_IMAGE_SIZE will allow to detected silent oversize result > > > > if 0x0 the size will not been checked > > > > Signed-off-by: Jean-Christophe

Re: [RFC] ns16550: support for UART with broken FIFO

2012-01-17 Thread Antony Pavlov
On 17 January 2012 17:09, Sascha Hauer wrote: > On Tue, Jan 17, 2012 at 02:39:06PM +0400, Antony Pavlov wrote: >> Signed-off-by: Antony Pavlov >> --- >>  drivers/serial/serial_ns16550.c |   19 +-- >>  include/ns16550.h               |    2 ++ >>  2 files changed, 19 insertions(+),

RE: [PATCH] omap3 towards thumb2 support

2012-01-17 Thread Premi, Sanjeev
> -Original Message- > From: Sascha Hauer [mailto:s.ha...@pengutronix.de] > Sent: Tuesday, January 17, 2012 6:41 PM > To: Premi, Sanjeev > Cc: barebox@lists.infradead.org > Subject: Re: [PATCH] omap3 towards thumb2 support > > On Tue, Jan 17, 2012 at 12:24:26PM +, Premi, Sanjeev wrote

Re: [PATCH] omap3 towards thumb2 support

2012-01-17 Thread Sascha Hauer
On Tue, Jan 17, 2012 at 12:24:26PM +, Premi, Sanjeev wrote: > > -Original Message- > > From: Sascha Hauer [mailto:s.ha...@pengutronix.de] > > Sent: Tuesday, January 17, 2012 5:43 PM > > To: Premi, Sanjeev > > Cc: barebox@lists.infradead.org > > Subject: Re: [PATCH] omap3 towards thumb2

Re: [RFC] ns16550: support for UART with broken FIFO

2012-01-17 Thread Sascha Hauer
On Tue, Jan 17, 2012 at 02:39:06PM +0400, Antony Pavlov wrote: > Signed-off-by: Antony Pavlov > --- > drivers/serial/serial_ns16550.c | 19 +-- > include/ns16550.h |2 ++ > 2 files changed, 19 insertions(+), 2 deletions(-) > > diff --git a/drivers/serial/seria

RE: [PATCH] omap3 towards thumb2 support

2012-01-17 Thread Premi, Sanjeev
> -Original Message- > From: Sascha Hauer [mailto:s.ha...@pengutronix.de] > Sent: Tuesday, January 17, 2012 5:43 PM > To: Premi, Sanjeev > Cc: barebox@lists.infradead.org > Subject: Re: [PATCH] omap3 towards thumb2 support > > On Tue, Jan 17, 2012 at 11:14:31AM +, Premi, Sanjeev wrote

Re: [PATCH] omap3 towards thumb2 support

2012-01-17 Thread Sascha Hauer
On Tue, Jan 17, 2012 at 11:14:31AM +, Premi, Sanjeev wrote: > > > > -Original Message- > > From: barebox-boun...@lists.infradead.org > > [mailto:barebox-boun...@lists.infradead.org] On Behalf Of > > Premi, Sanjeev > > Sent: Monday, January 16, 2012 9:47 PM > > To: Sascha Hauer > >

[RFC] ns16550: support for UART with broken FIFO

2012-01-17 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/serial/serial_ns16550.c | 19 +-- include/ns16550.h |2 ++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 1217a5f..01de964 100644 -

Re: [PATCH 4/5] filetype: add command support

2012-01-17 Thread Sascha Hauer
On Sun, Jan 15, 2012 at 11:00:20AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > this will allow to detect the filetype of a file and export it as filetype > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > commands/Kconfig|5 + > commands/Makefile |1 + > commands

Re: [PATCH 5/5] usb-926x: add dfu mem options support

2012-01-17 Thread Sascha Hauer
On Sun, Jan 15, 2012 at 11:00:21AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > this will allow to upload a bootable image in memory and boot it > boot with the rootfs via nfs > > the image will must be 16MiB max > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > arch/arm/boards/u

[PATCH] ARM pca-a-l1: fix board_init

2012-01-17 Thread Sascha Hauer
board_init is now called omap3_board_init. broken since: commit 494a12f703c33f80fe96e2a728545c490347eceb Author: Jean-Christophe PLAGNIOL-VILLARD Date: Sat Jan 14 15:51:05 2012 +0100 omap3: move platform lowlevel init to mach-omap this will allow to switch omap3 to standard organisati

Re: [PATCH 1/2 v2] add config to check if the size of barebox exceed the target size

2012-01-17 Thread Sascha Hauer
On Mon, Jan 16, 2012 at 05:19:52PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > CONFIG_BAREBOX_MAX_IMAGE_SIZE will allow to detected silent oversize result > > if 0x0 the size will not been checked > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > v2: > > change to CONFIG_B