Re: [U-Boot] [U-Boot, v3, 2/6] include/common.h: remove DIV_ROUND definition

2014-11-24 Thread Tom Rini
On Fri, Nov 07, 2014 at 03:03:27AM +0900, Masahiro Yamada wrote: > All the references of DIV_ROUND have been replaced with > DIV_ROUND_CLOSEST. Remove DIV_ROUND. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot,4/5] ARM: remove CONFIG_ARM926EJS defines

2014-11-24 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:59:36PM +0900, Masahiro Yamada wrote: > CONFIG_CPU_ARM926EJS was introduced into Kconfig by commit 2e07c249a67e > (kconfig: arm: introduce symbol for ARM CPUs). > > This commit removes all the defines of CONFIG_ARM926EJS and replaces > the only reference in arch/arm/lib

Re: [U-Boot] [U-Boot, v3, 1/6] replace DIV_ROUND with DIV_ROUND_CLOSEST

2014-11-24 Thread Tom Rini
On Fri, Nov 07, 2014 at 03:03:26AM +0900, Masahiro Yamada wrote: > The Linux-compatible macro DIV_ROUND_CLOSEST is a bit more flexible > and safer than DIV_ROUND. > > For example, > foo = DIV_ROUND_CLOSEST(x, y++) > works expectedly, but > foo = DIV_ROUND(x, y++) > does not. (y is incremented

Re: [U-Boot] [U-Boot, v3, 3/6] include: move various macros to include/linux/kernel.h

2014-11-24 Thread Tom Rini
On Fri, Nov 07, 2014 at 03:03:28AM +0900, Masahiro Yamada wrote: > U-Boot has imported various utility macros from Linux > scattering them to various places without consistency. > > In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN, > container_of, DIV_ROUND_UP, etc. > In include/li

Re: [U-Boot] [U-Boot,v2,1/2] ARM: bcm: Enable five Cygnus boards

2014-11-24 Thread Tom Rini
On Tue, Nov 11, 2014 at 11:32:18AM -0800, Steve Rae wrote: > bcm911360_entphn > bcm911360_entphn-ns > bcm911360k > bcm958300k-ns > bcm958305k > > - updates to support Cygnus and NSP board families better > - add functions so CONFIG_ARMV7_NONSEC can be enabled on Cygnus boards > > Signed-off-by:

Re: [U-Boot] sata: fix a bug in init_sata() for pci-sata card

2014-11-24 Thread Tom Rini
On Wed, Nov 12, 2014 at 07:16:40PM +0800, li pengbo wrote: > Except the first loop, init_sata() should return 0 instead of 1 > in the others. > > This patch fix the issue of the 2nd sata port not workable on pci-sata card. > > Signed-off-by: Pengbo Li Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, v3] fs: make it possible to read the filesystem UUID

2014-11-24 Thread Tom Rini
On Wed, Nov 12, 2014 at 02:35:04PM +0100, Christian Gmeiner wrote: > Some filesystems have a UUID stored in its superblock. To > allow using root=UUID=... for the kernel command line we > need a way to read-out the filesystem UUID. > > changes rfc -> v1: > - make the environment variable an opti

Re: [U-Boot] [U-Boot,v2,2/2] ARM: bcm: Enable bcm11130 boards

2014-11-24 Thread Tom Rini
On Tue, Nov 11, 2014 at 11:32:19AM -0800, Steve Rae wrote: > bcm11130 > bcm11130_nand > > Signed-off-by: Steve Rae Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de h

Re: [U-Boot] [U-Boot, v3, 01/30] vsprintf: Add modifier for phys_addr_t

2014-11-24 Thread Tom Rini
On Wed, Nov 12, 2014 at 06:26:47PM -0700, Simon Glass wrote: > From: Thierry Reding > > Provide a new modifier to vsprintf() to print phys_addr_t variables to > avoid having to cast or #ifdef when printing them out. The %pa modifier > is used for this purpose, so phys_addr_t variables need to be

Re: [U-Boot] [U-Boot, v2] spl: Change debug to printf for "Unsupported boot-device"

2014-11-24 Thread Tom Rini
On Tue, Nov 11, 2014 at 07:03:55PM +0100, Stefan Roese wrote: > We had the problem on an AM33xx platform, that SPL detected an > unsupported boot-device. But since this message is a debug message > it took a bit of time to really know, where the hangup in SPL > resulted from. So let's change this

Re: [U-Boot] [U-Boot, v3, 02/30] pci: Abort early if bus does not exist

2014-11-24 Thread Tom Rini
On Wed, Nov 12, 2014 at 06:26:48PM -0700, Simon Glass wrote: > From: Thierry Reding > > When listing the devices on a PCI bus, the current code will blindly try > to access all devices. Internally this causes pci_bus_to_hose() to be > repeatedly called and output an error message every time. Pre

Re: [U-Boot] [U-Boot,v3,03/30] pci: Honour pci_skip_dev()

