Re: [U-Boot] Problems with a P2020 board

2012-09-27 Thread Mark Marshall
Hi. For the bootcount register, we wanted something that was only reset at power on (or never reset). We didn't find a suitable register in the P2020, and freescale support seemed to agree that there was no such register. (I'm now using a couple of alarm registers fromthe I2C RTC, a hack...)

Re: [U-Boot] [PATCH v2 1/2] arm/km: add mv88e6352 configuration for kmnusa

2012-09-27 Thread Prafulla Wadaskar
> -Original Message- > From: Prafulla Wadaskar > Sent: 21 August 2012 12:01 > To: 'Valentin Longchamp'; u-boot@lists.denx.de > Cc: Holger Brunck > Subject: RE: [PATCH v2 1/2] arm/km: add mv88e6352 configuration for > kmnusa > > > > > -Original Message- > > From: Valentin Longch

Re: [U-Boot] [PATCH 2/2] km_kirkwood: enable MV88E6352_SWITCH support for kmnusa

2012-09-27 Thread Prafulla Wadaskar
> -Original Message- > From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] > Sent: 16 August 2012 16:55 > To: u-boot@lists.denx.de > Cc: holger.bru...@keymile.com; Prafulla Wadaskar; > valentin.longch...@keymile.com > Subject: [PATCH 2/2] km_kirkwood: enable MV88E6352_SWITCH

Re: [U-Boot] [PATCH] edminiv2: increase malloc len to 256K

2012-09-27 Thread Prafulla Wadaskar
> -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > boun...@lists.denx.de] On Behalf Of Albert ARIBAUD > Sent: 22 September 2012 06:27 > To: u-boot@lists.denx.de > Subject: [U-Boot] [PATCH] edminiv2: increase malloc len to 256K > > Malloc len of 128K caused a warn

Re: [U-Boot] [PATCH v4 2/2] ARM: kirkwood/orion5x: Use reset_cpu definition in include/common.h

2012-09-27 Thread Prafulla Wadaskar
> -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > boun...@lists.denx.de] On Behalf Of Pavel Machek > Sent: 25 September 2012 17:57 > To: dingu...@altera.com > Cc: ma...@denx.de; dinh.li...@gmail.com; cl...@altera.com; u- > b...@lists.denx.de; tr...@ti.com; s...@d

Re: [U-Boot] [RFC PATCH v2 1/5] env: Add support for callbacks to environment vars

2012-09-27 Thread Marek Vasut
Dear Joe Hershberger, [...] > + . = .; > + __u_boot_env_clbk_start = .; > + .u_boot_env_clbk : { *(.u_boot_env_clbk) } > + __u_boot_env_clbk_end = .; > + > + . = ALIGN(4); > + [...] Can you make some use of the LG-array patches ? Best regards, Marek Vasut ___

Re: [U-Boot] [PATCH v3 06/18] tegra: fdt: Add LCD definitions for Tegra

2012-09-27 Thread Thierry Reding
On Thu, Sep 27, 2012 at 04:37:41PM -0700, Simon Glass wrote: > Hi Stephen, > > On Thu, Sep 27, 2012 at 4:21 PM, Stephen Warren wrote: > > On 09/27/2012 02:27 PM, Simon Glass wrote: > >> On Thu, Sep 27, 2012 at 8:49 AM, Stephen Warren > >> wrote: > >>> On 09/27/2012 07:58 AM, Simon Glass wrote:

Re: [U-Boot] [PATCH] tools: Add cleanpatch

2012-09-27 Thread Marek Vasut
Dear Fabio Estevam, > From: Fabio Estevam > > There are some errors reported by checkpatch.pl that can be easily cleaned > up by using the cleanpatch tool. > > Import the cleanpatch script from linux kernel 3.5.4 stable version. Sweet %^) Can you add the revision of the file from Linux kernel

[U-Boot] [PATCH] tools: Add cleanpatch

2012-09-27 Thread Fabio Estevam
From: Fabio Estevam There are some errors reported by checkpatch.pl that can be easily cleaned up by using the cleanpatch tool. Import the cleanpatch script from linux kernel 3.5.4 stable version. Signed-off-by: Fabio Estevam --- tools/cleanpatch | 258 +

Re: [U-Boot] Custodians, Maintainers and old platforms

