Re: [U-Boot] [PATCH v2 07/12] x86: fsp: Call fsp_init_phase_pci() in pci_uclass_post_probe()

2015-08-22 Thread Bin Meng
Hi Simon, On Sat, Aug 22, 2015 at 7:27 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 20 August 2015 at 07:40, Bin Meng bmeng...@gmail.com wrote: Per Intel FSP specification, we should call FSP notify API to inform FSP that PCI enumeration has been done so that FSP will do any

[U-Boot] [RFC PATCH 0/1] sunxi board-specific options

2015-08-22 Thread Bernhard Nortmann
I'm looking for ideas/comments on how to best integrate configuration tweaks for specific sunxi boards into the U-Boot (build) ecosystem. An example would be adding U-Boot support for GPIO-driven LEDs (and the led command), which I'm demonstrating here for the Banana Pi. My current line of

[U-Boot] [RFC PATCH] sunxi: support board-specific configuration options

2015-08-22 Thread Bernhard Nortmann
Extend sunxi-common.h to include sunxi-boards.h - which in turn can support multiple configurations/options/includes, based on board-specific symbols (preprocessor definitions). These might be supplied by the respective *_defconfig files. Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de

[U-Boot] [UBOOT PATCH v6 1/3] x86: Generate a valid ACPI table

2015-08-22 Thread Saket Sinha
Implement write_acpi_table() to create a minimal working ACPI table. This includes writing FACS, XSDT, RSDP, FADT, MCFG, MADT, DSDT SSDT ACPI table entries. Use a Kconfig option GENERATE_ACPI_TABLE to tell U-Boot whether we need actually write the APCI table just like we did for PIRQ routing, MP

[U-Boot] [UBOOT PATCH v6 0/3] Add ACPI table support

2015-08-22 Thread Saket Sinha
ACPI(Advanced Configuration and Power Interface), is a Power Management and configuration standard allowing the operating system to control the amount of power each device is given (allowing it to put certain devices on standby or power-off for example). It is also used to control and/or check

[U-Boot] [UBOOT PATCH v6 3/3] x86: Add DSDT table for supporting ACPI on QEMU

2015-08-22 Thread Saket Sinha
The DSDT table contains a bytecode that is executed by a driver in the kernel. Signed-off-by: Saket Sinha saket.sinh...@gmail.com --- arch/x86/cpu/qemu/Makefile | 2 +- arch/x86/cpu/qemu/acpi/cpu-hotplug.asl | 80 +++ arch/x86/cpu/qemu/acpi/dbug.asl| 25 ++

[U-Boot] [UBOOT PATCH v6 2/3] x86: Add ACPI table support to QEMU

2015-08-22 Thread Saket Sinha
This patch mainly adds ACPI support to QEMU. Verified by booting Linux kernel on QEMU i440FX and Q35. Signed-off-by: Saket Sinha saket.sinh...@gmail.com --- arch/x86/cpu/qemu/Makefile | 1 + arch/x86/cpu/qemu/acpi.c | 179 + 2 files changed, 180

Re: [U-Boot] [PATCH v3 9/9] dfu: tftp: Kconfig: Enable DFU_TFTP support on the am335x_boneblack_defconfig

2015-08-22 Thread Joe Hershberger
On Fri, Aug 21, 2015 at 6:11 PM, Lukasz Majewski l.majew...@majess.pl wrote: On Tue, 18 Aug 2015 19:31:03 -0500 Joe Hershberger joe.hershber...@gmail.com wrote: Hi Lukasz, On Tue, Aug 18, 2015 at 4:28 PM, Lukasz Majewski l.majew...@majess.pl wrote: On Tue, 18 Aug 2015 10:12:46 -0500 Joe

Re: [U-Boot] [PATCH v3 9/9] dfu: tftp: Kconfig: Enable DFU_TFTP support on the am335x_boneblack_defconfig

2015-08-22 Thread Lukasz Majewski
On Tue, 18 Aug 2015 19:31:03 -0500 Joe Hershberger joe.hershber...@gmail.com wrote: Hi Lukasz, On Tue, Aug 18, 2015 at 4:28 PM, Lukasz Majewski l.majew...@majess.pl wrote: On Tue, 18 Aug 2015 10:12:46 -0500 Joe Hershberger joe.hershber...@gmail.com wrote: Hi Lukasz, On Thu, Aug

Re: [U-Boot] [PATCH v7 5/6] Tidy up some defconfig files