2014-11-24 Thread Tom Rini
On Wed, Nov 12, 2014 at 06:26:49PM -0700, Simon Glass wrote: > From: Thierry Reding > > When enumerating devices, honour the pci_skip_dev() function. This can > be used by PCI controller drivers to restrict which devices will be > probed. > > This is required by the NVIDIA Tegra PCIe controller

Re: [U-Boot] [U-Boot,v3,04/30] Add pr_fmt() macro

2014-11-24 Thread Tom Rini
On Wed, Nov 12, 2014 at 06:26:50PM -0700, Simon Glass wrote: > From: Thierry Reding > > This macro can be overridden in source files (before including common.h) > and can be used to specify a prefix for debug and error messages. An > example of how to use this is shown below: > > #define

Re: [U-Boot] [U-Boot, v3, 5/6] linux/kernel.h: add typechecking to roundup macro

2014-11-24 Thread Tom Rini
On Fri, Nov 07, 2014 at 03:03:30AM +0900, Masahiro Yamada wrote: > This commit replaces roundup macro with the one from Linux Kernel. > > DEFINE_ALIGN_BUFFER must be fixed because typechecking can not > be used in this context. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thank

Re: [U-Boot] [U-Boot, v3, 6/6] linux/kernel.h: sync min, max, min3, max3 macros with Linux

2014-11-24 Thread Tom Rini
On Fri, Nov 07, 2014 at 03:03:31AM +0900, Masahiro Yamada wrote: > U-Boot has never cared about the type when we get max/min of two > values, but Linux Kernel does. This commit gets min, max, min3, max3 > macros synced with the kernel introducing type checks. > > Many of references of those macr

Re: [U-Boot] [U-Boot, v3, 24/30] malloc: Output region when debugging

2014-11-24 Thread Tom Rini
On Wed, Nov 12, 2014 at 06:27:10PM -0700, Simon Glass wrote: > From: Thierry Reding > > When DEBUG is set, output memory region used for malloc(). > > Signed-off-by: Thierry Reding > Acked-by: Simon Glass > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.as

Re: [U-Boot] [U-Boot, 1/4] kbuild: Descend into SOC directory from CPU directory

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 12:28:40PM +0900, Masahiro Yamada wrote: > Some CPUs of some architectures have SOC directories. > At present, the build system directly descends into SOC directories > from the top Makefile, but it should generally descend into each > directory from its parent directory. >

Re: [U-Boot] [U-Boot, 2/4] x86: use CONFIG_SYS_COREBOOT to descend into coreboot/ directory

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 12:28:41PM +0900, Masahiro Yamada wrote: > The references of CONFIG_SYS_COREBOOT in arch/x86/cpu/coreboot/Makefile > are redundant because the build system descends into the directory > only when CONFIG_SYS_COREBOOT is defined. > > Signed-off-by: Masahiro Yamada > Cc: Sim

Re: [U-Boot] [U-Boot, 4/4] tegra: do not descend into empty directories

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 12:28:43PM +0900, Masahiro Yamada wrote: > Some tegra makefiles only contain a dummy line to generate > a built-in.o. Let's do not descend into such directories. > > Signed-off-by: Masahiro Yamada > Cc: Tom Warren > Cc: Stephen Warren > Acked-by: Simon Glass Applied

Re: [U-Boot] [U-Boot, 3/4] kbuild: use SoC-specific CONFIG to descend into SoC directory

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 12:28:42PM +0900, Masahiro Yamada wrote: > Use "obj-$(CONFIG_FOO) += foo/" where it is possible. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U

Re: [U-Boot] config: remove redundant CONFIG_SYS_PROMPT defines

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 06:43:52PM +0900, Masahiro Yamada wrote: > Since commit 0defddc851ed (config: Add a default CONFIG_SYS_PROMPT), > each board header does not need to define CONFIG_SYS_PROMPT > as long as it uses the default prompt "=> ". > > Signed-off-by: Masahiro Yamada Applied to u-bo

Re: [U-Boot] [U-Boot, 1/4] FIT: add some FIT configurations to Kconfig

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 07:29:06PM +0900, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.d

Re: [U-Boot] [U-Boot, 3/4] commands: add more command entries in Kconfig

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 07:29:08PM +0900, Masahiro Yamada wrote: > This commit adds some of command entries (CONFIG_CMD_*) to > cover include/config_cmd_default.h and a little extra. > > Because U-Boot supports lots of commands, they should be categorized > according to their usage. > > Signed-o

Re: [U-Boot] [U-Boot, 4/4] spl: fix descending condition to drivers/mtd/nand/

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 07:29:09PM +0900, Masahiro Yamada wrote: > SPL should not reference CONFIG_CMD_NAND to decide whether or not > it should build drivers/mtd/nand. CONFIG_CMD_NAND should be only > used to select the NAND utility command on the command parser. > > Signed-off-by: Masahiro Yam

Re: [U-Boot] [U-Boot,2/4] hush: add CONFIG_HUSH_PARSER to Kconfig

2014-11-24 Thread Tom Rini
On Thu, Nov 13, 2014 at 07:29:07PM +0900, Masahiro Yamada wrote: > The README file states that the macros beginning with "CONFIG_SYS_" > depend on the hardware etc. and should not be meddled with if you do > not what you're doing. > We have already screwed up with this policy; we have given the pr

