Re: [U-Boot] [PATCH v4 9/9] sandbox: add config_distro_defaults and config_distro_bootcmd

2015-04-19 Thread Simon Glass
On 13 April 2015 at 16:34, Simon Glass s...@chromium.org wrote: Hi Joe, On 13 April 2015 at 16:28, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Sjoerd, On Mon, Apr 13, 2015 at 5:07 PM, Simon Glass s...@chromium.org wrote: Hi Sjoerd, On 13 April 2015 at 14:54, Sjoerd Simons

Re: [U-Boot] [PATCH v4 6/9] config_distro_bootcmd.h: Add shared block definition for the host interface

2015-04-19 Thread Simon Glass
On 13 April 2015 at 20:21, Dennis Gilmore den...@ausil.us wrote: On Monday, April 13, 2015 10:54:24 PM Sjoerd Simons wrote: Define the common shared block environment for the host interface in preperation for the sandbox build to use config_distro_bootcmd. Signed-off-by: Sjoerd Simons

Re: [U-Boot] [PATCH v4 8/9] config: Add default client arch defines for intel architectures

2015-04-19 Thread Simon Glass
On 13 April 2015 at 14:54, Sjoerd Simons sjoerd.sim...@collabora.co.uk wrote: Define default PXE client architecture identifiers for IA32 (0x0 aka Intel x86PC) and Intel x86-64 (0x9 aka EFI x86-64). This prepares for usage for config_distro_defaults in the sandbox architecture

Re: [U-Boot] [PATCH] dm: i2c: mxc support DM

2015-04-19 Thread Simon Glass
Hi Peng, On 15 April 2015 at 03:35, Peng Fan peng@freescale.com wrote: Add support when CONFIG_DM_I2C configured. Test results: = i2c dev 0 Setting bus to 0 = i2c probe Valid chip addresses: 08 50 = i2c md 8 38 0038: 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08

Re: [U-Boot] [PATCH V4 10/10] dm: test: Add tests for get/find uclass's device by name

2015-04-19 Thread Simon Glass
Hi Przemyslaw, On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit introduces simple tests for functions: - uclass_find_device_by_name() - uclass_get_device_by_name() Tests added by this commit: - Test: dm_test_uclass_devices_find_by_name: for uclass id:

Re: [U-Boot] [PATCH V4 06/10] dm: core: uclass: add function: uclass_find_device_by_name()

2015-04-19 Thread Simon Glass
Hi Przemyslaw, On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the driver model uclass's API by function: - uclass_find_device_by_name() And this function returns the device if: - uclass with given ID, exists, - device with exactly given

Re: [U-Boot] [PATCH V4 07/10] dm: core: uclass: add function: uclass_get_device_by_name()

2015-04-19 Thread Simon Glass
On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the driver model uclass's API by function: - uclass_get_device_by_name() And this function returns the device if: - uclass with given ID, exists, - device with exactly given name(dev-name), exists,

[U-Boot] [PATCH] kconfig: remove duplicated CMD_DNS option

2015-04-19 Thread Andrey Skvortsov
two CMD_DNS options were added by commit 60296a835cb17 (commands: add more command entries in Kconfig) Signed-off-by: Andrey Skvortsov andrej.skvort...@gmail.com Cc: Masahiro Yamada yamad...@jp.panasonic.com --- common/Kconfig | 5 - 1 file changed, 5 deletions(-) diff --git

[U-Boot] [PATCH 5/5] dm: test: Don't clear global_data in dm_test_uclass_before_ready()

2015-04-19 Thread Simon Glass
We must not clear global_data even in tests, since the ram_buffer (which is used by malloc()) will also be lost, and subsequent tests will fail. Zero only the global_data fields that are required for the test to function. Signed-off-by: Simon Glass s...@chromium.org --- test/dm/core.c | 6

[U-Boot] [PATCH 1/5] dm: core: Handle recursive unbinding of uclass devices