2012-09-27 Thread R, Sricharan
Hi Tom, [snip] > (I had attempted to bcc this to all listed maintainer, but that upset > Google greatly. I'll send this out manually instead later). > > I'd like to put this out here for custodians and maintainers to > consider, especially in light of the device model work that's not just > comin

[U-Boot] [PATCH] arm: fdt: Relocate fdt along with other data

2012-09-27 Thread Simon Glass
Rather than leave the fdt down next to the code/data, we really should relocate it along with everything else. For CONFIG_OF_EMBED this happens automatically, but for CONFIG_OF_SEPARATE it does not. Add code to copy the fdt and point to the new copy after relocation. Signed-off-by: Simon Glass -

[U-Boot] [PATCH] patman: Handle checkpatch.pl not providing file/line info

2012-09-27 Thread Simon Glass
Sometimes we don't get a valid filename or line number from checkpatch.pl, for example if the patch is in a bad format. Deal with this by using a default value, rather than a stack trace. Signed-off-by: Simon Glass --- tools/patman/checkpatch.py |5 +++-- 1 files changed, 3 insertions(+), 2

[U-Boot] [PATCH 4/4] input: Add debugging for key matrix key codes

2012-09-27 Thread Simon Glass
These are read from the fdt - add a debug feature to display the mapping on start-up. See that we get debug output listing the keycodes Signed-off-by: Simon Glass --- drivers/input/key_matrix.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/input/key_matrix.c

[U-Boot] [PATCH 2/4] input: Separate out keyboard repeat/delay from init

2012-09-27 Thread Simon Glass
It is inconvenient to have to specify the keyboard repeat and delay at init time if it is not yet available, so move this into a separate function. Some drivers will want to do this when their keyboard init routine is actually called. Signed-off-by: Simon Glass --- drivers/input/input.c |

[U-Boot] [PATCH 3/4] input: Allow key ghosting filter to be disabled

2012-09-27 Thread Simon Glass
Some keyboards will not need a key ghosting filter, so make this feature optional. Signed-off-by: Simon Glass --- drivers/input/key_matrix.c |9 +++-- drivers/input/tegra-kbc.c |2 +- include/key_matrix.h |5 - 3 files changed, 12 insertions(+), 4 deletions(-) diff --

[U-Boot] [PATCH 1/4] input: Correct key_matrix fdt decoding

2012-09-27 Thread Simon Glass
Some issues with this were not addressed in the previous series. Fix up the binding decoding to deal with what is actually expected in the fdt. This corrects the broken keyboard on seaboard. Signed-off-by: Simon Glass --- drivers/input/key_matrix.c | 11 +++ 1 files changed, 7 inserti

[U-Boot] [PATCH 0/4] Keyboard input improvements

2012-09-27 Thread Simon Glass
This is a small series of patches to improve keyboard input for matrix keyboards: - Fix an fdt decoding bug which breaks seaboard - Permit key repeat/delay to be altered after init - Allow key ghosting filter to be enabled/disabled - Add a bit more debugging Since this series mostly affects tegra

[U-Boot] [PATCH v4 02/16] tegra: Add display support to funcmux

2012-09-27 Thread Simon Glass
Add support for a default pin mapping for display1. Signed-off-by: Simon Glass --- Changes in v2: - Use const where possible in funcmux Changes in v3: - Remove LPW1 pin which is not needed by display arch/arm/cpu/tegra20-common/funcmux.c | 37 + 1 files change

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

2012-09-27 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, taken from pwm bindings that should be in lin

[U-Boot] [PATCH] patman: Support Series-name tag to name a series

2012-09-27 Thread Simon Glass
Sometimes it is possible to forget the name of the branch you used to generate an upstream series. To assist with this, add an optional patman does not use this. Signed-off-by: Simon Glass --- tools/patman/README|5 + tools/patman/series.py |4 ++-- 2 files changed, 7 insertions(

[U-Boot] [PATCH] MAKEALL: add a -C/--check option to enable build checking

2012-09-27 Thread Kim Phillips
thanks to Tom Rini for the good idea. Signed-off-by: Kim Phillips --- MAKEALL | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MAKEALL b/MAKEALL index 806f21f..fa7d010 100755 --- a/MAKEALL +++ b/MAKEALL @@ -19,6 +19,7 @@ usage() -l,--list

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

2012-09-27 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 v4 01/16] tegra: Use const for pinmux_config_pingroup/table()

2012-09-27 Thread Simon Glass
These two functions don't actually modify their arguments so add a const keyword. Signed-off-by: Simon Glass Acked-by: Mike Frysinger --- Changes in v2: - Add new patch to use const in pinmux_config_pingroup/table() arch/arm/cpu/tegra20-common/pinmux.c |4 ++-- arch/arm/include/asm/a

[U-Boot] [PATCH v4 11/16] lcd: Add support for flushing LCD fb from dcache after update

2012-09-27 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 --- Changes in v2: - Put the LCD cache flush logic into lcd_putc() instead of lcd_puts() Changes in v3: - Put the LCD cache flush logic back into lcd_puts() Changes in v

[U-Boot] [PATCH v4 07/16] tegra: Add LCD driver

2012-09-27 Thread Simon Glass
This driver supports driving a single LCD and providing a U-Boot console on it. Signed-off-by: Simon Glass --- Changes in v2: - Update LCD driver to deal with new fdt bindings Changes in v3: - Move some fdt decode code from LCD driver to SOC display driver - Rename fdt config structures - Use ne

[U-Boot] [PATCH v4 09/16] arm: Add control over cachability of memory regions

2012-09-27 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 v4 03/16] tegra: fdt: Add pwm binding and node

2012-09-27 Thread Simon Glass
This binding will apparently soon be in linux-next. Bring it in now since we need to do something, and may as well try to target what Linux will have. Signed-off-by: Simon Glass --- Changes in v3: - Add new commit for pwm binding and node arch/arm/dts/tegra20.dtsi|7

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