Re: [U-Boot] Please pull u-boot-dm

2014-11-24 Thread Tom Rini
On Sun, Nov 23, 2014 at 08:17:23AM -0700, Simon Glass wrote: > Hi Tom, > > There several driver model series outstanding. This request tries to > bring in what I think is ready for merging. > > - at91 series > - most of the SPL series, but as mentioned I need a revert of 1ee30aee > before enabli

Re: [U-Boot] [U-Boot, 2/7] common/board_f: fix gcc warning on MIPS64

2014-11-24 Thread Tom Rini
On Sat, Nov 15, 2014 at 11:46:53PM +0100, Daniel Schwierzeck wrote: > This fixes following warning when compiled with MIPS64 > > common/board_f.c: In function 'display_text_info': > common/board_f.c:150:2: warning: format '%X' expects argument i > of type 'unsigned int', but argument 2 has type

Re: [U-Boot] [PULL] Please pull u-boot-imx

2014-11-24 Thread Tom Rini
On Mon, Nov 24, 2014 at 12:18:08PM +0100, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit f196044dfd64745a163773c6c746f9e149ace127: > > ARM: atmel: add sama5d4 xplained ultra board support (2014-11-17 > 08:47:18 -0500) > > are a

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

2014-11-24 Thread Tom Rini
On Mon, Nov 24, 2014 at 06:30:25PM +0100, Albert ARIBAUD wrote: > Hi Tom, > > The following changes since commit 0d485b9095328cdc81b2ee94ff59b988c69b9127: > > Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2014-11-13 > 10:35:13 -0500) > > are available in the git repository at: >

[U-Boot] [ANN] U-Boot v2015.01-rc2 released

2014-11-24 Thread Tom Rini
Hey all, I've pushed v2015.01-rc2 out to the repository and tarballs should exist soon. I'm tagging later in the day than I wanted to, but that's OK. There's a fair number of things that've gone in since -rc1, but I think that's OK. And there's a few things that still need to go in. For exampl

Re: [U-Boot] [U-Boot, 1/7] common/board_f: add setup of initial stack frame for MIPS

2014-11-24 Thread Tom Rini
On Sat, Nov 15, 2014 at 11:46:52PM +0100, Daniel Schwierzeck wrote: > The MIPS specific setup of the initial stack frame was not > ported to generic board_f. > > Signed-off-by: Daniel Schwierzeck Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH] Revert "hush: fix segfault on syntax error"

2014-11-24 Thread Tom Rini
On Fri, Nov 21, 2014 at 11:05:22PM +0100, Rabin Vincent wrote: > 128059b92 ("hush: fix segfault on syntax error") attempted to fix a > segfault on syntax errors, but it broke Ctrl-C handling, and the > assumption that it made, that rcode could not be -1, is incorrect. > Revert this change. > > Re

Re: [U-Boot] [U-Boot, v8, 5/6] fs: API changes enabling extra parameter to return size of type loff_t

2014-11-24 Thread Tom Rini
On Mon, Nov 17, 2014 at 02:39:38PM -0800, Suriyan Ramasami wrote: > The sandbox/ext4/fat/generic fs commands do not gracefully deal with files > greater than 2GB. Negative values are returned in such cases. > > To handle this, the fs functions have been modified to take an additional > parameter

Re: [U-Boot] [U-Boot, v8, 1/6] sandbox: Use md5sum and fatwrite to enable testing of fs commands

2014-11-24 Thread Tom Rini
On Mon, Nov 17, 2014 at 02:39:34PM -0800, Suriyan Ramasami wrote: > Enable md5sum to obtain the MD5 of the read and written files to check > their contents for validity. > Use map_sysmem() to map buffer in a sandbox environment. > > Signed-off-by: Suriyan Ramasami > > Acked-by: Simon Glass Ap

Re: [U-Boot] [U-Boot, v8, 2/6] fat: Prepare API change for files greater than 2GB

2014-11-24 Thread Tom Rini
On Mon, Nov 17, 2014 at 02:39:35PM -0800, Suriyan Ramasami wrote: > Change the internal FAT functions to use loff_t for offsets. > > Signed-off-by: Suriyan Ramasami > > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] Please pull u-boot-x86.git

2014-11-24 Thread Tom Rini
On Fri, Nov 21, 2014 at 08:00:27AM +0100, Simon Glass wrote: > Hi Tom, > > Here's the introduction of bare x86 support. > > > The following changes since commit 4d70b34d7f721d8b1d4d628e68c3a44ab7a10dff: > > Merge branch 'master' of git://git.denx.de/u-boot-ubi (2014-11-19 > 23:18:29 -0500) >

Re: [U-Boot] [U-Boot, v8, 6/6] sandbox: script for testing sandbox/ext4/fat/fs commands

2014-11-24 Thread Tom Rini
On Mon, Nov 17, 2014 at 02:39:39PM -0800, Suriyan Ramasami wrote: > Test size/read/write commands in a sandbox environment. > > Signed-off-by: Suriyan Ramasami > > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [U-Boot, v8, 4/6] sandbox: Prepare API change for files greater than 2GB

