[U-Boot] [PATCH v4 4/5] arm: socfpga: Move FPGA manager driver to FPGA driver

2017-05-18 Thread tien . fong . chee
From: Tien Fong Chee Move FPGA manager driver which is Gen5 specific code from arch/arm/ into FPGA driver at driver/fpga/. No functional change. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/Makefile | 1 -

[U-Boot] [PATCH v4 5/5] arm: socfpga: Add FPGA driver support for Arria 10

2017-05-18 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA driver support for Arria 10. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/fpga_manager.h | 2 + .../include/mach/fpga_manager_arria10.h| 100 + drivers/fpga/Makefile

[U-Boot] [PATCH v4 3/5] arm: socfpga: Enable FPGA driver on SPL

2017-05-18 Thread tien . fong . chee
From: Tien Fong Chee Enable FPGA driver build for SPL. FPGA driver is needed for SPL to configure and getting DDR up before loading U-boot into DDR and booting from there. Signed-off-by: Tien Fong Chee --- drivers/Makefile | 1 + 1 file

[U-Boot] [PATCH v4 2/5] arm: socfpga: Restructure FPGA driver in the preparation to support A10.

2017-05-18 Thread tien . fong . chee
From: Tien Fong Chee Move FPGA driver which is Gen5 specific code into Gen5 driver file and keeping common FPGA driver er intact. All the changes are still keeping in driver/fpga/ and no functional change. Subsequent patch would move FPGA manager driver from arch/arm

[U-Boot] [PATCH v4 1/5] arm: socfpga: Remove unused passing parameter of socfpga_bridges_reset

2017-05-18 Thread tien . fong . chee
From: Tien Fong Chee Remove parameter from socfpga_bridges_reset(), and keeping this function for single purpose which is just triggering reset on bridges. socfpga_reset_deassert_bridges_handoff() can be called for releasing reset on any bridges based on the bridge

[U-Boot] [PATCH v4 0/5] Add Intel Arria 10 SoC FPGA driver

2017-05-18 Thread tien . fong . chee
From: Tien Fong Chee This is the 4th version of patchset to adds support for Intel Arria 10 SoC FPGA driver. This version mainly resolved comments from Ley Foon and Dinh in [v3]. This series is working on top of u-boot-socfpga-next branch

[U-Boot] [PATCH v3 66/72] dm: sandbox: i2c_rtc: Drop fdtdec.h header

2017-05-18 Thread Simon Glass
This is not needed in this driver. Drop it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/rtc/i2c_rtc_emul.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/i2c_rtc_emul.c b/drivers/rtc/i2c_rtc_emul.c index

[U-Boot] [PATCH v3 52/72] dm: clk: fixed: Update to support livetree

2017-05-18 Thread Simon Glass
Update the fixed-rate clock driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/clk/clk_fixed_rate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk_fixed_rate.c

[U-Boot] [PATCH v3 49/72] sandbox: usb: Convert emulators to livetree

2017-05-18 Thread Simon Glass
Update the sandbox flash and hub USB emulators to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/usb/emul/sandbox_flash.c | 4 +--- drivers/usb/emul/sandbox_hub.c | 3 +-- 2 files changed, 2 insertions(+), 5

[U-Boot] [PATCH v3 57/72] dm: phy: Update uclass to support livetree

2017-05-18 Thread Simon Glass
Update the phy uclass to support livetree. Fix the xlate() method which has no callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/phy/phy-uclass.c | 21 + include/generic-phy.h| 3 +-- 2 files changed, 10

[U-Boot] [PATCH v3 46/72] dm: mmc: Convert uclass to livetree

2017-05-18 Thread Simon Glass
Update the mmc uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mmc/mmc-uclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c

[U-Boot] [PATCH v3 59/72] dm: power-domain: Update uclass to support livetree

2017-05-18 Thread Simon Glass
Update the power domain uclass to support livetree. Fix the xlate() method which has no callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/domain/power-domain-uclass.c | 19 --- include/power-domain-uclass.h

