[U-Boot] Confusion when starting storage subsystems

2014-08-11 Thread Alexander Holler
Hello, It would make me wonder if nobody else noticed it, but having to use sata init usb start mmc rescan to initialize storage subsystems isn't very convenient (or orthogonal in a more knowledgable looking speak). ;) I don't know the reasons, but I remember that the mmc command to init th

[U-Boot] Newbies list?

2014-08-11 Thread Donald Dade
Hi All, Is there are U-Boot equivalent of the kernel-newbies list, where one can ask stupid questions about u-boot? Thanks, Donald ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] mmc: fix ERASE_GRP_DEF handling

2014-08-11 Thread Hannes Petermaier
> Hi, Hannes. Hi Jaehoon, > > diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c > > index a26f3ce..52a8e36 100644 > > --- a/drivers/mmc/mmc.c > > +++ b/drivers/mmc/mmc.c > > @@ -1010,6 +1010,8 @@ static int mmc_startup(struct mmc *mmc) > > > > if (err) > > return err; > >

Re: [U-Boot] [PATCH] mmc: fix ERASE_GRP_DEF handling

2014-08-11 Thread Jaehoon Chung
Hi, Hannes. On 08/08/2014 04:47 PM, Hannes Petermaier wrote: > if we set manually this bit on the eMMC card using mmc_switch(...), > we also have to set it within our (before read) internal structure > 'ext_csd'. > > Otherwise following checks on this will fail. > > Signed-off-by: Hannes Peterma

Re: [U-Boot] [PATCH v2 07/15] exynos: kconfig: move board select menu and common settings

2014-08-11 Thread Minkyu Kang
On 06/08/14 12:17, Masahiro Yamada wrote: > Becuase the board select menu in arch/arm/Kconfig is too big, > move the Exynos board select menu to exynos/Kconfig. > > Consolidate also common settings (CONFIG_SYS_CPU="armv7" and > CONFIG_SYS_SOC="exynos"). > > Signed-off-by: Masahiro Yamada > Cc: M

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Tom Rini
On Tue, Aug 12, 2014 at 08:03:28AM +0900, Masahiro YAMADA wrote: > Hi Tom. > > > 2014-08-11 22:12 GMT+09:00 Tom Rini : > > > Ug, crap, OK, I had missed that one. Masahiro, how hard would it be to > > turn multiconfig.py into a bash script? Or even handle it within make? > > > I will try a sh

Re: [U-Boot] Call for participation in the U-Boot Mini Summit 2014

2014-08-11 Thread Marek Vasut
On Monday, August 11, 2014 at 11:08:48 PM, Tom Rini wrote: > On Mon, Aug 11, 2014 at 05:48:02PM +0200, Przemyslaw Marczak wrote: > > Hello Detlev, > > > > On 01/13/2014 06:12 PM, Detlev Zundel wrote: > > >Hi, > > > > > >as already indicated, we are looking forward to our next U-Boot Mini > > >Summ

Re: [U-Boot] Call for participation in the U-Boot Mini Summit 2014

2014-08-11 Thread Marek Vasut
On Tuesday, August 12, 2014 at 02:02:55 AM, Masahiro YAMADA wrote: > Hi. Hey, it's been a while :) > 2014-08-12 6:08 GMT+09:00 Tom Rini : > > I think there were a few other requests, off-list. Also, we might want > > to extend the deadline slightly as talks for the main event were just > > accep

Re: [U-Boot] Call for participation in the U-Boot Mini Summit 2014

