Re: [U-Boot] [PATCH 1/3] common: board: support systems with where RAM ends beyond 4GB

2015-01-19 Thread Stephen Warren
On 12/23/2014 10:34 AM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com Some systems have so much RAM that the end of RAM is beyond 4GB. An example would be a Tegra124 system (where RAM starts at 2GB physical) that has more than 2GB of RAM. In this case, we can gd-ram_size to

Re: [U-Boot] [PATCH] powerpc/fsl: support low power boot for e500 and later

2015-01-19 Thread Scott Wood
On Thu, 2015-01-15 at 14:04 +0800, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com low power boot means u-boot will put non-boot cpus into a low power status. Non-boot cpus don't need any more spin wait. e500, e500v2 will going to DOZE status. e500mc, e5500, e6500rev1

Re: [U-Boot] [PATCH v2 04/22] x86: video: Add support for CONFIG_CONSOLE_SCROLL_LINES

2015-01-19 Thread Simon Glass
Hi Anatolij, On 1 January 2015 at 16:17, Simon Glass s...@chromium.org wrote: Some machines are very slow to scroll their displays. To cope with this, support the CONFIG_CONSOLE_SCROLL_LINES option. Setting this to 5 allows the display to operate at an acceptable speed by scrolling 5 lines at

Re: [U-Boot] [PATCH 07/18] dm: i2c: s3c24x0: adjust to dm-i2c api

2015-01-19 Thread Simon Glass
Hi Przemyslaw, On 9 January 2015 at 01:57, Przemyslaw Marczak p.marc...@samsung.com wrote: Hello Heiko Schocher, On 01/09/2015 07:31 AM, Heiko Schocher wrote: Hello Przemyslaw Marczak, just some nitpick ... [snip] Thank you for the review, I will fix this in the next patchset version.

Re: [U-Boot] [PATCH 1/2] common: mark commands as default to match config_cmd_default.h

2015-01-19 Thread Masahiro Yamada
Hi Simon, Alexey, On Thu, 15 Jan 2015 12:44:16 -0700 Simon Glass s...@chromium.org wrote: Frankly I don't like this approach with post-processing steps. It will inevitably end-up with messed up configs. Why don't we just use default values in Kconfig for ARCH/SOC/Board? It's pretty obvious

[U-Boot] [PATCH] distro_bootcmd: read DHCP boot script name from a variable

2015-01-19 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Modify $bootcmd_dhcp to read the downloaded script filename from an environment variable rather than hard-coding it. This allows the user (or another script) to select a different script name if they want, without editing the whole value of $bootcmd_dhcp.

[U-Boot] [PATCH v3 3/3] ARM: at91: at91sam9x5: save environment to a FAT file in MMC card

2015-01-19 Thread Josh Wu
This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of saving it in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen voice.s...@atmel.com --- Changes in v3: None Changes in

[U-Boot] [PATCH v3 2/3] ARM: at91: sama5d3xek: save enviroment as a FAT file in MMC card

2015-01-19 Thread Josh Wu
This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen voice.s...@atmel.com --- Changes in v3: - move CONFIG_FAT_WRITE

Re: [U-Boot] [PATCH v2 1/2] x86: Access the VGA ROM when needed

2015-01-19 Thread Simon Glass
On 14 January 2015 at 21:37, Simon Glass s...@chromium.org wrote: Add code to the generic pci_rom file to access the VGA ROM in PCI space when needed. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Use 0xfffe instead of ~-2 drivers/pci/pci_auto.c | 28

[U-Boot] [PATCH v2 03/26] dm: core: Improve comments for uclass_first/next_device()

2015-01-19 Thread Simon Glass
Mention that the devices are probed ready for use. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None include/dm/uclass.h | 4 1 file changed, 4 insertions(+) diff --git a/include/dm/uclass.h b/include/dm/uclass.h index f6ec6d7..2577ae6 100644 --- a/include/dm/uclass.h

[U-Boot] [PATCH v2 02/26] dm: Don't run tests if U-Boot cannot be built

2015-01-19 Thread Simon Glass
There is no point in running the tests if U-Boot cannot be built. Abort in this case. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None test/dm/test-dm.sh | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/dm/test-dm.sh b/test/dm/test-dm.sh

[U-Boot] [PATCH v2 0/26] dm: Add additional bus functionality

2015-01-19 Thread Simon Glass
The current bus implementation is simple but leaves some things to drivers which are better handled in the uclass. At present uclasses cannot provide a common way of dealing with children (i.e. devices on the bus), so we have duplication in the drivers. The same code is repeated in each driver

[U-Boot] [PATCH v2 10/26] dm: core: Add a function to get a device's uclass ID