2015-04-19 Thread Simon Glass
Since a device can have children in the same uclass as itself, we need to handle unbinding carefully: we must allow that unbinding a device in a uclass may cause another device in the same uclass to be unbound. Adjust the code to cope. Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH 3/5] lcd: Call lcd_sync() after completing the scroll

2015-04-19 Thread Simon Glass
On sandbox, if you add a printf() to malloc() for debugging, the output will eventually cause the screen to scroll. Since lcd_sync() calls SDL functions which allocate memory, and this happens before we have updated console_curr_row, U-Boot gets locked in an infinite loop. Flip the order of the

[U-Boot] [PATCH 0/5] dm: core: Fix up test failures

2015-04-19 Thread Simon Glass
While implementing the USB tests some strange failures crept in. I was not able to debug them at the time and they were seemingly independent of the USB tests. I then forgot about it. I have now tracked these failures down. This series corrects them so that the driver model tests run from start

[U-Boot] [PATCH 2/5] dm: usb: Add a terminator to the string destructor list

2015-04-19 Thread Simon Glass
The terminator is missing. Add it for completeness. Signed-off-by: Simon Glass s...@chromium.org --- drivers/usb/emul/sandbox_hub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/emul/sandbox_hub.c b/drivers/usb/emul/sandbox_hub.c index 280c708..baf8bdc 100644 ---

Re: [U-Boot] [PATCH v4 4/9] sandbox: Renamed sb command to host

2015-04-19 Thread Simon Glass
On 13 April 2015 at 14:54, Sjoerd Simons sjoerd.sim...@collabora.co.uk wrote: As suggested by Simon Glass, rename the sb command to host but keep the old sb command as an alias Signed-off-by: Sjoerd Simons sjoerd.sim...@collabora.co.uk Acked-by: Simon Glass s...@chromium.org --- Changes

Re: [U-Boot] [PATCH v4 5/9] sandbox: Implement host dev [device]

2015-04-19 Thread Simon Glass
On 13 April 2015 at 14:54, Sjoerd Simons sjoerd.sim...@collabora.co.uk wrote: A common pattern to check if a certain device exists (e.g. in config_distro_bootcmd) is to use: interface dev [device] Implement host dev [device] so this pattern can be used for sandbox host devices.

Re: [U-Boot] [PATCH v4 2/9] sandbox: Split bootm code out into lib/bootm

2015-04-19 Thread Simon Glass
On 13 April 2015 at 14:54, Sjoerd Simons sjoerd.sim...@collabora.co.uk wrote: Follow the convention of other architectures and move the platform specific linux bootm code into sandbox/lib/bootm.c. Signed-off-by: Sjoerd Simons sjoerd.sim...@collabora.co.uk Acked-by: Simon Glass

Re: [U-Boot] [PATCH v4 7/9] pxe: Ensure all memory access is to mapped memory

2015-04-19 Thread Simon Glass
On 13 April 2015 at 14:54, Sjoerd Simons sjoerd.sim...@collabora.co.uk wrote: Properly map memory through map_sysmem so that pxe can be used from the sandbox. Tested in sandbox as well as on jetson-tk1, odroid-xu3, snow as peach-pi boards Signed-off-by: Sjoerd Simons

Re: [U-Boot] [PATCH v4 3/9] sandbox: Add support for bootz

2015-04-19 Thread Simon Glass
On 13 April 2015 at 14:54, Sjoerd Simons sjoerd.sim...@collabora.co.uk wrote: Add dummy bootz_setup implementation allowing the u-boot sandbox to run bootz. This recognizes both ARM and x86 zImages to validate a valid zImage was loaded. Signed-off-by: Sjoerd Simons

Re: [U-Boot] [PATCH v4 1/9] sandbox: only do sandboxfs for hostfs interface

2015-04-19 Thread Simon Glass
On 13 April 2015 at 14:54, Sjoerd Simons sjoerd.sim...@collabora.co.uk wrote: Only do sandbox filesystem access when using the hostfs device interface, rather then falling back to it in all cases. This prevents confusion situations due to the fallback being taken rather then an unsupported

Re: [U-Boot] [PATCH V4 09/10] dm: core: device: add function: dev_get_uclass_name()