[U-Boot] [PATCH v3 48/72] dm: usb: Convert uclass to livetree

2017-05-18 Thread Simon Glass
Update the usb uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/usb/host/usb-uclass.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/usb-uclass.c

[U-Boot] [PATCH v3 27/72] dm: core: Run tests with both livetree and flat tree

2017-05-18 Thread Simon Glass
Some tests require either livetree or flat tree. Add flags to allow the tests to specify this. Adjust the test runner to run with livetree (if supported) and then flat tree. Some video tests are quite slow and running on flat tree adds little extra test value, so run these on livetree only.

[U-Boot] [PATCH v3 54/72] dm: test: Disable the fdt_offset test with livetree

2017-05-18 Thread Simon Glass
We cannot run this test with livetree since it uses device tree offsets. Mark it as flat tree only. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/test-fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 62/72] dm: Update the I2C eeprom driver for livetree

2017-05-18 Thread Simon Glass
Update this driver so that it works with livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/misc/i2c_eeprom_emul.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/misc/i2c_eeprom_emul.c

[U-Boot] [PATCH v3 58/72] sandbox: phy: Update driver for livetree

2017-05-18 Thread Simon Glass
Update the sandbox phy driver to support livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/phy/sandbox-phy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c

[U-Boot] [PATCH v3 72/72] sandbox: Move to use live tree

2017-05-18 Thread Simon Glass
This updates sandbox to use a live device tree. This means that after relocation (from board_init_r() onwards) it no-longer uses flat device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Rewrite based on testing and refining the v1 series - Convert

[U-Boot] [PATCH v3 32/72] cros_ec: Fix debug() statement in ec_command_inptr()

2017-05-18 Thread Simon Glass
This prints out the wrong pointers. Fix it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/misc/cros_ec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index

[U-Boot] [PATCH v3 64/72] dm: spi: Convert uclass to livetree

2017-05-18 Thread Simon Glass
Update the SPI uclass to support a live device tree. Also adjust spi_slave_ofdata_to_platdata() to accept a device instead of a blob and offset. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/spi/spi-uclass.c | 31

[U-Boot] [PATCH v3 35/72] test: Update 'make test' to run more tests

2017-05-18 Thread Simon Glass
The standard sandbox board cannot run the of-platdata test since it needs SPL. Also, we should test the flat tree version of sandbox. Add these tests to the default test script. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/run | 8 +++- 1

[U-Boot] [PATCH v3 69/72] dm: sandbox: sysreset: Convert driver to livetree

2017-05-18 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/sysreset/sysreset_sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sysreset/sysreset_sandbox.c

[U-Boot] [PATCH v3 33/72] cros_ec: Convert to support live tree

2017-05-18 Thread Simon Glass
Convert this driver to support the live device tree and remove the old fdtdec support. The keyboard is not yet converted. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/misc/cros_ec.c | 33 ++---

[U-Boot] [PATCH v3 19/72] dm: core: Add a way to find a device by ofnode

2017-05-18 Thread Simon Glass
Add a function which looks up a device by its node (either in live tree or flat tree). Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/uclass.c| 37 + include/dm/uclass-internal.h | 18

[U-Boot] [PATCH v3 25/72] dm: test: Show the test filename when running

2017-05-18 Thread Simon Glass
Show the filename of the test being run. Skip the path and show just the base name. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/test/test.h | 2 ++ test/dm/test-main.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 61/72] dm: pci: Update uclass to support livetree

2017-05-18 Thread Simon Glass
Update the PCI uclass to support livetree. This mostly involves fixing the address decoding from the device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/pci/pci-uclass.c | 26 -- 1 file changed, 12

[U-Boot] [PATCH v3 65/72] dm: sandbox: i2c: Drop fdtdec.h header

2017-05-18 Thread Simon Glass
This is not needed in this driver. Drop it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/i2c/sandbox_i2c.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c index 4696a1ae62..f5978fda29