2015-08-22 Thread Joe Hershberger
Hi Simon, On Wed, Aug 19, 2015 at 10:33 AM, Simon Glass s...@chromium.org wrote: Several files are out of order. This means that when the moveconfig tool moves CONFIG options to Kconfig it generates a large diff. To avoid this, reorder the files first. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v4 3/8] armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

2015-08-22 Thread Simon Glass
On 18 August 2015 at 06:26, Sergey Temerkhanov s.temerkha...@gmail.com wrote: This commit adds functions issuing calls to secure monitor or hypervisore. This allows using services such as Power State Coordination Interface (PSCI) provided by firmware, e.g. ARM Trusted Firmware (ATF) The SMC

Re: [U-Boot] [RFC PATCH] sunxi: support board-specific configuration options

2015-08-22 Thread Hans de Goede
Hi Bernhard, On 22-08-15 13:52, Bernhard Nortmann wrote: Extend sunxi-common.h to include sunxi-boards.h - which in turn can support multiple configurations/options/includes, based on board-specific symbols (preprocessor definitions). These might be supplied by the respective *_defconfig files.

Re: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver

2015-08-22 Thread Simon Glass
On 10 August 2015 at 08:03, Marek Vasut ma...@denx.de wrote: On Monday, August 10, 2015 at 04:00:47 PM, Simon Glass wrote: Hi Marek, Hi Simon, On 10 August 2015 at 07:57, Marek Vasut ma...@denx.de wrote: On Monday, August 10, 2015 at 03:39:33 PM, Simon Glass wrote: Hi Marek, Hi

[U-Boot] [PATCH v2 25/28] tpm: Add functions to access flags and permissions

2015-08-22 Thread Simon Glass
Add a few new functions which will be used by the test command in a future patch. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch with functions to access flags and permissions include/tpm.h | 49 + lib/tpm.c |

[U-Boot] [PATCH v2 21/28] exynos: x86: dts: Add tpm nodes to the device tree for Chrome OS devices

2015-08-22 Thread Simon Glass
Add a TPM node to the various Chromebooks so that driver can be converted to driver model. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add tpm device tree node for panther also arch/arm/dts/exynos5250-snow.dts | 9 + arch/arm/dts/exynos5250-spring.dts| 8

[U-Boot] [PATCH v2 22/28] dm: tpm: Convert I2C driver to driver model

2015-08-22 Thread Simon Glass
Convert the tpm_tis_i2c driver to use driver model and update boards which use it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Update driver for v2 TPM uclass which supports timeouts configs/peach-pi_defconfig | 1 + configs/peach-pit_defconfig | 1 +

[U-Boot] [PATCH v2 19/28] dm: tpm: sandbox: Convert TPM driver to driver model

2015-08-22 Thread Simon Glass
Convert the sandbox TPM driver to use driver model. Add it to the device tree so that it can be found on start-up. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: - Implement the get_desc() method - Include tpm.h header file

[U-Boot] [PATCH v2 07/28] tpm: tpm_tis_i2c: Drop unnecessary methods

2015-08-22 Thread Simon Glass
The function methods in struct tpm_vendor_specific just call local functions. Change the code to use a direct call. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/tpm/tpm_tis_i2c.c | 12 drivers/tpm/tpm_tis_i2c.h | 4 2 files changed, 4

[U-Boot] [PATCH v2 14/28] tpm: tpm_tis_i2c: Tidy up delays

2015-08-22 Thread Simon Glass
Use a _US suffix for microseconds and a _MS suffic for milliseconds. Move all timeouts and delays into one place. Use mdelay() instead of udelay() where appropriate. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: None

[U-Boot] [PATCH v2 27/28] tpm: Enable 'tpmtest' command for Chrome OS boards with TPMs

2015-08-22 Thread Simon Glass
This command provides a few useful tests so enable it for common boards. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None configs/chromebook_link_defconfig | 1 + configs/chromebox_panther_defconfig | 1 + configs/coreboot-x86_defconfig | 1 +

[U-Boot] [PATCH v2 06/28] tpm: Move the I2C TPM code into one file

2015-08-22 Thread Simon Glass
The current Infineon I2C TPM driver is written in two parts, intended to support use with other I2C devices. However we don't have any users and the Atmel I2C TPM device does not use this file. We should simplify this and remove the unused abstration. As a first step, move the code into one file.

[U-Boot] [PATCH v2 15/28] dm: tpm: Add a uclass for Trusted Platform Modules