2015-04-19 Thread Simon Glass
On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the driver model device's API by function: - dev_get_uclass_name() And this function returns the device's uclass driver name if: - given dev pointer, is non_NULL otherwise, the NULL pointer is

Re: [U-Boot] [PATCH V4 08/10] dm: core: device: add function: dev_get_driver_ops()

2015-04-19 Thread Simon Glass
Hi Przemyslaw, On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the driver model device's API by function: - dev_get_driver_ops() And this function returns the device's driver's operations if given: - dev pointer, is non-NULL - dev-driver-ops

[U-Boot] [PATCH 4/5] dm: Update the README to reflect the current test output

2015-04-19 Thread Simon Glass
There are a lot more tests now. To avoid confusion add the updated test output to the driver model README. Signed-off-by: Simon Glass s...@chromium.org --- doc/driver-model/README.txt | 58 ++--- 1 file changed, 50 insertions(+), 8 deletions(-) diff

[U-Boot] Please pull u-boot-x86 branch 'sandbox'

2015-04-19 Thread Simon Glass
Hi Tom, Here are the queued sandbox changes, to allow sandbox to use the distro booting feature. The following changes since commit 5ab83ec1a13601c4f76ce009afe0d1ee51f1ad9c: sandbox: exynos: Move CONFIG_SOUND_SANDBOX to Kconfig (2015-04-13 20:53:47 -0600) are available in the git repository

Re: [U-Boot] [PATCH] usb: Remove unused variable in usb_setup_descriptor()

2015-04-19 Thread Simon Glass
Hi Hans, On 19 April 2015 at 03:33, Hans de Goede hdego...@redhat.com wrote: The compiler did not catch this as it was marked __maybe_unused. Signed-off-by: Hans de Goede hdego...@redhat.com --- common/usb.c | 2 -- 1 file changed, 2 deletions(-) Acked-by: Simon Glass s...@chromium.org

[U-Boot] [PATCH] usb: Remove unused variable in usb_setup_descriptor()

2015-04-19 Thread Hans de Goede
The compiler did not catch this as it was marked __maybe_unused. Signed-off-by: Hans de Goede hdego...@redhat.com --- common/usb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/usb.c b/common/usb.c index a4820d3..305d5cf 100644 --- a/common/usb.c +++ b/common/usb.c @@ -931,8 +931,6

[U-Boot] [PATCH 0/1] usb: Remove unused variable in usb_setup_descriptor()

2015-04-19 Thread Hans de Goede
Hi All, Note this applies on top of the V3 dm pull request Simon send yesterday. Regards, Hans ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 1/2] spl: spl_mmc: Clearer structure in spl_mmc_load_image and cosmetics

2015-04-19 Thread Paul Kocialkowski
This refactors spl_mmc_load_image to use a switch/case structure and easier to understand spl_start_uboot checks. It also drops fallbacks on boot devices that were not selected in the first place. Lines that go beyond 80 chars are also reduced by reducing the number of tabs. Debug and error

[U-Boot] [PATCH 2/2] spl: spl_mmc: Partition raw boot mode for eMMC

2015-04-19 Thread Paul Kocialkowski
This adds support for providing a partition number instead of a sector for eMMC. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/spl/spl_mmc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index dd150a7..6fea728 100644 ---

Re: [U-Boot] Please pull u-boot-x86 branch 'sandbox'

2015-04-19 Thread Simon Glass
Hi Tom, On 19 April 2015 at 14:32, Tom Rini tr...@konsulko.com wrote: On Sun, Apr 19, 2015 at 02:19:41PM -0600, Simon Glass wrote: Hi Tom, On 19 April 2015 at 12:28, Tom Rini tr...@konsulko.com wrote: On Sun, Apr 19, 2015 at 07:23:08AM -0600, Simon Glass wrote: Hi Tom, Here are the

Re: [U-Boot] Please pull u-boot-x86 branch 'sandbox'