[U-Boot] [PATCH v3 30/72] dm: gpio: sandbox: Use dev_read...() functions to access DT

2017-05-18 Thread Simon Glass
Use the new dev_read...() functions to access the device tree, so that a live tree can be used. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/gpio/sandbox.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH v3 50/72] clk: Modify xlate() method for livetree

2017-05-18 Thread Simon Glass
Update the xlate() method to use ofnode_phandle_args instead of the fdtdec variant. This will allow drivers to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/clk/at91/pmc.c| 2 +- drivers/clk/at91/pmc.h| 2

[U-Boot] [PATCH v3 37/72] dm: Add more livetree helpers and definitions

2017-05-18 Thread Simon Glass
Add some definitions and helpers for livetree in the main of.h header file. These include: - reading multi-cell integers - default number of address/size cells - functions for comparing names Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 47/72] dm: adc: Convert uclass to livetree

2017-05-18 Thread Simon Glass
Update the adc uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/adc/adc-uclass.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/adc/adc-uclass.c

[U-Boot] [PATCH v3 36/72] fdt: Rename a few functions in fdt_support

2017-05-18 Thread Simon Glass
These two functions have an of_ prefix which conflicts with naming used in of_addr. Rename them: fdt_read_number fdt_support_bus_default_count_cells Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/fdt.c| 4

[U-Boot] [PATCH v3 40/72] dm: i2c: Convert uclass to livetree

2017-05-18 Thread Simon Glass
Update the i2c uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/i2c/i2c-uclass.c | 28 +--- include/i2c.h| 3 +-- 2 files changed, 14 insertions(+), 17 deletions(-)

[U-Boot] [PATCH v3 43/72] sandbox: pmic: Convert pmic emulator to support livetree

2017-05-18 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/pmic/i2c_pmic_emul.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/power/pmic/i2c_pmic_emul.c

Re: [U-Boot] [PATCH] rockchip: firefly-rk3399: enable rk3399 pinctrl in defconfig

2017-05-18 Thread Alex Hixon
Hi Kever, Ahh, yup! You're totally right! I didn't see Heiko's patch earlier. My mistake. Cheers, Alex On 18 May 2017 12:38 PM, "Kever Yang" wrote: > Hi Alex, > > > Thanks for your patch, but this patch is just the same with the one from > Heiko[0], right? > > >

[U-Boot] [PATCH v3 34/72] sandbox: Add a new sandbox_flattree board

2017-05-18 Thread Simon Glass
Add a sandbox board to test the non-livetree build (i.e. with CONFIG_OF_FLAT disabled). This increases our build and test coverage. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None board/sandbox/MAINTAINERS | 7 ++

[U-Boot] [PATCH v3 18/72] dm: core: Scan the live tree when setting up driver model

2017-05-18 Thread Simon Glass
When starting up driver model with a live tree we need to scan the tree for devices. Add code to handle this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/root.c | 58 +

[U-Boot] [PATCH v3 17/72] dm: core: Update device_bind_driver_to_node() to use ofnode

2017-05-18 Thread Simon Glass
Adjust this function to us an ofnode instead of an offset, so it can be used with livetree. This involves updating all callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/clk/at91/pmc.c | 2 +- drivers/core/lists.c

[U-Boot] [PATCH v3 26/72] dm: test: Add support for running tests with livetree

2017-05-18 Thread Simon Glass
It is useful to run the driver model tests with both livetree and flat tree in case something is different between the two. Add this feature to the test runner. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/test-main.c | 23

[U-Boot] [PATCH v3 70/72] dm: test: Fix nit with position of backslash

2017-05-18 Thread Simon Glass
Line up this backslash with all the others. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/test/ut.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/test/ut.h b/include/test/ut.h index 85434d785a..d176df58c7 100644

[U-Boot] [PATCH v3 45/72] dm: regulator: Update fixed regulator to support livetree.