2015-08-22 Thread Simon Glass
Add a new uclass for TPMs which uses almost the same TIS (TPM Interface Specification) as is currently implemented. Since init() is handled by the normal driver model probe() method, we don't need to implement that. Also rename the transfer method to xfer() which is a less clumbsy name. Once all

[U-Boot] [PATCH v2 12/28] tpm: tpm_tis_i2c: Simplify init code

2015-08-22 Thread Simon Glass
Move all the init and uninit code into one place. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/tpm/tpm_tis_i2c.c | 33 ++--- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/drivers/tpm/tpm_tis_i2c.c

[U-Boot] [PATCH v2 00/28] dm: Convert TPM drivers to driver model

2015-08-22 Thread Simon Glass
This series adds driver model support for Trusted Platform Modules (TPMs). These have a very simple interface and are configured via the device tree. Two bus types are supported at present: I2C and LPC (Intel Low-Pin-Count). Most drivers and users are converted over to driver model. The

[U-Boot] [PATCH v2 03/28] tpm: Add Kconfig options for TPMs

2015-08-22 Thread Simon Glass
Add new Kconfig options for TPMs in preparation for moving boards to use Kconfig for TPM configuration. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a 'TPM' menu in Kconfig common/Kconfig | 12 +++ drivers/tpm/Kconfig | 60

[U-Boot] [PATCH v2 01/28] tpm: Remove old pre-driver-model I2C code

2015-08-22 Thread Simon Glass
This is not used anymore by any board so drop it. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: None drivers/tpm/tpm.c | 108 ++ drivers/tpm/tpm_private.h | 4 +-

[U-Boot] [PATCH v2 09/28] tpm: tpm_tis_i2c: Merge struct tpm_dev into tpm_chip

2015-08-22 Thread Simon Glass
There are too many structures storing the same sort of information. Move the fields from struct tpm_dev into struct tpm_chip and remove the former struct. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/tpm/tpm_tis_i2c.c | 52

[U-Boot] [PATCH v2 04/28] tpm: Convert board config TPM options to Kconfig

2015-08-22 Thread Simon Glass
Convert all TPM options to Kconfig and tidy up. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: None configs/chromebook_link_defconfig | 2 ++ configs/chromebox_panther_defconfig | 2 ++

[U-Boot] [PATCH v2 02/28] tpm: Drop two unused options

2015-08-22 Thread Simon Glass
The address of the I2C TPM is now defined in the device tree so there is no need for the CONFIG options. Remove them from the README and board config to avoid confusion. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: None

[U-Boot] [PATCH v2 05/28] tpm: Convert drivers to use SPDX

2015-08-22 Thread Simon Glass
Add an SPDX header to two drivers that don't have it. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: None drivers/tpm/tpm_atmel_twi.c | 15 +++ drivers/tpm/tpm_tis_i2c.c | 18 +- 2 files

[U-Boot] [PATCH v2 08/28] tpm: tpm_tis_i2c: Drop struct tpm_vendor_specific

2015-08-22 Thread Simon Glass
This function is misnamed since it only applies to a single driver. Merge its fields into its parent. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/tpm/tpm_tis_i2c.c | 79 ++- drivers/tpm/tpm_tis_i2c.h | 16 +++---

[U-Boot] [PATCH] buildman: Correct 'Series-cover-cc' detection logic

2015-08-22 Thread Simon Glass
This requires 'Series-cover_cc' at present which is incorrect. Fix it. Signed-off-by: Simon Glass s...@chromium.org --- tools/patman/series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/series.py b/tools/patman/series.py index a17a7d1..3399f2c 100644 ---

[U-Boot] [PATCH v2 16/28] dm: tpm: Convert the TPM command and library to driver model

2015-08-22 Thread Simon Glass
Add driver model support to the TPM command and the TPM library. Both support only a single TPM at present. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Correct error checking code in tpm_sendrecv_command() - Use tpm_ prefix instead of tis_ for TPM functions

Re: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver

2015-08-22 Thread Marek Vasut
On Saturday, August 22, 2015 at 07:09:21 PM, Simon Glass wrote: Hi Marek, Hi Simon, On 22 August 2015 at 10:48, Marek Vasut ma...@denx.de wrote: On Saturday, August 22, 2015 at 06:01:44 PM, Simon Glass wrote: Hi Marek, Hi! On 22 August 2015 at 09:50, Marek Vasut ma...@denx.de

[U-Boot] [PATCH v2 5/9] gpio: Report errors when GPIOs cannot be read