2015-04-19 Thread Tom Rini
On Sun, Apr 19, 2015 at 02:57:21PM -0600, Simon Glass wrote: Hi Tom, On 19 April 2015 at 14:32, Tom Rini tr...@konsulko.com wrote: On Sun, Apr 19, 2015 at 02:19:41PM -0600, Simon Glass wrote: Hi Tom, On 19 April 2015 at 12:28, Tom Rini tr...@konsulko.com wrote: On Sun, Apr 19, 2015

Re: [U-Boot] Please pull u-boot-x86 branch 'sandbox'

2015-04-19 Thread Tom Rini
On Sun, Apr 19, 2015 at 02:19:41PM -0600, Simon Glass wrote: Hi Tom, On 19 April 2015 at 12:28, Tom Rini tr...@konsulko.com wrote: On Sun, Apr 19, 2015 at 07:23:08AM -0600, Simon Glass wrote: Hi Tom, Here are the queued sandbox changes, to allow sandbox to use the distro booting

Re: [U-Boot] [PATCH] ahci: mmio_base is a virtual address

2015-04-19 Thread Tom Rini
On Fri, Apr 17, 2015 at 09:19:01AM -0500, Scott Wood wrote: Don't store it in a u32. Don't dereference the bus address as if it were a virtual address (fixes 284231e49a2b4 (ahci: Support splitting of read transactions into multiple chunks)). Fixes crash on boot in MPC8641HPCN_36BIT

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

2015-04-19 Thread Tom Rini
On Sat, Apr 18, 2015 at 04:23:42PM -0600, Simon Glass wrote: Hi Tom, Here are the queued-up buildman/patman patches, including the new CONFIG comparison feature (remember to build with -C if using it). Note these are in branch 'buildman'. The following changes since commit

Re: [U-Boot] Please pull u-boot-dm (take 3)

2015-04-19 Thread Tom Rini
On Sat, Apr 18, 2015 at 02:19:58PM -0600, Simon Glass wrote: Hi Tom, I have patched in the patches from you and Hans. Things seem to work OK with USB on the three boards I tested, and I managed to get USB running on pcduino3 (sunxi) also. Thanks for you help with this. The following

Re: [U-Boot] Please pull u-boot-x86 branch 'sandbox'

2015-04-19 Thread Tom Rini
On Sun, Apr 19, 2015 at 07:23:08AM -0600, Simon Glass wrote: Hi Tom, Here are the queued sandbox changes, to allow sandbox to use the distro booting feature. The following changes since commit 5ab83ec1a13601c4f76ce009afe0d1ee51f1ad9c: sandbox: exynos: Move CONFIG_SOUND_SANDBOX to

Re: [U-Boot] Please pull u-boot-x86 branch 'sandbox'

2015-04-19 Thread Simon Glass
Hi Tom, On 19 April 2015 at 12:28, Tom Rini tr...@konsulko.com wrote: On Sun, Apr 19, 2015 at 07:23:08AM -0600, Simon Glass wrote: Hi Tom, Here are the queued sandbox changes, to allow sandbox to use the distro booting feature. The following changes since commit

Re: [U-Boot] [PATCH 0/5] dm: usb: Start of sunxi support

2015-04-19 Thread Simon Glass
Hi Hans, On 18 April 2015 at 15:50, Hans de Goede hdego...@redhat.com wrote: Hi Simon, On 18-04-15 19:33, Simon Glass wrote: This series adds a few starts for sunxi driver model support for USB. I don't intend to finish it, but hopefully it helps things get going. Simon Glass (5):

Re: [U-Boot] [PATCH v1] dm: sf: Add Atmel DataFlash spi flash driver

2015-04-19 Thread Simon Glass
Hi Haikun, On 17 April 2015 at 04:58, Haikun Wang haikun.w...@freescale.com wrote: Atmel DataFlash chips have commands different from common spi flash commands. Atmel DataFlash also have special page-size. This driver add support for accessing Atmel DataFlash. It is based on the Driver

[U-Boot] [U-boot] u-boot dm/spi claim_bus arguments