2015-01-19 Thread Simon Glass
This is useful to check which uclass a device is in. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/core/device.c | 5 + include/dm/device.h | 8 test/dm/core.c| 11 +++ 3 files changed, 24 insertions(+) diff --git

[U-Boot] [PATCH v2 08/26] dm: core: Allow uclasses to specific the platdata for a device's children

2015-01-19 Thread Simon Glass
In many cases the child platform data for a device's children is defined by the uclass rather than the individual devices. For example, a SPI bus needs to know the chip select and speed for each of its children. It makes sense to allow this information to be defined the SPI uclass rather than each

[U-Boot] [PATCH v3 1/3] ARM: at91: sama5d3_xplained: save environment in a FAT file in MMC card

2015-01-19 Thread Josh Wu
This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of saving it in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen voice.s...@atmel.com --- Changes in v3: - move

[U-Boot] [PATCH v3 0/3] ARM: at91: save mmc environment in a FAT file instead of some sectors

2015-01-19 Thread Josh Wu
I sent these patches days ago with other patches which refactor SAMA5 common configuration files, see URL: http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/203128/focus=203182 Since the patches which refactor SAMA5 common configuration files is rejected. So this time I only send the

[U-Boot] [PATCH v2 12/26] dm: core: Allow uclasses to specific the private data for a device's children

2015-01-19 Thread Simon Glass
In many cases the per-child private data for a device's children is defined by the uclass rather than the individual driver. For example, a SPI bus needs to store information about each of its children, but all SPI drivers store the same information. It makes sense to allow the uclass to define

[U-Boot] [PATCH v2 07/26] dm: core: Allow parents to have platform data for their children

2015-01-19 Thread Simon Glass
For buses it is common for parents to need to know the address of the child on the bus, the bus speed to use for that child, and other information. This can be provided in platform data attached to each child. Add driver model support for this, including auto-allocation which can be requested

[U-Boot] [PATCH v2 01/26] dm: i2c: Provide an offset length parameter where needed

2015-01-19 Thread Simon Glass
Rather than assuming that the chip offset length is 1, allow it to be provided. This allows chips that don't use the default offset length to be used (at present they are only supported by the command line 'i2c' command which sets the offset length explicitly). Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 06/26] dm: core: Allocate platform data when binding a device

2015-01-19 Thread Simon Glass
When using allocated platform data, allocate it when we bind the device. This makes it possible to fill in this information before the device is probed. This fits with the platform data model (when not using device tree), since platform data exists at bind-time. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 13/26] dm: spi: Move the per-child data size to the uclass

2015-01-19 Thread Simon Glass
This is common to all SPI drivers and specifies a structure used by the uclass. It makes more sense to define it in the uclass. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/spi/cadence_qspi.c | 1 - drivers/spi/designware_spi.c | 1 - drivers/spi/exynos_spi.c

[U-Boot] [PATCH v2 05/26] dm: core: Tidy up error handling in device_bind()

2015-01-19 Thread Simon Glass
Make the error handling more standard to make it easier to build on top of it. Also correct a bug in the error path where there is no parent. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/core/device.c | 18 ++ 1 file changed, 10 insertions(+), 8

[U-Boot] [PATCH v2 04/26] dm: core: Set device tree node for root device

2015-01-19 Thread Simon Glass
The root device corresponds to the root device tree node, so set this up. Also add a few notes to the documentation. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None doc/driver-model/README.txt | 4 drivers/core/root.c | 3 +++ 2 files changed, 7 insertions(+)

[U-Boot] [PATCH v2 17/26] dm: spi: Set up the spi_slave device pointer in child_pre_probe()

2015-01-19 Thread Simon Glass
At present we use struct spi_slave as our device pointer in a lot of places to avoid changing the old SPI API. At some point this will go away. But for now, it is better if the SPI uclass sets up this pointer, rather than relying on passing it into the device when it is probed. We can use the new

[U-Boot] [PATCH v2 20/26] dm: tegra: Drop unused COMPAT features for I2C, SPI

2015-01-19 Thread Simon Glass
These have moved to driver model so we don't need the fdtdec support. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None include/fdtdec.h | 6 -- lib/fdtdec.c | 6 -- 2 files changed, 12 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index

[U-Boot] [PATCH v2 25/26] dm: cros_ec_spi: Remove old pre-driver-model code

2015-01-19 Thread Simon Glass
This is no-longer needed since all platforms use SPI for cros_ec. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add patches to tidy up cros_ec using new I2C/SPI features drivers/misc/cros_ec_spi.c | 51 ++ 1 file changed, 2

[U-Boot] [PATCH v2 21/26] dm: exynos: Drop unused COMPAT features for SPI