2014-11-24 Thread Tom Rini
On Mon, Nov 17, 2014 at 02:39:37PM -0800, Suriyan Ramasami wrote: > Change the internal sandbox functions to use loff_t for file offsets. > > Signed-off-by: Suriyan Ramasami > > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, v8, 3/6] ext4: Prepare API change for files greater than 2GB

2014-11-24 Thread Tom Rini
On Mon, Nov 17, 2014 at 02:39:36PM -0800, Suriyan Ramasami wrote: > Change the internal EXT4 functions to use loff_t for offsets. > > Signed-off-by: Suriyan Ramasami > > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [PATCH 1/7] common/board_f: add setup of initial stack frame for MIPS

2014-11-24 Thread Tom Rini
On Fri, Nov 21, 2014 at 09:46:09PM +0100, Daniel Schwierzeck wrote: > Hi Simon, > > On 20.11.2014 18:22, Simon Glass wrote: > > Hi Daniel, > > > > On 20 November 2014 16:54, Daniel Schwierzeck > > wrote: > >> > >> > >> On 19.11.2014 23:22, Simon Glass wrote: > >>> Hi Daniel, > >>> > >>> On 19 No

Re: [U-Boot] USB Host not enumerating properly on AM335x-based board

2014-11-24 Thread Maxime Ripard
Hi, On Sat, Nov 22, 2014 at 12:40:58AM +0100, Anatolij Gustschin wrote: > Hi Maxime, > > On Thu, 20 Nov 2014 17:49:17 +0100 > Maxime Ripard wrote: > > > Hi, > > > > I'm currently working on 2014.07, on a custom TI AM335x based board. > > > > Everything works great so far, except when we're tr

Re: [U-Boot] [PATCH 8/8] dm: core: abolish u-boot, dm-pre-reloc property

2014-11-24 Thread Simon Glass
HI Masahiro, On 21 November 2014 at 02:59, Masahiro Yamada wrote: > Hi Simon, > > > > On Thu, 20 Nov 2014 16:44:22 + > Simon Glass wrote: > >> Hi Masahiro, >> >> On 19 November 2014 09:21, Masahiro Yamada wrote: >> > Hi Simon, >> > >> > >> > >> > On Tue, 18 Nov 2014 14:37:33 + >> > Simo

Re: [U-Boot] [PATCH 2/2] Exynos5800: The Peach-Pi board does not have a Parade video bridge

2014-11-24 Thread Sjoerd Simons
On Mon, 2014-11-24 at 09:50 -0700, Simon Glass wrote: > Hi Sjoerd, > > On 24 November 2014 at 09:21, Sjoerd Simons > wrote: > > On Mon, 2014-11-24 at 09:01 -0700, Simon Glass wrote: > >> Does it fix the problem if you just remove it from the device tree? > > > > That should indeed work as well, b

Re: [U-Boot] [PATCH v3 4/4] ARM: tegra: Add support for nyan board

2014-11-24 Thread Simon Glass
Hi Stephen, On 24 November 2014 at 10:28, Stephen Warren wrote: > On 11/23/2014 09:12 AM, Simon Glass wrote: >> >> From: Allen Martin >> >> Nyan is a Tegra124 clamshell board that is very similar to venice2, but it >> has a different panel, the sdcard cd and wp sense are flipped, and it has >> a

Re: [U-Boot] [PATCH v3 3/4] tegra: config: Enable FIT and device tree for all boards

2014-11-24 Thread Simon Glass
Hi Stephen, On 24 November 2014 at 10:11, Stephen Warren wrote: > On 11/23/2014 09:12 AM, Simon Glass wrote: >> >> Modern kernels require a device tree to boot. > > > True. > >> Enable FIT support to permit >> >> booting these images, rather than just legacy images. > > > I don't understand this?

Re: [U-Boot] [PATCH 0/5] PL01x: baudrate & line control fixes

2014-11-24 Thread vikasm
Hi Simon, On 11/24/2014 07:51 AM, Simon Glass wrote: Hi Vikas, On 18 November 2014 at 11:59, vikasm wrote: Thanks Simon, On 11/17/2014 09:30 PM, Simon Glass wrote: Hi Vikas, On 18 November 2014 00:17, Vikas Manocha wrote: This patchset fixes the pl01x driver esp for pl011 baudrate & lin

[U-Boot] [PATCH v2 0/2] dm: rpi: Move Raspberry Pi to use driver model

