Re: [U-Boot] Many questions about U-Boot's Driver Model

2014-09-19 Thread Masahiro YAMADA
Hi Simon, 2014-09-20 7:25 GMT+09:00 Simon Glass : > - the bind/unbind allows you to have devices which are known to the > system, but not yet probed. This is important in a boot loader (e.g. > we don't want to probe devices until they are actually needed, and > some will never be probed during

Re: [U-Boot] [U-Boot, 2/3] image: move all function comments to header file

2014-09-19 Thread Masahiro YAMADA
Hi. I vote for comments near the implementation. I have been digging into the driver model code recently, but I have to admit it is unreadable because most of comments are placed in its header files. (and I am planning to send a patch to move comments to C sources.) I really want to know "what d

[U-Boot] [PATCH] usb: f_mass_storage: set removable flag in do_inquiry based on LUN

2014-09-19 Thread Eric Nelson
Without this flag, tools like Alex Page's USB Image Tool won't see drives exposed over USB Gadget as removable, and won't allow access to them. http://www.alexpage.de/usb-image-tool/ The code was pulled from the main-line kernel: drivers/usb/gadget/function/f_mass_storage.c Signed

Re: [U-Boot] [U-Boot, 2/3] image: move all function comments to header file

2014-09-19 Thread Simon Glass
Hi Tom, On 23 August 2014 11:48, Tom Rini wrote: > On Sat, Aug 23, 2014 at 08:42:51AM -0400, Tom Rini wrote: > > > On Fri, Aug 15, 2014 at 01:55:27PM -0700, Bryan Wu wrote: > > > > > Several functions comments are C file with function definition, they > > > should be moved to header file with fu

Re: [U-Boot] [PATCH 2/3] fdt: add fdt_add_display_timings(..) and friends

2014-09-19 Thread Simon Glass
HI Christian, On 15 September 2014 07:06, Christian Gmeiner wrote: > This new function is used to set all display-timings > properties based on fb_videomode. > > display-timings { > timing0 { > clock-frequency = <2500>; > hactive = <640>; >

Re: [U-Boot] Many questions about U-Boot's Driver Model

2014-09-19 Thread Simon Glass
Hi Masahiro, On 19 September 2014 07:22, Masahiro Yamada wrote: > Hi. > > I am digging into the driver model. > Great! It would be good to add patches to the driver model README.txt file with some of the results of this thread. > > I fear this triggers a controversy, but, first, > it looks like

Re: [U-Boot] [PATCH] dm: avoid dev->req_seq overflow

2014-09-19 Thread Simon Glass
Hi Robert, On 18 September 2014 23:25, Robert Baldyga wrote: > > On 09/18/2014 08:00 PM, Simon Glass wrote: > > Hi Robert, > > > > On 18 September 2014 09:13, Robert Baldyga > > wrote: > > > > Since dev->req_seq value is initialized from "reg" property of fdt no

Re: [U-Boot] After relocate the printf not working

2014-09-19 Thread Jeroen Hofstee
Hello Viktor? On 19-09-14 16:01, nohabviktor wrote: I have a LPC1788 board with 32Mbyte RAM and NAND flash and I followed the nxp instructions: http://www.lpcware.com/content/project/lpc177x8x-u-boot-port/u-boot-build-procedure The result is: U-Boot 2011.06 (Aug 16 2011 - 16:47:50) NXP LPC1788

Re: [U-Boot] [PATCH v4 2/6] serial: add UniPhier serial driver

2014-09-19 Thread Simon Glass
HI Masahiro, On 19 September 2014 06:15, Masahiro Yamada wrote: > Hi Simon, > > > > On Fri, 5 Sep 2014 10:41:54 -0600 > Simon Glass wrote: > > Do you think we could use driver model instead? We have the serial > > infrastructure in place and I will likely merge it next week. > > > > It moves th

Re: [U-Boot] [PATCH v4 1/3] spi:rewrite the Freescale DSPI driver.

2014-09-19 Thread Simon Glass
Hi, On 18 September 2014 23:31, Chao Fu wrote: > From: Chao Fu > > Freescale DSPI module is used on both the ColdFire platform and the ARM > platform. The original DSPI driver is written for ColdFire platform only, > this patch rewrite the driver to make it be used across the platforms. > Some

Re: [U-Boot] [PATCH 4/8] ARMv8: PSCI: Add linker section to hold PSCI code

2014-09-19 Thread Albert ARIBAUD
Hi Marc, On Thu, 18 Sep 2014 16:28:52 +0100, Marc Zyngier wrote: > On Thu, Sep 18 2014 at 10:12:17 AM, Albert ARIBAUD > wrote: > > Hi Arnab, > > > > On Thu, 28 Aug 2014 01:59:57 +0530, Arnab Basu > > wrote: > > > >> A separate linker section makes it possible to keep this code either > >> in

Re: [U-Boot] [PATCH] arm: ls102xa: Fixed a register definition error

2014-09-19 Thread Albert ARIBAUD
Hi Yuantian, On Fri, 19 Sep 2014 01:45:52 +, Yuantian Tang wrote: > > > -Original Message- > > From: Albert ARIBAUD [mailto:albert.u.b...@aribaud.net] > > Sent: Thursday, September 18, 2014 7:25 PM > > To: Tang Yuantian-B29983 > > Cc: Wang Huan-B18965; Lu Jingchang-B35083; Jin Zheng

Re: [U-Boot] [PATCH 6/7] arm: ls102xa: Add SD boot support for LS1021AQDS board

2014-09-19 Thread Albert ARIBAUD
Hi Huan, On Thu, 18 Sep 2014 15:15:54 +, Huan Wang wrote: > Hi, Albert, > > On Thu, 18 Sep 2014 13:47:18 +0800, Alison Wang > wrote: > > > + > > + . = ALIGN(4); > > + .u_boot_list : { > > + KEEP(*(SORT(.u_boot_list*_i2c_*))); > > + } > > IS this required? And if i

[U-Boot] After relocate the printf not working

2014-09-19 Thread nohabviktor
Hi! I have a LPC1788 board with 32Mbyte RAM and NAND flash and I followed the nxp instructions: http://www.lpcware.com/content/project/lpc177x8x-u-boot-port/u-boot-build-procedure The result is: U-Boot 2011.06 (Aug 16 2011 - 16:47:50) NXP LPC1788 Cortex-M3 DRAM: 32 MiB Flash: e1zƒ K!A NAND

Re: [U-Boot] A minor question on a Driver Model function

2014-09-19 Thread Igor Grinberg
On 09/19/14 09:54, Masahiro Yamada wrote: > > On Fri, 19 Sep 2014 09:34:53 +0300 > Igor Grinberg wrote: > >> On 09/18/14 18:46, Bill Pringlemeir wrote: >>> >> On 12 September 2014 05:25, Masahiro Yamada >> wrote: > >> I have a qustion about lists_driver_lookup_name() functio

[U-Boot] [PATCH] ORIGEN: Enhance origen config to be more flexible on boot.

2014-09-19 Thread Guillaume GARDET
This patch enhances the boot of origen board by adding support to ext2, bootz, initrd, bootenv loading and boot script. It still keeps the previous mmc load command if boot script fails. Signed-off-by: Guillaume GARDET Cc: Minkyu Kang --- include/configs/origen.h | 35

[U-Boot] [PATCH] ORIGEN: Enhance origen config to be more flexible on boot.

2014-09-19 Thread Guillaume GARDET
This patch enhances the boot of origen board by adding support to ext2, bootz, initrd, bootenv loading and boot script. It still keeps the previous mmc load command if boot script fails. Signed-off-by: Guillaume GARDET Cc: Minkyu Kang --- include/configs/origen.h | 35

[U-Boot] [PATCH] ARNDALE: Enhance arndale config to be more flexible on boot.

2014-09-19 Thread Guillaume GARDET
This patch enhances the boot of arndale board by adding support to bootz, initrd, bootenv loading and boot script. It still keeps the previous mmc load command if boot script fails. Signed-off-by: Guillaume GARDET Cc: Minkyu Kang --- include/configs/arndale.h | 38

[U-Boot] Many questions about U-Boot's Driver Model

2014-09-19 Thread Masahiro Yamada
Hi. I am digging into the driver model. I fear this triggers a controversy, but, first, it looks like the driver model of U-Boot is pretty different from the Linux's one, in spite of the fact that U-Boot has ported lots of Linux sources and ideas (looks like U-Boot is getting a mirror of Linux)

Re: [U-Boot] [PATCH v4 2/6] serial: add UniPhier serial driver

2014-09-19 Thread Masahiro Yamada
Hi Simon, On Fri, 5 Sep 2014 10:41:54 -0600 Simon Glass wrote: > Do you think we could use driver model instead? We have the serial > infrastructure in place and I will likely merge it next week. > > It moves the \r\n logic to a higher level. > > It also removes the need for all the horrible

Re: [U-Boot] [PATCH 00/35][RFC] arm: socfpga: Usability fixes

2014-09-19 Thread Marek Vasut
On Friday, September 19, 2014 at 01:12:23 PM, Marek Vasut wrote: > On Friday, September 19, 2014 at 11:44:48 AM, Chin Liang See wrote: > > Dear Wolfgang, > > > > On Wed, 2014-09-17 at 16:11 +0200, ZY - wd wrote: > > > Dear Chin Liang See, > > > > > > In message <1410952049.7769.11.ca...@clsee-vir

Re: [U-Boot] [PATCH 00/35][RFC] arm: socfpga: Usability fixes

2014-09-19 Thread Marek Vasut
On Friday, September 19, 2014 at 11:44:48 AM, Chin Liang See wrote: > Dear Wolfgang, > > On Wed, 2014-09-17 at 16:11 +0200, ZY - wd wrote: > > Dear Chin Liang See, > > > > In message <1410952049.7769.11.ca...@clsee-virtualbox.altera.com> you wrote: > > > Hmmm... actually I can get it works well f

Re: [U-Boot] [PATCH] socfpga: Enable DWMMC for SOCFPGA

2014-09-19 Thread Marek Vasut
On Friday, September 19, 2014 at 11:28:23 AM, Chin Liang See wrote: > To enable the DesignWare MMC controller driver support > for SOCFPGA Cyclone5 dev kit > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Pavel Machek > Cc: Marek Vasut > Cc: Tom Rini > Cc: Albert Aribaud > Cc: Wolfg

Re: [U-Boot] [PATCH 00/35][RFC] arm: socfpga: Usability fixes

2014-09-19 Thread Marek Vasut
On Friday, September 19, 2014 at 12:36:41 PM, Chin Liang See wrote: > Hi guys, > > On Fri, 2014-09-19 at 04:32 -0500, Chin Liang See wrote: > > Hi Marek, > > > > On Wed, 2014-09-17 at 14:39 +0200, ma...@denx.de wrote: > > > On Wednesday, September 17, 2014 at 02:00:42 PM, Chin Liang See wrote: >

Re: [U-Boot] [PATCH] socfpga: Enable SDMMC boot for SOCFPGA U-Boot

2014-09-19 Thread Marek Vasut
On Friday, September 19, 2014 at 12:33:19 PM, Chin Liang See wrote: > To enable the SDMMC boot as default boot for SOCFPGA > U-Boot dev kit. Enabled the bootz command as > zImage is used instead uImage. > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Pavel Machek > Cc: Marek Vasut >

Re: [U-Boot] [PATCH 00/35][RFC] arm: socfpga: Usability fixes

2014-09-19 Thread Chin Liang See
Hi guys, On Fri, 2014-09-19 at 04:32 -0500, Chin Liang See wrote: > Hi Marek, > > On Wed, 2014-09-17 at 14:39 +0200, ma...@denx.de wrote: > > On Wednesday, September 17, 2014 at 02:00:42 PM, Chin Liang See wrote: > > > On Wed, 2014-09-17 at 13:52 +0200, ma...@denx.de wrote: > > > > On Wednesday,

[U-Boot] [PATCH] socfpga: Enable SDMMC boot for SOCFPGA U-Boot

2014-09-19 Thread Chin Liang See
To enable the SDMMC boot as default boot for SOCFPGA U-Boot dev kit. Enabled the bootz command as zImage is used instead uImage. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Tom Rini Cc: Albert Aribaud Cc: Wolfgang Denk --- include/configs/socfpga_cycl

[U-Boot] [PATCH] armv7: s5pc1xx: improve cache handling

2014-09-19 Thread Robert Baldyga
Move cache handling code to C file, and add enable_caches() and disable_caches() functions. Signed-off-by: Robert Baldyga --- arch/arm/cpu/armv7/s5pc1xx/cache.S | 30 arch/arm/cpu/armv7/s5pc1xx/cache.c | 47 ++ 2 files changed, 47 inse

Re: [U-Boot] [PATCH v2 13/16] samsung: Enable device tree for s5p_goni

2014-09-19 Thread Robert Baldyga
Hi, On 09/15/2014 12:12 AM, Simon Glass wrote: > Change this board to add a device tree. > > This also adds a pinmux header file although it is not used as yet. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Avoid using a common file, and just add a device tree > - Fix device tree

Re: [U-Boot] u-boot-socfpga repository

2014-09-19 Thread Chin Liang See
Hi guys, On Wed, 2014-09-17 at 06:54 -0500, Chin Liang See wrote: > On Tue, 2014-09-16 at 11:56 +0200, ZY - pavel wrote: > > Hi! > > > > > > I'd be interested in maintaining u-boot-socfpga repository. So far, we > > > > don't > > > > have a repo for this platform and there is a large flurry of p

Re: [U-Boot] [PATCH 00/35][RFC] arm: socfpga: Usability fixes

2014-09-19 Thread Chin Liang See
Dear Wolfgang, On Wed, 2014-09-17 at 16:11 +0200, ZY - wd wrote: > Dear Chin Liang See, > > In message <1410952049.7769.11.ca...@clsee-virtualbox.altera.com> you wrote: > > > > Hmmm... actually I can get it works well for my Altera dev kit. The > > get_dram_size would take in the argument PHYS_SD

Re: [U-Boot] [PATCH 00/35][RFC] arm: socfpga: Usability fixes

2014-09-19 Thread Chin Liang See
Hi Marek, On Wed, 2014-09-17 at 14:39 +0200, ma...@denx.de wrote: > On Wednesday, September 17, 2014 at 02:00:42 PM, Chin Liang See wrote: > > On Wed, 2014-09-17 at 13:52 +0200, ma...@denx.de wrote: > > > On Wednesday, September 17, 2014 at 01:29:15 PM, Chin Liang See wrote: > > > > 3. MMC is not

[U-Boot] [PATCH] socfpga: Enable DWMMC for SOCFPGA

2014-09-19 Thread Chin Liang See
To enable the DesignWare MMC controller driver support for SOCFPGA Cyclone5 dev kit Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Tom Rini Cc: Albert Aribaud Cc: Wolfgang Denk --- include/configs/socfpga_cyclone5.h | 18 ++ 1 file chan

[U-Boot] [PATCH 4/5] spl: do not hang in spl_register_fat_device but return error value. It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT.

2014-09-19 Thread Guillaume GARDET
Do not hang in spl_register_fat_device but return an error value. It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT. If FAT load fails, then EXT load is tried. Signed-off-by: Guillaume GARDET Cc: Albert Aribaud Cc: Stefano Babic Cc: Tom Rini Cc: Michal Simek Cc: Andreas

[U-Boot] [PATCH 3/5] doc: Update documentation according to the EXT SPL support patch set

2014-09-19 Thread Guillaume GARDET
Update documentation according to the EXT SPL support patch set. Signed-off-by: Guillaume GARDET Cc: Albert Aribaud Cc: Stefano Babic Cc: Tom Rini Cc: Michal Simek Cc: Andreas Bießmann --- README | 17 ++--- doc/README.SPL | 1 + 2 files changed, 11 insertions(+), 7 d

[U-Boot] [PATCH 5/5] TI:OMAP4: enable EXT support in SPL for OMAP4 boards

2014-09-19 Thread Guillaume GARDET
Enable EXT support in SPL for OMAP4 boards. Build tested for duovero, omap4_sdp4430 and omap4_panda. Run time tested on omap4_panda. Signed-off-by: Guillaume GARDET Cc: Albert Aribaud Cc: Stefano Babic Cc: Tom Rini Cc: Michal Simek Cc: Andreas Bießmann --- include/configs/ti_omap4_common.h

[U-Boot] [PATCH 2/5] spl: Add EXT support to SPL

2014-09-19 Thread Guillaume GARDET
Add EXT filesystem support to SPL. Signed-off-by: Guillaume GARDET Cc: Albert Aribaud Cc: Stefano Babic Cc: Tom Rini Cc: Michal Simek Cc: Andreas Bießmann --- common/spl/Makefile | 1 + common/spl/spl_ext.c | 138 +++ common/spl/spl_mmc.c

[U-Boot] [PATCH 0/5] Add EXT filesystem support to SPL

2014-09-19 Thread Guillaume GARDET
Hi, This patch set adds EXT filesystem support to SPL and enables it for OMAP4 boards. Build is succesful on all omap4 and omap5 boards. Note that some OMAP3 boards (omap3_beagle and omap3_overo) may need to disable some functions in order to support EXT in SPL, otherwise the MLO (SPL) may be t

[U-Boot] [PATCH 1/5] Rename some defines containing FAT in their name to be filesystem generic MMCSD_MODE_FAT => MMCSD_MODE_FS CONFIG_SPL_FAT_LOAD_ARGS_NAME => CONFIG_SPL_FS_LOAD_ARGS_NAME CONFIG_SPL_

2014-09-19 Thread Guillaume GARDET
Rename some defines containing FAT in their name to be filesystem generic: MMCSD_MODE_FAT => MMCSD_MODE_FS CONFIG_SPL_FAT_LOAD_ARGS_NAME => CONFIG_SPL_FS_LOAD_ARGS_NAME CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME => CONFIG_SPL_FS_LOAD_PAYLOAD_NAME CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION => CONFIG_SYS_MMC_SD_FS_B

Re: [U-Boot] [PATCH 0/3] ARM: atmel: add sama5d4ek board support

2014-09-19 Thread Nicolas Ferre
On 16/09/2014 09:57, Bo Shen : > This patch series add sama5d4ek board support which supports > following features: > - Boot media support: NAND flash/SD card/SPI flash > - Support LCD display > - Support ethernet > - Support USB mass storage > > This patch series depends on the series [1]

Re: [U-Boot] [PATCH v2] usb: gadget: fastboot: improve download progress bar

2014-09-19 Thread Marek Vasut
On Friday, September 19, 2014 at 08:15:12 AM, Bo Shen wrote: > When download is ongoing, if the actual size of one transfer > is not the same as BTYES_PER_DOT, which will cause the dot > won't print anymore. Then it will let the user thinking it > is stuck, actually it is transfering without dot pr