2015-01-19 Thread Simon Glass
This has moved to driver model so we don't need the fdtdec support. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index 094a8e3..4cc69de

[U-Boot] [PATCH v2 19/26] dm: i2c: Move slave details to child platdata

2015-01-19 Thread Simon Glass
At present we go through various contortions to store the I2C's chip address in its private data. This only exists when the chip is active so must be set up when it is probed. Until the device is probed we don't actually record what address it will appear on. However, now that we can support

[U-Boot] [PATCH v2 18/26] dm: spi: Move slave details to child platdata

2015-01-19 Thread Simon Glass
At present we go through various contortions to store the SPI slave's chip select in its private data. This only exists when the slave is active so must be set up when it is probed. Until the device is probed we don't actually know what chip select it will appear on. However, now that we can

[U-Boot] [PATCH v2 24/26] dm: cros_ec: Move cros_ec_i2c over to driver model

2015-01-19 Thread Simon Glass
Update the driver model support, and remove the old code. Change snow to use this new support. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add patches to tidy up cros_ec using new I2C/SPI features drivers/misc/cros_ec_i2c.c | 107

[U-Boot] [PATCH v3 01/12] x86: dts: Add compatible string for Intel ICH9 SPI controller

2015-01-19 Thread Simon Glass
Add this to the enum so that we can use the various fdtdec functions. A later commit will move this driver to driver model. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Use intel,ich-spi as the compatible string include/fdtdec.h | 1 + lib/fdtdec.c

[U-Boot] [PATCH v3 02/12] net: Add a separate file for IP checksumming

2015-01-19 Thread Simon Glass
Move the checksum code out into its own file so it can be used elsewhere. Also use a new version which supports a length which is not a multiple of 2 and add a new function to add two checksums. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Add new patch to move checksum to

[U-Boot] [PATCH v3 08/12] x86: dts: Add SPI flash MRC details for chromebook_link

2015-01-19 Thread Simon Glass
Correct the SPI flash compatible string, add an alias and specify the position of the MRC cache, used to store SDRAM training settings for the Memory Reference Code. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Drop accidental creation of link.dts due to bad rebase Changes

[U-Boot] [PATCH v3 09/12] x86: Implement a cache for Memory Reference Code parameters

2015-01-19 Thread Simon Glass
The memory reference code takes a very long time to 'train' its SDRAM interface, around half a second. To avoid this delay on every boot we can store the parameters from the last training sessions to speed up the next. Add an implementation of this, storing the training data in CMOS RAM and SPI

[U-Boot] [PATCH v3 0/12] Add support for caching Memory Reference Code data

2015-01-19 Thread Simon Glass
Since the memory reference code is so slow on x86, add a feature to bypass this, storing the previous parameters in SPI flash. This saves around 500ms on each boot. Also enable a SPI flash environment. Changes in v3: - Add new patch to move checksum to its own file in net/ - Adjust net/ code to

Re: [U-Boot] [RFC PATCH 3/5] common/board_r: manual relocation for cmd table

2015-01-19 Thread Simon Glass
Hi Andreas, On 19 January 2015 at 16:29, Andreas Bießmann andreas.de...@googlemail.com wrote: This is required for architectures still need manual relocation like avr32, mk68 and others. Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- common/board_r.c | 12

[U-Boot] [PATCH v2 11/26] dm: core: Add a flag to control sequence numbering

2015-01-19 Thread Simon Glass
At present we try to use the 'reg' property and device tree aliases to give devices a sequence number. The 'reg' property is often actually a memory address, so the sequence numbers thus-obtained are not useful. It would be better if the devices were just sequentially numbered in that case. In

[U-Boot] [PATCH v2 23/26] dm: cros_ec: Don't require protocol 3 support

2015-01-19 Thread Simon Glass
I2C is now deprecated on ARM platforms and there are no devices that use it with the v3 protocol. We can't require v3 support if we want to support I2C. Adjust the error handling to suit. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add patches to tidy up cros_ec using new

[U-Boot] [PATCH v2 22/26] dm: core: Ignore disabled devices when binding

2015-01-19 Thread Simon Glass
We don't want to bind devices which should never be used. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add patches to tidy up cros_ec using new I2C/SPI features drivers/core/root.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/core/root.c

[U-Boot] [PATCH v2 09/26] dm: core: Add a post_bind method for parents

2015-01-19 Thread Simon Glass
Allow parent drivers to be called when a new child is bound to them. This allows a bus to set up information it needs for that child. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/core/device.c | 12 include/dm/device.h | 2 ++ test/dm/bus.c

[U-Boot] [PATCH v2 14/26] dm: core: Allow the uclass to set up a device's child after binding