2014-11-24 Thread Simon Glass
This series adds driver model support to the GPIO and serial drivers used by Raspberry Pi, and moves Raspberry Pi over to driver model. This requires adding driver model support to the pl01x serial driver, and replacing the bcm2835 GPIO driver with a driver model version (since there are no longer

[U-Boot] [PATCH v2 1/2] dm: rpi: Move serial to driver model

2014-11-24 Thread Simon Glass
Adjust the configuration to use the driver model version of the pl01x serial driver. Add the required platform data. Signed-off-by: Simon Glass --- Changes in v2: - Adjust header file include to dm/platform_data/... board/raspberrypi/rpi/rpi.c | 12 include/configs/rpi.h |

[U-Boot] [PATCH v2 2/2] dm: rpi: Move script load address to 0x8000

2014-11-24 Thread Simon Glass
The current load address of 0 seems to cause problems when driver model is used. There doesn't seem to be any reason why the script needs to load to 0, so move it. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to move script load address to 0x8000 include/configs/rpi.h | 2 +-

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

2014-11-24 Thread Minkyu Kang
On 08/10/14 22:04, Guillaume GARDET wrote: > V2: rebased on latest GIT version > > V1: 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:

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

2014-11-24 Thread Minkyu Kang
On 19/09/14 22:31, Guillaume GARDET wrote: > 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 > > --- >

[U-Boot] [PATCH] tools: Add ifdtool to .gitignore

2014-11-24 Thread Bin Meng
Signed-off-by: Bin Meng --- tools/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/.gitignore b/tools/.gitignore index e7f0f8f..9bc9fec 100644 --- a/tools/.gitignore +++ b/tools/.gitignore @@ -4,6 +4,7 @@ /fit_check_sign /fit_info /gen_eth_addr +/ifdtool /img2srec /kwboot

Re: [U-Boot] [PATCH] tools: Add ifdtool to .gitignore

2014-11-24 Thread Simon Glass
On 24 November 2014 at 19:20, Bin Meng wrote: > Signed-off-by: Bin Meng > --- > tools/.gitignore | 1 + > 1 file changed, 1 insertion(+) Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 02/30] Add ALIGN_DOWN() to find next smallest alignment

2014-11-24 Thread Simon Glass
Hi, On 14 November 2014 at 18:18, Simon Glass wrote: > We have an ALIGN() macro - add a comment as to what this does. Also add a > new ALIGN_DOWN() macro, which aligns a value to the next smallest multiple. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/common.h | 15 +

Re: [U-Boot] [PATCH v2 01/30] Align embedded device tree correctly

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Device trees must be aligned to a 4-byte boundary. This was dropped in the > Kbuild conversion. Bring it back, and use 16-byte alignment for good > measure. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > scripts/Makefile.lib |

Re: [U-Boot] [PATCH v2 04/30] x86: Remove board_early_init_r()

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > This function is not needed. Remove it to improve the generic init sequence > slightly. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/cpu/coreboot/coreboot.c| 11 --- > board/googl

Re: [U-Boot] [PATCH v2 06/30] x86: Ensure that all relocation data is included in the image

2014-11-24 Thread Simon Glass
On 14 November 2014 at 20:29, Bin Meng wrote: > On Sat, Nov 15, 2014 at 9:18 AM, Simon Glass wrote: >> Some toolchains put the relocation data into separate sections. Adjust the >> linker script to catch this case. Without relocation data, U-Boot will not >> boot. >> >> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 03/30] pci: Update pci_ids.h to include some missing IDs

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > This was taken from Linux 3.18 with some additional IDs from Chrome OS > Coreboot commit 688ef385. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/pci_ids.h | 187 > --

Re: [U-Boot] [PATCH v2 05/30] x86: Panic if there is no relocation data

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > This normally indicates a problem which will prevent relocation from > functioning, resulting in a hang. Panic in this case to make it easier > to debug. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: > - Change

Re: [U-Boot] [PATCH v2 12/30] pci: Add functions to read and write a BAR address

2014-11-24 Thread Simon Glass
On 14 November 2014 at 20:39, Bin Meng wrote: > On Sat, Nov 15, 2014 at 9:18 AM, Simon Glass wrote: >> Some PCI functions cannot be auto-configured. Add a function to set up a >> fixed BAR which can be used in these situations. Also add a function to read >> the current address of a BAR. >> >> Si

Re: [U-Boot] [PATCH v2 08/30] rtc: mc146818: Set up RTC at start of day

2014-11-24 Thread Simon Glass
On 14 November 2014 at 20:37, Bin Meng wrote: > On Sat, Nov 15, 2014 at 9:18 AM, Simon Glass wrote: >> Provide a function to set up the RTC ready for use. >> >> Signed-off-by: Simon Glass >> >> --- >> >> Changes in v2: >> - Drop the part of the commit message that talks about using build date >>

Re: [U-Boot] [PATCH v2 07/30] x86: Factor out common values in the link script

2014-11-24 Thread Simon Glass
On 14 November 2014 at 20:34, Bin Meng wrote: > On Sat, Nov 15, 2014 at 9:18 AM, Simon Glass wrote: >> Define the reset base in config.mk so that it does not need to be calculated >> twice in the link script. Also tidy up the START_16 and RESET_VEC_LOC values >> to fit with this new approach. >>

Re: [U-Boot] [PATCH v2 10/30] x86: pci: Add handlers before and after a PCI hose scan

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Some boards will want to do some setup before and after a PCI hose > is scanned. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/cpu/pci.c | 12 > arch/x86/include/asm/pci.h