2015-08-22 Thread Simon Glass
Some controllers do not allow the output value to be read. Detect this and report the error in that case. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/cmd_gpio.c | 34 +++--- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH v2 4/9] x86: minnowmax: Correct pad-offset value for host_en1

2015-08-22 Thread Simon Glass
This should be 0x250, not 0x258. Fix it. Reported-by: Andrew Bradford andrew.bradf...@kodakalaris.com Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/x86/dts/minnowmax.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/dts/minnowmax.dts

[U-Boot] [PATCH v2 7/9] x86: gpio: Tidy up gpio_ich6_get_base() and callers

2015-08-22 Thread Simon Glass
This function can return an error. Correct the detection of this error so that it works even with large 32-bit addresses. The return value is set up for returning an I/O address but the function is also used to return a memory-mapped address. Adjust the return code to make this work. Also add a

[U-Boot] [PATCH v2 0/9] x86: gpio: Tidy up GPIO driver

2015-08-22 Thread Simon Glass
The ICH GPIO driver does not work correctly at present. This series tidies things up and fixes a few bugs. One issue remaining is that reading from output GPIOs does not work - it always returns 0. Changes in v2: - Adjust pci_get_bus() to probe bus 0 so that the required bus is found - Fix

[U-Boot] [PATCH v2 1/9] x86: minnowmax: Add access to GPIOs E0, E1, E2

2015-08-22 Thread Simon Glass
These GPIOs are accessible on the pin header. Add pinctrl settings for them so that we they can be adjusted using the 'gpio' command. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/x86/dts/minnowmax.dts | 27 +++ 1 file changed, 27

[U-Boot] [PATCH v2 2/9] dm: pci: Allow a PCI bus to be found without an alias

2015-08-22 Thread Simon Glass
At present, until a PCI bus is probed, it cannot be found by its sequence number unless it has an alias. This is the same with any device. However with PCI this is more annoying than usual, since bus 0 is always the same device. Add a function that tries a little harder to locate PCI bus 0. This

[U-Boot] [PATCH v2 9/9] WIP: x86: gpio: Make sure that output GPIOs can be read

2015-08-22 Thread Simon Glass
The datasheet suggests that the state of an output pin can be read. In fact this does not seem to work, perhaps because we are also accessing the GPIO state through I/O instead of just memory-mapped. Not to apply. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

[U-Boot] [PATCH v2 3/9] dm: pci: Add a comment to help find pci_hose_read_config_byte, etc.

2015-08-22 Thread Simon Glass
These functions are defined by macros so do not show up with grep. Add a comment to help. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Fix 'micros' typo include/pci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/pci.h

[U-Boot] [PATCH v2 6/9] x86: gpio: Correct calls to _ich6_gpio_set_direction()

2015-08-22 Thread Simon Glass
These calls seem to be incorrect. The function expects an I/O address but the existing callers pass the value at an I/O address. Fix it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/gpio/intel_ich6_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [PATCH v2 8/9] WIP: x86: gpio: Handle the case where reading a GPIO fails

2015-08-22 Thread Simon Glass
It should be possible to read an output GPIO. For now it is not clear how to do this. Perhaps the driver should be adjusted to use memory-mapped access throughout. For now, return an error to avoid confusion. Not to apply. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

[U-Boot] [PATCH v2 24/28] tpm: Add a 'tpm info' command

2015-08-22 Thread Simon Glass
Add a command to display basic information about a TPM such as the model and open/close state. This can be useful for debugging. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: - Use tpm_ prefix instead of tis_ for TPM

[U-Boot] [PATCH v2 17/28] dm: i2c: Add a command to adjust the offset length

2015-08-22 Thread Simon Glass
I2C chips can support a register offset, with registers accessible by sending this offset as the first part of any read or write transaction. Most I2C chips have a single byte offset, thus the offset length is 1. This provides access for up 256 registers. However other offset lengths are

[U-Boot] [PATCH v2 28/28] tegra: nyan: Enable TPM command and driver

2015-08-22 Thread Simon Glass
The TPM is listed in the device tree. Enable the driver and 'tpm' command so that it can be used. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: - Enable 'tpmtest' command for nyan - Update cover letter to mention panther

[U-Boot] [PATCH v2 11/28] tpm: tpm_tis_i2c: Move definitions into the header file

2015-08-22 Thread Simon Glass
Some definitions are in the C file and some are in the header file. Move everything into the header file for consistency and to reduce clutter. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/tpm/tpm_tis_i2c.c | 335 --

[U-Boot] [PATCH v2 23/28] dm: tpm: Convert LPC driver to driver model