2015-01-19 Thread Simon Glass
For buses, after a child is bound, allow the uclass to perform some processing. This can be used to figure out the address of the child (e.g. the chip select for SPI slaves) so that it is ready to be probed. This avoids bus drivers having to repeat the same process, which really should be done by

[U-Boot] [PATCH 2/2] sandbox: Add a -D option to use a default device tree

2015-01-19 Thread Simon Glass
It is painful to specify the full path to the device tree with the -d option. It is normally kept in the same directory as U-Boot, so provide an option to use this by default. Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/cpu/start.c | 20 1 file changed, 20

[U-Boot] [PATCH v2 15/26] dm: sandbox: sf: Tidy up the error handling in sandbox_sf_probe()

2015-01-19 Thread Simon Glass
Use a single exit point when we have an error and add debugging there. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/mtd/spi/sandbox.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c

[U-Boot] [PATCH 1/2] sandbox: Correct cros-ec keyboard definition

2015-01-19 Thread Simon Glass
The other boards got updated to the standard binding. Update sandbox as well. Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/dts/sandbox.dts | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index

[U-Boot] [PATCH 1/3] x86: Add missing DECLARE_GLOBAL_DATA_PTR for mtrr.c

2015-01-19 Thread Bin Meng
arch/x86/cpu/mtrr.c has access to the U-Boot global data thus DECLARE_GLOBAL_DATA_PTR is needed. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/mtrr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/mtrr.c b/arch/x86/cpu/mtrr.c index d5a825d..ac8765f 100644 ---

[U-Boot] [PATCH 2/3] x86: Save mtrr support flag in global data

2015-01-19 Thread Bin Meng
CPUID (EAX 01H) returns MTRR support flag in EDX bit 12. Probe this flag in x86_cpu_init_f() and save it in global data. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/cpu.c | 7 +++ arch/x86/include/asm/global_data.h | 3 ++- 2 files changed, 9 insertions(+), 1

[U-Boot] [PATCH 3/3] x86: Test mtrr support flag before accessing mtrr msr

2015-01-19 Thread Bin Meng
On some x86 processors (like Intel Quark) the MTRR registers are not supported. This is reflected by the CPUID (EAX 01H) result EDX[12]. Accessing the MTRR registers on such processors will cause #GP so we must test the support flag before accessing MTRR MSRs. Signed-off-by: Bin Meng

Re: [U-Boot] [PATCH] sunxi: display: Make lcd display clk phase configurable

2015-01-19 Thread Simon Glass
Hi Hans, On 19 January 2015 at 13:10, Hans de Goede hdego...@redhat.com wrote: Hi, On 19-01-15 20:46, Simon Glass wrote: Hi Hans, On 19 January 2015 at 12:06, Hans de Goede hdego...@redhat.com wrote: Hi, On 18-01-15 04:12, Simon Glass wrote: Hi Hans, On 13 January 2015 at 04:33,

[U-Boot] [PATCH] x86: Fix various code format issues in start16.S

2015-01-19 Thread Bin Meng
Various minor code format issues are fixed in start16.S: - U-boot - U-Boot - 32bit - 32-bit - Use TAB instead of SPACE to indent - Move the indention location of the GDT comment block Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/cpu/start16.S | 20 ++-- 1 file

Re: [U-Boot] [PATCH] dm:gpio:mxc get configuration from dtb

2015-01-19 Thread Peng Fan
Hi Simon, On 1/20/2015 3:45 AM, Simon Glass wrote: Hi Peng. On 18 January 2015 at 23:11, Peng Fan peng@freescale.com wrote: This patch supports getting gpios' configuration from dtb. CONFIG_OF_CONTROL is used to indicated which part is for device tree, and which is not. This patch is

[U-Boot] [RFC PATCH 5/5] grasshopper: enable generic board

2015-01-19 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- include/configs/grasshopper.h |4 1 file changed, 4 insertions(+) diff --git a/include/configs/grasshopper.h b/include/configs/grasshopper.h index 83f0ed2..54eb977 100644 --- a/include/configs/grasshopper.h +++

[U-Boot] [RFC PATCH 3/5] common/board_r: manual relocation for cmd table

2015-01-19 Thread Andreas Bießmann
This is required for architectures still need manual relocation like avr32, mk68 and others. Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- common/board_r.c | 12 1 file changed, 12 insertions(+) diff --git a/common/board_r.c b/common/board_r.c index

Re: [U-Boot] [RFC PATCH 3/5] common/board_r: manual relocation for cmd table

2015-01-19 Thread Simon Glass
Hi Andreas, On 19 January 2015 at 16:41, Andreas Bießmann andreas.de...@googlemail.com wrote: Hi Simon, On 20.01.15 00:34, Simon Glass wrote: Hi Andreas, On 19 January 2015 at 16:29, Andreas Bießmann andreas.de...@googlemail.com wrote: This is required for architectures still need manual