2015-04-19 Thread haikun.w...@freescale.com
On 3/10/2015 11:46 AM, Simon Glass wrote: Hi Wang, On 9 March 2015 at 21:41, haikun.w...@freescale.com mailto:haikun.w...@freescale.com haikun.w...@freescale.com mailto:haikun.w...@freescale.com wrote: Hi Simon, I am working on converting my SPI driver to driver model. I have

[U-Boot] Please pull u-boot-x86.git branch sandbox (take 2a)

2015-04-19 Thread Simon Glass
Hi Tom, I've rebased on master and built again. Note this is branch 'sandbox'. The following changes since commit b8d7652c81689a69bc6eaa206cf875bbe632831c: Merge branch 'buildman' of git://git.denx.de/u-boot-x86 (2015-04-18 19:24:13 -0400) are available in the git repository at:

[U-Boot] [PATCH] fsl/deepsleep: avoid the DDR restore from being optimized out

2015-04-19 Thread Yuantian.Tang
From: Tang Yuantian yuantian.t...@freescale.com Function dp_ddr_restore is to restore the first 128-byte space of DDR. However those codes may be optimized out by compiler since the destination address is at 0x0. In order to avoid compiler optimization, we restore the space from high address,

Re: [U-Boot] [PATCH] kconfig: remove duplicated CMD_DNS option

2015-04-19 Thread Masahiro Yamada
Hi Andrey, 2015-04-19 20:58 GMT+09:00 Andrey Skvortsov andrej.skvort...@gmail.com: two CMD_DNS options were added by commit 60296a835cb17 (commands: add more command entries in Kconfig) Signed-off-by: Andrey Skvortsov andrej.skvort...@gmail.com Cc: Masahiro Yamada yamad...@jp.panasonic.com

Re: [U-Boot] [PATCH V4 05/10] dm: core: remove type 'static' of function uclass_get_device_tail()

2015-04-19 Thread Simon Glass
On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: Uclass API provides a few functions for get/find the device. To provide a complete function set of uclass-internal functions, for use by the drivers, the function uclass_get_device_tail() should be non-static.

Re: [U-Boot] [U-boot] u-boot dm/spi claim_bus arguments

2015-04-19 Thread Simon Glass
On 19 April 2015 at 20:42, haikun.w...@freescale.com haikun.w...@freescale.com wrote: On 4/20/2015 10:29 AM, Wang Haikun-B53464 wrote: On 3/10/2015 11:46 AM, Simon Glass wrote: Hi Wang, On 9 March 2015 at 21:41, haikun.w...@freescale.com mailto:haikun.w...@freescale.com

Re: [U-Boot] [U-boot] u-boot dm/spi claim_bus arguments

2015-04-19 Thread haikun.w...@freescale.com
On 4/20/2015 10:29 AM, Wang Haikun-B53464 wrote: On 3/10/2015 11:46 AM, Simon Glass wrote: Hi Wang, On 9 March 2015 at 21:41, haikun.w...@freescale.com mailto:haikun.w...@freescale.com haikun.w...@freescale.com mailto:haikun.w...@freescale.com wrote: Hi Simon, I am working on

Re: [U-Boot] [PATCH V4 06/10] dm: core: uclass: add function: uclass_find_device_by_name()

2015-04-19 Thread Simon Glass
On 19 April 2015 at 07:23, Simon Glass s...@chromium.org wrote: Hi Przemyslaw, On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the driver model uclass's API by function: - uclass_find_device_by_name() And this function returns the device if: -

Re: [U-Boot] [PATCH V4 04/10] dm: test: Add tests for get/find uclass devices

2015-04-19 Thread Simon Glass
On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit introduces simple tests for functions: - uclass_find_first_device() - uclass_find_next_device() - uclass_first_device() - uclass_next_device() Tests added by this commit: - Test:

Re: [U-Boot] [PATCH V4 07/10] dm: core: uclass: add function: uclass_get_device_by_name()

2015-04-19 Thread Simon Glass
On 19 April 2015 at 07:23, Simon Glass s...@chromium.org wrote: On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the driver model uclass's API by function: - uclass_get_device_by_name() And this function returns the device if: - uclass with given