2017-05-18 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/regulator/fixed.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/power/regulator/fixed.c

[U-Boot] [PATCH v3 39/72] string: Add strcspn()

2017-05-18 Thread Simon Glass
Add an implementation of strcspn() which returns the number of initial characters that do not match any in a rejection list. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/linux/string.h | 15 +++ lib/string.c | 24

[U-Boot] [PATCH v3 44/72] dm: regulator: Convert regulator uclass to support livetree

2017-05-18 Thread Simon Glass
Update the regulator uclass to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/regulator/regulator-uclass.c | 39 -- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git

[U-Boot] [PATCH v3 12/72] dm: core: Add a place to put extra device-tree reading functions

2017-05-18 Thread Simon Glass
Some functions deal with structured data rather than simple data types. It makes sense to have these in their own file. For now this just has a function to read a flashmap entry. Move the data types also. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 28/72] dm: gpio: Refactor to prepare for live tree support

2017-05-18 Thread Simon Glass
Move the main part of the GPIO request function into a separate function so that it can be used by the live tree function when added. Update the xlate method to use a node reference. Update all GPIO drivers to handle the modified xlate() method. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v3 09/72] dm: core: Add livetree address functions

2017-05-18 Thread Simon Glass
Add functions to access addresses in the device tree. These are brought in from Linux 4.10. Also fix up the header guard for fdtaddr.h to avoid confusion. Signed-off-by: Simon Glass --- Changes in v3: - Fix up the fdtaddr.h header guard to avoid conflicts Changes in v2:

[U-Boot] [PATCH v3 42/72] dm: pmic: Convert uclass to livetree

2017-05-18 Thread Simon Glass
Update the pmic uclass and all pmics to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/power/pmic/act8846.c | 8 +++- drivers/power/pmic/lp873x.c | 12 +--- drivers/power/pmic/max77686.c|

[U-Boot] [PATCH v3 20/72] dm: regmap: Add support for livetree

2017-05-18 Thread Simon Glass
Modify regmap to support livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/regmap.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/drivers/core/regmap.c

[U-Boot] [PATCH v3 68/72] dm: sandbox: spi: Convert driver to support livetree

2017-05-18 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mtd/spi/sandbox.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c

[U-Boot] [PATCH v3 55/72] dm: phy: Update tests to use ut_asserteq()

2017-05-18 Thread Simon Glass
Use ut_asserteq() to test equality since this gives a better error message on failure. Also make a few of the tests more specific. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/phy.c | 15 +-- 1 file changed, 9 insertions(+), 6

[U-Boot] [PATCH v3 56/72] dm: mailbox: Update uclass to support livetree

2017-05-18 Thread Simon Glass
Update the mailbox uclass to support livetree. Fix the xlate() method in all callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/mailbox/mailbox-uclass.c | 20 drivers/mailbox/tegra-hsp.c | 2 +-

[U-Boot] [PATCH v3 53/72] dm: test: Separate out the bus DT offset test

2017-05-18 Thread Simon Glass
We cannot access the device tree via an offset when running in livetree mode. Separate out that part of the bus' children tests and mark it as for the flat tree only. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/bus.c | 16 +++-

[U-Boot] [PATCH v3 21/72] dm: simple-bus: Add support for livetree

2017-05-18 Thread Simon Glass
Modify simple-bus to support livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/simple-bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index

[U-Boot] [PATCH v3 38/72] string: Add strchrnul()

2017-05-18 Thread Simon Glass
This functions works like strchr() but returns the end of the string if the character is not found. Add an implementation of this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/linux/string.h | 13 + lib/string.c | 8

[U-Boot] [PATCH v3 41/72] samsung: Move pmic header out of config file

2017-05-18 Thread Simon Glass
We should not be including a PMIC header file in the board config. Move it to a C file. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to move pmic header out of config file Changes in v2: None board/samsung/common/misc.c | 1 + include/configs/trats2.h|