2012-09-27 Thread Simon Glass
From: Mayuresh Kulkarni Enable the Seaboard's 16-bit LCD and use it as the console. Signed-off-by: Mayuresh Kulkarni Signed-off-by: Simon Glass --- Changes in v4: - Add CONFIG_BOARD_LATE_INIT to enable LCD - Use CONFIG_CONSOLE_SCROLL_LINES instead of CONSOLE_SCROLL_LINES - Enable separate CONF

[U-Boot] [PATCH v4 13/16] tegra: Support control of cache settings for LCD

2012-09-27 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 --- Changes in v3: - Handle a cached frame buffer out of normal U-Boot memory drivers/video/tegra.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-)

[U-Boot] [PATCH v4 10/16] lcd: Add CONFIG_LCD_ALIGNMENT to select frame buffer alignment

2012-09-27 Thread Simon Glass
The normal alignment is PAGE_SIZE, but if this is defined, we can support other alignments. The motivation for this change is to make the display section-aligned on ARM so that we can easily turn off data caching for the frame buffer region without resorting to level 2 page tables. Signed-off-by:

[U-Boot] [PATCH v4 06/16] tegra: Add SOC support for display/lcd

2012-09-27 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. Signed-off-by: Mayuresh Kulkarni Mayuresh Kulkarni: - changes to remove bitfields and clean up for submission Signed-off-by: Simon Glass Simon G

[U-Boot] [PATCH v4 08/16] tegra: Add LCD support to Nvidia boards

2012-09-27 Thread Simon Glass
Add calls to the LCD driver from Nvidia board code. Signed-off-by: Simon Glass --- Changes in v3: - Add separate call to pwm_init() in board_init() Changes in v4: - Change order of LCD init so that PWM comes first board/nvidia/common/board.c | 21 - 1 files changed, 20 in

[U-Boot] [PATCH v4 05/16] tegra: Add support for PWM

2012-09-27 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 --- Changes in v3: - Rename pwfm driver to pwm - Use new proposed upstream pwm binding - Decode fdt node within the pwm driver - Introduce

[U-Boot] [PATCH v4 12/16] tegra: Align LCD frame buffer to section boundary

2012-09-27 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 --- Changes in v2: - Align tegra display using new CONFIG_LCD_ALIGNMENT feature include/configs/tegra20-common.h |3 +++

[U-Boot] [PATCH v4 14/16] tegra: fdt: Add LCD definitions for Seaboard

2012-09-27 Thread Simon Glass
The Seaboard has a 1366x768 16bpp LCD. The backlight is controlled by one of the PWMs. Signed-off-by: Simon Glass --- Changes in v2: - Update seaboard LCD definitions for new fdt binding Changes in v3: - Use new upstream proposed LCD definitions Changes in v4: - Adjust LCD fdt nodes for new bin

[U-Boot] [PATCH v4 04/16] tegra: fdt: Add LCD definitions for Tegra

2012-09-27 Thread Simon Glass
Add LCD definitions and also a proposed binding for LCD displays. The PWM is as per what will likely be committed to linux-next soon. The displaymode binding comes from a proposal here: http://lists.freedesktop.org/archives/dri-devel/2012-July/024875.html The panel binding is new, and fills a n

Re: [U-Boot] KernelDoc

2012-09-27 Thread Marek Vasut
Dear Scott Wood, > On 09/26/2012 10:26:55 AM, Marek Vasut wrote: > > Dear Wolfgang Denk, > > > > > Dear Marek, > > > - Will we make this mandatory? So that we will reject all new code > > > > > > that is not documented according to kernel-doc rules? > > > > Yes please, make it mandatory. Oth

Re: [U-Boot] KernelDoc

2012-09-27 Thread Marek Vasut
Dear Graeme Russ, > Hi All, > > A bit late on the bandwagon, but for what it is worth I have thought > any form of officially sanctioned (and encouraged) in-line > documentation would be 'A Good Thing'(tm) +1 > I had a quick look at kerneldoc and doxygen and while doxygen is far > more powerful

Re: [U-Boot] KernelDoc

2012-09-27 Thread Scott Wood
On 09/26/2012 10:26:55 AM, Marek Vasut wrote: Dear Wolfgang Denk, > Dear Marek, > - Will we make this mandatory? So that we will reject all new code > that is not documented according to kernel-doc rules? Yes please, make it mandatory. Otherwise people won't obey and the documentation wil

[U-Boot] New patch tracking tool - where to now?

2012-09-27 Thread Graeme Russ
Hi All, A while ago I wrote this: http://www.denx.de/wiki/U-Boot/ToolsPatchTracking Where to now (brown cow)? Regards, Graeme ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] KernelDoc

2012-09-27 Thread Graeme Russ
Hi All, A bit late on the bandwagon, but for what it is worth I have thought any form of officially sanctioned (and encouraged) in-line documentation would be 'A Good Thing'(tm) I had a quick look at kerneldoc and doxygen and while doxygen is far more powerful, it's also a lot less 'natural' as a

Re: [U-Boot] [PATCH] add check infrastructure, default sparse

2012-09-27 Thread Tom Rini
On Fri, Sep 21, 2012 at 05:28:17PM -0500, Kim Phillips wrote: > Add support for running source code checkers on u-boot source, e.g., > using sparse to aid with typechecking. This comes in especially > handy as SoC vendors mix and match cores and devices with different > endianness, thus here we a