2015-08-22 Thread Simon Glass
Convert the tpm_tis_lpc driver to use driver model and update boards which use it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Update driver for the new uclass interface configs/chromebook_link_defconfig | 2 + configs/chromebox_panther_defconfig | 2 +

[U-Boot] [PATCH v2 26/28] dm: tpm: Add a 'tpmtest' command

2015-08-22 Thread Simon Glass
These tests come from Chrome OS code. They are not particularly tidy but can be useful for checking that the TPM is behaving correctly. Some knowledge of TPM operation is required to use these. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch with a 'tpmtest'

[U-Boot] [PATCH v2 13/28] tpm: tpm_tis_i2c: Use a consistent tpm_tis_i2c_ prefix

2015-08-22 Thread Simon Glass
Use the same prefix on each function for consistency. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Christophe Ricard christophe-h.ric...@st.com --- Changes in v2: None drivers/tpm/tpm_tis_i2c.c | 113 -- 1 file changed, 58 insertions(+), 55

[U-Boot] [PATCH v2 10/28] tpm: tpm_tis_i2c: Merge struct tpm into tpm_chip

2015-08-22 Thread Simon Glass
There are too many structures storing the same sort of information. Move the fields from struct tpm into struct tpm_chip and remove the former struct. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/tpm/tpm_tis_i2c.c | 24 +---

[U-Boot] [PATCH v2 18/28] tpm: Report tpm errors on the command line

2015-08-22 Thread Simon Glass
When a 'tpm' command fails, we set the return code but give no indication of failure. This can be confusing. Add an error message when any tpm command fails. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Correct error-checking code in report_return_code() common/cmd_tpm.c

[U-Boot] [PATCH v2 20/28] tpm: Check that parse_byte_string() has data to parse

2015-08-22 Thread Simon Glass
Rather then crashing when there is no data, print an error. Acked-by: Christophe Ricard christophe-h.ric...@st.com Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/cmd_tpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/cmd_tpm.c b/common/cmd_tpm.c

Re: [U-Boot] [PATCH v3 9/9] dfu: tftp: Kconfig: Enable DFU_TFTP support on the am335x_boneblack_defconfig

2015-08-22 Thread Lukasz Majewski
On Fri, 21 Aug 2015 18:18:21 -0500 Joe Hershberger joe.hershber...@gmail.com wrote: On Fri, Aug 21, 2015 at 6:11 PM, Lukasz Majewski l.majew...@majess.pl wrote: On Tue, 18 Aug 2015 19:31:03 -0500 Joe Hershberger joe.hershber...@gmail.com wrote: Hi Lukasz, On Tue, Aug 18, 2015 at

[U-Boot] [PATCH] rpi: set fdt_addr_r to 0x00000100 to match default device_tree_address

2015-08-22 Thread Jonathan Liu
Raspberry Pi by default loads the FDT to 0x0100 so set fdt_addr_r to match and move scriptaddr to 0x0200 to avoid clobbering the FDT. Signed-off-by: Jonathan Liu net...@gmail.com --- include/configs/rpi-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver

2015-08-22 Thread Simon Glass
Hi Marek, On 22 August 2015 at 10:48, Marek Vasut ma...@denx.de wrote: On Saturday, August 22, 2015 at 06:01:44 PM, Simon Glass wrote: Hi Marek, Hi! On 22 August 2015 at 09:50, Marek Vasut ma...@denx.de wrote: On Saturday, August 22, 2015 at 03:40:26 PM, Simon Glass wrote: Hi!

Re: [U-Boot] [U-Boot, 1/3] sysboot: Add support for ubifs to the sysboot command

2015-08-22 Thread Hans de Goede
Hi, On 22-08-15 00:01, Stephen Warren wrote: On 08/21/2015 03:56 AM, Hans de Goede wrote: Hi, On 20-08-15 21:53, Stephen Warren wrote: On 20-08-15 18:04, Hans de Goede wrote: ubifs does not go though the generic block layer because mtd devices are special, so the any filesystem option to

[U-Boot] [PATCH v2 2/4] ubifs: Add functions for generic fs use

2015-08-22 Thread Hans de Goede
Implement the necessary functions for implementing generic fs support for ubifs. Signed-off-by: Hans de Goede hdego...@redhat.com --- fs/ubifs/ubifs.c | 62 +++ include/ubifs_uboot.h | 4 2 files changed, 66 insertions(+) diff --git

[U-Boot] [PATCH v2 0/4] distro_bootcmd: Add support for booting from ubifs