[U-Boot] [RFC PATCH 1/5] avr32: use dlmalloc for DMA buffers

2015-01-19 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- arch/avr32/include/asm/dma-mapping.h |7 - arch/avr32/lib/board.c | 51 -- include/configs/atngw100.h |1 - include/configs/atngw100mkii.h |1 -

[U-Boot] [RFC PATCH 2/5] avr32: rename cpu_init() - arch_cpu_init()

2015-01-19 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- arch/avr32/cpu/cpu.c|2 +- arch/avr32/include/asm/u-boot.h |2 ++ arch/avr32/lib/board.c |2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/avr32/cpu/cpu.c

Re: [U-Boot] [RFC PATCH 3/5] common/board_r: manual relocation for cmd table

2015-01-19 Thread Andreas Bießmann
Hi Simon, On 20.01.15 00:34, Simon Glass wrote: Hi Andreas, On 19 January 2015 at 16:29, Andreas Bießmann andreas.de...@googlemail.com wrote: This is required for architectures still need manual relocation like avr32, mk68 and others. Signed-off-by: Andreas Bießmann

[U-Boot] [PATCH v2 16/26] dm: core: Allow uclass to set up a device's child before it is probed

2015-01-19 Thread Simon Glass
Some buses need to set up their devices before they can be used. This setup may well be common to all buses in a particular uclass. Support a common pre-probe method for the uclass, called before any bus devices are probed. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

[U-Boot] [PATCH v2 26/26] dm: Update documentation for new bus features

2015-01-19 Thread Simon Glass
Now that we have new bus features, update README.txt and the SPI docs to explain these. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Drop RFC prefix since this series has been properly tested now - Update commit message to describe immuatable platform data - Update the

[U-Boot] [PATCH 2/2] ARM: tegra: support running in non-secure mode

2015-01-19 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com When the CPU is in non-secure (NS) mode (when running U-Boot under a secure monitor), certain actions cannot be taken, since they would need to write to secure-only registers. One example is configuring the ARM architectural timer's CNTFRQ register. We

[U-Boot] [PATCH 1/2] ARM: tegra: move common config defines centrally

2015-01-19 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com All boards need CONFIG_BOARD_EARLY_INIT_F, and many actively need CONFIG_BOARD_LATE_INIT. Move both of these into tegra-common.h so that board config headers don't need to repeatedly define them. Later commits will add new code in board_late_init() which

[U-Boot] [PATCH] fdt: pci: Permit use of reg property for setting device address

2015-01-19 Thread Simon Glass
In commit a62e84d the old functionality of obtaining a PCI address from the 'reg' property was lost. Add it back, so we can support both a compatible string list and a 'reg' property. This patch fixes PCIe ethernet on Tegra boards. Signed-off-by: Simon Glass s...@chromium.org --- lib/fdtdec.c

Re: [U-Boot] [PATCH] ARM: at91: mmc portA support is only for at91sam9g20ek_2mmc board

2015-01-19 Thread Josh Wu
Hi, Bo On 1/19/2015 4:30 PM, Bo Shen wrote: Hi Josh, On 01/19/2015 03:25 PM, Josh Wu wrote: Current the MMC support will enable MCI port A, Which is only exist for 2mmc board. So by default we need to disable MMC (port A) support. And only enable it for 2mmc board. Otherwise, dataflash won't

Re: [U-Boot] [PATCH] arm: mx6: Add Barco platinum-picon and platinum-titanium

2015-01-19 Thread Stefano Babic
On 10/12/2014 10:15, Stefan Roese wrote: This patch adds the new Barco platinum platform. It currently includes those two boards: platinum-titanium - This is the same board as the titanium that is already supported in mainline U-Boot. But its now moved to this new platform

Re: [U-Boot] [PATCH] ARM: at91: mmc portA support is only for at91sam9g20ek_2mmc board

2015-01-19 Thread Bo Shen
Hi Josh, On 01/19/2015 03:25 PM, Josh Wu wrote: Current the MMC support will enable MCI port A, Which is only exist for 2mmc board. So by default we need to disable MMC (port A) support. And only enable it for 2mmc board. Otherwise, dataflash won't work in at91sam9260ek board as MMC has

Re: [U-Boot] [PATCH 6/6] imx:mx6sxsabresd board spl support

2015-01-19 Thread Stefano Babic
Hi Peng, series looks ok to me - just a small question: On 30/12/2014 10:24, Peng Fan wrote: Add board level spl support for mx6sxsabresd board. Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6sxsabresd/MAINTAINERS| 1 +