Re: [U-Boot] [PATCH 1/2] tegra: clean up board include hell

2012-09-27 Thread Simon Glass
Hi Stephen, On Thu, Sep 27, 2012 at 4:25 PM, Stephen Warren wrote: > On 09/27/2012 04:59 PM, Simon Glass wrote: >> Hi, >> >> On Thu, Sep 27, 2012 at 3:32 PM, Stephen Warren >> wrote: >>> On 09/27/2012 03:52 PM, Lucas Stach wrote: The prototypes used in board files were all scattered out, w

Re: [U-Boot] [PATCH v3 06/18] tegra: fdt: Add LCD definitions for Tegra

2012-09-27 Thread Simon Glass
Hi Stephen, On Thu, Sep 27, 2012 at 4:21 PM, Stephen Warren wrote: > On 09/27/2012 02:27 PM, Simon Glass wrote: >> On Thu, Sep 27, 2012 at 8:49 AM, Stephen Warren >> wrote: >>> On 09/27/2012 07:58 AM, Simon Glass wrote: > ... Really this is just a way of getting U-Boot and Linux to agree o

Re: [U-Boot] [PATCH 1/2] tegra: clean up board include hell

2012-09-27 Thread Stephen Warren
On 09/27/2012 04:59 PM, Simon Glass wrote: > Hi, > > On Thu, Sep 27, 2012 at 3:32 PM, Stephen Warren wrote: >> On 09/27/2012 03:52 PM, Lucas Stach wrote: >>> The prototypes used in board files were all scattered out, which lead to >>> code duplication between SPL and normal U-Boot and some protot

Re: [U-Boot] [PATCH v3 06/18] tegra: fdt: Add LCD definitions for Tegra

2012-09-27 Thread Stephen Warren
On 09/27/2012 02:27 PM, Simon Glass wrote: > On Thu, Sep 27, 2012 at 8:49 AM, Stephen Warren wrote: >> On 09/27/2012 07:58 AM, Simon Glass wrote: ... >>> Really this is just a way of getting U-Boot and Linux to agree on the >>> address, by having U-Boot know the address that the kernel will happen

Re: [U-Boot] [PATCH v1 2/4] mpc83xx: add support for mpc8309

2012-09-27 Thread Kim Phillips
On Thu, 27 Sep 2012 09:21:19 +0200 Gerlando Falauto wrote: > On 09/27/2012 03:22 AM, Kim Phillips wrote: > > On Wed, 26 Sep 2012 10:28:08 +0200 > > Gerlando Falauto wrote: > > > >> - CONFIG_MPC83XX_FEAT_QE > > > > this could be CONFIG_QE but should probably be CONFIG_HAS_FSL_QE > > which doesn

Re: [U-Boot] [PATCH] tegra: add funcmux entry for NAND attached to KBC

2012-09-27 Thread Stephen Warren
On 09/27/2012 05:04 PM, Lucas Stach wrote: > Secondary config for the Flash attachment. Acked-by: Stephen Warren ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] tegra: add Colibri T20 board support

2012-09-27 Thread Lucas Stach
Am Donnerstag, den 27.09.2012, 17:09 -0600 schrieb Stephen Warren: > On 09/27/2012 05:03 PM, Lucas Stach wrote: > > Am Donnerstag, den 27.09.2012, 16:49 -0600 schrieb Stephen Warren: > >> On 09/27/2012 03:52 PM, Lucas Stach wrote: > >>> This adds board support for the Toradex Colibri T20 module. >

Re: [U-Boot] [PATCH] tegra: add Colibri T20 board support

2012-09-27 Thread Stephen Warren
On 09/27/2012 05:03 PM, Lucas Stach wrote: > Am Donnerstag, den 27.09.2012, 16:49 -0600 schrieb Stephen Warren: >> On 09/27/2012 03:52 PM, Lucas Stach wrote: >>> This adds board support for the Toradex Colibri T20 module. >>> >>> Working functions: >>> - MMC boot >>> - USB boot >>> - Network >>> -

Re: [U-Boot] [PATCH 2/2] tegra: nand: add board pinmux

2012-09-27 Thread Simon Glass
Hi, On Thu, Sep 27, 2012 at 3:38 PM, Stephen Warren wrote: > On 09/27/2012 03:52 PM, Lucas Stach wrote: >> Boards may require a different pinmux setup for NAND than the default one. >> Add a way to call into board specific code to set this up. > >> diff --git a/drivers/mtd/nand/tegra_nand.c b/dri

[U-Boot] [PATCH] tegra: add funcmux entry for NAND attached to KBC

2012-09-27 Thread Lucas Stach
Secondary config for the Flash attachment. Signed-off-by: Lucas Stach --- arch/arm/cpu/tegra20-common/funcmux.c | 19 ++- arch/arm/include/asm/arch-tegra20/funcmux.h | 1 + 2 Dateien geändert, 19 Zeilen hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/arch/arm/cpu/tegra20

Re: [U-Boot] [PATCH] tegra: add Colibri T20 board support