2015-08-22 Thread Hans de Goede
Hi Stephen Scott, As requested by Stephen here is a new version of my patch-set to add mtd with ubi on top with ubifs on top support to distro_bootcmd, this time using the generic filesystem related commands / code. Scott, can you review the first three patches, and perhaps these should also be

[U-Boot] [PATCH v2 4/4] distro_bootcmd: Add support for booting from ubifs

2015-08-22 Thread Hans de Goede
From: Roy Spliet r.spl...@ultimaker.com Under the assumptions of having a UBI volume called boot, containing a ubifs filesystem. Signed-off-by: Hans de Goede hdego...@redhat.com --- include/config_distro_bootcmd.h | 19 +++ 1 file changed, 19 insertions(+) diff --git

[U-Boot] [PATCH v2 3/4] ubifs: Add generic fs support

2015-08-22 Thread Hans de Goede
Add generic fs support, so that commands like ls, load and test -e can be used on ubifs. Signed-off-by: Hans de Goede hdego...@redhat.com --- disk/part.c | 23 +++ fs/fs.c | 16 include/fs.h | 1 + 3 files changed, 40 insertions(+) diff --git

[U-Boot] [PATCH v2 1/4] ubifs: Modify ubifs u-boot wrapper function prototypes for generic fs use

2015-08-22 Thread Hans de Goede
Modify the ubifs u-boot wrapper function prototypes for generic fs use, and give them their own header file. This is a preparation patch for adding ubifs support to the generic fs code from fs/fs.c. Signed-off-by: Hans de Goede hdego...@redhat.com --- common/cmd_ubifs.c| 14 +++

[U-Boot] [PATCH 3/4] mtd: nand: Make CONFIG_SYS_NAND_U_BOOT_OFFS configurable through Kconfig

2015-08-22 Thread Hans de Goede
Make CONFIG_SYS_NAND_U_BOOT_OFFS configurable through Kconfig, just like SYS_NAND_BUSWIDTH_16BIT this is only enabled on some SoCs using depends, to avoid double defining it for SoCs which have not yet moved to Kconfig for this. Having this in Kconfig is useful because this is something which may

[U-Boot] [PATCH 1/4] sunxi_nand_spl: Rename SPL_NAND_SUNXI to NAND_SUNXI

2015-08-22 Thread Hans de Goede
We eventually want to add full nand support, since it makes no sense to build SPL with nand support and u-boot without, or the other way around, a single option will suffice. Renaming the Kconfig option now makes things easier when we add full nand support in the future. The

[U-Boot] [PATCH 2/4] sunxi_nand_spl: Remove NAND_SUNXI_SPL_SYNDROME_PARTITIONS_END

2015-08-22 Thread Hans de Goede
We only ever use syndrome mode for the partitions which contain the SPL, as that is required for the BROM to be able to read the SPL. Instead of using some arbritray limit for deciding whether or not to use syndrome, be smart and check if u-boot-dtb.bin is directly behind the SPL, if it is not

[U-Boot] [PATCH 4/4] sunxi: Add inet97fv2_defconfig

2015-08-22 Thread Hans de Goede
The inet97fv2 is a board found in the first generation of cheap allwinner A10 based 7 tablets. Note that this patch does not add a dts file as we already have one from our dts syncs with the kernel. Signed-off-by: Hans de Goede hdego...@redhat.com --- board/sunxi/MAINTAINERS | 3 ++-

Re: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver

2015-08-22 Thread Marek Vasut
On Saturday, August 22, 2015 at 03:40:26 PM, Simon Glass wrote: Hi! [...] One way or another we'll figure this out sooner rather than later. I know :) Masahiro's series landed so I have applied this to u-boot-dm. Please check that it works as you expect. I think we're having a

Re: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver

2015-08-22 Thread Simon Glass
Hi Marek, On 22 August 2015 at 09:50, Marek Vasut ma...@denx.de wrote: On Saturday, August 22, 2015 at 03:40:26 PM, Simon Glass wrote: Hi! [...] One way or another we'll figure this out sooner rather than later. I know :) Masahiro's series landed so I have applied this to u-boot-dm.

Re: [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver

2015-08-22 Thread Marek Vasut
On Saturday, August 22, 2015 at 06:01:44 PM, Simon Glass wrote: Hi Marek, Hi! On 22 August 2015 at 09:50, Marek Vasut ma...@denx.de wrote: On Saturday, August 22, 2015 at 03:40:26 PM, Simon Glass wrote: Hi! [...] One way or another we'll figure this out sooner rather than