2014-08-11 Thread Masahiro YAMADA
Hi. 2014-08-12 6:08 GMT+09:00 Tom Rini : > I think there were a few other requests, off-list. Also, we might want > to extend the deadline slightly as talks for the main event were just > accepted/rejected so folks are now sorting out if they can go or not. I will be in U-Boot mini summit 201

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Masahiro YAMADA
Hi Tom. 2014-08-11 22:12 GMT+09:00 Tom Rini : > Ug, crap, OK, I had missed that one. Masahiro, how hard would it be to > turn multiconfig.py into a bash script? Or even handle it within make? I will try a shell script. (Perhaps some parts are too complicated for a shell script, but I will ta

Re: [U-Boot] [PATCH v2] Makefile: remove generated boards.cfg within make distclean

2014-08-11 Thread Masahiro YAMADA
Hi Roger, (ccing Simon) 2014-08-10 21:37 GMT+09:00 Roger Meier : > Signed-off-by: Roger Meier > CC: Masahiro Yamada > CC: Tom Rini > CC: Wolfgang Denk > > --- > Changes for v2: >- remove boards.cfg within make distclean instead of mrproper >- use mrproper instead of distclean within

Re: [U-Boot] [PATCH 3/4] mtd: nand: add Freescale NFC driver

2014-08-11 Thread Scott Wood
On Wed, 2014-08-06 at 10:59 +0200, Stefan Agner wrote: > This adds initial support for Freescale NFC (NAND Flash Controller). > The IP is used in ARM based Vybrid SoCs as well as on some PowerPC > devices. This driver is only tested on Vybrid. > > Signed-off-by: Stefan Agner > --- > drivers/mtd/

Re: [U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-08-11 Thread Stephen Warren
On 08/11/2014 01:19 PM, Tom Rini wrote: On Mon, Aug 11, 2014 at 12:55:43PM -0600, Stephen Warren wrote: On 08/11/2014 12:42 PM, Jeroen Hofstee wrote: Hello Stephen. On 11-08-14 20:04, Stephen Warren wrote: On 08/11/2014 11:51 AM, Jeroen Hofstee wrote: Hello Stephan On 11-08-14 18:53, Stephe

[U-Boot] [PATCH] pci: fix overflow in __pci_hose_bus_to_phys w/ large RAM

2014-08-11 Thread Stephen Warren
From: Stephen Warren If a 32-bit system has 2GB of RAM, and the base address of that RAM is 2GB, then start+size will overflow a 32-bit value (to a value of 0). To avoid such an overflow, convert __pci_hose_bus_to_phys() to calculate the offset of a bus address into a PCI region, rather than com

Re: [U-Boot] [PATCH 06/25] dm: spi: Add a uclass for SPI

2014-08-11 Thread Daniel Schwierzeck
Hi Simon, some nitpicking On 15.07.2014 02:56, Simon Glass wrote: > Add a uclass which provides access to SPI buses and includes operations > required by SPI. > > For a time driver model will need to co-exist with the legacy SPI interface > so some parts of the header file are changed depending

Re: [U-Boot] pci command does not show Wifi card

2014-08-11 Thread Marek Vasut
On Monday, August 11, 2014 at 11:16:28 PM, Fabio Estevam wrote: > On Mon, Aug 11, 2014 at 5:55 PM, Fabio Estevam wrote: > > Hi, > > > > On a mx6qsabresd I can see U-boot to detect my Wifi card on boot: > > > > U-Boot 2014.07-16451-g7496820-dirty (Aug 11 2014 - 17:43:44) > > > > CPU: Freescale

Re: [U-Boot] pci command does not show Wifi card

2014-08-11 Thread Fabio Estevam
On Mon, Aug 11, 2014 at 5:55 PM, Fabio Estevam wrote: > Hi, > > On a mx6qsabresd I can see U-boot to detect my Wifi card on boot: > > U-Boot 2014.07-16451-g7496820-dirty (Aug 11 2014 - 17:43:44) > > CPU: Freescale i.MX6Q rev1.2 at 792 MHz > Reset cause: POR > Board: MX6-SabreSD > I2C: ready >

Re: [U-Boot] Call for participation in the U-Boot Mini Summit 2014

2014-08-11 Thread Tom Rini
On Mon, Aug 11, 2014 at 05:48:02PM +0200, Przemyslaw Marczak wrote: > Hello Detlev, > > On 01/13/2014 06:12 PM, Detlev Zundel wrote: > >Hi, > > > >as already indicated, we are looking forward to our next U-Boot Mini > >Summit at Embedded Linux Conference Europe 2014 which will take place in > >Düs

[U-Boot] [PATCH v3 4/5] arm: add Cygnus and NSP boards

2014-08-11 Thread Steve Rae
From: Scott Branden The bcm_ep board configuration is used by a number of boards including Cygnus and NSP. Add builds for the bcm958300k and the bcm958622hr boards. Signed-off-by: Scott Branden Signed-off-by: Steve Rae --- Changes in v3: - remove boards.cfg - improve error checking of configs

[U-Boot] [PATCH v3 2/5] arm: bcmcygnus: Add bcmcygnus u-architecture

2014-08-11 Thread Steve Rae
From: Scott Branden Base support for the Broadcom Cygnus SoC. Based on iproc-common and the SoC specific reset function. Signed-off-by: Scott Branden Signed-off-by: Steve Rae --- Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/bcmcygnus/Makefile | 7 +++ arch/arm/cpu/armv7/b

[U-Boot] [PATCH v3 5/5] arm: convert Cygnus and NSP boards to Kconfig

2014-08-11 Thread Steve Rae
Convert the bcm958300k and the bcm958622hr boards from "boards.cfg" to Kconfig. Signed-off-by: Steve Rae --- Changes in v3: - add required files for Kconfig Changes in v2: None arch/arm/Kconfig | 8 board/broadcom/bcm958300k/Kconfig | 23 ++

[U-Boot] [PATCH v3 3/5] arm: bcmnsp: Add bcmnsp u-architecture

2014-08-11 Thread Steve Rae
From: Scott Branden Base support for the Broadcom NSP SoC. Based on iproc-common and the SoC specific reset function. Signed-off-by: Scott Branden Signed-off-by: Steve Rae --- Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/bcmnsp/Makefile | 7 +++ arch/arm/cpu/armv7/bcmnsp/

[U-Boot] [PATCH v3 0/5] Introducing the Broadcom Cygnus and NSP boards.

2014-08-11 Thread Steve Rae
This series adds the bcm958300k and the bcm958622hr boards which share the iproc architecture code. Changes in v3: - remove boards.cfg - improve error checking of configs - add required files for Kconfig Changes in v2: - remove unused include file - reformat multi-line comment(s) - remove depreca

[U-Boot] [PATCH v3 1/5] arm: iproc: Initial commit of iproc architecture code

2014-08-11 Thread Steve Rae
From: Scott Branden The iproc architecture code is present in several Broadcom chip architectures, including Cygnus and NSP. Signed-off-by: Scott Branden Signed-off-by: Steve Rae --- Changes in v3: None Changes in v2: - remove unused include file arch/arm/cpu/armv7/Makefile

[U-Boot] pci command does not show Wifi card

2014-08-11 Thread Fabio Estevam
Hi, On a mx6qsabresd I can see U-boot to detect my Wifi card on boot: U-Boot 2014.07-16451-g7496820-dirty (Aug 11 2014 - 17:43:44) CPU: Freescale i.MX6Q rev1.2 at 792 MHz Reset cause: POR Board: MX6-SabreSD I2C: ready DRAM: 1 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2 00:01.0 -

[U-Boot] Something wrong about usb driver in u-boot.

2014-08-11 Thread 吴滨斌
Excuse me I am a funs about u-boot. Something wrong about usb driver in u-boot. Some files(such as uImage about 7MB) in usb memory can't be readed during u-boot, while the other files(less than 1MB) in this usb memory can be readed successfully. Many usb memory also have the question.I have try

Re: [U-Boot] [RFC PATCH 0/1] SPL JTAG boot mode

2014-08-11 Thread Ezra Savard
> -Original Message- > From: Michal Simek [mailto:michal.si...@xilinx.com] > Sent: Monday, August 11, 2014 6:30 AM > To: Tom Rini; Michal Simek > Cc: u-boot@lists.denx.de; Stephen Warren; Ezra Savard; Soren > Brinkmann; Roger Quadros > Subject: Re: [U-Boot] [RFC PATCH 0/1] SPL JTAG boot m

Re: [U-Boot] [PATCH v6 16/20] patman: buildman: Correct spelling of 'colour'

2014-08-11 Thread Tom Rini
On Sat, Aug 09, 2014 at 04:34:47PM -0600, Simon Glass wrote: > Hi Fabio, > > On 9 August 2014 16:29, Fabio Estevam wrote: > > On Sat, Aug 9, 2014 at 7:17 PM, Simon Glass wrote: > >> Hi, > >> > >> On 9 August 2014 16:01, Fabio Estevam wrote: > >>> Hi Simon, > >>> > >>> On Sat, Aug 9, 2014 at 6:3

Re: [U-Boot] [RFC/PATCH] sunxi: Populate the default environment for sunxi-based systems

2014-08-11 Thread Karsten Merker
On Mon, Aug 11, 2014 at 06:22:09PM +0200, Hans de Goede wrote: > On 08/10/2014 11:00 PM, Karsten Merker wrote: > > Hello, > > > > in the following email you can find a patch to populate the > > default environment for sunxi-based systems about which I would > > apprechiate your opinion. > > > >

Re: [U-Boot] [PATCH 0/25] Introduce driver model support for SPI, SPI flash, cros_ec

2014-08-11 Thread Simon Glass
Hi Jagan, On 10 August 2014 03:16, Jagan Teki wrote: > On Sun, Aug 10, 2014 at 2:59 AM, Simon Glass wrote: >> Hi, >> >> On 14 July 2014 18:56, Simon Glass wrote: >>> Up until now driver model has not been used for any type of bus. Buses >>> have some unique properties and needs, so we cannot cl

Re: [U-Boot] [PATCH 2/2 v2] fastboot: Flash command support

2014-08-11 Thread Steve Rae
On 14-08-10 06:59 PM, Dileep Katta wrote: Flash command internally uses DFU, and Fastboot command initialization is modified to add DFU and partition initialization Added oem format functionality for GPT table creation partitioning code is added as disk/part_fastboot.c for better usability Fa

[U-Boot] mini summit talk proposal: "Getting SoC vendors to work with upstream u-boot"

2014-08-11 Thread Hans de Goede
Hi All, I would to give a talk (more an intro to a group wide discussion) on how to get (more) manufacturers engaged in upstreaming their work / working directly with upstream from day one. My own experience in this lies with the Allwinner sunxi support, where Allwinner themselves are shipping a

Re: [U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-08-11 Thread Tom Rini
On Mon, Aug 11, 2014 at 12:55:43PM -0600, Stephen Warren wrote: > On 08/11/2014 12:42 PM, Jeroen Hofstee wrote: > >Hello Stephen. > > > >On 11-08-14 20:04, Stephen Warren wrote: > >>On 08/11/2014 11:51 AM, Jeroen Hofstee wrote: > >>>Hello Stephan > >>> > >>>On 11-08-14 18:53, Stephen Warren wrote:

Re: [U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-08-11 Thread Stephen Warren
On 08/11/2014 12:42 PM, Jeroen Hofstee wrote: Hello Stephen. On 11-08-14 20:04, Stephen Warren wrote: On 08/11/2014 11:51 AM, Jeroen Hofstee wrote: Hello Stephan On 11-08-14 18:53, Stephen Warren wrote: On 08/10/2014 10:53 AM, Jeroen Hofstee wrote: Hello Stephan, On 10-08-14 05:11, Stephen

Re: [U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-08-11 Thread Jeroen Hofstee
Hello Stephen. On 11-08-14 20:04, Stephen Warren wrote: On 08/11/2014 11:51 AM, Jeroen Hofstee wrote: Hello Stephan On 11-08-14 18:53, Stephen Warren wrote: On 08/10/2014 10:53 AM, Jeroen Hofstee wrote: Hello Stephan, On 10-08-14 05:11, Stephen Warren wrote: The entire point of this series

Re: [U-Boot] [PATCH v6 20/20] RFC: Deprecate MAKEALL

2014-08-11 Thread York Sun
On 08/09/2014 02:33 PM, Simon Glass wrote: > Since buildman now includes most of the features of MAKEALL it is probably > time to talk about deprecating MAKEALL. > > Comments welcome. > > Signed-off-by: Simon Glass > --- > > Changes in v6: None > Changes in v5: None > Changes in v4: None > Chan

Re: [U-Boot] Removing the need for boards.cfg

2014-08-11 Thread Simon Glass
+Masahiro Hi Tom, On 11 August 2014 07:37, Tom Rini wrote: > On Sun, Aug 10, 2014 at 08:16:43PM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 8 August 2014 05:59, Tom Rini wrote: >> > On Fri, Aug 08, 2014 at 05:06:03AM -0600, Simon Glass wrote: >> >> Hi Masahiro, >> >> >> >> On 1 August 2014 06

Re: [U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-08-11 Thread Stephen Warren
On 08/11/2014 11:51 AM, Jeroen Hofstee wrote: Hello Stephan On 11-08-14 18:53, Stephen Warren wrote: On 08/10/2014 10:53 AM, Jeroen Hofstee wrote: Hello Stephan, On 10-08-14 05:11, Stephen Warren wrote: The entire point of this series is to prevent distros from having to install bootloader-s

Re: [U-Boot] [PATCH v6 13/20] buildman: Allow selection of the number of commits to build

2014-08-11 Thread York Sun
On 08/09/2014 02:33 PM, Simon Glass wrote: > It is useful to be able to build only some of the commits in a branch. Add > support for the -c option to allow this. It was previously parsed by > buildman but not implemented. > > Suggested-by: York Sun > Signed-off-by: Simon Glass > --- > Acked-b

Re: [U-Boot] [PATCH v6 12/20] buildman: Introduce an 'and' operator for board selection

2014-08-11 Thread York Sun
On 08/09/2014 02:33 PM, Simon Glass wrote: > Currently buildman allows a list of boards to build to be specified on the > command line. The list can include specific board names, architecture, SOC > and so on. > > At present the list of boards is dealt with in an 'OR' fashion, and there > is no wa

Re: [U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-08-11 Thread Jeroen Hofstee
Hello Stephan On 11-08-14 18:53, Stephen Warren wrote: On 08/10/2014 10:53 AM, Jeroen Hofstee wrote: Hello Stephan, On 10-08-14 05:11, Stephen Warren wrote: The entire point of this series is to prevent distros from having to install bootloader-specific boot configuration files. > I fail to

Re: [U-Boot] [PATCH] tools, fit_info: increase buffer for command name

2014-08-11 Thread Simon Glass
On 11 August 2014 03:17, Heiko Schocher wrote: > currently the buffer for command name is 50 bytes only. If using > fit_info with long absolute paths, this is not enough, so raise > it to 256 (as it is in fit_check_sign) > > Signed-off-by: Heiko Schocher > Cc: Simon Glass Acked-by: Simon Glass

Re: [U-Boot] [PATCH] tools: fix typo in tools/image-host.c

2014-08-11 Thread Simon Glass
On 11 August 2014 03:02, Heiko Schocher wrote: > > fix a typo in error printf. If FIT_CONFS_PATH is not found > print FIT_CONFS_PATH not FIT_IMAGES_PATH. > > Signed-off-by: Heiko Schocher > Cc: Simon Glass > --- > tools/image-host.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > di

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Stephen Warren
On 08/10/2014 02:49 AM, Igor Grinberg wrote: On 08/07/14 20:33, Stephen Warren wrote: On 08/07/2014 10:57 AM, Tom Rini wrote: On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinberg wrote: On 08/07/14 13:57, Tom Rini wrote: .. we just need /usr/bin/env python2 as how we invoke our scripts.

Re: [U-Boot] [PATCH 1/3] config: introduce a generic $bootcmd

2014-08-11 Thread Stephen Warren
On 08/10/2014 10:53 AM, Jeroen Hofstee wrote: Hello Stephan, On 10-08-14 05:11, Stephen Warren wrote: The entire point of this series is to prevent distros from having to install bootloader-specific boot configuration files. > I fail to see why this is something to pursue. Since the distro kn

[U-Boot] [PATCH V3 12/18] arm: mx6: add support for Compulab cm-fx6 CoM

2014-08-11 Thread Nikita Kiryanov
Add initial support for Compulab CM-FX6 CoM. Support includes MMC, SPI flash, and SPL with dynamic DRAM detection. Cc: Igor Grinberg Cc: Stefano Babic Cc: Tom Rini Cc: Marek Vasut Acked-by: Marek Vasut Signed-off-by: Nikita Kiryanov --- Changes in V3: - Remove CONFIG_SYS_TEXT_BASE fr

Re: [U-Boot] [RFC/PATCH] sunxi: Populate the default environment for sunxi-based systems

2014-08-11 Thread Hans de Goede
Hi, On 08/10/2014 11:00 PM, Karsten Merker wrote: > Hello, > > in the following email you can find a patch to populate the > default environment for sunxi-based systems about which I would > apprechiate your opinion. > > With the current progress in mainlining sunxi platform support, > mainline

Re: [U-Boot] booting from sd card problem

2014-08-11 Thread Stephen Warren
On 08/11/2014 01:55 AM, shobin b wrote: Hi, I am using uboot-toradex in my iris carrier with colibri t30 module. > In that when i am booting from sd card it is showing following error, U-Boot 2011.06-4-gccd521c (Mar 17 2014 - 09:48:16)

[U-Boot] Pull request: u-boot-video/master

2014-08-11 Thread Anatolij Gustschin
Hi Tom, The following changes since commit 6d1966e1236838c8c59d58459901283a0e72: env_fat.c: Make sure our buffer is cache aligned (2014-08-09 11:26:34 -0400) are available in the git repository at: git://git.denx.de/u-boot-video.git master for you to fetch changes up to a305fb155ea3d9c

Re: [U-Boot] [[PATCH v2]] video: ipu_disp: squash clang warning

2014-08-11 Thread Anatolij Gustschin
Hi, On Tue, 17 Jun 2014 19:20:27 +0200 Jeroen Hofstee wrote: > Since rgb2ycbcr_coeff and friends are declared const, but assigned > to a void pointer, clang will warn that the const is implicity casted > away. If the pointer is changed to void const * gcc will warn when it > is implicitly casted

Re: [U-Boot] Call for participation in the U-Boot Mini Summit 2014

2014-08-11 Thread Przemyslaw Marczak
Hello Detlev, On 01/13/2014 06:12 PM, Detlev Zundel wrote: Hi, as already indicated, we are looking forward to our next U-Boot Mini Summit at Embedded Linux Conference Europe 2014 which will take place in Düsseldorf, Germany from October 13 - 15. The call for papers of the main conference is n

Re: [U-Boot] [PATCH] video: ipu_disp: wait for DP SF end irq when disabling sync BG flows

2014-08-11 Thread Anatolij Gustschin
Hi, On Fri, 28 Feb 2014 15:12:25 +0800 Liu Ying wrote: > Instead of waiting for DC triple buffer to be cleared, this patch > changes to wait for a relevant DP sync flow end interrupt to come > when disabling sync BG flows. In this way, we align the implement > to the freescale internal IPUv3 dr

[U-Boot] [PATCH v4 03/15] dm: Add a uclass for serial devices

2014-08-11 Thread Simon Glass
Serial devices support simple byte input/output and a few operations to find out whether data is available. Add a basic uclass for serial devices to be used by drivers that are converted to driver model. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Automatically bind the c

[U-Boot] [PATCH v4 04/15] Set up stdio earlier when using driver model

2014-08-11 Thread Simon Glass
Since driver model registers itself with the stdio subsystem, and we want to avoid delayed registration and other complexity associated with the current serial console, move the stdio subsystem init earlier when driver model is used for serial. This simplifies the implementation. Should there be a

[U-Boot] [PATCH v4 15/15] dm: tegra: Enable driver model for serial

2014-08-11 Thread Simon Glass
Use driver model for serial ports (for test and comment only). dm: tegra: Use V_NS16550_CLK only in SPL builds Since Tegra now uses driver model for serial, adjust the definition of V_NS16550_CLK so that it is clear that this is only used for SPL. Signed-off-by: Simon Glass --- Changes in v4:

[U-Boot] [PATCH v4 09/15] dm: exynos: Move serial to driver model

2014-08-11 Thread Simon Glass
Change the Exynos serial driver to work with driver model and switch over all Exynos5 boards to use it. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Avoid reordering functions Changes in v2: None drivers/serial/serial_s5p.c | 255

[U-Boot] [PATCH v4 13/15] dm: serial: Add driver model support for ns16550

2014-08-11 Thread Simon Glass
Add driver model support so that ns16550 can support operation both with and without driver model. The driver needs a clock frequency so cannot stand alone unfortunately. The clock frequency must be provided by a separate driver. Signed-off-by: Simon Glass --- Changes in v4: - Remove clock freq

[U-Boot] [PATCH v4 11/15] dm: serial: Move baud rate calculation to ns16550.c

2014-08-11 Thread Simon Glass
Move the function that calculates the baud rate divisor into ns16550.c so it can be used by that file. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Add new patch to move baud rate calculation to ns16550.c Changes in v2: None drivers/serial/ns16550.c| 18

[U-Boot] [PATCH v4 10/15] dm: Make driver model available before board_init()

2014-08-11 Thread Simon Glass
For some boards board_init() will change GPIOs, so we need to have driver model available before then. Adjust the board init to arrange this, but enable it for driver model only, just to be safe. This does create additional #ifdef logic, but it is safer than trying to make a pervasive change which

[U-Boot] [PATCH v4 14/15] tegra: dts: Add serial port details

2014-08-11 Thread Simon Glass
Some Tegra device tree files do not include information about the serial ports. Add this and also add information about the input clock speed. The console alias needs to be set up to indicate which port is used for the console. Also add a binding file since this is missing. Signed-off-by: Simon

[U-Boot] [PATCH v4 07/15] sandbox: dts: Add a serial console node

2014-08-11 Thread Simon Glass
If the sandbox device tree is provided to U-Boot (with the -d flag) then it will use the device tree version in preference to the built-in device. The only difference is the colour. Signed-off-by: Simon Glass --- Changes in v4: - Add a binding for sandbox serial - Remove pre-reloc fdt property

[U-Boot] [PATCH v4 08/15] dm: exynos: Mark exynos5 console as pre-reloc

2014-08-11 Thread Simon Glass
We will need the console before relocation, so mark it that way. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Change pre-reloc fdt property to 'u-boot,dm-pre-reloc' Changes in v2: None arch/arm/dts/exynos5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ar

[U-Boot] [PATCH v4 02/15] dm: Adjust lists_bind_fdt() to return the bound device

2014-08-11 Thread Simon Glass
Allow the caller to find out the device that was bound in response to this call. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Add new change to enhance lists_bind_fdt() Changes in v2: None drivers/core/lists.c | 10 +++--- drivers/core/root.c | 2 +- include/dm/li

[U-Boot] [PATCH v4 01/15] serial: Set up the 'priv' pointer when creating a serial device

2014-08-11 Thread Simon Glass
The stdio_dev structure has a private pointer for its creator, but it is not set up by the serial system. Set it to point to the serial device so that it can be found by code called by stdio. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Fix typo in commit message Changes

[U-Boot] [PATCH v4 12/15] dm: serial: Collect common baud rate code in ns16550

2014-08-11 Thread Simon Glass
The same sequence is used in several places, so move it into a function. Note that UART_LCR_BKSE is an alias for UART_LCR_DLAB. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Add new patch to collect common baud rate code in ns16550 Changes in v2: None drivers/serial/ns16

[U-Boot] [PATCH v4 05/15] sandbox: Convert serial driver to use driver model

2014-08-11 Thread Simon Glass
Adjust the sandbox serial driver to use the new driver model uclass. The driver works much as before, but within the new framework. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Rename struct device to struct udevice drivers/serial/sandbox.c | 67

[U-Boot] [PATCH v4 06/15] sandbox: serial: Support a coloured console

2014-08-11 Thread Simon Glass
The current sandbox serial driver is a pretty trivial example and does not have the featues that might be needed for other board serial drivers. To help provide a better example, add a text colour property to the device tree for sandbox. This uses platform data, a device tree node, driver private d

[U-Boot] [PATCH v4 0/15] Introduce driver model serial uclass

2014-08-11 Thread Simon Glass
This series adds support for a serial uclass, enabling serial drivers to be converted to use driver model. Unfortunately this is quite a complicated process for a number of reasons: - serial is used before relocation, but driver model does not support this - stdio member functions are not passed

[U-Boot] [PATCH v6 07/12] exynos: dts: Adjust device tree files for U-Boot

2014-08-11 Thread Simon Glass
The pinctrl bindings used by Linux are an incomplete description of the hardware. It is possible in most cases to determine the register address of each, but not in all cases. By adding an additional property we can fix this, and avoid adding a table to U-Boot for every single Exynos SOC. Signed-o

[U-Boot] [PATCH v6 04/12] exynos: dts: Convert /include/ to #include

2014-08-11 Thread Simon Glass
We should be consistent about this. The kernel has moved to #include which breaks error reporting to some extent but does allow us to include binding files. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: - Put this patch before the others to avoid breaking bisectability Chang

[U-Boot] [PATCH v6 09/12] exynos: Tidy up GPIO defines

2014-08-11 Thread Simon Glass
The defines at the top of the GPIO driver use single-character names for parameters which are not very descriptive. Improve these to use descriptive parameter names. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: Non

[U-Boot] [PATCH v6 05/12] exynos: Bring in pinctrl dts files from Linux kernel

2014-08-11 Thread Simon Glass
Bring in required device tree files for pinctrl from Linux v3.14. These are initially unchanged and have a number of pieces not needed by U-Boot. Note that exynos5420 is renamed to exynos54xx here since we want to support exynos5422 also. Signed-off-by: Simon Glass --- Changes in v6: - Fix typo

[U-Boot] [PATCH v6 12/12] dm: sandbox: dts: Add a GPIO bank

2014-08-11 Thread Simon Glass
Add a bank of GPIOs for sandbox which can be used for testing this functionality. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: - Remove RFC label now that build errors are fixed - Tidy up and update cover letter message Changes in v4: - Add patches for exynos GPIO support

[U-Boot] [PATCH v6 11/12] exynos: gpio: Convert to driver model

2014-08-11 Thread Simon Glass
Convert the exynos GPIO driver to driver model. This implements the generic GPIO interface but not the extra Exynos-specific functions. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: - Avoid reordering functions Changes in v4: None Changes in v3: None Changes in v2: None dr

[U-Boot] [PATCH v6 08/12] exynos: Tidy up GPIO headers

2014-08-11 Thread Simon Glass
The wrong header is being included, thus requiring the code to re-declare the generic GPIO interface in each GPIO header. Fix this. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/exynos/pinm

[U-Boot] [PATCH v6 06/12] exynos: dts: Remove unused pinctrl information to save space

2014-08-11 Thread Simon Glass
We don't include the pinctrl functions for U-Boot as they use up quite a bit of space and are not used. We could instead perhaps eliminate this material with fdtgrep, but so far this tool has not made it to upstream. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes

[U-Boot] [PATCH v6 01/12] dm: gpio: Enhance gpio command to show only active GPIOs

2014-08-11 Thread Simon Glass
The GPIO list is very long in many cases and most of them are not used. By default, show only the GPIOs that are in use, and provide a flag to show all of them. This makes the 'gpio status' command much more pleasant. In order to do this, driver model now exposes a method for obtaining the 'functi

[U-Boot] [PATCH v6 02/12] dm: gpio: Allow gpio command to adjust GPIOs that are busy

2014-08-11 Thread Simon Glass
The gpio command mostly relies on gpio_request() and gpio_free() being nops, in that you can request a GPIO twice. With driver model this is now implemented correctly, so it fails. Change the command to deal with a failure to claim the GPIO. Signed-off-by: Simon Glass --- Changes in v6: - Add n

[U-Boot] [PATCH v6 03/12] tegra: Convert tegra GPIO driver to use driver model

2014-08-11 Thread Simon Glass
This is an implementation of GPIOs for Tegra that uses driver model. It has been tested on trimslice and also using the new iotrace feature. The implementation uses a top-level GPIO device (which has no actual GPIOS). Under this all the banks are created as separate GPIO devices. The GPIOs are na

[U-Boot] [PATCH v6 10/12] exynos: Make sure that GPIOs are requested

2014-08-11 Thread Simon Glass
With driver model GPIOs must be requested before use. Make sure this is done correctly. (Note that the soft SPI part of universal is omitted, since this driver is about to be replaced with a driver-model-aware version) Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: - Add addi

[U-Boot] [PATCH v6 0/12] Enable driver model for GPIOs on Tegra and Exynos

2014-08-11 Thread Simon Glass
Now that driver model is part of U-Boot, the task of converting drivers over to it begins. GPIO is one of the easiest to convert, since it already has a sandbox driver and a uclass driver. The Tegra GPIO driver is relatively simple since it has a linear numbering and already uses the generic GPIO

Re: [U-Boot] [PATCH V3 2/9] mx6: add clock enabling functions

2014-08-11 Thread Igor Grinberg
On 08/11/14 17:22, Nikita Kiryanov wrote: > Add functions to enable/disable clocks for UART, SPI, ENET, and MMC. > > Cc: Stefano Babic > Cc: Igor Grinberg > Signed-off-by: Nikita Kiryanov Acked-by: Igor Grinberg Thanks! -- Regards, Igor. ___ U-Bo

Re: [U-Boot] [PATCH V2 00/18] Introduce cm-fx6 board (partial V2 cont.)

2014-08-11 Thread Nikita Kiryanov
On 11/08/14 17:15, Simon Glass wrote: Hi, On 11 August 2014 02:20, Nikita Kiryanov wrote: Hi Simon, On 11/08/14 03:11, Simon Glass wrote: Hi Nikita, On 10 August 2014 11:12, Nikita Kiryanov wrote: This partial V2 completes the previous partial V2. It contains some final preparational

[U-Boot] [PATCH V3 2/9] mx6: add clock enabling functions

2014-08-11 Thread Nikita Kiryanov
Add functions to enable/disable clocks for UART, SPI, ENET, and MMC. Cc: Stefano Babic Cc: Igor Grinberg Signed-off-by: Nikita Kiryanov --- Changes in V3: - Use (clr|set)bits_le32() where possible Changes in V2: - No changes. arch/arm/cpu/armv7/mx6/clock.c| 90 +++

Re: [U-Boot] [PATCH] video: Add support for TI's AM335x LCD-Controller

2014-08-11 Thread Anatolij Gustschin
On Thu, 6 Mar 2014 14:39:06 +0100 Hannes Petermaier wrote: > - Adds support for a minimal framebuffer driver of TI's AM335x SoC > to be compatible with Wolfgang Denk's LCD-Framework (CONFIG_LCD, > common/lcd.c) > > Signed-off-by: Hannes Petermaier > --- > drivers/video/Makefile|1

Re: [U-Boot] [PATCH] lcd: cleanup unused functions

2014-08-11 Thread Anatolij Gustschin
On Fri, 7 Mar 2014 18:45:20 +0100 Hannes Petermaier wrote: > This patch removes following two functions: > - lcd_getbgcolor(...) > not used somewhere outside lcd.c, internally we use now the global > variable lcd_color_bg (was return value of function before) > - lcd_getfgcolor(...) > not

Re: [U-Boot] [PATCH V2 00/18] Introduce cm-fx6 board (partial V2 cont.)

2014-08-11 Thread Simon Glass
Hi, On 11 August 2014 02:20, Nikita Kiryanov wrote: > Hi Simon, > > > On 11/08/14 03:11, Simon Glass wrote: >> >> Hi Nikita, >> >> On 10 August 2014 11:12, Nikita Kiryanov wrote: >>> >>> This partial V2 completes the previous partial V2. It contains some final >>> preparational steps, and the in

Re: [U-Boot] [PATCH v2] Add support for 32-bit organized framebuffers

2014-08-11 Thread Anatolij Gustschin
On Fri, 7 Mar 2014 18:55:40 +0100 Hannes Petermaier wrote: > - Adds support for 32-bit organized framebuffers to the LCD-framework. > > Signed-off-by: Hannes Petermaier > Cc: ag...@denx.de > --- > Changes for v2: >- separated from 'function-cleanup' changes > --- > common/lcd.c | 35 ++

Re: [U-Boot] [PATCH] lcd: Add support for CONFIG_LCD_NOSTDOUT

2014-08-11 Thread Anatolij Gustschin
Hi, On Thu, 6 Mar 2014 15:26:11 +0100 Hannes Petermaier wrote: ... > + CONFIG_LCD_NOSTDOUT > + Normally 'stdout' is redirected to LCD-screen after > + initialization. Define CONFIG_LCD_NOSTDOUT to avoid this. > + Useful in case where only lcd_puts(

Re: [U-Boot] Removing the need for boards.cfg

2014-08-11 Thread Tom Rini
On Sun, Aug 10, 2014 at 08:22:35PM -0600, Simon Glass wrote: > Hi Tom, > > On 8 August 2014 07:04, Tom Rini wrote: > > On Fri, Aug 01, 2014 at 12:48:44PM +0100, Simon Glass wrote: > > > >> Hi, > >> > >> At present, as a work-around, we generate boards.cfg if needed. This > >> is quite a slow proc

Re: [U-Boot] Removing the need for boards.cfg

2014-08-11 Thread Tom Rini
On Sun, Aug 10, 2014 at 08:16:43PM -0600, Simon Glass wrote: > Hi Tom, > > On 8 August 2014 05:59, Tom Rini wrote: > > On Fri, Aug 08, 2014 at 05:06:03AM -0600, Simon Glass wrote: > >> Hi Masahiro, > >> > >> On 1 August 2014 06:22, Masahiro Yamada wrote: > >> > Hi. > >> > > >> > > >> > > >> > On

Re: [U-Boot] [RFC PATCH 0/1] SPL JTAG boot mode

2014-08-11 Thread Michal Simek
On 08/11/2014 03:17 PM, Tom Rini wrote: > On Mon, Aug 11, 2014 at 03:03:35PM +0200, Michal Simek wrote: > >> Hi, >> >> I have got this patch some time ago but I am not still >> 100% sure about use case. Anyway Soren uses this mode >> that's why let me send this patch and we can discuss >> if this

Re: [U-Boot] [RFC PATCH 0/1] SPL JTAG boot mode

2014-08-11 Thread Tom Rini
On Mon, Aug 11, 2014 at 03:03:35PM +0200, Michal Simek wrote: > Hi, > > I have got this patch some time ago but I am not still > 100% sure about use case. Anyway Soren uses this mode > that's why let me send this patch and we can discuss > if this can be useful for someone else too. > > The use

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Tom Rini
On Mon, Aug 11, 2014 at 01:18:40PM +0300, Igor Grinberg wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/10/14 14:14, Tom Rini wrote: > > On Sun, Aug 10, 2014 at 11:49:12AM +0300, Igor Grinberg wrote: > >> > >> > >> On 08/07/14 20:33, Stephen Warren wrote: > >>> On 08/07/2014 10:

[U-Boot] [RFC PATCH 0/1] SPL JTAG boot mode

2014-08-11 Thread Michal Simek
Hi, I have got this patch some time ago but I am not still 100% sure about use case. Anyway Soren uses this mode that's why let me send this patch and we can discuss if this can be useful for someone else too. The use case is to load U-Boot SPL to do init HW and then load images via JTAG because

[U-Boot] [PATCH 1/2] ARM: zynq: Move ps7_init() out of spl.h

2014-08-11 Thread Michal Simek
Prepare for spl.h removal. Signed-off-by: Michal Simek --- arch/arm/include/asm/arch-zynq/spl.h | 2 -- arch/arm/include/asm/arch-zynq/sys_proto.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-zynq/spl.h b/arch/arm/include/asm/arch-zynq/

[U-Boot] [PATCH 2/2] ARM: zynq: Remove spl.h

2014-08-11 Thread Michal Simek
Do not specify own zynq specific SPL macros because there is no need for that. Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/spl.c| 2 +- arch/arm/include/asm/arch-zynq/spl.h | 16 arch/arm/include/asm/spl.h | 2 +- 3 files changed, 2 insertions(+)

[U-Boot] [RFC PATCH] ARM: spl: Introduce JTAG mode

2014-08-11 Thread Michal Simek
Introduce simple JTAG mode which stops CPU before U-Boot image processing. Signed-off-by: Ezra Savard Signed-off-by: Michal Simek Acked-by: Sören Brinkmann --- arch/arm/include/asm/spl.h| 1 + arch/microblaze/include/asm/spl.h | 1 + common/spl/spl.c | 7 +++ 3 fi

Re: [U-Boot] [RFC PATCH v2 0/2] Make Python scripts compatible with older versions

2014-08-11 Thread Igor Grinberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/10/14 14:14, Tom Rini wrote: > On Sun, Aug 10, 2014 at 11:49:12AM +0300, Igor Grinberg wrote: >> >> >> On 08/07/14 20:33, Stephen Warren wrote: >>> On 08/07/2014 10:57 AM, Tom Rini wrote: On Thu, Aug 07, 2014 at 04:17:21PM +0300, Igor Grinbe

[U-Boot] [PATCH] tools, fit_info: increase buffer for command name

2014-08-11 Thread Heiko Schocher
currently the buffer for command name is 50 bytes only. If using fit_info with long absolute paths, this is not enough, so raise it to 256 (as it is in fit_check_sign) Signed-off-by: Heiko Schocher Cc: Simon Glass --- tools/fit_info.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

  1   2   >