[U-Boot] [PATCH v3 16/72] dm: core: Update lists_bind_fdt() to use ofnode

2017-05-18 Thread Simon Glass
Adjust this function to use an ofnode instead of an offset, so it can be used with livetree. This involves updating all callers. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/lists.c | 12 ++-- drivers/core/root.c

[U-Boot] [PATCH v3 15/72] dm: core: Allow binding a device from a live tree

2017-05-18 Thread Simon Glass
When a live tree is being used we need to record the node that was used to create the device. Update device_bind_with_driver_data() to support this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/device.c| 18 --

[U-Boot] [PATCH v3 29/72] dm: gpio: Drop blank line in gpio_xlate_offs_flags() comment

2017-05-18 Thread Simon Glass
This is not needed. Drop it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/asm-generic/gpio.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index b073b39138..d78491dfc2 100644 ---

[U-Boot] [PATCH v3 11/72] dm: core: Add address operations on device tree references

2017-05-18 Thread Simon Glass
Add functions to add addresses in the device tree using ofnode references. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/ofnode.c | 27 +++ include/dm/ofnode.h | 23 ++- 2 files changed, 49

[U-Boot] [PATCH v3 13/72] dm: core: Add device-based 'read' functions to access DT

2017-05-18 Thread Simon Glass
It is common to read a device-tree property from the node associated with a device. Add convenience functions to do this so that drivers do not need to deal with accessing the ofnode from the device. These functions all start with 'dev_read_' to provide consistent naming for all functions which

[U-Boot] [PATCH v3 22/72] dm: core: Update uclass_find_device_by_phandle() for livetree

2017-05-18 Thread Simon Glass
Adjust this function to work with livetree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/uclass.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index

[U-Boot] [PATCH v3 23/72] sandbox: Add a way to reset sandbox state for tests

2017-05-18 Thread Simon Glass
Running a new test should reset the sandbox state to avoid tests interferring with each other. Move the existing state-reset code into a function so it can be used from tests. Also update the code to reset the SPI devices and adjust the test code to call it. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 10/72] fdt: Update fdt_get_base_address() to use const

2017-05-18 Thread Simon Glass
This function does not change the device tree so adjust it to use const for this parameter. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/fdt_support.c | 2 +- include/fdt_support.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [PATCH v3 14/72] dm: core: Implement live tree 'read' functions

2017-05-18 Thread Simon Glass
When the live tree is supported some functions need to change a little. Add an implementation which is used when not inlining these functions. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/Makefile | 3 + drivers/core/read.c | 140

[U-Boot] [PATCH v3 24/72] dm: test: Move test running code into a separate function

2017-05-18 Thread Simon Glass
We want to run the same test on flat and live trees. In preparation for this, create a new function which handles running a test. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/test-main.c | 56

[U-Boot] [PATCH v3 06/72] dm: Build a live tree after relocation

2017-05-18 Thread Simon Glass
If enabled, build a live device tree after relocation. This can then be used by driver model. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/board_r.c | 12 1 file changed, 12 insertions(+) diff --git a/common/board_r.c

[U-Boot] [PATCH v3 03/72] dm: core: Add livetree definitions

2017-05-18 Thread Simon Glass
Add a Kconfig option to enable a live device tree, built at run time from the flat tree. Also add structure definitions and a root node. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None dts/Kconfig | 11

[U-Boot] [PATCH v3 04/72] dm: core: Add livetree access functions

2017-05-18 Thread Simon Glass
Add a basic assortment of functions to access the live device tree. These come from Linux v4.9 and are modified for U-Boot to the minimum extent possible. While these functions are now very stable in Linux, it will be possible to merge in fixes if needed. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 05/72] dm: Add a function to create a 'live' device tree

2017-05-18 Thread Simon Glass
This function converts the flat device tree into a hierarchical one with C structures and pointers. This is easier to access. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/of_live.h | 24 lib/Makefile | 1 + lib/of_live.c |