Re: [U-Boot] [PATCH v2 11/30] x86: config: Enable plug-and-play for link PCI

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Enable this option so that we can configure the available PCI devices. Also > make sure that PCI is available early after relocation as we use it for > several other subsystems. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > in

Re: [U-Boot] [PATCH v2 09/30] x86: Add ioapic.h header

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Add definitions for the I/O Advanced Peripheral Interrupt Controller. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/include/asm/ioapic.h | 38 ++ > 1 file changed, 38 insertions(+)

Re: [U-Boot] [PATCH v2 14/30] x86: ivybridge: Add support for BD82x6x PCH

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Add basic setup for the PCH. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Use pci_write_bar32() to write to BARs > > arch/x86/cpu/ivybridge/Makefile | 1 + > arch/x86/cpu/ivybridge/bd82x6x.c | 99 > +++

Re: [U-Boot] [PATCH v2 13/30] x86: Set up edge triggering on interrupt 9

2014-11-24 Thread Simon Glass
On 14 November 2014 at 20:57, Bin Meng wrote: > On Sat, Nov 15, 2014 at 9:18 AM, Simon Glass wrote: >> Add this additional init in case it is needed by the OS. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: >> - Remove i8259 patch and just update the existing interrupt code Applie

Re: [U-Boot] [PATCH v2 15/30] x86: Add a simple header file for ACPI

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > We don't use many features yet, so this only has a few declarations. > It will be expanded as needed. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/include/asm/acpi.h | 24 > 1 file changed, 2

Re: [U-Boot] [PATCH v2 19/30] x86: dts: Add LPC settings for link

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Add some settings required to set up the LPC correctly. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None Applied to u-boot-x86. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.den

Re: [U-Boot] [PATCH v2 17/30] x86: ivybridge: Add additional LPC init

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Set up all the remaining pieces of the LPC (low-pin-count) peripheral in > PCH (Peripheral Controller Hub). > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Adjust rtc_init() call to remove the parameter > - Remove ISA DMA init which i

Re: [U-Boot] [PATCH v2 16/30] x86: ivybridge: Add PCH init

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Add required init for the Intel Platform Controller Hub in ivybridge. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/ivybridge/Makefile | 1 + > arch/x86/cpu/ivybridge/pch.c | 123 > ++

Re: [U-Boot] [PATCH v2 21/30] x86: dts: Add SATA settings for link

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Add the requires settings to enable SATA on link. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/dts/link.dts | 7 +++ > include/configs/chromebook_link.h | 1 - > 2 files changed, 7 insertions(+), 1 de

Re: [U-Boot] [PATCH v2 20/30] x86: ivybridge: Add SATA init

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Add code to set up the SATA interfaces on boot. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Move common SATA init to a function to reduce duplication > - Use pci_write_bar32() to write to BARs > > arch/x86/cpu/ivybridge/Makefile

Re: [U-Boot] [PATCH v2 18/30] x86: dts: Move PCI peripherals into a pci node

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > These peripherals should not be at the top level, since they exist inside > the PCI bus. We don't have a full device tree node for pci yet, but we > should at least put it at the right level. > > Signed-off-by: Simon Glass > --- > > Changes in v2

Re: [U-Boot] [PATCH v2 25/30] x86: Add Intel speedstep and turbo mode code

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Intel chips have a turbo mode where they can run faster for a short period > until they reach thermal limits. Add code to adjust and query this feature. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/Makefile

Re: [U-Boot] [PATCH v2 22/30] x86: ivybridge: Set up EHCI USB

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Add init for EHCI so that USB can be used. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/ivybridge/Makefile | 1 + > arch/x86/cpu/ivybridge/bd82x6x.c | 2 ++ > arch/x86/cpu/ivybridge/u

Re: [U-Boot] [PATCH v2 23/30] x86: config: Enable USB on link

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Enable USB support on link - there are two EHCI ports available. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/configs/chromebook_link.h | 2 -- > 1 file changed, 2 deletions(-) Applied to u-boot-x86.

Re: [U-Boot] [PATCH v2 24/30] x86: ivybridge: Set up XHCI USB

2014-11-24 Thread Simon Glass
On 14 November 2014 at 18:18, Simon Glass wrote: > Add init for XHCI so that high-speed USB can be used. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/ivybridge/Makefile | 1 + > arch/x86/cpu/ivybridge/usb_xhci.c | 32 >

Re: [U-Boot] [PATCH 1/4] x86: Call cpu_init_interrupts() from interrupt_init()

2014-11-24 Thread Simon Glass
On 20 November 2014 at 01:10, Bin Meng wrote: > Currently cpu_init_interrupts() is called from cpu_init_r() to > setup the interrupt and exception of the cpu core, but at that > time the i8259 has not been initialized to mask all the irqs > and remap the master i8259 interrupt vector base, so the

Re: [U-Boot] [PATCH 2/4] x86: Remove cpu_init_r() for x86

