Re: [U-Boot] [PATCH] mx28: Show CPU frequency

2012-01-24 Thread Stefano Babic
On 23/01/2012 03:38, Fabio Estevam wrote: > Showing CPU frequency during boot is useful information. > > Signed-off-by: Fabio Estevam > --- > arch/arm/cpu/arm926ejs/mx28/mx28.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/cpu/arm926ejs/mx28/mx28.c >

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

2012-01-24 Thread Stefano Babic
On 14/01/2012 13:25, 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. > > This patch implements a

[U-Boot] u-boot script "test"

2012-01-24 Thread Sridhar Addagada
What is the behavior of test command when the variable is not present in the uboot env set x if test $x = 1; then echo "Yes"; else echo "No"; fi in the above case I get Yes echoed back. Is there any way to test the presence of a variable in uboot script? Thanks Sridhar

[U-Boot] [PATCH v4] tools/env: add posibility to inject configuration

2012-01-24 Thread Andreas Bießmann
From: Andreas Bießmann If one want to use fw_printenv/fw_setenv in special variants (eg compiled in MTD parameters without configuration file) he need to change the sources. This patch add the posibillity to change the behaviour of fw_printenv by defining a specific configuration header at compil

Re: [U-Boot] [PATCH] nand_util: correct YAFFS image write function

2012-01-24 Thread Lei Wen
On Sat, Jan 21, 2012 at 4:46 AM, Scott Wood wrote: > On 01/20/2012 12:17 AM, Kassey Lee wrote: >> hi, Lei, Scott: >>      I think this is correct, >>      do you have some comments ? > > Looks right. > > -Scott Also looks fine to me. Acked-by: Lei Wen Best regards, Lei

Re: [U-Boot] [PATCH] ARM: tegra: Define Tegra20 CAR binding

2012-01-24 Thread Peter De Schrijver
What about the peripheral resets which are also handled by CAR? Peripheral clock nodes also offer assert and deassert methods for the reset signal associated with them. Those methods are used when powergating domains for example. Should we model this in the same binding? Thanks, Peter. __

Re: [U-Boot] u-boot script "test"

2012-01-24 Thread Wolfgang Denk
Dear Sridhar Addagada, In message <1327396047.99588.yahoomail...@web120201.mail.ne1.yahoo.com> you wrote: > > What is the behavior of test command when the variable is not present in the > uboot env It should be the same as in any other bourne compatible shell. > set x Note that "set" for "se

Re: [U-Boot] u-boot script "test"

2012-01-24 Thread Sridhar Addagada
For now i got around this problem with a negative test set x if test $x != 1 then echo "No"; else echo "Yes"; fi with this if x is not present i get No, even in the case when x is present and set any other value (not 1) when i do "set x 1" and run the test again i get "Yes" Thanks Sridhar __

Re: [U-Boot] USBTTY for CONFIG_USB_GADGET

2012-01-24 Thread Stefano Babic
On 20/01/2012 23:20, Michael Schwartz wrote: > Hi, > > Hi Michael, > > Can new UDCs be written for CONFIG_USB_DEVICE or is that deprecated in > favour of CONFIG_USB_GADGET? I have not read any clear statement about this, but IMHO we should consider CONFIG_USB_DEVICE obsolete and move to CONFIG

[U-Boot] [PATCH] SMDK5250: Add ethernet support

2012-01-24 Thread Chander Kashyap
This patch enable support for SMC911X based ethernet device. Signed-off-by: Chander Kashyap --- board/samsung/smdk5250/smdk5250.c | 89 + include/configs/smdk5250.h| 13 +- 2 files changed, 100 insertions(+), 2 deletions(-) diff --git a/board/

Re: [U-Boot] [PATCH V2 3/6] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-24 Thread Stefano Babic
On 23/01/2012 17:46, Eric Nelson wrote: > Signed-off-by: Eric Nelson > Acked-by: Dirk Behme > --- Acked-by: Stefano Babic Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zunde