[U-Boot] [PATCH v3 07/72] dm: core: Rename of_device_is_compatible()

2017-05-18 Thread Simon Glass
The of_ prefix conflicts with the livetree version of this function. Rename it to avoid problems when we add livetree support. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/device.c | 2 +- drivers/firmware/psci.c

[U-Boot] [PATCH v3 08/72] dm: core: Add operations on device tree references

2017-05-18 Thread Simon Glass
Since U-Boot supports both a live tree and a flat tree, we need an easy way to access the tree without worrying about which is currently active. To support this, U-Boot has the concept of an ofnode, which can refer either to a live tree node or a flat tree node. For the live tree, the reference

[U-Boot] [PATCH v3 00/72] dm: Add support for a 'live' device tree

2017-05-18 Thread Simon Glass
(this is series 2 of 3 for live tree support - the final series will fully convert a real board and provide size comparisons) So far U-Boot uses a 'flat' device tree, which means that it is decoded on the fly as needed. This uses the libfdt library and avoids needing extra memory for additional

Re: [U-Boot] [PATCH 2/3] arm: am57xx: Set fastboot variables in environment

2017-05-18 Thread Lokesh Vutla
On Thursday 18 May 2017 06:31 PM, Sam Protsenko wrote: > One can obtain those variables using next commands: > > $ fastboot getvar cpu > $ fastboot getvar secure > $ fastboot getvar board_rev > $ fastboot getvar userdata_size > > Those variables are needed for fastboot.sh

Re: [U-Boot] [PATCH 1/3] omap: Add routine for setting fastboot variables

2017-05-18 Thread Lokesh Vutla
On Thursday 18 May 2017 06:31 PM, Sam Protsenko wrote: > This patch reuses new option, which allows us to expose variables > from environment to "fastboot getvar" command. Those variables must be > of "fastboot.%s" format. > > Signed-off-by: Sam Protsenko > --- >

Re: [U-Boot] [PATCH] ARM: fixed relocation using proper alignment

2017-05-18 Thread Lokesh Vutla
On Thursday 18 May 2017 09:04 PM, Manfred Schlaegl wrote: > On 2017-05-18 16:59, Lothar Waßmann wrote: >> Manfred Schlaegl wrote: >> >>> On 2017-05-17 06:13, Lokesh Vutla wrote: On Tuesday 16 May 2017 07:59 PM, Manfred Schlaegl wrote: > On

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

2017-05-18 Thread Simon Glass
Hi Tom, On 9 May 2017 at 17:59, Tom Rini wrote: > > On Tue, May 09, 2017 at 04:53:36PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > Here's the conversion to use the upstream pylibfdt implementation. > > > > > > The following changes since commit

[U-Boot] [PATCH v2 09/20] fdt: Build the new python libfdt module

2017-05-18 Thread Simon Glass
Build the upstream python libfdt module. At present the legacy module is still built and is the one that it used. Future work will switch this over. Signed-off-by: Simon Glass --- Changes in v2: - Fix building when srcpath is ".." tools/Makefile | 23 +++

Re: [U-Boot] [U-Boot,v2] ARM: dts: am335x-evm: disable mmc3

2017-05-18 Thread Tom Rini
On Wed, May 17, 2017 at 09:22:55PM +0200, Jean-Jacques Hiblot wrote: > SDIO is not supported in u-boot, there is no point in enabling mmc3. > For this purpose, add u-boot specific dtsi that this will be included > automatically while building the dtb. > > Signed-off-by: Jean-Jacques Hiblot

Re: [U-Boot] [U-Boot, PATCHv2] scripts/Makefile.lib: Always have ...-u-boot.dtsi be able to override

2017-05-18 Thread Tom Rini
On Wed, May 17, 2017 at 02:06:08PM -0400, Tom Rini wrote: > The intention of having a -u-boot.dtsi file is to be able to make > changes to the provided upstream dts files as well as to be able to add > nodes. Change the logic for adding the file from making it the last > included file at the top