Re: [U-Boot] [PATCH v2 2/3] ARM: at91: sama5d3xek: save enviroment as a FAT file in MMC card

2015-01-19 Thread Bo Shen
Hi Josh, On 01/19/2015 03:06 PM, Josh Wu wrote: This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu josh...@atmel.com Ackey-by: Bo Shen

Re: [U-Boot] [PATCH v2 1/3] ARM: at91: sama5d3_xplained: save environment in a FAT file in MMC card

2015-01-19 Thread Bo Shen
Hi Josh, On 01/19/2015 03:06 PM, Josh Wu wrote: This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of saving it in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu josh...@atmel.com After you remove the

Re: [U-Boot] [PATCH 6/6] imx:mx6sxsabresd board spl support

2015-01-19 Thread Peng Fan
Hi Stefano, On 1/19/2015 4:18 PM, Stefano Babic wrote: Hi Peng, series looks ok to me - just a small question: On 30/12/2014 10:24, Peng Fan wrote: Add board level spl support for mx6sxsabresd board. Signed-off-by: Peng Fan peng@freescale.com ---

Re: [U-Boot] [PATCH 0/2] Invoke board specific board_usb_cleanup function

2015-01-19 Thread Marek Vasut
On Monday, January 19, 2015 at 08:07:14 AM, Inha Song wrote: This patches invoke board-specific usb cleanup interface (board_usb_cleanup) After USB initalization. Inha Song (2): usb: common: provide a _weak board_usb_cleanup() function usb: invoke board specific USB cleanup interface

Re: [U-Boot] [PATCH] mxsboot : Support of 224-bytes OOB area length

2015-01-19 Thread Stefano Babic
Hi Alexandre, On 08/01/2015 17:14, Alexandre Coffignal wrote: Add support for the NAND Flash chip with page size of 4096+224-bytes OOB area length For example Micron MT29F4G08 NAND flash device defines a OOB area which is 224 bytes long (oobsize). Signed-off-by: Alexandre Coffignal

Re: [U-Boot] [PATCH v2 1/3] ARM: at91: sama5d3_xplained: save environment in a FAT file in MMC card

2015-01-19 Thread Josh Wu
On 1/19/2015 4:16 PM, Bo Shen wrote: Hi Josh, On 01/19/2015 03:06 PM, Josh Wu wrote: This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of saving it in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu

Re: [U-Boot] [PATCH] mx6sxsabresd: Remove unneeded board_late_init()

2015-01-19 Thread Stefano Babic
On 29/12/2014 19:23, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Since commit 1f98e31bc0b2c37a (imx: mx6sxsabresd: Use the pfuze common init function) board_late_init() became empty, so we can safely remove this unneeded function. Signed-off-by: Fabio Estevam

Re: [U-Boot] [PATCH] wandboard: Use 32bit color depth for Fusion LCD

2015-01-19 Thread Stefano Babic
Hi Otavio, On 15/01/2015 16:32, Otavio Salvador wrote: The Fusion LCD needs the 32bit color depth to properly work; the default is different on the 3.10.17 kernels and it is better to ensure it work out of box using proper default color setting. Signed-off-by: Otavio Salvador

Re: [U-Boot] [PATCH v2 3/3] ARM: at91: at91sam9x5: save environment to a FAT file in MMC card

2015-01-19 Thread Bo Shen
Hi Josh, On 01/19/2015 03:06 PM, Josh Wu wrote: This patch will save U-Boot environment as a file: uboot.env, in FAT partition instead of saving it in raw sector of MMC card. This make us easier to manage the environment file. Signed-off-by: Josh Wu josh...@atmel.com Acked-by: Bo Shen

[U-Boot] [PATCH v3 05/12] x86: rtc: mc146818: Add helpers to read/write CMOS RAM

2015-01-19 Thread Simon Glass
On x86 we use CMOS RAM to read and write some settings. Add basic support for this, including access to registers 128-255. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Adjust functions to remain compatible with other RTC drivers Changes in v2: - Adjust the mc146818 driver

[U-Boot] [PATCH v3 06/12] x86: spi: Add device tree support

2015-01-19 Thread Simon Glass
As a temporary measure before the ICH driver moves over to driver model, add device tree support to the driver. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/spi/ich.c| 7 +++ include/configs/x86-common.h | 1 + 2 files

[U-Boot] [PATCH v3 03/12] net: Use new checksum functions

2015-01-19 Thread Simon Glass
Drop the old checksum functions in favour of the new ones. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Adjust net/ code to use the new checksum functions Changes in v2: None include/net.h | 4 net/net.c | 25 ++--- net/ping.c| 10

[U-Boot] [PATCH v3 10/12] x86: config: Enable hook for saving MRC configuration