2012-09-27 Thread Lucas Stach
Am Donnerstag, den 27.09.2012, 16:49 -0600 schrieb Stephen Warren: > On 09/27/2012 03:52 PM, Lucas Stach wrote: > > This adds board support for the Toradex Colibri T20 module. > > > > Working functions: > > - MMC boot > > - USB boot > > - Network > > - NAND environment > > > diff --git a/board/to

Re: [U-Boot] [PATCH 1/2] tegra: clean up board include hell

2012-09-27 Thread Simon Glass
Hi, On Thu, Sep 27, 2012 at 3:32 PM, Stephen Warren wrote: > On 09/27/2012 03:52 PM, Lucas Stach wrote: >> The prototypes used in board files were all scattered out, which lead to >> code duplication between SPL and normal U-Boot and some prototypes not >> actually >> being used. Consolidate thi

Re: [U-Boot] [PATCH] tegra: add Colibri T20 board support

2012-09-27 Thread Stephen Warren
On 09/27/2012 03:52 PM, Lucas Stach wrote: > This adds board support for the Toradex Colibri T20 module. > > Working functions: > - MMC boot > - USB boot > - Network > - NAND environment > diff --git a/board/toradex/colibri_t20/colibri_t20.c > b/board/toradex/colibri_t20/colibri_t20.c > +#ifdef

[U-Boot] [RFC PATCH v2 1/5] env: Add support for callbacks to environment vars

2012-09-27 Thread Joe Hershberger
Add support for callbacks to the "hashtable" functions. One check-patch warning to inter-op with existing hashtable code: WARNING: do not add new typedefs +typedef struct entry ENTRY; Signed-off-by: Joe Hershberger --- Changes in v2: - Added much-needed documentation - Factored out prevch and ne

[U-Boot] [RFC PATCH v2 4/5] env: Add a baudrate env handler

2012-09-27 Thread Joe Hershberger
Remove the hard-coded baudrate handler and use a callback instead Signed-off-by: Joe Hershberger --- common/Makefile| 2 +- common/cmd_nvedit.c| 35 -- common/serial.c| 58 ++ include/env_callback.h

[U-Boot] [RFC PATCH v2 2/5] env: Add a loadaddr env handler

2012-09-27 Thread Joe Hershberger
Remove the hard-coded loadaddr handler and use a callback instead Signed-off-by: Joe Hershberger --- common/cmd_load.c | 24 ++-- common/cmd_nvedit.c| 10 +- include/env_callback.h | 1 + 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/comm

[U-Boot] [RFC PATCH v2 5/5] env: Add a console env handler

2012-09-27 Thread Joe Hershberger
Remove the hard-coded console handler and use a callback instead Signed-off-by: Joe Hershberger --- common/cmd_nvedit.c| 31 --- common/console.c | 46 ++ include/env_callback.h | 1 + 3 files changed, 47 insert

[U-Boot] [RFC PATCH v2 3/5] env: Add a bootfile env handler

2012-09-27 Thread Joe Hershberger
Remove the hard-coded bootfile handler and use a callback instead Signed-off-by: Joe Hershberger --- common/cmd_nvedit.c| 13 - include/env_callback.h | 2 +- net/net.c | 16 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/common/c

[U-Boot] [RFC PATCH v2 0/5] Add environment call-back capability

2012-09-27 Thread Joe Hershberger
When a variable with a registered callback is inserted, deleted, or overwritten the callback is called and gives the system an opportunity to do something in response to the change. It also has the opportunuty to reject the change by returning non-zero. Before I go much further, I want to get a

Re: [U-Boot] [PATCH 1/2] tegra: clean up board include hell

2012-09-27 Thread Lucas Stach
Am Donnerstag, den 27.09.2012, 16:32 -0600 schrieb Stephen Warren: > On 09/27/2012 03:52 PM, Lucas Stach wrote: > > The prototypes used in board files were all scattered out, which lead to > > code duplication between SPL and normal U-Boot and some prototypes not > > actually > > being used. Conso

Re: [U-Boot] [PATCH 2/2] tegra: nand: add board pinmux