Re: [U-Boot] [PULL] u-boot-socfpga/master

2017-05-18 Thread Tom Rini
On Thu, May 18, 2017 at 11:42:02AM +0200, Marek Vasut wrote: > The following changes since commit fa8967cfbaed5582ba987756fa9f0470a9affbf4: > > Merge git://git.denx.de/u-boot-uniphier (2017-05-17 14:13:58 -0400) > > are available in the git repository at: > >

Re: [U-Boot] [PULL] u-boot-usb/master

2017-05-18 Thread Tom Rini
On Thu, May 18, 2017 at 11:32:47AM +0200, Marek Vasut wrote: > The following changes since commit fa8967cfbaed5582ba987756fa9f0470a9affbf4: > > Merge git://git.denx.de/u-boot-uniphier (2017-05-17 14:13:58 -0400) > > are available in the git repository at: > >

Re: [U-Boot] [PATCH v3] fastboot: Add support for flashing zImage

2017-05-18 Thread Tom Rini
On Thu, May 18, 2017 at 03:04:59PM +0300, Sam Protsenko wrote: > This patch adds support for flashing zImage to the Android boot > partition on eMMC. > > Usage: > > $ fastboot flash zImage > > It's based on [1]. > > [1] >

[U-Boot] [PATCH v3 2/2] dm: serial: bcm6345: fix baud rate clock calculation

2017-05-18 Thread Álvaro Fernández Rojas
It's currently bugged and doesn't work for even cases. Right shift bits instead of dividing and fix even cases. Signed-off-by: Álvaro Fernández Rojas --- drivers/serial/serial_bcm6345.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH v3 1/2] dm: serial: bcm6345: fix uart stop bits

2017-05-18 Thread Álvaro Fernández Rojas
I missed this when I added support for BMIPS UART driver and it's needed to achieve a real 115200 8N1 setup. Signed-off-by: Álvaro Fernández Rojas --- v3: no changes, added another fix on a separate patch. v2: fix commit title (missed bcm6345)

Re: [U-Boot] [PATCH 2/2] drivers: net: fsl-mc: Include MAC addr fixup in DPL

2017-05-18 Thread york sun
On 05/18/2017 04:19 AM, Bogdan Purcareata wrote: > Previous to MC v10.x, port mac address was specified via DPL. Since > newer MC versions are compatible with old style DPLs, make the u-boot > env mac addresses visible there. This applies only to DPLs that have an > older version. > > DPLs use 32

[U-Boot] [PATCH] cmd/elf.c: Support passing arguments with bootelf

2017-05-18 Thread Tom Rini
The bootelf command could, but does not, pass additional arguments along on the command line. Make do_bootelf consume bootelf/flags/address as needed and then pass along anything else to the ELF application we've launched. Reported-by: Thomas Doerfler

Re: [U-Boot] [PATCH 3/6] SPL: Add XIP booting support

2017-05-18 Thread Alexandru Gagniuc
On 05/18/2017 11:49 AM, Vikas Manocha wrote: Enable support for XIP (execute in place) of U-Boot or kernel image. There is no need to copy image from flash to ram if flash supports execute in place. Awesome. I've had to hack u-boot before to achieve exactly this. It's nice to have a proper

[U-Boot] [PATCH 07/10] mips: bmips: add bcm63xx-spi driver support for BCM3380

2017-05-18 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm3380.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/mips/dts/brcm,bcm3380.dtsi b/arch/mips/dts/brcm,bcm3380.dtsi index

[U-Boot] [PATCH 05/10] mips: bmips: add bcm63xx-spi driver support for BCM6348

2017-05-18 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6348.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6348.dtsi b/arch/mips/dts/brcm,bcm6348.dtsi index

[U-Boot] [PATCH 04/10] mips: bmips: add bcm63xx-spi driver support for BCM6338