2015-01-19 Thread Simon Glass
Add a hook to ensure that this information is saved. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Add misc_init_r() call for link now that it is shared with chromebook_link Changes in v2: None arch/x86/cpu/coreboot/coreboot.c | 5 + include/configs/chromebook_link.h

Re: [U-Boot] [PATCH] board_f: save malloc_base from zeroing in case of CONFIG_SYS_MALLOC_F_LEN

2015-01-19 Thread Albert ARIBAUD
Hello Alexey, On Mon, 19 Jan 2015 20:55:03 +0300, Alexey Brodkin alexey.brod...@synopsys.com wrote: In case of CONFIG_SYS_MALLOC_F_LEN malloc_base is used for early start-up code and is set very early, typically in start.S or crt1.S. There is no crt1.S in U-Boot. Did you mean crt0.S? In

Re: [U-Boot] [PATCH v2] Enable journal replay for UBIFS

2015-01-19 Thread Heiko Schocher
Hello Anton, Am 19.01.2015 14:48, schrieb Anton Habegger: During mount_ubifs the ubifs_replay_journal was disabled. This patch enables it again and fix some unrecoverable UBIFS volumes. The following patch enables the error handling for ubifs_replay_journal as well. Please see discussion

Re: [U-Boot] [PATCH v2 04/22] x86: video: Add support for CONFIG_CONSOLE_SCROLL_LINES

2015-01-19 Thread Anatolij Gustschin
On Thu, 1 Jan 2015 16:17:57 -0700 Simon Glass s...@chromium.org wrote: Some machines are very slow to scroll their displays. To cope with this, support the CONFIG_CONSOLE_SCROLL_LINES option. Setting this to 5 allows the display to operate at an acceptable speed by scrolling 5 lines at a

[U-Boot] printf and R9 in ARM architecture

2015-01-19 Thread Da Shi Cao
In standalone applications, it seems that the execution of printf function in U-Boot is dependent on the value of register R9, which is setup in app_startup. But r9 can be used by your program at the decision of gcc compilation which is not aware of this dependence. This is especially the case if

Re: [U-Boot] [PATCH 2/2] mtd:mxs:nand support oobsize bigger than 512

2015-01-19 Thread Peng Fan
Hi Marek, And this one. On 12/19/2014 12:39 PM, Peng Fan wrote: If ecc chunk data size is 512 and oobsize is bigger than 512, there is a chance that block_mark_bit_offset conflicts with bch ecc area. The following graph is modified from kernel gpmi-nand.c driver with each data block 512

Re: [U-Boot] [PATCH 1/2] mtd:mxs:nand calculate ecc strength dynamically

2015-01-19 Thread Peng Fan
Hi Marek, Since you are familiar with this driver, would you please help review this patch? On 12/19/2014 12:39 PM, Peng Fan wrote: Calculate ecc strength according oobsize, but not hardcoded which is not aligned with kernel driver Signed-off-by: Peng Fan peng@freescale.com

Re: [U-Boot] [PATCH 05/12] sunxi: Move setting of CPU system control register SMP bit to save_boot_params

2015-01-19 Thread Albert ARIBAUD
Hello Hans, On Mon, 19 Jan 2015 20:04:58 +0100, Hans de Goede hdego...@redhat.com wrote: Hi, On 17-01-15 23:51, Ian Campbell wrote: On Thu, 2015-01-15 at 15:52 +0100, Hans de Goede wrote: According to the Cortex-A7 MPCore Technical Reference Manual: You must ensure this bit is set to

Re: [U-Boot] [PATCH v3 10/12] x86: config: Enable hook for saving MRC configuration

2015-01-19 Thread Bin Meng
On Tue, Jan 20, 2015 at 1:16 PM, Simon Glass s...@chromium.org wrote: Add a hook to ensure that this information is saved. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Add misc_init_r() call for link now that it is shared with chromebook_link Changes in v2: None

Re: [U-Boot] [PATCH v2 01/26] dm: i2c: Provide an offset length parameter where needed

2015-01-19 Thread Heiko Schocher
Hello Simon, Am 20.01.2015 04:12, schrieb Simon Glass: Rather than assuming that the chip offset length is 1, allow it to be provided. This allows chips that don't use the default offset length to be used (at present they are only supported by the command line 'i2c' command which sets the

Re: [U-Boot] [PATCH v2 04/22] x86: video: Add support for CONFIG_CONSOLE_SCROLL_LINES

2015-01-19 Thread Anatolij Gustschin
Hi Simon, On Mon, 19 Jan 2015 17:33:08 -0700 Simon Glass s...@chromium.org wrote: Hi Anatolij, On 1 January 2015 at 16:17, Simon Glass s...@chromium.org wrote: Some machines are very slow to scroll their displays. To cope with this, support the CONFIG_CONSOLE_SCROLL_LINES option. Setting