2014-11-24 Thread Simon Glass
On 20 November 2014 at 01:11, Bin Meng wrote: > Since cpu_init_interrupts() was moved out of cpu_init_r(), it is > useless to keep cpu_init_r() for x86, thus remove it. > > Signed-off-by: Bin Meng > --- > arch/x86/cpu/cpu.c| 6 -- > arch/x86/include/asm/u-boot-x86.h | 2 -- >

Re: [U-Boot] [PATCH 3/4] x86: Refactor interrupt_init()

2014-11-24 Thread Simon Glass
On 20 November 2014 at 01:11, Bin Meng wrote: > Rename interrupt_init() in arch/x86/lib/pcat_interrupts.c to > i8259_init() and create a new interrupt_init() in > arch/x86/cpu/interrupt.c to call i8259_init() followed by a > call to cpu_init_interrupts(). > > Signed-off-by: Bin Meng > --- > arch

Re: [U-Boot] [PATCH 4/4] x86: Remove unnecessary call to initr_enable_interrupts()

2014-11-24 Thread Simon Glass
On 20 November 2014 at 01:11, Bin Meng wrote: > Actually initr_enable_interrupts() was never called in an x86 build > due to it was wrapped by CONFIG_x86 (typo of X86). > > Signed-off-by: Bin Meng > --- > common/board_r.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Simon G

Re: [U-Boot] [PATCH v2 01/12] spi/ich.c: Fix a bug of reading from a non-64 bytes aligned address

2014-11-24 Thread Simon Glass
Hi, On 1 November 2014 at 02:53, Bin Meng wrote: > The ich spi controller driver spi_xfer() tries to align reading > address to 64 bytes when doing spi data in, which causes a bug of > either infinite loop or a huge size memcpy(). > > Actually the ich spi controller does not have such requirement

Re: [U-Boot] [PATCH v2 01/12] spi/ich.c: Fix a bug of reading from a non-64 bytes aligned address

2014-11-24 Thread Bin Meng
Hi Simon On Tue, Nov 25, 2014 at 11:10 AM, Simon Glass wrote: > Hi, > > On 1 November 2014 at 02:53, Bin Meng wrote: >> The ich spi controller driver spi_xfer() tries to align reading >> address to 64 bytes when doing spi data in, which causes a bug of >> either infinite loop or a huge size memc

Re: [U-Boot] [PATCH 8/8] dm: core: abolish u-boot, dm-pre-reloc property

2014-11-24 Thread Masahiro Yamada
Hi Simon, On Mon, 24 Nov 2014 15:29:23 -0700 Simon Glass wrote: > HI Masahiro, > > On 21 November 2014 at 02:59, Masahiro Yamada > wrote: > > Hi Simon, > > > > > > > > On Thu, 20 Nov 2014 16:44:22 + > > Simon Glass wrote: > > > >> Hi Masahiro, > >> > >> On 19 November 2014 09:21, Masah

Re: [U-Boot] [PATCH U-Boot] ARM: rpi_b: detect board revision

2014-11-24 Thread Stephen Warren
On 11/24/2014 08:50 AM, Simon Glass wrote: > Hi Stephen, > > On 18 November 2014 at 21:40, Stephen Warren wrote: >> Detect the board revision early during boot, and print the decoded >> model name. >> >> Eventually, this information can be used for tasks such as: >> - Allowing/preventing USB devi

Re: [U-Boot] [PATCH 4/4] x86: Remove unnecessary call to initr_enable_interrupts()

2014-11-24 Thread Simon Glass
On 24 November 2014 at 20:06, Simon Glass wrote: > On 20 November 2014 at 01:11, Bin Meng wrote: >> Actually initr_enable_interrupts() was never called in an x86 build >> due to it was wrapped by CONFIG_x86 (typo of X86). >> >> Signed-off-by: Bin Meng >> --- >> common/board_r.c | 2 +- >> 1 fil

Re: [U-Boot] [PATCH 2/4] x86: Remove cpu_init_r() for x86

2014-11-24 Thread Simon Glass
On 24 November 2014 at 20:06, Simon Glass wrote: > On 20 November 2014 at 01:11, Bin Meng wrote: >> Since cpu_init_interrupts() was moved out of cpu_init_r(), it is >> useless to keep cpu_init_r() for x86, thus remove it. >> >> Signed-off-by: Bin Meng >> --- >> arch/x86/cpu/cpu.c

Re: [U-Boot] [PATCH 3/4] x86: Refactor interrupt_init()

2014-11-24 Thread Simon Glass
On 24 November 2014 at 20:06, Simon Glass wrote: > On 20 November 2014 at 01:11, Bin Meng wrote: >> Rename interrupt_init() in arch/x86/lib/pcat_interrupts.c to >> i8259_init() and create a new interrupt_init() in >> arch/x86/cpu/interrupt.c to call i8259_init() followed by a >> call to cpu_init_

Re: [U-Boot] [PATCH 1/4] x86: Call cpu_init_interrupts() from interrupt_init()

2014-11-24 Thread Simon Glass
On 24 November 2014 at 20:05, Simon Glass wrote: > On 20 November 2014 at 01:10, Bin Meng wrote: >> Currently cpu_init_interrupts() is called from cpu_init_r() to >> setup the interrupt and exception of the cpu core, but at that >> time the i8259 has not been initialized to mask all the irqs >> a

