[U-Boot] [PATCH] arm, davinci: cam_enc_4xx board updates

2012-01-14 Thread Heiko Schocher
- CONFIG_SYS_MMC_ENV_DEV, needed if environment on mmc - wait for 1 second timer in board_late_init() only, if timer is running. - add UBI/UBIFS support - add FIT images support - menu support - U-Boot max size now 0xa - SPL now Block 0 page 0 - new MTD partitioning 0x SPL 0x00020

[U-Boot] [PATCH 2/3] common, menu: add statusline support

2012-01-14 Thread Heiko Schocher
add the possibility to show a statusline when printing a menu Signed-off-by: Heiko Schocher Cc: Jason Hobbs --- common/menu.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/common/menu.c b/common/menu.c index 3b1e0d0..754a9f9 100644 --- a/common/menu.c +++ b/com

[U-Boot] [PATCH 3/3] common, menu: show menu on startup if CONFIG_MENU_SHOW is defined

2012-01-14 Thread Heiko Schocher
show a menu on startup instead running the shell. Signed-off-by: Heiko Schocher Cc: Jason Hobbs --- common/main.c |4 doc/README.menu |5 + include/menu.h |3 +++ 3 files changed, 12 insertions(+), 0 deletions(-) diff --git a/common/main.c b/common/main.c index 08070f3.

[U-Boot] [PATCH 1/3] common: add possibility for readline_into_buffer timeout

2012-01-14 Thread Heiko Schocher
add possibility to add a timeout when reading a line into a buffer. Signed-off-by: Heiko Schocher --- common/cmd_nvedit.c |2 +- common/main.c | 21 + common/menu.c |3 ++- include/common.h|3 ++- 4 files changed, 22 insertions(+), 7 deletions(-)

[U-Boot] [PATCH 0/3] common, menu: enhancements

2012-01-14 Thread Heiko Schocher
- add possibility to read a line with defining a timeout - add possibility to define a statusline in the menu, which is printed for every menu - show menu instead starting the u-boot shell Heiko Schocher (3): common: add possibility for readline_into_buffer timeout common, menu: add statusli

[U-Boot] [PATCH] common, image: introduce new uimage types

2012-01-14 Thread Heiko Schocher
- ubootimage U-Boot image - splimage SPL image - dfenvimage Default Environment image - ublheader TI davinci UBL header image Signed-off-by: Heiko Schocher --- common/image.c |6 +- include/image.h |4 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/commo

[U-Boot] [PATCH] arm, davinci: add timer defines for tcr field

2012-01-14 Thread Heiko Schocher
Signed-off-by: Heiko Schocher Cc: Sandeep Paulraj Cc: Tom Rini --- arch/arm/include/asm/arch-davinci/timer_defs.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-davinci/timer_defs.h b/arch/arm/include/asm/arch-davinci/timer_defs.

[U-Boot] [PATCH] arm, davinci: add workaround for not resetting DMA bus and VPSS modules

2012-01-14 Thread Heiko Schocher
The Buffer Logic of VPSS is Not Reset by System Reset Pin, see http://www.ti.com/lit/er/sprz316b/sprz316b.pdf chapter Advisory 1.2.1 on page 9. Add workaroundcode proposed in the errata. Signed-off-by: Heiko Schocher Cc: Sandeep Paulraj Cc: Tom Rini --- arch/arm/cpu/arm926ejs/davinci/dm365_low

Re: [U-Boot] [PATCH v2 02/20] i2c: Add TPS6586X driver

2012-01-14 Thread Heiko Schocher
Hello Simon, Simon Glass wrote: > This power management chip supports battery charging and a large number > of power supplies. This initial driver only provides the ability to adjust > the two synchronous buck converters SM0 and SM1 in a stepwise manner. > > Signed-off-by: Simon Glass > --- > Ch

Re: [U-Boot] [PATCH v2 18/20] tegra: i2c: Add function to find DVC bus