Re: [U-Boot] [PATCH V4 08/10] dm: core: device: add function: dev_get_driver_ops()

2015-04-19 Thread Simon Glass
On 19 April 2015 at 07:24, Simon Glass s...@chromium.org wrote: Hi Przemyslaw, On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the driver model device's API by function: - dev_get_driver_ops() And this function returns the device's driver's

Re: [U-Boot] [PATCH V4 09/10] dm: core: device: add function: dev_get_uclass_name()

2015-04-19 Thread Simon Glass
On 19 April 2015 at 07:24, Simon Glass s...@chromium.org wrote: On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the driver model device's API by function: - dev_get_uclass_name() And this function returns the device's uclass driver name if: -

Re: [U-Boot] [PATCH V4 03/10] dm: test: Add tests for device's uclass platform data

2015-04-19 Thread Simon Glass
On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This test introduces new test structure type:dm_test_perdev_uc_pdata. The structure consists of three int values only. For the test purposes, three pattern values are defined by enum, starting with TEST_UC_PDATA_INTVAL1.

Re: [U-Boot] [PATCH] x86: Add alias for SPI node in the board dts

2015-04-19 Thread Simon Glass
On 14 April 2015 at 22:00, Bin Meng bmeng...@gmail.com wrote: Since Intel ICH SPI driver has been converted to driver model, we need add an alias for SPI node in the board dts files otherwise SPI flash won't be detected due to 'invalid bus' error. Signed-off-by: Bin Meng bmeng...@gmail.com

Re: [U-Boot] [PATCH V4 00/10] dm: core: extend API by useful functions with tests

2015-04-19 Thread Simon Glass
Hi Przemyslaw, On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: Hello, Before merge, I would like to extend this patchset by additional functions [V4], which are now the base for my work on PMIC. The base version: The struct udevice provides two fields for

Re: [U-Boot] [PATCH V4 01/10] dm: core: add internal functions for getting the device without probe

2015-04-19 Thread Simon Glass
On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit extends the uclass-internal functions by: - uclass_find_first_device() - uclass_find_next_device() For both functions, the returned device is not probed. After some cleanup, the above functions are called

Re: [U-Boot] [PATCH V4 02/10] dm: core: Extend struct udevice by '.uclass_platdata' field.

2015-04-19 Thread Simon Glass
On 15 April 2015 at 05:07, Przemyslaw Marczak p.marc...@samsung.com wrote: This commit adds 'uclass_platdata' field to 'struct udevice', which can be automatically allocated at bind. The allocation size is defined in 'struct uclass_driver' as 'per_device_platdata_auto_alloc_size'. New

Re: [U-Boot] [PATCH] x86: Add alias for SPI node in the board dts

2015-04-19 Thread Simon Glass
On 19 April 2015 at 21:23, Simon Glass s...@chromium.org wrote: On 14 April 2015 at 22:00, Bin Meng bmeng...@gmail.com wrote: Since Intel ICH SPI driver has been converted to driver model, we need add an alias for SPI node in the board dts files otherwise SPI flash won't be detected due to

Re: [U-Boot] [PATCH] x86: queensbay: Avoid using PCH prefix

2015-04-19 Thread Simon Glass
On 14 April 2015 at 17:35, Simon Glass s...@chromium.org wrote: On 13 April 2015 at 05:03, Bin Meng bmeng...@gmail.com wrote: The prefix PCH was taken from ivybridge port. However Queensbay platform official document does not mention PCH. It is composed of TunnelCreek processor and Topcliff

Re: [U-Boot] [PATCH] x86: Set serial port IRQ for SMSC LPC47M

2015-04-19 Thread Simon Glass
On 31 March 2015 at 21:20, Simon Glass s...@chromium.org wrote: On 30 March 2015 at 21:25, Bin Meng bmeng...@gmail.com wrote: For starting a Linux console on the superio serial port under interrupt mode, the IRQ number must be configured. Signed-off-by: Jian Luo jian.l...@boschrexroth.de