Re: [U-Boot] [PATCH v2 0/2] mtd: denali: Use SELF_INIT to fix up registers after nand_scan_ident()

2014-11-24 Thread Masahiro Yamada
Scott, If you have no more comment on this series, please apply it. Masahiro On Thu, 13 Nov 2014 20:31:49 +0900 Masahiro Yamada wrote: > > This patch series is here because Scott Wood recommended me > to use CONFIG_SYS_NAND_SELF_INIT to solve my problem: > http://patchwork.ozlabs.org/patc

Re: [U-Boot] [PATCH U-Boot] ARM: rpi_b: detect board revision

2014-11-24 Thread Simon Glass
Hi Stephen, On 24 November 2014 at 20:38, Stephen Warren wrote: > On 11/24/2014 08:50 AM, Simon Glass wrote: >> Hi Stephen, >> >> On 18 November 2014 at 21:40, Stephen Warren wrote: >>> Detect the board revision early during boot, and print the decoded >>> model name. >>> >>> Eventually, this in

Re: [U-Boot] [PATCH 0/5] PL01x: baudrate & line control fixes

2014-11-24 Thread Simon Glass
Hi Vikas, On 24 November 2014 at 17:40, vikasm wrote: > Hi Simon, > > > On 11/24/2014 07:51 AM, Simon Glass wrote: >> >> Hi Vikas, >> >> On 18 November 2014 at 11:59, vikasm wrote: >>> >>> Thanks Simon, >>> >>> >>> On 11/17/2014 09:30 PM, Simon Glass wrote: Hi Vikas, On 18 No

Re: [U-Boot] [PATCH v2] Kbuild: introduce Makefile in arch/$ARCH/

2014-11-24 Thread Masahiro Yamada
Hi Daniel, On Fri, 21 Nov 2014 23:51:33 +0100 Daniel Schwierzeck wrote: > Introduce a Makefile under arch/$ARCH/ and include it in the > top Makefile (similar to Linux kernel). This allows further > refactoringi like moving architecture-specific code out of global > makefiles, deprecating config

Re: [U-Boot] [PATCH v2 08/30] rtc: mc146818: Set up RTC at start of day

2014-11-24 Thread Simon Glass
On 24 November 2014 at 19:47, Simon Glass wrote: > On 14 November 2014 at 20:37, Bin Meng wrote: >> On Sat, Nov 15, 2014 at 9:18 AM, Simon Glass wrote: >>> Provide a function to set up the RTC ready for use. >>> >>> Signed-off-by: Simon Glass >>> >>> --- >>> >>> Changes in v2: >>> - Drop the pa

[U-Boot] Tegra board problems

2014-11-24 Thread Simon Glass
Hi, I'm a bit messed up with my testing now. 1. Jetson-TK1: While I2C testing I unfortunately erased part of the I2C board ID EEPROM, and now it will not boot. It says: Dummy read for TPS65913 Board id = 0x1ff and then dies. I can probably change the board id back, but I'm not sure what it shou

Re: [U-Boot] [PATCH v2 2/2] dm: rpi: Move script load address to 0x8000

2014-11-24 Thread Stephen Warren
On 11/24/2014 06:08 PM, Simon Glass wrote: > The current load address of 0 seems to cause problems when driver model > is used. There doesn't seem to be any reason why the script needs to load > to 0, so move it. I'm not particularly tied to the specific $scriptaddr value, but I think we should fi

Re: [U-Boot] [PATCH v2 1/2] dm: rpi: Move serial to driver model

2014-11-24 Thread Stephen Warren
On 11/24/2014 06:08 PM, Simon Glass wrote: > Adjust the configuration to use the driver model version of the pl01x > serial driver. Add the required platform data. This basically seems to work, but I'll withhold any tested-by/acked-by until we can work out why writes to address 0 cause U-Boot to f

Re: [U-Boot] [PATCH v2 2/2] dm: rpi: Move script load address to 0x8000

2014-11-24 Thread Simon Glass
Hi Stephen, On 24 November 2014 at 21:06, Stephen Warren wrote: > On 11/24/2014 06:08 PM, Simon Glass wrote: >> The current load address of 0 seems to cause problems when driver model >> is used. There doesn't seem to be any reason why the script needs to load >> to 0, so move it. > > I'm not par

Re: [U-Boot] [PATCH 2/2] Exynos5800: The Peach-Pi board does not have a Parade video bridge

2014-11-24 Thread Simon Glass
Hi Sjoerd, On 24 November 2014 at 16:13, Sjoerd Simons wrote: > On Mon, 2014-11-24 at 09:50 -0700, Simon Glass wrote: >> Hi Sjoerd, >> >> On 24 November 2014 at 09:21, Sjoerd Simons >> wrote: >> > On Mon, 2014-11-24 at 09:01 -0700, Simon Glass wrote: >> >> Does it fix the problem if you just rem

<    1   2   3   >