Re: [U-Boot] Fwd: u-boot.img size limit for spl fat load ?

2015-01-19 Thread Albert ARIBAUD
Hello Ayoub, On Mon, 19 Jan 2015 13:33:30 +0100, Ayoub Zaki ayoub.z...@googlemail.com wrote: I set TEXT_BASE to : #define CONFIG_SYS_TEXT_BASE0x8060 Now u-boot.img can be up to 4MB sized and it solved my problem :) Thank you very much for your help. No problem. :)

[U-Boot] [PATCH v3 04/12] x86: Use ipchecksum from net/

2015-01-19 Thread Simon Glass
The existing IP checksum function is only accessible to the 'coreboot' cpu. Drop it in favour of the new code in the network subsystem. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Use checksum code that is now in net/checksum.c Changes in v2: - Refactor IP checksum patches

[U-Boot] [PATCH v3 07/12] Allow architecture-specific memory reservation

2015-01-19 Thread Simon Glass
All memory to be reserved for use after relocation by adding a new call to perform this reservation. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None common/board_f.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/common/board_f.c

Re: [U-Boot] [PATCH] arm: fix exception vectors

2015-01-19 Thread Albert ARIBAUD
Hello Bill, On Mon, 19 Jan 2015 10:40:07 -0500, Bill Pringlemeir bpringlem...@nbsps.com wrote: On Mon, 19 Jan 2015 11:11:34 +0100, Luca Ellero As far as I can see the mechanism to relocate vectors is implemented only on iMX25/27 and involves high vectors address (0x). On 19

[U-Boot] [PATCH v2] dm:gpio:mxc add DT support

2015-01-19 Thread Peng Fan
This patch add DT support for mxc gpio driver. Include a bank_index entry in platdata. This can avoid using `plat - mxc_plat` to calculate bank number. Also this can simplify code. There are two places still using CONFIG_OF_CONTROL macro, just to shrink code size if only support DM but not

Re: [U-Boot] Unreadable UBIFS partition after power cuts

2015-01-19 Thread Heiko Schocher
Hello Anton, Am 19.01.2015 12:29, schrieb Anton Habegger: Hello Heiko I was able to enable the uibfs_replay_journal, and so far this solved my issue. Great to hear! Below the patch. I'm not sure about the U-Boot replacement for atomic_long_read? I assume U-Boot has no concurrency, then

[U-Boot] [PATCH v3 11/12] x86: ivybridge: Drop the Kconfig MRC cache information

2015-01-19 Thread Simon Glass
This is now stored in the device tree. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None arch/x86/cpu/ivybridge/Kconfig | 28 1 file changed, 28 deletions(-) diff --git a/arch/x86/cpu/ivybridge/Kconfig

[U-Boot] [PATCH v3 12/12] x86: config: chromebook_link: Enable environment

2015-01-19 Thread Simon Glass
Enable an environment area. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v3: None Changes in v2: None include/configs/chromebook_link.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/chromebook_link.h

Re: [U-Boot] [PATCH 0/2] Invoke board specific board_usb_cleanup function

2015-01-19 Thread Inha Song
Hi Marek, I want to use this function for support Thor/DFU download in Odroid-XU3. For Odroid-XU3 usb support, we need to DWC3 code. (As I know, DWC3 patchsets (Kishon Vijay Abraham I) are RFC state) So, I used DWC3 patchset temporarily and I knew that I should be call dwc3_uboot_exit()

[U-Boot] [PATCH 08/10][v5] hash: Add function to find hash_algo struct with progressive hash

2015-01-19 Thread Ruchika Gupta
The hash_algo structure has some implementations in which progressive hash API's are not defined. These are basically the hardware based implementations of SHA. An API is added to find the algo which has progressive hash API's defined. This can then be integrated with RSA checksum library which

[U-Boot] [PATCH 09/10][v5] Use hash.c in mkimage

2015-01-19 Thread Ruchika Gupta
Signed-off-by: Ruchika Gupta ruchika.gu...@freescale.com CC: Simon Glass s...@chromium.org --- Changes in v5: New patch based on WIP patch by Simon. common/hash.c | 79 +- include/hash.h | 34 + tools/Makefile | 1

[U-Boot] [PATCH 10/10][v5] rsa: Use checksum algorithms from struct hash_algo

2015-01-19 Thread Ruchika Gupta
Currently the hash functions used in RSA are called directly from the sha1 and sha256 libraries. Change the RSA checksum library to use the progressive hash API's registered with struct hash_algo. This will allow the checksum library to use the hardware accelerated progressive hash API's once

  1   2   3   >