Re: [U-Boot] [PATCH] x86: Move CONFIG_ENV_IS_IN_SPI_FLASH to x86-common.h

2015-04-19 Thread Simon Glass
On 31 March 2015 at 21:20, Simon Glass s...@chromium.org wrote: On 30 March 2015 at 21:51, Bin Meng bmeng...@gmail.com wrote: Since all x86 boards use spi flash as its bootloader storage media, it makes sense to make CONFIG_ENV_IS_IN_SPI_FLASH a common option. So far only minnowmax board does

Re: [U-Boot] [PATCH] dm: spi: Correct SPI claim/release_bus() methods

2015-04-19 Thread Jagan Teki
On 20 April 2015 at 10:11, Peng Fan peng@freescale.com wrote: Hi, Simon On 4/19/2015 11:05 PM, Simon Glass wrote: These methods should be passed a slave device, not a bus. This matches the old SPI interface. It is important to know which device is claiming the bus so passing a bus is

[U-Boot] [PATCH v5 2/3] mtd, nand: move common functions from cmd_nand.c to common place

2015-04-19 Thread Heiko Schocher
move common functions from cmd_nand.c (for calculating offset and size from cmdline paramter) to common place, so they could used from other commands which use mtd partitions. For onenand the arg_off_size() is left in common/cmd_onenand.c. It should use now the common arg_off() function, but as I

[U-Boot] [PATCH v5 1/3] mtd, spi: add MTD layer driver

2015-04-19 Thread Heiko Schocher
From: Daniel Schwierzeck daniel.schwierz...@gmail.com add MTD layer driver for spi, original patch from: http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced changes from Heiko Schocher against this patch: - remove compile error if not defining

[U-Boot] [PATCH v5 3/3] spi, sf: use offset and size in sf cmd from mtdpartition

2015-04-19 Thread Heiko Schocher
with this patch, it is possible to get the offset and size information from the mtdpartiton setting in mtdparts, similiar to the nand commandos. = sf sf - SPI flash sub-system Usage: sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus and chip

Re: [U-Boot] [PATCH] dm: i2c: mxc support DM

2015-04-19 Thread Peng Fan
Hi Simon, Thanks for reviewing. I'll address most comments and try to merge DM and non-DM part into one. will send out v2 for review. The only unsure part is bus_i2c_init, I also reply you inline. I want to pass force_idle_bus and pinmux setting to i2c driver, so i use bus_i2c_init, same with

[U-Boot] [PATCH v2] video, ipu: make ldb clock frequenz overwriteable through board code

2015-04-19 Thread Heiko Schocher
the ldb clock can be setup in board code (for example set through PLL5). Update the ldb_clock rate also through board code. This should be removed, if a clock framework is availiable. Signed-off-by: Heiko Schocher h...@denx.de Tested-by: Eric Nelson eric.nel...@boundarydevices.com --- Changes

Re: [U-Boot] [PATCH] x86: minnowmax: Remove CONFIG_VIDEO_X86 in the defconfig

2015-04-19 Thread Simon Glass
On 14 April 2015 at 17:35, Simon Glass s...@chromium.org wrote: On 13 April 2015 at 05:05, Bin Meng bmeng...@gmail.com wrote: CONFIG_VIDEO_X86 has been replaced by CONFIG_VIDEO_VESA. Signed-off-by: Bin Meng bmeng...@gmail.com --- configs/minnowmax_defconfig | 1 - 1 file changed, 1

Re: [U-Boot] [PATCH] x86: Remove the old VGA driver

2015-04-19 Thread Simon Glass
On 14 April 2015 at 19:03, Simon Glass s...@chromium.org wrote: Hi Bin, On 14 April 2015 at 19:00, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Apr 15, 2015 at 7:35 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 13 April 2015 at 05:05, Bin Meng bmeng...@gmail.com wrote:

[U-Boot] [PATCH 2/2] x86: Update chromebook_link instructions for binary blob