2012-09-27 Thread Stephen Warren
On 09/27/2012 03:52 PM, Lucas Stach wrote: > Boards may require a different pinmux setup for NAND than the default one. > Add a way to call into board specific code to set this up. > diff --git a/drivers/mtd/nand/tegra_nand.c b/drivers/mtd/nand/tegra_nand.c > void board_nand_init(void) > { >

Re: [U-Boot] [PATCH 1/2] tegra: clean up board include hell

2012-09-27 Thread Stephen Warren
On 09/27/2012 03:52 PM, Lucas Stach wrote: > The prototypes used in board files were all scattered out, which lead to > code duplication between SPL and normal U-Boot and some prototypes not > actually > being used. Consolidate this in a common board header. > This will allow to push down the cal

Re: [U-Boot] [PATCH] nand: add ID for Micron MT29F8G08A

2012-09-27 Thread Scott Wood
On 09/27/2012 05:19:23 PM, Lucas Stach wrote: Am Donnerstag, den 27.09.2012, 17:13 -0500 schrieb Scott Wood: > On 09/27/2012 05:08:03 PM, Lucas Stach wrote: > > Am Donnerstag, den 27.09.2012, 16:53 -0500 schrieb Scott Wood: > > > On 09/27/2012 04:49:31 PM, Lucas Stach wrote: > > > > As found on t

[U-Boot] [PATCH v3] usb: ehci: don't print debug output

2012-09-27 Thread Lucas Stach
This is clearly some sort of debug output and should not be printed during normal operation. Signed-off-by: Lucas Stach --- v2,v3: rebased on top of u-boot-usb/master --- drivers/usb/host/ehci-hcd.c | 2 +- 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/drivers/usb/h

Re: [U-Boot] [PATCH] nand: add ID for Micron MT29F8G08A

2012-09-27 Thread Lucas Stach
Am Donnerstag, den 27.09.2012, 17:13 -0500 schrieb Scott Wood: > On 09/27/2012 05:08:03 PM, Lucas Stach wrote: > > Am Donnerstag, den 27.09.2012, 16:53 -0500 schrieb Scott Wood: > > > On 09/27/2012 04:49:31 PM, Lucas Stach wrote: > > > > As found on the Colibri T20 engineering sample board. > > > >

Re: [U-Boot] [PATCH] nand: add ID for Micron MT29F8G08A

2012-09-27 Thread Scott Wood
On 09/27/2012 05:08:03 PM, Lucas Stach wrote: Am Donnerstag, den 27.09.2012, 16:53 -0500 schrieb Scott Wood: > On 09/27/2012 04:49:31 PM, Lucas Stach wrote: > > As found on the Colibri T20 engineering sample board. > > > > Signed-off-by: Lucas Stach > > --- > > drivers/mtd/nand/nand_ids.c | 1 +

Re: [U-Boot] [PATCH] nand: add ID for Micron MT29F8G08A

2012-09-27 Thread Lucas Stach
Am Donnerstag, den 27.09.2012, 16:53 -0500 schrieb Scott Wood: > On 09/27/2012 04:49:31 PM, Lucas Stach wrote: > > As found on the Colibri T20 engineering sample board. > > > > Signed-off-by: Lucas Stach > > --- > > drivers/mtd/nand/nand_ids.c | 1 + > > 1 Datei geändert, 1 Zeile hinzugefügt(+)

Re: [U-Boot] [PATCH] nand: add ID for Micron MT29F8G08A

2012-09-27 Thread Scott Wood
On 09/27/2012 04:49:31 PM, Lucas Stach wrote: As found on the Colibri T20 engineering sample board. Signed-off-by: Lucas Stach --- drivers/mtd/nand/nand_ids.c | 1 + 1 Datei geändert, 1 Zeile hinzugefügt(+) diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index 3953549..

[U-Boot] [PATCH] tegra: add Colibri T20 board support

2012-09-27 Thread Lucas Stach
This adds board support for the Toradex Colibri T20 module. Working functions: - MMC boot - USB boot - Network - NAND environment Signed-off-by: Lucas Stach CC: Stephen Warren CC: Tom Warren --- MAINTAINERS | 4 ++ board/toradex/colibri_t20/Makefile | 38

[U-Boot] [PATCH 1/2] tegra: clean up board include hell

2012-09-27 Thread Lucas Stach
The prototypes used in board files were all scattered out, which lead to code duplication between SPL and normal U-Boot and some prototypes not actually being used. Consolidate this in a common board header. This will allow to push down the calling of the pinmux functions into the respective drive

[U-Boot] [PATCH 2/2] tegra: nand: add board pinmux

2012-09-27 Thread Lucas Stach
Boards may require a different pinmux setup for NAND than the default one. Add a way to call into board specific code to set this up. Signed-off-by: Lucas Stach --- arch/arm/include/asm/arch-tegra/board.h | 1 + drivers/mtd/nand/tegra_nand.c | 11 ++- 2 Dateien geändert, 11 Ze

[U-Boot] [PATCH] nand: add ID for Micron MT29F8G08A

2012-09-27 Thread Lucas Stach
As found on the Colibri T20 engineering sample board. Signed-off-by: Lucas Stach --- drivers/mtd/nand/nand_ids.c | 1 + 1 Datei geändert, 1 Zeile hinzugefügt(+) diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index 3953549..ae300fe 100644 --- a/drivers/mtd/nand/nand_ids.c

Re: [U-Boot] [PATCH 6/7] mx25: Define cpu_eth_init() only if needed

2012-09-27 Thread Benoît Thébaudeau
Hi Fabio, On Thursday, September 27, 2012 10:55:22 PM, Fabio Estevam wrote: > Hi Benoît, > > On Thu, Sep 27, 2012 at 5:28 PM, Benoît Thébaudeau > wrote: > > The FEC is the only SoC Ethernet support available on i.MX25, so > > define > > cpu_eth_init() only for it instead of returning a misleadin

Re: [U-Boot] RMII ethernet problems on i.MX6 Solo

2012-09-27 Thread Carolyn Smith
On Thu, Sep 27, 2012 at 12:00 PM, Fabio Estevam wrote: > > On Thu, Sep 27, 2012 at 3:27 PM, Carolyn Smith wrote: > > Hello, > > > > Has anyone had any success getting RMII ethernet to work on an i.MX6 Solo > > or DualLite? I am pretty confident I have the IOMUX registers set up > > properly and t

Re: [U-Boot] [PATCH v2 01/19] Add gpio_request() to asm-generic header

2012-09-27 Thread Simon Glass
Hi Anatolij, On Fri, Sep 21, 2012 at 12:30 PM, Anatolij Gustschin wrote: > Hi Simon, > > On Wed, 13 Jun 2012 09:19:37 -0700 > Simon Glass wrote: > >> This function should also be part of the GPIO API, so add it. >> >> Signed-off-by: Simon Glass >> --- >> >> include/asm-generic/gpio.h |9 ++

Re: [U-Boot] [PATCH 2/2] Tegra20: Move some include files to arch-tegra for sharing with Tegra30

2012-09-27 Thread Simon Glass
On Fri, Sep 21, 2012 at 1:42 PM, Tom Warren wrote: > The move is pretty straight-forward. ap20.h and tegra20.h were renamed to > ap.h and tegra.h. > Some files remain in arch-tegra20 but 'include' a file in 'arch-tegra' with > #defines & structs > that will be common between T20 and T30 HW. HW-s

Re: [U-Boot] [PATCH 1/2] Tegra20: Move some code files to common directories for upcoming Tegra30 patches.

2012-09-27 Thread Simon Glass
Hi Tom, On Fri, Sep 21, 2012 at 1:42 PM, Tom Warren wrote: > Move files that are going to be common between T20 and T30 into 'tegra-common' > subdirs in AVP (arm720t), CPU (armv7), and shared (arch/arm/cpu/.) areas. Any > files that are left behind in '/tegra20' will be copied to '/tegra30' subdi

Re: [U-Boot] [PATCH 6/7] mx25: Define cpu_eth_init() only if needed

2012-09-27 Thread Fabio Estevam
Hi Benoît, On Thu, Sep 27, 2012 at 5:28 PM, Benoît Thébaudeau wrote: > The FEC is the only SoC Ethernet support available on i.MX25, so define > cpu_eth_init() only for it instead of returning a misleading success code. Yes, but someone may want to use mx25 with a external LAN device (such as LA

Re: [U-Boot] [PATCH v2 05/14] mx51: Fix USB PHY clocks

2012-09-27 Thread Marek Vasut
Dear Benoît Thébaudeau, > The i.MX51 has a single USB PHY clock, while the i.MX53 has two. These 3 > clocks have different clock gate control bit-fields. > > The existing code was correct only for i.MX53, so this patch fixes the > i.MX51 use case. > > Signed-off-by: Benoît Thébaudeau > Cc: Stef

Re: [U-Boot] [PATCH v3 6/8] fdt: cmd_fdt: Call fdt_chosen() from "fdt boardsetup"

2012-09-27 Thread McClintock Matthew-B29882
On Thu, Sep 27, 2012 at 3:28 PM, Kumar Gala wrote: > > On Sep 26, 2012, at 9:20 AM, Stefan Roese wrote: > >> Hi Kumar, >> >> On 09/26/2012 03:36 PM, Kumar Gala wrote: By calling fdt_chosen(), the chosen node will be updated / created by the "fdt boardsetup" command. This is useful for >>

Re: [U-Boot] [PATCH v3 6/8] fdt: cmd_fdt: Call fdt_chosen() from "fdt boardsetup"

2012-09-27 Thread Kumar Gala
On Sep 26, 2012, at 9:20 AM, Stefan Roese wrote: > Hi Kumar, > > On 09/26/2012 03:36 PM, Kumar Gala wrote: >>> By calling fdt_chosen(), the chosen node will be updated / >>> created by the "fdt boardsetup" command. This is useful for >>> setting of the kernel commandline via the "bootargs" >>> e

Re: [U-Boot] [PATCH v3 06/18] tegra: fdt: Add LCD definitions for Tegra

2012-09-27 Thread Simon Glass
Hi Stephen, On Thu, Sep 27, 2012 at 8:49 AM, Stephen Warren wrote: > On 09/27/2012 07:58 AM, Simon Glass wrote: >> Hi Stephen, >> >> On Tue, Jul 31, 2012 at 9:12 AM, Stephen Warren >> wrote: >>> On 07/31/2012 03:27 AM, Simon Glass wrote: On Thu, Jul 12, 2012 at 4:25 PM, Simon Glass wrote:

[U-Boot] [PATCH] mxc: Fix SDHC multi-instance clock

2012-09-27 Thread Benoît Thébaudeau
On mxc, each SDHC instance has a dedicated clock, so gd->sdhc_clk is not suitable for the multi-instance use case (initialization made directly with fsl_esdhc_initialize()). This patch fixes this issue by adding a configuration field for the SDHC input clock frequency. Signed-off-by: Benoît Théba

[U-Boot] [PATCH 7/7] mx25: Fix eSDHC support

2012-09-27 Thread Benoît Thébaudeau
The MMC driver appropriate for the i.MX25 is fsl_esdhc, which has nothing to do with mxcmmc. Also, each eSDHC instance has a dedicated clock, so gd->sdhc_clk must be set accordingly. This is good for the case only a single SDHC instance is used (initialization made with fsl_esdhc_mmc_init()). A fu

[U-Boot] [PATCH 6/7] mx25: Define cpu_eth_init() only if needed

2012-09-27 Thread Benoît Thébaudeau
The FEC is the only SoC Ethernet support available on i.MX25, so define cpu_eth_init() only for it instead of returning a misleading success code. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm926ejs/mx25/generic.c | 10 ++ 1 file changed, 6 inser

[U-Boot] [PATCH 5/7] mx25: Clean up clocks API

2012-09-27 Thread Benoît Thébaudeau
Use the standard mxc_get_clock() instead of exporting internal functions and using literal constant values. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm926ejs/mx25/generic.c |6 +++--- .../arch/arm/include/asm/arch-mx25/clock.h |9 +++-

[U-Boot] [PATCH 4/7] mx25 clocks: Fix MXC_FEC_CLK

2012-09-27 Thread Benoît Thébaudeau
mxc_get_clock(MXC_FEC_CLK) should return the IPG clock, not the AHB clock. Also, imx_get_fecclk() was correct but reimplemented the calculation of the IPG clock, so remove the duplicated code. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm926ejs/mx25/generic.c

[U-Boot] [PATCH 3/7] mx25: Define more standard clocks

2012-09-27 Thread Benoît Thébaudeau
Define AHB, IPG and CSPI clocks. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm926ejs/mx25/generic.c | 10 ++ .../arch/arm/include/asm/arch-mx25/clock.h |5 + 2 files changed, 15 insertions(+) diff --git u-boot-imx-e1eb75b.orig/ar

[U-Boot] [PATCH 2/7] mx25: Clean up clock calculations

2012-09-27 Thread Benoît Thébaudeau
Avoid possible overflow in clock calculations, and do not waste calls to lldiv() to divide simple ulongs. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm926ejs/mx25/generic.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git u-boot

[U-Boot] [PATCH 1/7] mx25: Fix decode_pll

2012-09-27 Thread Benoît Thébaudeau
The MFN bit-field of the PLL registers represents a signed value. See the reference manual. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- .../arch/arm/cpu/arm926ejs/mx25/generic.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git u-boot-imx-e1eb75b.

[U-Boot] [PATCH v2] mx35: Fix eSDHC clocks

2012-09-27 Thread Benoît Thébaudeau
Each eSDHC instance has a dedicated clock. gd->sdhc_clk must also be set accordingly. This is good for the case only a single SDHC instance is used (initialization made with fsl_esdhc_mmc_init()). A future patch will fix the multi-instance use case (initialization made directly with fsl_esdhc_init

[U-Boot] [PATCH v2 14/14] mx5/6 clocks: Fix SDHC clocks

2012-09-27 Thread Benoît Thébaudeau
The i.MX5 eSDHC clocks were considered as coming from the IPG clock although they have dedicated clock paths. Also, on i.MX5/6, each SDHC instance has a dedicated clock, so gd->sdhc_clk must be set accordingly. This is good for the case only a single SDHC instance is used (initialization made with

[U-Boot] [PATCH v2 13/14] mx51: Fix I2C clock ID check

2012-09-27 Thread Benoît Thébaudeau
There are only 2 I²C instances on i.MX51, but 3 on i.MX53. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- Changes for v2: - New patch. .../arch/arm/cpu/armv7/mx5/clock.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git u-boot-imx-e1eb75b.orig/a

[U-Boot] [PATCH v2 12/14] mx5 clocks: Fix MXC_FEC_CLK

2012-09-27 Thread Benoît Thébaudeau
The FEC clock does not come from PLL1, but from the IPG clock. The previous code was even inconsistent with itself, returning the IPG clock as expected for imx_get_fecclk(), but the PLL1 clock for mxc_get_clock(MXC_FEC_CLK). Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- This patch super

[U-Boot] [PATCH v2 11/14] mx5 clocks: Simplify imx_get_cspiclk()

2012-09-27 Thread Benoît Thébaudeau
The code handling the dividers was duplicated for each possible input clock, and this function can benefit from the newly introduced get_standard_pll_sel_clk() function instead of duplicating this mux handling code. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- This patch supersedes htt

[U-Boot] [PATCH v2 10/14] mx5 clocks: Fix get_uart_clk()

2012-09-27 Thread Benoît Thébaudeau
This function returned 6650 instead of the correct lp_apm clock frequency if the CCM.CSCMR1.uart_clk_sel mux is set to 3. This patch fixes this issue by introducing the get_standard_pll_sel_clk() function that will be used by future patches to handle identical muxes used by many other clocks.

[U-Boot] [PATCH v2 09/14] mx5 clocks: Fix get_ipg_per_clk()

2012-09-27 Thread Benoît Thébaudeau
This fixes the "IPG PERCLK" frequency printed by the clocks command. The issue was that get_ipg_per_clk() used periph_clk instead of lp_apm in the case CCM.CBCMR.perclk_lp_apm_sel is set. It also fixes I²C support. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --- This patch supersedes htt

[U-Boot] [PATCH v2 08/14] mx5 clocks: Fix get_periph_clk()

2012-09-27 Thread Benoît Thébaudeau
In the case periph_clk comes from periph_apm_clk, the latter is selected by the CCM.CBCMR.periph_apm_sel mux, which can source the lp_apm clock from its input ♯2. get_periph_clk() returned 0 instead of the lp_apm clock frequency in this case. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic --

  1   2   >