2017-05-18 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6338.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6338.dtsi b/arch/mips/dts/brcm,bcm6338.dtsi index

[U-Boot] [PATCH 09/10] mips: bmips: enable the SPI flash on the Sagem F@ST1704

2017-05-18 Thread Álvaro Fernández Rojas
It's a Winbond (w25x32) 4 MB SPI flash. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/sagem,f...@st1704.dts | 13 + configs/sagem_f@st1704_ram_defconfig | 8 2 files changed, 21 insertions(+) diff --git

[U-Boot] [PATCH 10/10] mips: bmips: enable the SPI flash on the Netgear CG3100D

2017-05-18 Thread Álvaro Fernández Rojas
It's a Spansion (s25fl064a) 8 MB SPI flash. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/netgear,cg3100d.dts | 13 + configs/netgear_cg3100d_ram_defconfig | 8 2 files changed, 21 insertions(+) diff --git

[U-Boot] [PATCH 02/10] drivers: spi: add config to consider command bytes when writting to flash

2017-05-18 Thread Álvaro Fernández Rojas
Command bytes are part of the written bytes and they should be taken into account when sending a spi transfer. Signed-off-by: Álvaro Fernández Rojas --- drivers/mtd/spi/spi_flash.c | 2 +- drivers/spi/Kconfig | 3 +++ include/spi.h | 8 +++- 3 files

[U-Boot] [PATCH 08/10] mips: bmips: add bcm63xx-spi driver support for BCM63268

2017-05-18 Thread Álvaro Fernández Rojas
This driver manages the low speed SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm63268.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/mips/dts/brcm,bcm63268.dtsi

[U-Boot] [PATCH 06/10] mips: bmips: add bcm63xx-spi driver support for BCM6358

2017-05-18 Thread Álvaro Fernández Rojas
This driver manages the SPI controller present on this SoC. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6358.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6358.dtsi b/arch/mips/dts/brcm,bcm6358.dtsi index

[U-Boot] [PATCH 03/10] dm: spi: add BCM63xx SPI driver

2017-05-18 Thread Álvaro Fernández Rojas
This driver is a simplified version of linux/drivers/spi/spi-bcm63xx.c Instead of supporting both HW revisions of the controller in a single build, support has been split by the selected config to save space. Signed-off-by: Álvaro Fernández Rojas --- drivers/spi/Kconfig

[U-Boot] [PATCH 01/10] drivers: spi: allow limiting reads

2017-05-18 Thread Álvaro Fernández Rojas
For some SPI controllers it's not possible to keep the CS active between transfers and they are limited to a known number of bytes. This splits spi_flash reads into different iterations in order to respect the SPI controller limits. Signed-off-by: Álvaro Fernández Rojas ---

[U-Boot] [PATCH 00/10] mips: bmips: add SPI support

2017-05-18 Thread Álvaro Fernández Rojas
BCM63xx SPI controller is a bit tricky since it doesn't allow keeping CS active between transfers, so I had to modify the spi_flash driver in order to allow limiting reads. Álvaro Fernández Rojas (10): drivers: spi: allow limiting reads drivers: spi: add config to consider command bytes when

[U-Boot] [PATCH 4/6] serial: stm32f7: disable overrun

2017-05-18 Thread Vikas Manocha
With overrun enabled, serial port console freezes & stops receiving data with overun error if we keep sending data. Signed-off-by: Vikas Manocha --- drivers/serial/serial_stm32x7.c | 3 +++ drivers/serial/serial_stm32x7.h | 2 ++ 2 files changed, 5 insertions(+) diff

[U-Boot] [PATCH 5/6] spl: stm32f7: add kernel boot support

2017-05-18 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- arch/arm/mach-stm32/stm32f7/Kconfig| 1 + board/st/stm32f746-disco/stm32f746-disco.c | 8 include/configs/stm32f746-disco.h | 7 +++ 3 files changed, 16 insertions(+) diff --git

  1   2   3   >