Re: [U-Boot] [PATCH V2 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-24 Thread Stefano Babic
On 23/01/2012 17:46, Eric Nelson wrote: > Signed-off-by: Eric Nelson > Acked-by: Dirk Behme > --- Acked-by: Stefano Babic Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zunde

Re: [U-Boot] [PATCH V2 5/6] mx6q: mx6qsabrelite: Provide default chip-select for serial flash

2012-01-24 Thread Stefano Babic
On 23/01/2012 17:46, Eric Nelson wrote: > Signed-off-by: Eric Nelson > Acked-by: Dirk Behme > --- > include/configs/mx6qsabrelite.h |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > Acked-by: Stefano Babic Best regards, Stefano Babic -- ==

Re: [U-Boot] [PATCH V2 1/6] mxc_spi: move machine specifics into CPU headers

2012-01-24 Thread Stefano Babic
On 23/01/2012 17:46, Eric Nelson wrote: > Move (E)CSPI register declarations into the imx-regs.h files for each > supported CPU > > Introduce two new macros to control conditional setup > MXC_CSPI - Used for processors with the Configurable Serial Peripheral > Interface (MX3x) > MXC_EC

Re: [U-Boot] [PATCH V2 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-24 Thread Stefano Babic
On 23/01/2012 17:46, Eric Nelson wrote: > Signed-off-by: Eric Nelson > Acked-by: Dirk Behme > --- > arch/arm/include/asm/arch-mx6/imx-regs.h | 44 > ++ > 1 files changed, 44 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h

Re: [U-Boot] [PATCH/RFC] mx28: print bootmode with cpuinfo

2012-01-24 Thread Matthias Fuchs
On 23.01.2012 21:33, Fabio Estevam wrote: > Hi Matthias, > > On 1/18/12, Matthias Fuchs wrote: >> Hi, >> >> while playing around with the mx28evk and differnet bootmedia >> I found it helpful to see the current bootmode without >> running to the board and checking it's switches. Also >> some othe

[U-Boot] [PATCH 00/14] Nokia RX-51 support

2012-01-24 Thread Pali Rohár
This patch series add support for new board Nokia RX-51 (aka N900). Last two patches adding on screen bootmenu support. This series supersedes the last sent version. Pali Rohár (14): arm,omap3: Define save_boot_params in lowlevel_init.S for SPL only arm: Optionally use existing atags in bootm

[U-Boot] [PATCH 01/14] arm, omap3: Define save_boot_params in lowlevel_init.S for SPL only

2012-01-24 Thread Pali Rohár
* Hide function save_boot_params if CONFIG_SPL_BUILD is not defined (function do nothing) * Same behaviour as in file arch/arm/cpu/armv7/omap4/lowlevel_init.S * This allow to implement board specified function save_boot_params in board code Signed-off-by: Pali Rohár --- Changes since original

[U-Boot] [PATCH 03/14] Add power bus message definitions in twl4030.h

2012-01-24 Thread Pali Rohár
* Code copied from linux kernel 3.0.0 from file include/linux/i2c/twl.h Signed-off-by: Pali Rohár --- Changes since original version: - Fixed commit message include/twl4030.h | 98 + 1 files changed, 98 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH 04/14] Fix function readline in main.c

2012-01-24 Thread Pali Rohár
* Ignore ANSI escape codes for moving cursor, which are generated by keyboard Signed-off-by: Pali Rohár --- Changes since original version: - Fixed commit message common/main.c | 51 +++ 1 files changed, 51 insertions(+), 0 deletions(-) dif

[U-Boot] [PATCH 02/14] arm: Optionally use existing atags in bootm.c

2012-01-24 Thread Pali Rohár
This patch adapts the bootm command so that it can use an existing atags command set up by a previous bootloader. If the environment variable "atagaddr" is unset, bootm behaves as normal. If "atagaddr" is set, bootm will use atags address from environment variable and also append new boot args (if

[U-Boot] [PATCH 06/14] cfb_console: Add function console_clear and console_clear_line

2012-01-24 Thread Pali Rohár
* console_clear - clear full console framebuffer output * console_clear_line - clear part of specified line (or full) Signed-off-by: Pali Rohár --- Changes since original version: - Fixed commit message drivers/video/cfb_console.c | 64 +++ 1 files

[U-Boot] [PATCH 05/14] cfb_console: Fix function console_scrollup

2012-01-24 Thread Pali Rohár
* Use correct buffer size, do not damage screen output Signed-off-by: Pali Rohár --- Changes since original version: - Fixed commit message drivers/video/cfb_console.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_c

[U-Boot] [PATCH 09/14] New command clear: Clear the ANSI terminal

2012-01-24 Thread Pali Rohár
* Command can be enabled by CONFIG_CMD_CLEAR * Added some ANSI escape codes definitions in common.h Signed-off-by: Pali Rohár Cc: Marcel Mol --- Changes since original version: - Renamed command clr to clear - Use puts instead printf - Move cursor to pos1,1 - Merged parts of patch

[U-Boot] [PATCH 08/14] cfb_console: Add support for some ANSI terminal escape codes

2012-01-24 Thread Pali Rohár
* This patch add support for move cursor and reverse colors via ANSI espace codes in cfb_console driver * ANSI escape codes can be enabled/disabled via CONFIG_CFB_CONSOLE_ANSI Signed-off-by: Pali Rohár --- Changes since original version: - Fixed commit message drivers/video/cfb_console.

[U-Boot] [PATCH 13/14] New command bootmenu: ANSI terminal Boot Menu support

2012-01-24 Thread Pali Rohár
* Added some ANSI escape codes definitions in common.h * Configuration is done via env variables bootmenu_delay and bootmenu_: bootmenu_delay= bootmenu_="=" (title and commands are separated by first char '=') is delay in seconds of autobooting first entry is boot menu en

[U-Boot] [PATCH 11/14] New config variable CONFIG_PREMONITOR

2012-01-24 Thread Pali Rohár
* if defined run env "premonitor" before Main Loop for Monitor Processing Signed-off-by: Pali Rohár --- Changes since original version: - removed #ifdef CONFIG_PREMONITOR in main.c common/env_common.c |3 +++ common/main.c |4 2 files changed, 7 insertions(+), 0 deletions

[U-Boot] [PATCH 10/14] New config variable CONFIG_MENUCMD

2012-01-24 Thread Pali Rohár
* If not defined CONFIG_MENUCMD do nothing * If CONFIG_MENUKEY is 0 and was pressed any key run env "menu_cmd" * If pressed key was CONFIG_MENUKEY run env "menu_cmd" * If CONFIG_MENUKEY is not defined run env "menu_cmd" always * CONFIG_MENUKEY working if defined CONFIG_MENUCMD and CONFIG_BOO

[U-Boot] [PATCH 14/14] RX-51: Add support for bootmenu

2012-01-24 Thread Pali Rohár
* default bootmenu entries: NOLO kernel, internal eMMC memory, external SD card, u-boot boot order * when keyboard slide is closed always boot NOLO kernel * when keyborad slide is open in CONFIG_PREBOOT try load bootmenu.scr from first FAT partition of internal eMMC memory (also known as

[U-Boot] [PATCH 07/14] cfb_console: Add functions for moving with cursor

2012-01-24 Thread Pali Rohár
* console_cursor_fix - fix cursor position (check for out of screen) * console_cursor_up, console_cursor_down, console_cursor_left, console_cursor_right, console_cursor_set_position for change cursor position * console_newline - added param to specify count of creating new lines * console_pr

Re: [U-Boot] [PATCH/RFC] mx28: print bootmode with cpuinfo

2012-01-24 Thread Fabio Estevam
On 1/24/12, Matthias Fuchs wrote: >> - One patch that touches the HW_DIGCTRL_SCRATCH register (this part is >> what fixed the RAM size retrievel after a "reboot" in the kernel > And what is this part? I was not aware of this issue. What exactly part > of my patch fixes this issue? I started remo

[U-Boot] [PATCH V3 1/6] mxc_spi: move machine specifics into CPU headers

2012-01-24 Thread Eric Nelson
Move (E)CSPI register declarations into the imx-regs.h files for each supported CPU Introduce two new macros to control conditional setup MXC_CSPI - Used for processors with the Configurable Serial Peripheral Interface (MX3x) MXC_ECSPI - For processors with Enhanced Configurable... (MX

[U-Boot] [PATCH V3 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-24 Thread Eric Nelson
Signed-off-by: Eric Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/

[U-Boot] [PATCH V3 0/6] mxc_spi refactoring (for mx6q and mx6qsabrelite)

2012-01-24 Thread Eric Nelson
This patch set refactors mxc_spi as described in http://lists.denx.de/pipermail/u-boot/2010-March/068791.html and requested in http://lists.denx.de/pipermail/u-boot/2012-January/116023.html in order to add support for the MX6Q in general and the mx6qsabrelite specifically. Patch 1 simpl

[U-Boot] [PATCH V3 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-24 Thread Eric Nelson
This patch allows a board configuration file to provide a default chip-select for serial flash so that first argument to the 'sf' command is optional. On boards that use the mxc_spi driver and a GPIO for chip select, this allows a much simpler command line: U-Boot> sf probe instead of

[U-Boot] [PATCH V3 3/6] mx6q: mx6qsabrelite: Add ECSPI support to the Sabrelite platform

2012-01-24 Thread Eric Nelson
Signed-off-by: Eric Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- board/freescale/mx6qsabrelite/imximage.cfg|2 +- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 25 + include/configs/mx6qsabrelite.h |9 + 3 files changed,

[U-Boot] [PATCH V3 5/6] mx6q: mx6qsabrelite: Provide default chip-select for serial flash

2012-01-24 Thread Eric Nelson
Signed-off-by: Eric Nelson Acked-by: Dirk Behme Acked-by: Stefano Babic --- include/configs/mx6qsabrelite.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 8dd6e39..e34f108 100644 --- a/include/con

[U-Boot] [PATCH V3 6/6] mx6q: mx6qsabrelite: Conditionally define macros for environment in serial flash

2012-01-24 Thread Eric Nelson
The default settings store the persistent environment on SD card and not serial flash (SPI NOR). To use SPI NOR to save the environment instead of SD card, edit include/configs/mx6qsabrelite.h and - undefine CONFIG_ENV_IS_IN_MMC - define CONFIG_ENV_IS_IN_SPI_FLASH The SPI driver can take as ch

Re: [U-Boot] [PATCH] SMDK5250: Add ethernet support

2012-01-24 Thread Simon Glass
Hi Chander, On Tue, Jan 24, 2012 at 5:03 AM, Chander Kashyap wrote: > This patch enable support for SMC911X based ethernet device. > > Signed-off-by: Chander Kashyap > --- >  board/samsung/smdk5250/smdk5250.c |   89 > + >  include/configs/smdk5250.h        |

[U-Boot] [RFC] mx28: Fix reboot from the kernel

2012-01-24 Thread Fabio Estevam
When running Linux on a mx28evk and issuing a 'reboot'command the following behaviour is observed: root@freescale /$ reboot starting pid 329, tty '': '/etc/rc.d/rcS stop' root@freescale /$ Stopping inetd:

Re: [U-Boot] [PATCH V3 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-24 Thread Fabio Estevam
On 1/24/12, Eric Nelson wrote: > This patch allows a board configuration file to provide a default > chip-select for serial flash so that first argument to the 'sf' command > is optional. > > On boards that use the mxc_spi driver and a GPIO for chip select, this > allows > a much simpler command l

[U-Boot] bootelf command for Pandaboard

2012-01-24 Thread Boban Petrovic
I have specific need to boot my Pandaboard with an elf image. I noticed that in u-boot-2011.12 bootelf command is disabled by default in omap4_panda_config. I am wondering if there is a reason for not having bootelf command for Pandaboard. Thanks. ___ U-B

Re: [U-Boot] bootelf command for Pandaboard

2012-01-24 Thread Wolfgang Denk
Dear Boban Petrovic, In message you wrote: > > I have specific need to boot my Pandaboard with an elf image. I noticed > that in u-boot-2011.12 bootelf command is disabled by default in > omap4_panda_config. I am wondering if there is a reason for not having > bootelf command for Pandaboard. Tha

[U-Boot] non SPL boot on beagleboard-xm

2012-01-24 Thread Peter Meerwald
Hello, I can boot u-boot built from git commit b609009801b8a00644926f49b7d0d0cc0d3d8797 successfully, but it fails with git commit ee08a8260a3a7f6ef2001cfa3e7b6137b485f40a: Texas Instruments X-Loader 1.5.1 (Jan 24 2012 - 14:51:45) Beagle xM Reading boot sector Loading u-boot.bin from mmc for c

Re: [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect

2012-01-24 Thread Allen Martin
> > If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard > > device is detected. > > > > Signed-off-by: Allen Martin > > ping, anyone have any comments/feedback? > Hi, anyone want to give this patch some love so USB keyboard can work on EHCI again? -Allen nvpublic _

Re: [U-Boot] [PATCH] USB: move keyboard polling into kbd driver

2012-01-24 Thread Allen Martin
> > This moves keyboard polling logic from USB HCD drivers into USB > > keyboard driver. Remove usb_event_poll() as keyboard polling was > > the only user of this API. With this patch USB keyboard works with > > EHCI controllers again. Tested on a tegra2 seaboard. > > > > Signed-off-by: Allen Ma

Re: [U-Boot] non SPL boot on beagleboard-xm

2012-01-24 Thread Tom Rini
On Tue, Jan 24, 2012 at 10:02 AM, Peter Meerwald wrote: > Hello, > > I can boot u-boot built from git commit > b609009801b8a00644926f49b7d0d0cc0d3d8797 successfully, but it fails with > git commit ee08a8260a3a7f6ef2001cfa3e7b6137b485f40a: The current implementation (after poking some of the other

Re: [U-Boot] [PATCH V3 4/6] sf command: allow default chip select through CONFIG_SPI_FLASH_CS

2012-01-24 Thread Mike Frysinger
On Tuesday 24 January 2012 11:18:22 Eric Nelson wrote: > This patch allows a board configuration file to provide a default > chip-select for serial flash so that first argument to the 'sf' command > is optional. > > On boards that use the mxc_spi driver and a GPIO for chip select, this > allows a

Re: [U-Boot] [PATCH] SMDK5250: Add ethernet support

2012-01-24 Thread Mike Frysinger
On Tuesday 24 January 2012 08:03:20 Chander Kashyap wrote: > --- a/include/configs/smdk5250.h > +++ b/include/configs/smdk5250.h > > +#define CONFIG_NET_MULTI dead define -> delete > +#define CONFIG_ETHADDR "00:40:5c:26:0a:5b" as Simon said, delete this too -mike signatur

Re: [U-Boot] [PATCH 00/14] Nokia RX-51 support

2012-01-24 Thread Graeme Russ
Wolfgang, On 01/25/2012 01:27 AM, Pali Rohár wrote: > This patch series add support for new board Nokia RX-51 (aka N900). > Last two patches adding on screen bootmenu support. > > This series supersedes the last sent version. Just to let you know, I went through this submission off-list with Pal

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

2012-01-24 Thread Vasily Khoruzhick
From: Marek Vasut Signed-off-by: Marek Vasut Signed-off-by: Vasily Khoruzhick --- v2: use struct-based access to regs, minor cleanup v3: fix multiple keypresses handling, minor cleanup v4: another minor cleanup v5: fix indentation issues in scan_keys(), remove udelay, increase PXA_KEYPAD_TI

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

2012-01-24 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 v5: prettify CONFIG_PXA27X_MKP_KEYMAP include/configs/zipitz2.h | 82 ++--- 1 files changed, 77 insertion

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

2012-01-24 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. v5: remove spaces from CONFIG_BOOTCOMMAND board/zipitz2/zipitz2.c |8 inclu

Re: [U-Boot] [PATCH v2 2/8] sandbox: config: Enable fdt and snprintf() options

2012-01-24 Thread Mike Frysinger
On Monday 23 January 2012 00:30:32 Simon Glass wrote: > On Fri, Jan 20, 2012 at 10:54 AM, Mike Frysinger wrote: > > On Tuesday 10 January 2012 19:45:46 Simon Glass wrote: > >> +#define CONFIG_LMB > > > > do we need this ? > > Without it I think bootm fails to build with FDT enabled. looks like C

Re: [U-Boot] [PATCH v2 3/8] sandbox: gpio: Add basic driver for simulating GPIOs

2012-01-24 Thread Mike Frysinger
On Monday 23 January 2012 01:20:16 Simon Glass wrote: > On Fri, Jan 20, 2012 at 10:59 AM, Mike Frysinger wrote: > > On Tuesday 10 January 2012 19:45:47 Simon Glass wrote: > >> --- /dev/null > >> +++ b/arch/sandbox/include/asm/gpio.h > >> > >> +int sandbox_gpio_get_value(int gp); > > > > why bothe

Re: [U-Boot] [PATCH v2 8/8] sandbox: Add basic command line parsing

2012-01-24 Thread Mike Frysinger
On Monday 23 January 2012 01:30:52 Simon Glass wrote: > On Fri, Jan 20, 2012 at 11:05 AM, Mike Frysinger wrote: > > i'm not sure how useful -c is since we can already do: > > ./u-boot <<<"some command" > > > > each to their own i guess ... > > I had trouble getting that to work properly,

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

2012-01-24 Thread Mike Frysinger
On Monday 23 January 2012 01:48:52 Simon Glass wrote: > This provides a way for callers to create files for writing. We define > flags which mirror the POSIX values. there are no POSIX values, just names. the way the defines get interpreted is left up to implementations. > @@ -19,11 +24,7 @@ >

Re: [U-Boot] [PATCH] ARM: tegra: Define Tegra20 CAR binding

2012-01-24 Thread Stephen Warren
Peter De Schrijver wrote at Tuesday, January 24, 2012 2:53 AM: > What about the peripheral resets which are also handled by CAR? Peripheral > clock nodes also offer assert and deassert methods for the reset signal > associated with them. Those methods are used when powergating domains for > example

Re: [U-Boot] [PATCH] ARM: tegra: Define Tegra20 CAR binding

2012-01-24 Thread Colin Cross
On Tue, Jan 24, 2012 at 2:08 PM, Stephen Warren wrote: > Peter De Schrijver wrote at Tuesday, January 24, 2012 2:53 AM: >> What about the peripheral resets which are also handled by CAR? Peripheral >> clock nodes also offer assert and deassert methods for the reset signal >> associated with them.

Re: [U-Boot] [PATCH] ARM: tegra: Define Tegra20 CAR binding

2012-01-24 Thread Stephen Warren
Colin Cross wrote at Tuesday, January 24, 2012 3:33 PM: > On Tue, Jan 24, 2012 at 2:08 PM, Stephen Warren wrote: > > Peter De Schrijver wrote at Tuesday, January 24, 2012 2:53 AM: > >> What about the peripheral resets which are also handled by CAR? Peripheral > >> clock nodes also offer assert and

Re: [U-Boot] [PATCH v3 5/8] sandbox: Add concept of sandbox state

2012-01-24 Thread Mike Frysinger
On Monday 23 January 2012 01:48:50 Simon Glass wrote: > --- a/arch/sandbox/cpu/start.c > +++ b/arch/sandbox/cpu/start.c > > int main(int argc, char *argv[]) > { > + struct sandbox_state *state = NULL; > + int err; > + > + err = state_init(); > + if (!err) { > + state

Re: [U-Boot] [PATCH v2 3/8] sandbox: gpio: Add basic driver for simulating GPIOs

2012-01-24 Thread Mike Frysinger
On Tuesday 24 January 2012 16:35:00 Mike Frysinger wrote: > On Monday 23 January 2012 01:20:16 Simon Glass wrote: > > On Fri, Jan 20, 2012 at 10:59 AM, Mike Frysinger wrote: > > > On Tuesday 10 January 2012 19:45:47 Simon Glass wrote: > > >> --- /dev/null > > >> +++ b/arch/sandbox/include/asm/gpio.

Re: [U-Boot] [PATCH v4 0/20] tegra: Add fdt definitions and USB driver

2012-01-24 Thread Simon Glass
Hi, On Wed, Jan 11, 2012 at 8:32 PM, Simon Glass wrote: > This series brings in the Linux kernel fdt file and provides a working > USB driver for Tegra2 Seaboard. > > (I have done this in one series since otherwise most of the fdt additions > will just look like dead code.) > > The driver require

Re: [U-Boot] [PATCH v4 03/20] fdt: Add basic support for decoding GPIO definitions

2012-01-24 Thread Simon Glass
Hi Stephen, On Mon, Jan 23, 2012 at 10:18 AM, Stephen Warren wrote: > On 01/21/2012 10:08 AM, Simon Glass wrote: >> Hi Stephen, >> >> On Wed, Jan 18, 2012 at 2:17 PM, Stephen Warren wrote: >>> On 01/11/2012 09:32 PM, Simon Glass wrote: This adds some support into fdtdec for reading GPIO def

Re: [U-Boot] [PATCH v4 03/20] fdt: Add basic support for decoding GPIO definitions

2012-01-24 Thread Stephen Warren
Simon Glass wrote at Tuesday, January 24, 2012 4:12 PM: > On Mon, Jan 23, 2012 at 10:18 AM, Stephen Warren wrote: > > On 01/21/2012 10:08 AM, Simon Glass wrote: > >> Hi Stephen, > >> > >> On Wed, Jan 18, 2012 at 2:17 PM, Stephen Warren wrote: > >>> On 01/11/2012 09:32 PM, Simon Glass wrote: > >>>

Re: [U-Boot] [PATCH v4 03/20] fdt: Add basic support for decoding GPIO definitions

2012-01-24 Thread Simon Glass
Hi Stephen, On Tue, Jan 24, 2012 at 3:14 PM, Stephen Warren wrote: > Simon Glass wrote at Tuesday, January 24, 2012 4:12 PM: >> On Mon, Jan 23, 2012 at 10:18 AM, Stephen Warren wrote: >> > On 01/21/2012 10:08 AM, Simon Glass wrote: >> >> Hi Stephen, >> >> >> >> On Wed, Jan 18, 2012 at 2:17 PM, S

[U-Boot] [PATCH v5 0/18] tegra: Add fdt definitions and USB driver

2012-01-24 Thread Simon Glass
This series brings in the Linux kernel fdt file and provides a working USB driver for Tegra2 Seaboard. (I have done this in one series since otherwise most of the fdt additions will just look like dead code.) The driver requires CONFIG_OF_CONTROL and a device tree to operate. Some enhancements t

[U-Boot] [PATCH v5 03/18] arm: fdt: Add skeleton device tree file from kernel

2012-01-24 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git Signed-off-by: Simon Glass --- arch/arm/dts/skeleton.dtsi | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 arch/arm/dts/skeleton.dtsi diff --git a/arc

[U-Boot] [PATCH v5 12/18] usb: Add support for txfifo threshold

2012-01-24 Thread Simon Glass
CONFIG_USB_EHCI_TXFIFO_THRESH enables setting of the txfilltuning field in the EHCI controller on reset. Signed-off-by: Simon Glass Acked-by: Remy Bohmer --- README |3 +++ drivers/usb/host/ehci-hcd.c |7 +++ drivers/usb/host/ehci.h |6 +- 3 files c

[U-Boot] [PATCH v5 05/18] tegra: fdt: Add device tree file for Tegra2 Seaboard from kernel

2012-01-24 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git Signed-off-by: Simon Glass --- board/nvidia/dts/tegra2-seaboard.dts | 36 ++ 1 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 board/nvidia/

[U-Boot] [PATCH v5 01/18] fdt: Add basic support for decoding GPIO definitions

2012-01-24 Thread Simon Glass
This adds some support into fdtdec for reading GPIO definitions from the fdt. We permit up to FDT_GPIO_MAX GPIOs in the system. Each GPIO is of the form: gpio-function-name = ; where: phandle is a pointer to the GPIO node gpio_num is the number of the GPIO (0 to 223) flags is a flag, as follows:

[U-Boot] [PATCH v5 08/18] tegra: fdt: Add additional USB binding

2012-01-24 Thread Simon Glass
This adds a property to indicate a port which can switch between host and device mode. Signed-off-by: Simon Glass --- Changes in v5: - Add dr_mode property to control host/device/otg mode - Add nvidia,has-legacy-mode property per review comments doc/device-tree-bindings/usb/tegra-usb.txt | 12

[U-Boot] [PATCH v5 02/18] arm: fdt: Ensure that an embedded fdt is word-aligned

2012-01-24 Thread Simon Glass
By putting the fdt blob into a distinctive area we can ensure that it appears at the start of the data section and is word-aligned. Note: It does not seem to be possible to get objcopy to honour its --section-alignment flag, which would otherwise provide an easier fix for this problem. Signed-off

[U-Boot] [PATCH v5 04/18] tegra: fdt: Add Tegra2x device tree file from kernel

2012-01-24 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git config.mk is updated to provide this file to boards through the built-in mechanism: /include/ ARCH_CPU_DTS Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/tegra2/config.mk |2 + arch/arm

[U-Boot] [PATCH v5 17/18] tegra: usb: Enable USB on Seaboard

2012-01-24 Thread Simon Glass
Seaboard has a top port which is USB host or device, and a side port which is host only. Signed-off-by: Simon Glass --- Changes in v2: - Remove unneeded CONFIG_TEGRA_USBx defines include/configs/seaboard.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/co

[U-Boot] [PATCH v5 13/18] fdt: Add function to return peripheral/clock ID

2012-01-24 Thread Simon Glass
A common requirement is to find the clock ID for a peripheral. This is the second cell of the 'clocks' property (the first being the phandle itself). Signed-off-by: Simon Glass --- Changes in v4: - Add fdtdec function to return peripheral ID include/fdtdec.h | 13 + lib/fdtdec.c

[U-Boot] [PATCH v5 10/18] tegra: usb: fdt: Add additional device tree definitions for USB ports

2012-01-24 Thread Simon Glass
This adds clock references to the USB part of the device tree for U-Boot. The USB timing information may vary between boards sometimes, but for now we hard-code it in C. This is because all current T2x boards use the same values, we will deal with T3x later and we first need to agree on the format

[U-Boot] [PATCH v5 06/18] fdt: Add staging area for device tree binding documentation

2012-01-24 Thread Simon Glass
Add a directory to hold device tree binding files, to permit easy review of this material in U-Boot patches. Signed-off-by: Simon Glass --- Changes in v4: - Add staging area for device tree bindings used in U-Boot Changes in v5: - Update README to indicate that we will commit fdt documentation t

[U-Boot] [PATCH v5 09/18] tegra: fdt: Add clock bindings

2012-01-24 Thread Simon Glass
This adds a basic binding for the oscillator and peripheral clocks. The second cell is the clock number, defined as the bit number within the clock enable register if the peripheral clock. This uses the RFC clock bindings from Grant Likely so may change later: https://lkml.org/lkml/2011/12/12/498

[U-Boot] [PATCH v5 16/18] tegra: usb: Add common USB defines for tegra2 boards

2012-01-24 Thread Simon Glass
All Tegra2 boards should include tegra2-common. This adds the required USB config to that file. Signed-off-by: Simon Glass --- Changes in v5: - Add CONFIG_EHCI_DCACHE which is needed for dcache operation - Drop unused CONFIG_USB_EHCI_DATA_ALIGN option include/configs/tegra2-common.h | 10

[U-Boot] [PATCH v5 18/18] tegra: fdt: Enable FDT support for Seaboard

2012-01-24 Thread Simon Glass
This switches Seaboard over to use FDT for run-time config instead of CONFIG options. USB is the only user at present. Signed-off-by: Simon Glass --- Changes in v3: - Drop Tegra USB alignment patch as we will deal with this another way include/configs/seaboard.h |5 + 1 files changed, 5

[U-Boot] [PATCH v5 15/18] tegra: usb: Add USB support to nvidia boards

2012-01-24 Thread Simon Glass
This adds basic USB support for port 0. The other port is not supported yet. Tegra2 (SeaBoard) # usb start (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 5 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Tegra2 (

[U-Boot] [PATCH v5 11/18] tegra: usb: fdt: Add USB definitions for Tegra2 Seaboard

2012-01-24 Thread Simon Glass
We set up two USB ports, one of which can be host or device. For some reason the kernel version does enable both ports. Signed-off-by: Simon Glass --- Changes in v2: - Remove 0x from fdt aliases - Use "okay" instead of "ok" for fdt node status Changes in v3: - Disable USB2 which is not used on S

[U-Boot] [PATCH v5 07/18] fdt: Add tegra-usb bindings file from linux

2012-01-24 Thread Simon Glass
This file is taken from the Linux mailing list. Signed-off-by: Simon Glass --- doc/device-tree-bindings/usb/tegra-usb.txt | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 doc/device-tree-bindings/usb/tegra-usb.txt diff --git a/doc/device-tree-bindings

[U-Boot] [PATCH v5 14/18] tegra: usb: Add support for Tegra USB peripheral

2012-01-24 Thread Simon Glass
This adds basic support for the Tegra2 USB controller. Board files should call board_usb_init() to set things up. Configuration is performed through the FDT, with aliases used to set the order of the ports, like this fragment: aliases { /* This defines the order of our USB

Re: [U-Boot] [RFC] mx28: Fix reboot from the kernel

2012-01-24 Thread Marek Vasut
> When running Linux on a mx28evk and issuing a 'reboot'command the following > behaviour is observed: > > root@freescale /$ reboot > starting pid 329, tty '': '/etc/rc.d/rcS stop' > root@freescale /$ Stopping inetd: > Terminated > Unmounting filesystems > umount: tmpfs busy - remounted read-only

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

2012-01-24 Thread Marek Vasut
> From: Marek Vasut > > Signed-off-by: Marek Vasut > Signed-off-by: Vasily Khoruzhick > --- > v2: use struct-based access to regs, minor cleanup > v3: fix multiple keypresses handling, minor cleanup > v4: another minor cleanup > v5: fix indentation issues in scan_keys(), remove udelay, > in

Re: [U-Boot] [RFC] mx28: Fix reboot from the kernel

2012-01-24 Thread Fabio Estevam
On Tue, Jan 24, 2012 at 9:48 PM, Marek Vasut wrote: > Can you explain why this patch fixes anything ? It's hard to understand why > doing this would fix it. Yes, I agree and that's why I marked it as RFC and please also see my comments below the --- line. I don't understand the reason for the f

Re: [U-Boot] [RFC] mx28: Fix reboot from the kernel

2012-01-24 Thread Marek Vasut
> On Tue, Jan 24, 2012 at 9:48 PM, Marek Vasut wrote: > > Can you explain why this patch fixes anything ? It's hard to understand > > why doing this would fix it. > > Yes, I agree and that's why I marked it as RFC and please also see my > comments below the --- line. > > I don't understand the r

Re: [U-Boot] [RFC] mx28: Fix reboot from the kernel

2012-01-24 Thread Fabio Estevam
On Tue, Jan 24, 2012 at 11:25 PM, Marek Vasut wrote: > Now that IS CREEPY. You mean like ... just anything ? Or does the code > executed > before need to be exactly long or longer than something ? Yes, my tests show that anything prior to mxs_iomux_setup_multiple_pads makes reboot to work. I a

Re: [U-Boot] [RFC] mx28: Fix reboot from the kernel

2012-01-24 Thread Marek Vasut
> On Tue, Jan 24, 2012 at 11:25 PM, Marek Vasut wrote: > > Now that IS CREEPY. You mean like ... just anything ? Or does the code > > executed before need to be exactly long or longer than something ? > > Yes, my tests show that anything prior to > mxs_iomux_setup_multiple_pads makes reboot to wo

Re: [U-Boot] [PATCH 1/2] S5P: support generic watchdog timer

2012-01-24 Thread Minkyu Kang
On 18 January 2012 16:21, Minkyu Kang wrote: > This patch adds support the generic watchdog timer for s5pc1xx and exynos4 > > Signed-off-by: Minkyu Kang > Signed-off-by: Kyungmin Park > Cc: HeungJun, Kim > --- >  arch/arm/cpu/armv7/s5p-common/Makefile       |    1 + >  arch/arm/cpu/armv7/s5p-co

Re: [U-Boot] [PATCH 2/2] TRATS: use the generic watchdog timer

2012-01-24 Thread Minkyu Kang
On 18 January 2012 16:21, Minkyu Kang wrote: > Signed-off-by: Minkyu Kang > Signed-off-by: Kyungmin Park > Cc: HeungJun, Kim > --- >  board/samsung/trats/trats.c |   11 +-- >  1 files changed, 1 insertions(+), 10 deletions(-) > applied to u-boot-samsung. Minkyu Kang. -- from. prom. w

Re: [U-Boot] [PATCH] ORIGEN: remove duplicated MACH_TYPE define

2012-01-24 Thread Minkyu Kang
On 18 January 2012 17:42, Minkyu Kang wrote: > Since MACH_TYPE_ORIGEN is updated on mach-types, > remove the MACH_TYPE_ORIGEN on config file. > > Signed-off-by: Minkyu Kang > Cc: Chander Kashyap > --- >  include/configs/origen.h |    2 -- >  1 files changed, 0 insertions(+), 2 deletions(-) > ap

Re: [U-Boot] [PATCH v4 3/4] EXYNOS: Add SMDK5250 board support

2012-01-24 Thread Chander Kashyap
Hi, There are some changes in previous patch set. > diff --git a/board/samsung/smdk5250/smdk5250.c > b/board/samsung/smdk5250/smdk5250.c > new file mode 100644 > index 000..2684620 > --- /dev/null > +++ b/board/samsung/smdk5250/smdk5250.c > @@ -0,0 +1,152 @@ > +/* > + * Copyright (C) 2011 Sam

[U-Boot] [PATCH v5 4/4] EXYNOS: SMDK5250: Add MMC SPL support

2012-01-24 Thread Chander Kashyap
This patch adds support for MMC SPL booting. Signed-off-by: Chander Kashyap --- Changes for v2: - None Changes for v3: - None Changes for v4: - None Changes for v5: - None board/samsung/smdk5250/Makefile | 16 board/samsung/smdk5250/mmc_boot.

[U-Boot] [PATCH v5 0/4] Add SMDK5250 board support

2012-01-24 Thread Chander Kashyap
This patchset add support for Samsung's SMDK5250 board based on EXYNOS5250 based SoC. It also adds support for MMC SPL booting. The porting is done by Samsung engineers at HQ in System LSI Team. I am contributing in upstreaming the code for the board. Based upon discussions following patches are

[U-Boot] [PATCH v5 2/4] ARM: EXYNOS: Add support for Exynos5 based SoCs

2012-01-24 Thread Chander Kashyap
Samsung's ARM Cortex-A15 based SoCs are known as Exynos5 series of SoCs. This patch adds the support for Exynos5. Signed-off-by: Chander Kashyap --- Changes for v2: - This patch was part of "EXYNOS: Add SMDK5250 board support" - Now it is seprated as SoC support. Changes for v3:

[U-Boot] [PATCH v5 1/4] Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro

2012-01-24 Thread Chander Kashyap
CONFIG_SYS_CLK_FREQ_C210 macro giving notion of S5PC2XX (Exynos4) architecture. Replace CONFIG_SYS_CLK_FREQ_C210 with CONFIG_SYS_CLK_FREQ to make it generic for exynos architecture. Signed-off-by: Chander Kashyap --- Changes for v2: - None Changes for v3: - None Changes for V4:

[U-Boot] [PATCH v5 3/4] EXYNOS: Add SMDK5250 board support

2012-01-24 Thread Chander Kashyap
SMDK5250 board is based on Samsungs EXYNOS5250 SoC. Signed-off-by: Chander Kashyap --- Changes for v2: - This patch is bifurcated into borad support and SoC support - Fixed typo: s/EEYNOS/EXYNOS - Squashed patch "SMDK5250: enable device tree support" in this. Changes for v

  1   2   >