2015-04-19 Thread Simon Glass
The MRC image is incorrect, or at least this one now does not seem to work. Fix it. Signed-off-by: Simon Glass s...@chromium.org --- doc/README.x86 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/README.x86 b/doc/README.x86 index fe31f3d..ef13fb4 100644 ---

[U-Boot] [PATCH 1/2] x86: Correct Minnowboard instructions to use the right descriptor

2015-04-19 Thread Simon Glass
The descriptor provided with the FSP does not seem to work. Update the instructions to use the descriptor from the original Intel firmware. Signed-off-by: Simon Glass s...@chromium.org --- doc/README.x86 | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git

Re: [U-Boot] [PATCH] dm: spi: Correct SPI claim/release_bus() methods

2015-04-19 Thread Peng Fan
Hi, Simon On 4/19/2015 11:05 PM, Simon Glass wrote: These methods should be passed a slave device, not a bus. This matches the old SPI interface. It is important to know which device is claiming the bus so passing a bus is not that useful. Reported-by: Haikun Wang haikun.w...@freescale.com

[U-Boot] [PATCH v5 0/3] spi, sf: add mtdparts feature to spi and sf commands

2015-04-19 Thread Heiko Schocher
This patchserie add the popssibility to define mtd partitions on spi nor flash, and use this settings with the sf commands. steps: - add MTD layer driver for spi, original patch from: http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced and

[U-Boot] [PATCH v2] video, ipu: make ldb_clock configurable

2015-04-19 Thread Heiko Schocher
make the ldb_clock configurable through the new define CONFIG_SYS_LDB_CLOCK. This is needed as the ldb clock is not always 65000, for example on the aristainetos2 board, where the ldb clock derives from PLL5 clock. Signed-off-by: Heiko Schocher h...@denx.de Tested-by: Eric Nelson

Re: [U-Boot] [PATCH 02/10] board_init_f_mem(): Don't require memset()

2015-04-19 Thread Simon Glass
Hi Wolfgang, On 15 April 2015 at 22:25, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message 1429146849-11994-3-git-send-email-...@chromium.org you wrote: Unfortunately memset() is not always available, so provide a substitute when needed. +#if !defined(CONFIG_SPL_BUILD) ||

Re: [U-Boot] u-boot dm/spi claim_bus arguments

2015-04-19 Thread Simon Glass
Hi, On 9 March 2015 at 21:46, Simon Glass s...@chromium.org wrote: Hi Wang, On 9 March 2015 at 21:41, haikun.w...@freescale.com haikun.w...@freescale.com wrote: Hi Simon, I am working on converting my SPI driver to driver model. I have some doubt about the arguments of the function

Re: [U-Boot] [PATCH v2] ARM: tegra: move NVIDIA common files to arch/arm/mach-tegra

2015-04-19 Thread Simon Glass
On 12 April 2015 at 19:51, Masahiro Yamada yamada.masah...@socionext.com wrote: All the Tegra boards borrow the files from board/nvidia/common/ directory, i.e., board/nvidia/common/* are not vendor-common files, but SoC-common files. Move NVIDIA common files to arch/arm/mach-tegra/ to clean

Re: [U-Boot] [PATCH v2 2/3] sunxi: Complete i2c support for each supported platform

2015-04-19 Thread Simon Glass
Hi Hans, On 8 April 2015 at 01:27, Hans de Goede hdego...@redhat.com wrote: Hi, On 07-04-15 22:53, Simon Glass wrote: Hi, On 6 April 2015 at 02:43, Hans de Goede hdego...@redhat.com wrote: Hi Simon and Paul, On 05-04-15 22:56, Paul Kocialkowski wrote: Le dimanche 05 avril 2015 à

[U-Boot] [PATCH] dm: spi: Correct SPI claim/release_bus() methods

2015-04-19 Thread Simon Glass
These methods should be passed a slave device, not a bus. This matches the old SPI interface. It is important to know which device is claiming the bus so passing a bus is not that useful. Reported-by: Haikun Wang haikun.w...@freescale.com Signed-off-by: Simon Glass s...@chromium.org ---