2012-01-14 Thread Heiko Schocher
Hello Simon, Simon Glass wrote: > Add tegra_i2c_get_dvc_bus_num() to obtain the I2C bus number of DVC bus. > This allows us to talk to the PMU. > > Signed-off-by: Simon Glass > --- > Changes in v2: > - Add patch to find DVC bus number > > arch/arm/include/asm/arch-tegra2/tegra2_i2c.h |7 ++

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 8:44 PM, Mike Frysinger wrote: > On Saturday 14 January 2012 23:36:40 Simon Glass wrote: >> On Sat, Jan 14, 2012 at 8:19 PM, Mike Frysinger wrote: >> > On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: >> >> +enum { >> >> +     OS_O_RDONLY, >> >> +     OS_O_W

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 23:36:40 Simon Glass wrote: > On Sat, Jan 14, 2012 at 8:19 PM, Mike Frysinger wrote: > > On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: > >> +enum { > >> + OS_O_RDONLY, > >> + OS_O_WRONLY, > >> + OS_O_RDWR, > >> + OS_O_CREAT = 0100, > >> +};

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 8:19 PM, Mike Frysinger wrote: > On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: >> This provides a way for callers to create files for writing. We define >> flags which mirror the POSIX values. >> >> Another approach would be to translate the flags at runt

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Mike Frysinger
On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: > This provides a way for callers to create files for writing. We define > flags which mirror the POSIX values. > > Another approach would be to translate the flags at runtime. Perhaps we can > leave to whoever wants to port this to another OS

Re: [U-Boot] [PATCH 5/6] tegra: nand: Add Tegra NAND driver

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 23:08:45 Simon Glass wrote: > On Sat, Jan 14, 2012 at 8:03 PM, Mike Frysinger wrote: > > On Friday 13 January 2012 18:10:55 Simon Glass wrote: > >> From: Jim Lin > >> > >> A device tree is used to configure the NAND, including memory > >> timings and block/pages sizes.

Re: [U-Boot] [PATCH v2 20/20] tegra: Enable LP0 on Seaboard

2012-01-14 Thread Mike Frysinger
On Friday 13 January 2012 16:35:35 Simon Glass wrote: > --- a/include/configs/tegra2-common.h > +++ b/include/configs/tegra2-common.h > > /* > + * QUOTE(m) will evaluate to a string version of the value of the macro m > + * passed in. The extra level of indirection here is to first evaluate > +

Re: [U-Boot] [PATCH 5/6] tegra: nand: Add Tegra NAND driver

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 8:03 PM, Mike Frysinger wrote: > On Friday 13 January 2012 18:10:55 Simon Glass wrote: >> From: Jim Lin >> >> A device tree is used to configure the NAND, including memory >> timings and block/pages sizes. >> >> If this node is not present or is disabled, then NA

Re: [U-Boot] [PATCH v2 0/20] tegra: warmboot (suspend / resume) support

2012-01-14 Thread Mike Frysinger
there are a few patches here where the Author hasn't provided his s-o-b tag, so that'll need fixing ... -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/

Re: [U-Boot] [PATCH 5/6] tegra: nand: Add Tegra NAND driver

2012-01-14 Thread Mike Frysinger
On Friday 13 January 2012 18:10:55 Simon Glass wrote: > From: Jim Lin > > A device tree is used to configure the NAND, including memory > timings and block/pages sizes. > > If this node is not present or is disabled, then NAND will not > be initialized. > > Signed-off-by: Simon Glass the Auth

Re: [U-Boot] [PATCH 12/17] lcd: Add support for flushing LCD fb from dcache after update

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 20:57:25 Simon Glass wrote: > On Sat, Jan 14, 2012 at 5:42 PM, Mike Frysinger wrote: > > On Saturday 14 January 2012 19:47:24 Simon Glass wrote: > >> --- a/common/cmd_echo.c > >> +++ b/common/cmd_echo.c > >> @@ -44,8 +44,9 @@ int do_echo(cmd_tbl_t *cmdtp, int flag, int a

Re: [U-Boot] [PATCH 12/17] lcd: Add support for flushing LCD fb from dcache after update

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 5:42 PM, Mike Frysinger wrote: > On Saturday 14 January 2012 19:47:24 Simon Glass wrote: >> --- a/common/cmd_echo.c >> +++ b/common/cmd_echo.c >> @@ -44,8 +44,9 @@ int do_echo(cmd_tbl_t *cmdtp, int flag, int argc, char * >> const argv[]) } >>       } >> >> +     /

Re: [U-Boot] [PATCH 12/17] lcd: Add support for flushing LCD fb from dcache after update

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 19:47:24 Simon Glass wrote: > --- a/common/cmd_echo.c > +++ b/common/cmd_echo.c > @@ -44,8 +44,9 @@ int do_echo(cmd_tbl_t *cmdtp, int flag, int argc, char * > const argv[]) } > } > > + /* Use puts() so that the LCD sees it as a new line */ > if (putnl) >

Re: [U-Boot] [PATCH 11/17] lcd: Add CONFIG_ALIGN_LCD_TO_SECTION to align lcd for MMU

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 19:47:23 Simon Glass wrote: > We want to make the display section-aligned on ARM so that we can easily > turn off data caching for this. > > Is this useful for other architectures? We could perhaps generalise it by > adding the ability to specify the alignment size, but

Re: [U-Boot] [PATCH 04/17] tegra: Add display support to funcmux

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 19:47:16 Simon Glass wrote: > --- a/arch/arm/cpu/armv7/tegra2/funcmux.c > +++ b/arch/arm/cpu/armv7/tegra2/funcmux.c > > +struct pingroup_config disp1_default[] = { const ? although it looks like we need to fix pinmux_config_table() first ... -mike signature.asc Desc

Re: [U-Boot] [PATCH v2] bootm: Avoid 256-byte overflow in fixup_silent_linux()

2012-01-14 Thread Mike Frysinger
On Wednesday 11 January 2012 13:19:52 Doug Anderson wrote: > + if (cmdline && (cmdline[0] != '\0')) { > + char *start = strstr(cmdline, CONSOLE_ARG); > + > if (start) { > - end = strchr(start, ' '); > - strncpy(buf, cmdline, (sta

Re: [U-Boot] [RFC PATCH v2 13/15] bootstage: Add microsecond boot time measurement

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 5:22 PM, Mike Frysinger wrote: > On Saturday 14 January 2012 20:16:35 Simon Glass wrote: >> On Sat, Jan 14, 2012 at 5:09 PM, Mike Frysinger wrote: >> > On Thursday 12 January 2012 00:41:24 Simon Glass wrote: >> >> Still don't quite get it though. For example, the

Re: [U-Boot] [PATCHv5 7/7] mkenvimage: Really set the redundant byte when applicable

2012-01-14 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v3 10/15] bootstage: Convert FIT progress numbers to enums

2012-01-14 Thread Simon Glass
This changes over all the FIT image progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass --- common/cmd_bootm.c | 44 ++-- common/image.c | 36 include/bootstage.h | 38 +++

[U-Boot] [PATCH v3 12/15] bootstage: Replace show_boot_progress/error() with bootstage_...()

2012-01-14 Thread Simon Glass
These calls should not be made directly any more, since bootstage will call the show_boot_...() functions as needed. Signed-off-by: Simon Glass --- arch/arm/lib/bootm.c |2 +- arch/avr32/lib/bootm.c |2 +- arch/m68k/lib/bootm.c |2 +

[U-Boot] [PATCH v3 11/15] timer: add microsecond boot func

2012-01-14 Thread Simon Glass
Define timer_get_boot_us() which returns the number of microseconds since boot. If undefined then we use get_timer() * 1000. We can fit this in a 32-bit register which keeps everyone happy on the efficiency side. It will wrap around after about an hour. If we are still looking at it after an hour

[U-Boot] [PATCH v3 14/15] bootstage: Plumb in bootstage calls for basic operations

2012-01-14 Thread Simon Glass
This inserts bootstage calls into tftp, usb start and bootm. We could go further, but this is a reasonable start to illustrate the concept. Signed-off-by: Simon Glass --- common/cmd_bootm.c |2 ++ common/cmd_net.c |7 ++- common/cmd_usb.c |1 + net/bootp.c|4

[U-Boot] [PATCH v3 15/15] bootstage: arm: Add bootstage calls in board and bootm

2012-01-14 Thread Simon Glass
Add calls to bootstage before and after relocation, and just before jumping to the OS. The idea here is you can call bootstage_report() to get a report. Additionally, if you define CONFIG_BOOTSTAGE_REPORT then a report is printed automatically by U-Boot just before jumping to the kernel. Signed-o

[U-Boot] [PATCH v3 13/15] bootstage: Implement core microsecond boot time measurement

2012-01-14 Thread Simon Glass
This defines the basics of a new boot time measurement feature. This allows logging of very accurate time measurements as the boot proceeds, by using an available microsecond counter. To enable the feature, define CONFIG_BOOTSTAGE in your board config file. Also available is CONFIG_BOOTSTAGE_REPOR

[U-Boot] [PATCH v3 09/15] bootstage: Convert net progress numbers to enums

2012-01-14 Thread Simon Glass
This changes over the network-related progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass --- board/Seagate/dockstar/dockstar.c |2 +- board/matrix_vision/mvbc_p/mvbc_p.c |2 +- board/pcs440ep/pcs440ep.c | 24 common/cmd_net.

[U-Boot] [PATCH v3 04/15] bootstage: Convert progress numbers 1-9 into enums

2012-01-14 Thread Simon Glass
Signed-off-by: Simon Glass --- Changes in v3: - Set BOOTSTAGE_ID_START to 0 explicitly board/bf533-stamp/bf533-stamp.c| 18 +++--- board/hermes/hermes.c |2 +- board/ivm/ivm.c|2 +- board/matrix_vision/common/mv_common.c |2 +

[U-Boot] [PATCH v3 06/15] bootstage: Convert progress numbers 20-41 to enums

2012-01-14 Thread Simon Glass
Signed-off-by: Simon Glass --- arch/powerpc/lib/board.c |2 +- arch/sparc/lib/board.c|2 +- arch/x86/lib/board.c | 18 +- board/hermes/hermes.c |4 +++- board/pcs440ep/pcs440ep.c |3 ++- include/bootstage.h | 25 + p

[U-Boot] [PATCH v3 05/15] bootstage: Convert progress numbers 10-19 to enums

2012-01-14 Thread Simon Glass
Signed-off-by: Simon Glass Acked-by: Mike Frysinger --- board/bf533-stamp/bf533-stamp.c | 10 +- board/matrix_vision/mvbc_p/mvbc_p.c |2 +- common/image.c | 20 ++-- include/bootstage.h |7 +++ 4 files changed, 23

[U-Boot] [PATCH v3 07/15] bootstage: Convert IDE progress numbers to enums

2012-01-14 Thread Simon Glass
This changes over the IDE progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass --- common/cmd_ide.c| 46 +++--- include/bootstage.h | 14 ++ 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/common/

[U-Boot] [PATCH v3 08/15] bootstage: Convert NAND progress numbers to enums

2012-01-14 Thread Simon Glass
This changes over the NAND progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass --- common/cmd_nand.c | 34 +- include/bootstage.h | 15 +++ 2 files changed, 32 insertions(+), 17 deletions(-) diff --git a/common/cmd_nand.c

[U-Boot] [PATCH v3 03/15] bootstage: Use show_boot_error() for -ve progress numbers

2012-01-14 Thread Simon Glass
Rather than the caller negating our progress numbers to indicate an error has occurred, which seems hacky, add a function to indicate this. Signed-off-by: Simon Glass Acked-by: Mike Frysinger --- arch/powerpc/lib/board.c |2 +- arch/sparc/lib/board.c |2 +- common/cmd_bootm.c |

[U-Boot] [PATCH v3 02/15] bootstage: Make use of BOOTSTAGE_ID_RUN_OS in show_boot_progress()

2012-01-14 Thread Simon Glass
This changes the number 15 as used in boot_stage_progress() to use the new name provided for it. This is a separate patch because it touches so many files. Signed-off-by: Simon Glass Acked-by: Mike Frysinger --- arch/arm/lib/bootm.c|2 +- arch/avr32/lib/bootm.c

Re: [U-Boot] [PATCHv5 6/7] mkenvimage: Don't try to detect comments in the input file

2012-01-14 Thread Mike Frysinger
On Friday 13 January 2012 18:27:39 David Wagner wrote: > Remove this feature since it seems impossible to reliably detect them. would be nice to have these, but i can see how it'd be hard to detect multiline vars and comments ... Acked-by: Mike Frysinger -mike signature.asc Description: This

Re: [U-Boot] [PATCHv5 5/7] mkenvimage: Use mmap() when reading from a regular file

2012-01-14 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v3 01/15] bootstage: Create an initial header for boot progress integers

2012-01-14 Thread Simon Glass
At present boot_stage_progress() is called with various magic numbers. The new bootstage.h header will be used to turn these into symbolic names throughout the code. The intent is not that these numbers are passed to Linux. In fact by using an enum to track them we should eventually be able to rem

Re: [U-Boot] [PATCHv5 4/7] mkenvimage: Read/Write from/to stdin/out by default or if the filename is "-"

2012-01-14 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v3 0/15] bootstage: record and publish boot progress timing

2012-01-14 Thread Simon Glass
This series creates a simple boot progress timing feature in U-Boot. Previous discussion on this is here: http://lists.denx.de/pipermail/u-boot/2011-May/thread.html#92584 A request was made to unify this with show_boot_progress(). As discussed in the v1 RFC patch, this series addresses this the

Re: [U-Boot] [PATCHv5 3/7] mkenvimage: More error handling

2012-01-14 Thread Mike Frysinger
On Friday 13 January 2012 18:27:36 David Wagner wrote: > --- a/tools/mkenvimage.c > +++ b/tools/mkenvimage.c > > +long int xstrtol(const char *s) long term, we'll prob want to add a host set of helper libs like xmalloc and xstrdup and xstrtol so we don't have to copy & paste between tools ... f

Re: [U-Boot] [PATCHv5 2/7] mkenvimage: Correct an include and add a missing one

2012-01-14 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCHv5 1/7] mkenvimage: correct and clarify comments and error messages

2012-01-14 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [RFC PATCH v2 13/15] bootstage: Add microsecond boot time measurement

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 20:16:35 Simon Glass wrote: > On Sat, Jan 14, 2012 at 5:09 PM, Mike Frysinger wrote: > > On Thursday 12 January 2012 00:41:24 Simon Glass wrote: > >> Still don't quite get it though. For example, the beagle board defines > >> show_boot_progress() but does not define CONF

Re: [U-Boot] [PATCH v4] Add 'patman' patch generation, checking and submission script

2012-01-14 Thread Simon Glass
Hi, Hmmm patman found a tag in this commit and tried to send it to Fred Bloggs. I have added the line below - sorry for the confusion. On Sat, Jan 14, 2012 at 5:12 PM, Simon Glass wrote: > What is this? > = > > This tool is a Python script which: > - Creates patch directly from your

Re: [U-Boot] [RFC PATCH v2 13/15] bootstage: Add microsecond boot time measurement

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 5:09 PM, Mike Frysinger wrote: > On Thursday 12 January 2012 00:41:24 Simon Glass wrote: >> On Mon, Jan 9, 2012 at 9:33 AM, Mike Frysinger wrote: >> > On Sunday 08 January 2012 12:42:02 Simon Glass wrote: >> >> On Sun, Jan 8, 2012 at 12:35 AM, Mike Frysinger wrote

Re: [U-Boot] [PATCH] configs: Remove CONFIG_NET_MULTI from board files

2012-01-14 Thread Mike Frysinger
On Saturday 14 January 2012 05:08:46 Stefano Babic wrote: > On 11/01/2012 13:47, Fabio Estevam wrote: > > CONFIG_NET_MULTI is not used anymore, so remove it from board files. > > > > include/configs/P1010RDB.h |5 - > > include/configs/PM826.h|2 -- > > include/con

Re: [U-Boot] [RFC PATCH v2 13/15] bootstage: Add microsecond boot time measurement

2012-01-14 Thread Mike Frysinger
On Thursday 12 January 2012 00:41:24 Simon Glass wrote: > On Mon, Jan 9, 2012 at 9:33 AM, Mike Frysinger wrote: > > On Sunday 08 January 2012 12:42:02 Simon Glass wrote: > >> On Sun, Jan 8, 2012 at 12:35 AM, Mike Frysinger wrote: > >> > On Saturday 10 December 2011 16:08:05 Simon Glass wrote: > >>

Re: [U-Boot] [PATCH 2/2] i.mx6q: SabreLite: Add SPI NOR support

2012-01-14 Thread Mike Frysinger
On Thursday 12 January 2012 10:38:40 Marek Vasut wrote: > > From: Eric Nelson > > +#ifdef CONFIG_IMX_ECSPI > > +s32 spi_get_cfg(struct imx_spi_dev_t *dev) > > +{ > > + int rval = 0 ; > > + if (1 == dev->slave.cs) { > > + dev->base = ECSPI1_BASE_ADDR; > > + dev->ss = 1 ; >

Re: [U-Boot] [PATCH 2/2] i.mx6q: SabreLite: Add SPI NOR support

2012-01-14 Thread Mike Frysinger
On Thursday 12 January 2012 10:27:14 Dirk Behme wrote: > +#ifdef CONFIG_CMD_SF > + #define CONFIG_FSL_SF 1 > + #define CONFIG_SPI_FLASH 1 > + #define CONFIG_SPI_FLASH_SST1 > + #define CONFIG_SPI_FLASH_CS 1 > + #define CONFIG_IMX_ECSPI > + #define IMX_

Re: [U-Boot] [PATCH 1/2] SPI: Add i.MX ECSPI driver

2012-01-14 Thread Mike Frysinger
On Thursday 12 January 2012 10:27:13 Dirk Behme wrote: > +struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, > + unsigned int max_hz, unsigned int mode) > +{ > + struct imx_spi_dev_t *imx_spi_slave = NULL; setting to NULL is kind of pointless when you init it imme

Re: [U-Boot] [PATCH 3/5] miiphyutil: Add Micrel KSZ9021 support to miiphy_speed

2012-01-14 Thread Mike Frysinger
On Friday 13 January 2012 07:10:02 Dirk Behme wrote: > common/miiphyutil.c | 18 +- > 1 files changed, 17 insertions(+), 1 deletions(-) this is dead code ... i think we're pushing people to use the name phy framework rather than fixing/extending the old one. > --- a/common/mii

Re: [U-Boot] [PATCH] configs: Remove CONFIG_NET_MULTI from board files

2012-01-14 Thread Mike Frysinger
On Wednesday 11 January 2012 07:47:31 Fabio Estevam wrote: > CONFIG_NET_MULTI is not used anymore, so remove it from board files. NAK: idea: good. actual patch: buggy :(. > --- a/include/configs/P1010RDB.h > +++ b/include/configs/P1010RDB.h > > -#if defined(CONFIG_TSEC_ENET) > -#ifndef CONFIG_N

[U-Boot] [PATCH 17/17] tegra: Enable display/lcd support on Seaboard

2012-01-14 Thread Simon Glass
From: Mayuresh Kulkarni Enable the Seaboard's 16bpp LCD and use it as the console. Signed-off-by: Mayuresh Kulkarni Signed-off-by: Simon Glass --- include/configs/seaboard.h | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/configs/seaboard.h b/inclu

[U-Boot] [PATCH 04/17] tegra: Add display support to funcmux

2012-01-14 Thread Simon Glass
Add support for a default pin mapping for display1. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/tegra2/funcmux.c | 39 +++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/tegra2/funcmux.c b/arch/arm/cpu/armv7/tegra2/func

[U-Boot] [PATCH 10/17] arm: Add control over cachability of memory regions

2012-01-14 Thread Simon Glass
Add support for adjusting the cachability of an L1 section by updating the MMU. The mmu_set_region_dcache() function allows drivers to make these changes after the MMU is set up. It is implemented only for ARMv7 at present. This is needed for LCD support, where we want to make the LCD frame buffe

[U-Boot] [PATCH 13/17] tegra: Align LCD frame buffer to section boundary

2012-01-14 Thread Simon Glass
For tegra we want to enable the cache for the LCD. This is easier if we can avoid using L2 page tages, so align the LCD to a section boundary. Signed-off-by: Simon Glass --- include/configs/tegra2-common.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/t

[U-Boot] [PATCH 02/17] fdt: Add header guard to fdtdec.h

2012-01-14 Thread Simon Glass
This makes it easier to include this header from other headers. Signed-off-by: Simon Glass --- include/fdtdec.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index 81ce3f6..f60c969 100644 --- a/include/fdtdec.h +++ b/include/fdtdec

[U-Boot] [PATCH 07/17] tegra: Add SOC support for display/lcd

2012-01-14 Thread Simon Glass
From: Wei Ni Add support for the LCD peripheral at the Tegra2 SOC level. A separate LCD driver will use this functionality to configure the display. Mayuresh Kulkarni: - changes to remove bitfields and clean up for submission Simon Glass: - simplify code, move clock control into here, clean-up

[U-Boot] [PATCH 15/17] tegra: fdt: Add LCD definitions for Seaboard

2012-01-14 Thread Simon Glass
The Seaboard has a 1366x768 16bpp LCD. The backlight is controlled by one of the PWMs. Signed-off-by: Simon Glass --- board/nvidia/dts/tegra2-seaboard.dts | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/board/nvidia/dts/tegra2-seaboard.dts b/board/n

[U-Boot] [PATCH 08/17] tegra: Add LCD driver

2012-01-14 Thread Simon Glass
This driver supports driving a single LCD and providing a U-Boot console on it. Signed-off-by: Simon Glass --- drivers/video/Makefile |1 + drivers/video/tegra.c | 379 include/fdtdec.h |1 + lib/fdtdec.c |1 + 4 file

[U-Boot] [PATCH 16/17] lcd: Add CONSOLE_SCROLL_LINES option to speed console

2012-01-14 Thread Simon Glass
When the cursor position gets to the end of the LCD console we normally scroll by one line. This adds an option to increase that value. Console scrolling is often slow, and if a large amount of output is being sent, increasing this option to 10 or so will speed things up considerably. Signed-off-

[U-Boot] [PATCH 09/17] tegra: Add LCD support to Nvidia boards

2012-01-14 Thread Simon Glass
Add calls to the LCD driver from Nvidia board code. Signed-off-by: Simon Glass --- board/nvidia/common/board.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 04990bf..1c3387d 100644 ---

[U-Boot] [PATCH 03/17] fdt: Correct GPIO name access in fdtdec

2012-01-14 Thread Simon Glass
This was missing an fdt32_to_cpu() call so got the name pointer wrong. If the GPIO module looks at it, this would cause a problem. Signed-off-by: Simon Glass --- lib/fdtdec.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index bcb2343..f7d

[U-Boot] [PATCH 12/17] lcd: Add support for flushing LCD fb from dcache after update

2012-01-14 Thread Simon Glass
This provides an option for the LCD to flush the dcache after each update (puts, scroll or clear). Signed-off-by: Simon Glass --- common/cmd_echo.c |3 ++- common/lcd.c | 44 +--- include/lcd.h |8 3 files changed, 47 insertions

[U-Boot] [PATCH 14/17] tegra: Support control of cache settings for LCD

2012-01-14 Thread Simon Glass
Add support for selecting the required cache mode for the LCD: off, write-through or write-back. Signed-off-by: Simon Glass --- drivers/video/tegra.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index 7622d2d..f244

[U-Boot] [PATCH 06/17] tegra: Add support for PWFM

2012-01-14 Thread Simon Glass
The pulse width/frequency modulation peripheral supports generating a repeating pulse. It is useful for controlling LCD brightness. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/tegra2/Makefile |1 + arch/arm/cpu/armv7/tegra2/pwfm.c| 40 +++ arch/arm/in

[U-Boot] [PATCH 11/17] lcd: Add CONFIG_ALIGN_LCD_TO_SECTION to align lcd for MMU

2012-01-14 Thread Simon Glass
We want to make the display section-aligned on ARM so that we can easily turn off data caching for this. Is this useful for other architectures? We could perhaps generalise it by adding the ability to specify the alignment size, but at least for ARM it is easier to have it be an architecture featu

[U-Boot] [PATCH 05/17] tegra: fdt: Add LCD definitions for Tegra

2012-01-14 Thread Simon Glass
Add LCD definitions and also a proposed binding for LCD displays. The PWFM is in progress on the device-tree-discuss list, so only a very basic binding is offered here. Signed-off-by: Simon Glass --- arch/arm/dts/tegra20.dtsi | 25 ++ doc/device-tree-bindings/video/n

[U-Boot] [PATCH 01/17] fdt: Add function to look up a phandle's register address

2012-01-14 Thread Simon Glass
This is a commonly-used requirement, so add a function to support it easily. Signed-off-by: Simon Glass --- include/fdtdec.h | 13 + lib/fdtdec.c | 11 +++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index e70512

[U-Boot] [PATCH 0/17] tegra: Add display driver and LCD support for Seaboard

2012-01-14 Thread Simon Glass
This series adds support for the Tegra2x's display peripheral. This supports the LCD display on Seaboard and we use this to enable console output in U-Boot on the LCD. Configuration is via the device tree. Proposed bindings are included in this series. To improve performance two optimisations are

Re: [U-Boot] [PATCH] omap3: board.c - Fix compile warnings

2012-01-14 Thread Marek Vasut
> On Sat, Jan 14, 2012 at 4:40 PM, Pali Rohár wrote: > > On Saturday 14 January 2012 21:12:00 Marek Vasut wrote: > >> > * This patch fix compile warnings when CONFIG_SYS_L2CACHE_OFF is > >> > enabled > >> > > >> >board.c:48:13: warning: ‘omap3_invalidate_l2_cache_secure’ declared > >> > > >

Re: [U-Boot] [PATCH] omap3: board.c - Fix compile warnings

2012-01-14 Thread Tom Rini
On Sat, Jan 14, 2012 at 4:40 PM, Pali Rohár wrote: > On Saturday 14 January 2012 21:12:00 Marek Vasut wrote: >> >  * This patch fix compile warnings when CONFIG_SYS_L2CACHE_OFF is enabled >> > >> >    board.c:48:13: warning: ‘omap3_invalidate_l2_cache_secure’ declared >> > >> > ‘static’ but never

Re: [U-Boot] [PATCH] omap3: board.c - Fix compile warnings

2012-01-14 Thread Marek Vasut
> On Saturday 14 January 2012 21:12:00 Marek Vasut wrote: > > > * This patch fix compile warnings when CONFIG_SYS_L2CACHE_OFF is > > > enabled > > > > > >board.c:48:13: warning: ‘omap3_invalidate_l2_cache_secure’ declared > > > > > > ‘static’ but never defined board.c:373:13: warning: > >

Re: [U-Boot] [PATCH] omap3: board.c - Fix compile warnings

2012-01-14 Thread Pali Rohár
On Saturday 14 January 2012 21:12:00 Marek Vasut wrote: > > * This patch fix compile warnings when CONFIG_SYS_L2CACHE_OFF is enabled > > > >board.c:48:13: warning: ‘omap3_invalidate_l2_cache_secure’ declared > > > > ‘static’ but never defined board.c:373:13: warning: ‘omap3_update_aux_cr’ > >

Re: [U-Boot] [PATCH v4 3/3] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-14 Thread Marek Vasut
> Signed-off-by: Vasily Khoruzhick > --- > v2: mmcinfo is necessary to scan card for partitions > v3: replace mmcinfo with mmc rescan > v4: mmc rescan does not take extra argument in recent u-boot, > so remove it. > > board/zipitz2/zipitz2.c |8 > include/configs/zipitz2.h |

Re: [U-Boot] [PATCH v4 1/3] PXA: PXA27x Matrix keypad driver

2012-01-14 Thread Marek Vasut
> From: Marek Vasut > > Signed-off-by: Marek Vasut > Signed-off-by: Vasily Khoruzhick > [vasily: adapted Marek's old version for newer u-boot, > fixed multiple keypresses handling] > --- > v2: use struct-based access to regs, minor cleanup > v3: fix multiple keypresses handling, minor

[U-Boot] [PATCH v4 3/3] zipitz2: use pxa_mmc_gen as MMC driver

2012-01-14 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick --- v2: mmcinfo is necessary to scan card for partitions v3: replace mmcinfo with mmc rescan v4: mmc rescan does not take extra argument in recent u-boot, so remove it. board/zipitz2/zipitz2.c |8 include/configs/zipitz2.h | 14 --

[U-Boot] [PATCH v4 1/3] PXA: PXA27x Matrix keypad driver

2012-01-14 Thread Vasily Khoruzhick
From: Marek Vasut Signed-off-by: Marek Vasut Signed-off-by: Vasily Khoruzhick [vasily: adapted Marek's old version for newer u-boot, fixed multiple keypresses handling] --- v2: use struct-based access to regs, minor cleanup v3: fix multiple keypresses handling, minor cleanup v4: anothe

[U-Boot] [PATCH v4 2/3] zipitz2: enable pxa27x_mkp driver

2012-01-14 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick --- v2: remove usbtty stuff from EXTRA_ENV_SETTINGS v3: shift+backspace should produce backspace code v4: no change include/configs/zipitz2.h | 82 ++--- 1 files changed, 77 insertions(+), 5 deletions(-) diff --git a/inc

Re: [U-Boot] [PATCH] mx28: fix i.MX28 spi driver

2012-01-14 Thread Fabio Estevam
On Sat, Jan 14, 2012 at 6:09 PM, Matthias Fuchs wrote: > This cannot work. I do not understand what you are trying to achieve with > this. I would like to avoid the extra dummy read that your patch proposes. ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] omap3: board.c - Fix compile warnings

2012-01-14 Thread Marek Vasut
> > * This patch fix compile warnings when CONFIG_SYS_L2CACHE_OFF is enabled > > > >board.c:48:13: warning: ‘omap3_invalidate_l2_cache_secure’ declared > > > > ‘static’ but never defined board.c:373:13: warning: ‘omap3_update_aux_cr’ > > defined but not used > > > > Signed-off-by: Pali Roh

Re: [U-Boot] [PATCH] omap3: board.c - Fix compile warnings

2012-01-14 Thread Marek Vasut
> * This patch fix compile warnings when CONFIG_SYS_L2CACHE_OFF is enabled > >board.c:48:13: warning: ‘omap3_invalidate_l2_cache_secure’ declared > ‘static’ but never defined board.c:373:13: warning: ‘omap3_update_aux_cr’ > defined but not used > > Signed-off-by: Pali Rohár > --- > arch/ar

Re: [U-Boot] [PATCH] mx28: fix i.MX28 spi driver

2012-01-14 Thread Matthias Fuchs
This cannot work. I do not understand what you are trying to achieve with this. Matthias On 01/14/2012 07:54 PM, Fabio Estevam wrote: > On Sat, Jan 14, 2012 at 4:53 PM, Fabio Estevam wrote: > >> Actually I meant this: > > One more time ;-) > > --- a/drivers/spi/mxs_spi.c > +++ b/drivers/spi/m

Re: [U-Boot] [PATCH] mx28: fix i.MX28 spi driver

2012-01-14 Thread Fabio Estevam
On Sat, Jan 14, 2012 at 4:53 PM, Fabio Estevam wrote: > Actually I meant this: One more time ;-) --- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -130,13 +130,10 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const char *tx = dout; char *rx = din; -

Re: [U-Boot] [PATCH] mx28: fix i.MX28 spi driver

2012-01-14 Thread Fabio Estevam
On Sat, Jan 14, 2012 at 4:46 PM, Fabio Estevam wrote: > Hi Matthias, > > On Sat, Jan 14, 2012 at 10:25 AM, Matthias Fuchs > wrote: >> The generic spi flash driver (drivers/mtd/spi/spi_flash.c) uses the >> spi low level driver's spi_xfer() function with len=0 to deassert the >> SPI flash' chip se

Re: [U-Boot] [PATCH] mx28: fix i.MX28 spi driver

2012-01-14 Thread Fabio Estevam
Hi Matthias, On Sat, Jan 14, 2012 at 10:25 AM, Matthias Fuchs wrote: > The generic spi flash driver (drivers/mtd/spi/spi_flash.c) uses the > spi low level driver's spi_xfer() function with len=0 to deassert the > SPI flash' chip select. But the i.MX28 spi driver rejects this call > due to len=0.

Re: [U-Boot] [PATCH] mx28: fix i.MX28 spi driver

2012-01-14 Thread Matthias Fuchs
On 01/14/2012 03:10 PM, Marek Vasut wrote: >> The generic spi flash driver (drivers/mtd/spi/spi_flash.c) uses the >> spi low level driver's spi_xfer() function with len=0 to deassert the >> SPI flash' chip select. But the i.MX28 spi driver rejects this call >> due to len=0. >> >> This patch impleme

[U-Boot] [PATCH] omap3: board.c - Fix compile warnings

2012-01-14 Thread Pali Rohár
* This patch fix compile warnings when CONFIG_SYS_L2CACHE_OFF is enabled board.c:48:13: warning: ‘omap3_invalidate_l2_cache_secure’ declared ‘static’ but never defined board.c:373:13: warning: ‘omap3_update_aux_cr’ defined but not used Signed-off-by: Pali Rohár --- arch/arm/cpu/armv7/om

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-14 Thread Sughosh Ganu
hi Christian, On Sat Jan 14, 2012 at 06:20:06PM +0100, Christian Riesch wrote: > Hi Sughosh, > On Thursday, January 12, 2012, Sughosh Ganu wrote: > >> 1) The first test was done with the SPL and yes, here the RBL loads > >> the SPL into SRAM, initializes DDR memory and then copies u-boot.bin >

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-14 Thread Christian Riesch
Hi Sughosh, On Thursday, January 12, 2012, Sughosh Ganu wrote: > hi Christian, > > On Thu Jan 12, 2012 at 03:04:37PM +0100, Christian Riesch wrote: >> On Thu, Jan 12, 2012 at 2:53 PM, Sughosh Ganu wrote: >> > On Thu Jan 12, 2012 at 01:03:05PM +0100, Christian Riesch wrote: > > > >> >> >> >> Sin

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-14 Thread Christian Riesch
Hi Albert, On Saturday, January 14, 2012, Albert ARIBAUD wrote: > Le 12/01/2012 07:29, Sughosh Ganu a écrit : >> >> On Thu Jan 12, 2012 at 06:56:01AM +0100, Christian Riesch wrote: >>> >>> On Wednesday, January 11, 2012, Marek Vasut wrote: >> >> >> > RBL executes an AIS script. Sughosh, cou

Re: [U-Boot] [PATCH V3 2/2] ARM: omap3: add support to Technexion twister board

2012-01-14 Thread Stefano Babic
On 14/01/2012 15:25, Tom Rini wrote: > So what happened is I accidentally put this board into u-boot-ti/next > a while back, before the USB changes went in, without realizing it. > The reason the USB changes haven't gone in, still, is that they've > been made more generic (as the IP block is share

Re: [U-Boot] [PATCH V3 2/2] ARM: omap3: add support to Technexion twister board

2012-01-14 Thread Tom Rini
On Sat, Jan 14, 2012 at 1:47 AM, Albert ARIBAUD wrote: > (re-sent due to the U-Boot MX rejecting my provider's servers -- again) > > Hi Stefano, > > Le 01/12/2011 10:56, Stefano Babic a écrit : >> >> The twister board is a development board using >> the TAM3517 SOM. > > > I see this match made it

  1   2   >