[U-Boot] [PATCH] board: sama5d4ek: fix DD2 configuration

2017-03-22 Thread Wenyou Yang
Fix the DDR2 configuration to make SPL work. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/include/mach/atmel_mpddrc.h | 7 ++- board/atmel/sama5d4ek/sama5d4ek.c | 16 +++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/inclu

[U-Boot] [PATCH 2/7] ARM: dts: sama5d2_xplained: update for SPL

2017-03-22 Thread Wenyou Yang
Add the "u-boot,dm-pre-reloc" property to determine which nodes which are needed by SPL and by the board_init_f stage. Signed-off-by: Wenyou Yang --- arch/arm/dts/at91-sama5d2_xplained.dts | 12 arch/arm/dts/sama5d2.dtsi | 20 2 files changed, 32 i

[U-Boot] [PATCH 6/7] board: sama5d2_xplained: remove unnecessary header files

2017-03-22 Thread Wenyou Yang
Remove the unnecessary header files. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c b/board/atmel/sama5d2_xplained/sama5d2_xplained.c index c23cb0ecdd..48f45b35c

[U-Boot] [PATCH 7/7] configs: sama5d2_xplained: update for SPL

2017-03-22 Thread Wenyou Yang
Enable config options to support the SPL, increase the malloc memory size for the SPL and board_init_f stage and increase the memory space for the SPL binary. Signed-off-by: Wenyou Yang --- configs/sama5d2_xplained_mmc_defconfig | 8 +++- configs/sama5d2_xplained_spiflash_defconfig | 7

[U-Boot] [PATCH 5/7] board: sama5d2_xplained: remove uart1 init

2017-03-22 Thread Wenyou Yang
Due to the pin configuration and clock enabling is handling by the driver, remove the unneeded hardcode uart1 init during board_early_init_f stage. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 3/7] configs: sama5d2_xplained: enable CONFIG_DM_ETH

2017-03-22 Thread Wenyou Yang
Enable CONFIG_DM_ETH to make MACB to support driver model. Because the USB Ether doesn't support driver model so far, remove this feature. Signed-off-by: Wenyou Yang --- configs/sama5d2_xplained_mmc_defconfig | 2 ++ configs/sama5d2_xplained_spiflash_defconfig | 2 ++ include/configs/sa

[U-Boot] [PATCH 4/7] board: sama5d2_xplained: clean up macb init code

2017-03-22 Thread Wenyou Yang
Because the MACB driver supports the driver model and device tree, the pins configuration and clock enabling are handled by the pinctrl driver and clock driver, remove this hardcoded init code. The USB Ether init code is removed as well. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplai

[U-Boot] [PATCH 1/7] ARM: dts: sama5d2: add clock property for uart1 node

2017-03-22 Thread Wenyou Yang
Add clock property for uart1 node. Signed-off-by: Wenyou Yang --- arch/arm/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi index a881d9e05c..d976fd4936 100644 --- a/arch/arm/dts/sama5d2.dtsi +++ b/arch/arm/dts/sama5d2.

[U-Boot] [PATCH 0/7] board: sama5d2_xplained: improves

2017-03-22 Thread Wenyou Yang
Update to make SPL work, enable the early debug UART work in SPL, convert MACB to support driver model, and some miscs removals. Wenyou Yang (7): ARM: dts: sama5d2: add clock property for uart1 node ARM: dts: sama5d2_xplained: update for SPL configs: sama5d2_xplained: enable CONFIG_DM_ETH

[U-Boot] [PATCH v3 5/6] board: sama5d3_xplained: clean up code

2017-03-22 Thread Wenyou Yang
Due to the introduction of the pinctrl and clk driver, and using device tree files, remove the unneeded hardcoded pin configuration and clock enabling code from the board file. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None board/atmel/sama5d3_xplained/sama5d3_xplained.

[U-Boot] [PATCH v3 6/6] board: sama5d3_xplained: enable early debug UART

2017-03-22 Thread Wenyou Yang
Enable the early debug UART to debug problems when an ICE or other debug mechanism is not available. Signed-off-by: Wenyou Yang --- Changes in v3: - Convert the macb to support DM and clean up macb init code. - Remain the SPI speed macros. - Update the config options for SPL. - Update the co

[U-Boot] [PATCH v3 4/6] board: sama5d3_xplained: update to support DM/DT

2017-03-22 Thread Wenyou Yang
Update the configuration files to support the device tree and driver model, so do SPL. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None configs/sama5d3_xplained_mmc_defc

[U-Boot] [PATCH v3 3/6] board: sama5d3xek: enable early debug UART

2017-03-22 Thread Wenyou Yang
Enable the early debug UART to debug problems when an ICE or other debug mechanism is not available. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None board/atmel/sama5d3xek/sama5d3xek.c| 13 - configs/sama5d3xek_mmc_defconfig | 6 ++ configs/sam

[U-Boot] [PATCH v3 2/6] board: sama5d3xek: clean up code

2017-03-22 Thread Wenyou Yang
Due to the introduction of the pinctrl and clk driver, and using device tree files, remove the unneeded hardcoded pin configuration and clock enabling code from the board file. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None board/atmel/sama5d3xek/sama5d3xek.c | 109 +---

[U-Boot] [PATCH v3 1/6] board: sama5d3xek: update to support DM/DT

2017-03-22 Thread Wenyou Yang
Update the configuration files to support the device tree and driver model, so do SPL. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None board/atmel/sama5d3xek/sama5d3xek

[U-Boot] [PATCH v3 0/6] board: sama5d3: convert boards to support DM/DT

2017-03-22 Thread Wenyou Yang
The purpose of patch set is to convert the board to support device tree and driver model, and enable the early debug UART as well. It is based on the patch set: [PATCH v8 0/2] pinctrl: at91: Add pinctrl driver https://lists.denx.de/pipermail/u-boot/2017-March/284577.html Changes in

[U-Boot] [PATCH v4 3/7] board: sama5d4_xplained: clean up code

2017-03-22 Thread Wenyou Yang
Due to the introduction of the pinctrl and clk driver, and using device tree files, remove the unneeded hardcoded pin configuration and clock enabling code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Andreas Bießmann --- Changes in v4: None Changes in v3: None Changes in v2: -

[U-Boot] [PATCH v4 4/7] board: sama5d4_xplained: enable early debug UART

2017-03-22 Thread Wenyou Yang
Enable the early debug UART to debug problems when an ICE or other debug mechanism is not available. Signed-off-by: Wenyou Yang Reviewed-by: Andreas Bießmann --- Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/sama5d4_xplained/sama5d4_xplained.c | 13 - con

[U-Boot] [PATCH v4 7/7] board: sama5d4ek: enable early debug UART

2017-03-22 Thread Wenyou Yang
Enable the early debug UART to debug problems when an ICE or other debug mechanism is not available. Signed-off-by: Wenyou Yang Reviewed-by: Andreas Bießmann --- Changes in v4: - Convert the macb to support DM and clean up macb init code. - Remain the SPI speed macros. - Update the config op

[U-Boot] [PATCH v4 5/7] board: sama5d4ek: update to support DM/DT

2017-03-22 Thread Wenyou Yang
Update the configuration files to support the device tree and driver model, so do SPL. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Signed-off-by: Wenyou Yang Reviewed-by: Andreas Bießmann --- Changes in v4: None Changes in v3: None Chan

[U-Boot] [PATCH v4 6/7] board: sama5d4ek: clean up code

2017-03-22 Thread Wenyou Yang
Due to the introduction of the pinctrl and clk driver, and using device tree files, remove the unneeded hardcoded pin configuration and clock enabling code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Andreas Bießmann --- Changes in v4: None Changes in v3: None Changes in v2: -

[U-Boot] [PATCH v4 2/7] board: sama5d4_xplained: update to support DM/DT

2017-03-22 Thread Wenyou Yang
Update the configuration files to support the device tree and driver model, so do SPL. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Signed-off-by: Wenyou Yang Reviewed-by: Andreas Bießmann --- Changes in v4: None Changes in v3: None Chan

[U-Boot] [PATCH v4 1/7] configs: at91-sama5_common: fix for CONFIG_AT91_GPIO

2017-03-22 Thread Wenyou Yang
Add #ifndef CONFIG_DM_GPIO for CONFIG_AT91_GPIO define to avoid the redefine compilation error. Signed-off-by: Wenyou Yang Reviewed-by: Andreas Bießmann --- Changes in v4: None Changes in v3: None Changes in v2: None include/configs/at91-sama5_common.h | 2 ++ 1 file changed, 2 insertions(+)

[U-Boot] [PATCH v4 0/7] board: sama5d4: convert boards to support DM/DT

2017-03-22 Thread Wenyou Yang
The purpose of patch set is to convert the board to support device tree and driver model, and enable the early debug UART as well. It is based on the patch set: [PATCH v8 0/2] pinctrl: at91: Add pinctrl driver https://lists.denx.de/pipermail/u-boot/2017-March/284577.html Changes in

Re: [U-Boot] [PATCH v2 07/20] arm: socfpga: Add reset driver support for Arria 10

2017-03-22 Thread Ley Foon Tan
On Fri, Mar 10, 2017 at 9:40 AM, Marek Vasut wrote: > On 03/09/2017 01:26 AM, Ley Foon Tan wrote: >> Add reset driver support for Arria 10. >> >> Signed-off-by: Tien Fong Chee >> Signed-off-by: Ley Foon Tan >> --- >> arch/arm/mach-socfpga/Makefile | 2 + >> arch/arm/mach-s

Re: [U-Boot] [PATCH v2 17/20] arm: socfpga: Convert Altera ddr driver to use Kconfig

2017-03-22 Thread Ley Foon Tan
On Wed, Mar 22, 2017 at 10:26 PM, Marek Vasut wrote: > On 03/22/2017 10:45 AM, Ley Foon Tan wrote: >> On Fri, Mar 10, 2017 at 9:53 AM, Marek Vasut wrote: >>> On 03/09/2017 01:26 AM, Ley Foon Tan wrote: Convert Altera ddr driver to use Kconfig method. Enable ALTERA_SDRAM by default if it

[U-Boot] [PATCH v5 4/4] ARM: dts: at91: add dts file for sama5d4ek

2017-03-22 Thread Wenyou Yang
Add the device tree file for sama5d4ek board. The dts file is copied from Linux-4.4, do the following changes. - add the "u-boot,dm-pre-reloc" property to determine which nodes which are needed by SPL and by the board_init_f stage. - fix the compilation warning. Signed-off-by: Wenyou Yang -

[U-Boot] [PATCH v5 3/4] ARM: dts: at91: add dts files for sama5d4 Xplained

2017-03-22 Thread Wenyou Yang
Add the device tree files for sama5d4 Xplained board. The dts files are copied from Linux-4.4, do the following changes. - add reg property for pinctrl node. - move the gpio nodes(pioA, pioB, pioC ...) from the pinctrl child's nodes to its slibling nodes. - add the "u-boot,dm-pre-reloc" prop

[U-Boot] [PATCH v5 1/4] ARM: at91: dt: add dts files for sama5d3xek board

2017-03-22 Thread Wenyou Yang
Add the device tree files for sama5d3xek board. The dts files are copied from Linux-4.9, do the changes as below. - add reg property for the pinctrl node. - move the gpio nodes (pioA, pioB, pioC ...) as the pinctrl's slibling nodes. - add the "u-boot,dm-pre-reloc" property to determine which

[U-Boot] [PATCH v5 0/4] ARM: dts: at91: add dts files for the boards of SAMA5D3/4

2017-03-22 Thread Wenyou Yang
The purpose of the patchset is add the device tree files for boards, sama5d3/sama5d4 Xplained board and sama5d3/sama5d4 EK board. Changes in v5: - Integrate the dts patches for sama5d3 to one. - Add the "u-boot,dm-pre-reloc" property for SPL. - Update the commit log. - Rebase on v2017.03. Cha

[U-Boot] [PATCH v5 2/4] ARM: at91: dt: add dts file for sama5d3 Xplained

2017-03-22 Thread Wenyou Yang
Add the device tree file for sama5d3 Xplained board. The dts files are copied from the Linux-4.9, do changes as below. - add the "u-boot,dm-pre-reloc" property to determine which nodes which are needed by SPL and by the board_init_f stage. - fix the compile warning. Signed-off-by: Wenyou Yan

[U-Boot] [PATCH v3 1/2] ARM: at91: gpio: fix at91_set_gpio_value() define

2017-03-22 Thread Wenyou Yang
When the CONFIG_ATMEL_LEGACY is undefined, according to the following defines, at91_set_gpio_value() references to at91_set_pio_value(x, y) with two parameters. #define at91_set_gpio_value(x, y) at91_set_pio_value(x, y) #define at91_get_gpio_value(x) at91_get_pio_value(x) But there

[U-Boot] [PATCH v3 0/2] mtd: nand: atmel: use another functions to set gpio value

2017-03-22 Thread Wenyou Yang
The purpose of the patch set is to use another functions to set and get the gpio value for the atmel nand driver to fix the error to set and get the gpio value after the at91 gpio driver conversion to support the driver model. Changes in v3: _ Rebase on v2017.03. Changes in v2: - Improve the co

[U-Boot] [PATCH v3 2/2] mtd: nand: atmel: use another functions to set gpio value

2017-03-22 Thread Wenyou Yang
Because there isn't the implementation of gpio_set/get_value() and gpio_set/get_value() after the at91 gpio driver is converted to support the driver model, use at91_set_gpio_value() and at91_get_gpio_value() Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: _ Rebase on v2

[U-Boot] [PATCH v2] net: macb: add remove callback

2017-03-22 Thread Wenyou Yang
To avoid the failure of mdio_register(), add the remove callback to unregister the mii_dev when removing the ethernet device. Signed-off-by: Wenyou Yang --- Changes in v2: - Rebase on v2017.03. drivers/net/macb.c | 45 + 1 file changed, 29 insertion

[U-Boot] [PATCH 1/2] serial: atmel_usart: fix early debug not work in SPL

2017-03-22 Thread Wenyou Yang
Add the uart init function to be used on both probe and the early debug uart init. For the latter, the input clock should be from CONFIG_DEBUG_UART_CLOCK. Signed-off-by: Wenyou Yang --- drivers/serial/atmel_usart.c | 36 +++- 1 file changed, 31 insertions(+), 5 d

[U-Boot] [PATCH] net: macb: align the compatibles with kernel

2017-03-22 Thread Wenyou Yang
Add the compatibles to align with the kernel. Signed-off-by: Wenyou Yang --- drivers/net/macb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 402e866817..924df7e745 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -1083,6 +1083,

[U-Boot] [PATCH v3 2/2] clk: at91: align clk-master compatibles with kernel

2017-03-22 Thread Wenyou Yang
Add the compatible "atmel,at91rm9200-clk-master" to align with the kernel. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: - Rebase on v2017.03. Changes in v2: - Add the Reviewed-by tags. drivers/clk/at91/clk-master.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 0/2] clk: at91: enhance the peripheral clock

2017-03-22 Thread Wenyou Yang
The purpose of the patch set is to enhance the peripheral clock to support both at9sam9x5's and at91rm9200's peripheral clock, and align the clk-master's compatibles with kernel's. Changes in v3: - Rebase on v2017.03. Changes in v2: - Use an enum with a descriptive name to denote the clock type

[U-Boot] [PATCH v3 1/2] clk: at91: enhance the peripheral clock

2017-03-22 Thread Wenyou Yang
Enhance the peripheral clock to support both at9sam9x5's and at91rm9200's peripheral clock via the different compatibles. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Use an enum with a descriptive name to denote the clock type. drivers/clk/at9

[U-Boot] [PATCH 0/2] serial: atmel_usart: fix uart init and add clk support

2017-03-22 Thread Wenyou Yang
The patches is rework the uart init to fix the early debug not work in SPL, and add the clock support. Wenyou Yang (2): serial: atmel_usart: fix early debug not work in SPL serial: atmel_usart: add clk support drivers/serial/atmel_usart.c | 69 1

[U-Boot] [PATCH 2/2] serial: atmel_usart: add clk support

2017-03-22 Thread Wenyou Yang
Add the clock support. Signed-off-by: Wenyou Yang --- drivers/serial/atmel_usart.c | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index 8b1e0d55a4..ab213c13fa 100644 --- a/dri

[U-Boot] [PATCH v2] clk: at91: pmc: align the at91 pmc's compatibles

2017-03-22 Thread Wenyou Yang
Align the at91 pmc's compatibles with Kernel's. Signed-off-by: Wenyou Yang --- Changes in v2: - Rebase on v2017.03. drivers/clk/at91/pmc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index c73156a0df..989ebcc590 100644 --- a/driver

[U-Boot] [PATCH v4 2/3] gpio: at91_gpio: add the device tree support

2017-03-22 Thread Wenyou Yang
Add the device tree support. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass Reviewed-by: Andreas Bießmann --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/gpio/at91_gpio.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpio/at91_gpio.

[U-Boot] [PATCH v2] spi: atmel: check GPIO validity before using cs_gpios

2017-03-22 Thread Wenyou Yang
Before using the cs_gpio, check if the GPIO is valid or not. Signed-off-by: Wenyou Yang --- Changes in v2: - Rebase on v2017.03. drivers/spi/atmel_spi.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index 76

[U-Boot] [PATCH v4 3/3] gpio: at91_gpio: add the clock support

2017-03-22 Thread Wenyou Yang
Add the clock support. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass Reviewed-by: Andreas Bießmann --- Changes in v4: - Rebase on v2017.03. Changes in v3: - Rebase on the master branch on git://git.denx.de/u-boot-atmel.git commit: 0ff27d4a94637d4b1937c625d33212375bd118d9 - Add Rev

[U-Boot] [PATCH v5] mmc: gen_atmel_mci: add driver model support for mci

2017-03-22 Thread Wenyou Yang
Add the driver model support for Atmel mci while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not. Signed-off-by: Wenyou Yang --- Changes in v5: - Rebase on v2017.03. Changes in v4: - Remove unneede

[U-Boot] [PATCH v4 1/3] gpio: Kconfig: add CONFIG_AT91_GPIO option

2017-03-22 Thread Wenyou Yang
The CONFIG_AT91_GPIO option is used to select AT91 PIO GPIO driver. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass Reviewed-by: Andreas Bießmann --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/gpio/Kconfig | 13 + 1 file changed, 13 insertions(+) dif

[U-Boot] [PATCH v4 0/3] gpio: at91_gpio: add option and clock support

2017-03-22 Thread Wenyou Yang
The CONFIG_AT91_GPIO option is added in Kconfig to be used to select the AT91 PIO GPIO driver, and the clock is supported. Changes in v4: - Rebase on v2017.03. Changes in v3: - Rebase on the master branch on git://git.denx.de/u-boot-atmel.git commit: 0ff27d4a94637d4b1937c625d33212375bd118d9

[U-Boot] [PATCH v8 2/2] pinctrl: at91: add pinctrl driver

2017-03-22 Thread Wenyou Yang
AT91 PIO controller is a combined gpio-controller, pin-mux and pin-config module. The peripheral's pins are assigned through per-pin based muxing logic. Each SoC will have to describe the its limitation and pin configuration via device tree. This will allow to do not need to touch the C code when

[U-Boot] [PATCH v8 1/2] gpio: at91_gpio: remove CPU_HAS_PIO3 macro

2017-03-22 Thread Wenyou Yang
The intention of the removal is the preparation to introduce the new AT91 PIO pinctrl driver. Use the union to make the PIO3 and PIO2's registers be together and make their offset aligned. Signed-off-by: Wenyou Yang --- Changes in v8: None Changes in v7: - Fix the missing conversion for the at

[U-Boot] [PATCH v8 0/2] pinctrl: at91: Add pinctrl driver

2017-03-22 Thread Wenyou Yang
The purpose of this patch set is to add the pinctrl driver for AT91 PIO controller. Changes in v8: - Rebase on v2017.03. Changes in v7: - Fix the missing conversion for the at91_emac driver when building the at91rm9200 devices. Changes in v6: - Move PIO_SCDR_DIV define from mach/ to mach/a

[U-Boot] [PATCH 4/5] ARM: at91: lds: use "_image_binary_end" for DT location

2017-03-22 Thread Wenyou Yang
The MMC SPL locates the BSS section to a different memory region from text, then use "_image_binary_end" variable to point to the correct device tree location. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/armv7/u-boot-spl.lds | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/m

[U-Boot] [PATCH 5/5] ARM: at91: lds: add test SPL binary size and bbs size

2017-03-22 Thread Wenyou Yang
Add the test for the SPL binary size and the bbs section size. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/arm926ejs/u-boot-spl.lds | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds b/arch/arm/mach-at91/arm926ejs/u-boot-spl.lds in

[U-Boot] [PATCH 3/5] ARM: spl: atmel: move mem_init() advance in SPL init.

2017-03-22 Thread Wenyou Yang
Because the MMC SPL puts the bbs section in the ddr memory, move calling mem_init() before calling spl_init(). Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/spl_atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/

[U-Boot] [PATCH 2/5] ARM: spl: atmel: bring in serial device before init

2017-03-22 Thread Wenyou Yang
Before setting up the serial communications, bring in the serial device from the device tree file. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/spl_atmel.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index 6882

[U-Boot] [PATCH 1/5] ARM: at91: spl: specify MMC and NAND boot device

2017-03-22 Thread Wenyou Yang
When OF_CONTROL is enabled, MMC boot device should not be detected automatically, it should be MMC1 fixedly only the status "enabled" is available. Add NAND Flash boot device as well. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/spl.c | 7 +++ 1 file changed, 7 insertions(+) diff --g

[U-Boot] [PATCH 0/5] ARM: SPL: at91: update to support DM/DT

2017-03-22 Thread Wenyou Yang
To support the driver model and device tree in SPL, fix the boot device, bring in the serial device from device tree, and use "_image_binary_end" variable to point to the correct device tree location when CONFIG_SPL_SEPARATE_BSS is enabled. Wenyou Yang (5): ARM: at91: spl: specify MMC and NAND

Re: [U-Boot] ti: ARM: svc: Question about switching to am57xx HYP mode.

2017-03-22 Thread Keerthy
On Wednesday 22 March 2017 07:55 PM, Lukasz Majewski wrote: > Dear All, > > I do have a question regarding switching from SVC to HYP mode on AM57xx > SoC. > > Just after going out of reset (room bootloader): > > > Breakpoint 1, _start () at arch

[U-Boot] [RESEND PATCH v2] spl: add support to booting with ATF

2017-03-22 Thread Kever Yang
ATF(ARM Trusted Firmware) is used by ARM arch64 SoCs, find more infomation about ATF at: https://github.com/ARM-software/arm-trusted-firmware SPL is considered as BL2 in ATF terminology, it needs to load other parts of ATF binary like BL31, BL32, SCP-BL30, and BL33(U-Boot). And needs to prepare th

[U-Boot] [RESEND PATCH v2 0/1] arm64: enable SPL with ATF support

2017-03-22 Thread Kever Yang
This patch needs work with some patch for SPL support multi binary in FIT which is from Andre. The entry point of bl31 and bl33 is still using hard code because we still can not get them from the FIT image information. This patch tested on rk3399 platform. RE-SEND V2 for add SPL_ATF_SUPPORT dep

[U-Boot] [PATCH v2 0/1] arm64: enable SPL with ATF support

2017-03-22 Thread Kever Yang
This patch needs work with some patch for SPL support multi binary in FIT which is from Andre. The entry point of bl31 and bl33 is still using hard code because we still can not get them from the FIT image information. This patch tested on rk3399 platform. Changes in v2: - Kconfig comment upda

[U-Boot] [PATCH v2] spl: add support to booting with ATF

2017-03-22 Thread Kever Yang
ATF(ARM Trusted Firmware) is used by ARM arch64 SoCs, find more infomation about ATF at: https://github.com/ARM-software/arm-trusted-firmware SPL is considered as BL2 in ATF terminology, it needs to load other parts of ATF binary like BL31, BL32, SCP-BL30, and BL33(U-Boot). And needs to prepare th

Re: [U-Boot] [PATCH v1] spl: add support to booting with ATF

2017-03-22 Thread Kever Yang
Hi Simon, On 03/22/2017 09:05 PM, Simon Glass wrote: Hi Kever, On 20 March 2017 at 00:41, Kever Yang wrote: ATF(ARM Trust Firmware) is used by ARM arch64 SoCs, find more infomation about ATF at: SPL is consider as BL2 in ATF, it needs to load other part of ATF binary like BL31, BL32, SCP-BL3

Re: [U-Boot] uboot information

2017-03-22 Thread Simon Glass
Hi, On 22 March 2017 at 10:35, Sébastien Basset wrote: > 1/ No, As i am stuck on the mmc (pci controller internal soc), > 2/ Now i try to boot on usb key, but i don't see controller usb > Sorry, these are two different problems. It is better to post at the bottom that the top, for mailing lists.

Re: [U-Boot] [PATCH] imx: i.mx6q: add the initial support for LogicPD i.MX6Q SOM

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 05:07:02PM -0500, Adam Ford wrote: > Logic PD has an i.MX6Q system on module (SOM) with a development kit. > This have been verified to boot the i.MX6Q version over either SD > on the development kit or NAND built into the SOM. > > Signed-off-by: Adam Ford > > diff --git

[U-Boot] FIT image for falcon boot

2017-03-22 Thread york sun
Guys, You were discussing loading FIT image for falcon boot about a year ago. I wonder if there is any follow-up on this topic? York ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] env_init() for mmc

2017-03-22 Thread york sun
Jaehoon, I noticed the env_init() returns default environmental variable for SPL build. I wonder if you can make some change to use the actual variables? I am having some trouble to get the saved variable during SPL boot. York ___ U-Boot mailing list

Re: [U-Boot] [PATCH] imx: i.mx6q: add the initial support for LogicPD i.MX6Q SOM

2017-03-22 Thread Fabio Estevam
Hi Adam, On Wed, Mar 22, 2017 at 7:07 PM, Adam Ford wrote: config SYS_SOC > @@ -415,5 +422,6 @@ source "board/udoo/Kconfig" > source "board/udoo/neo/Kconfig" > source "board/wandboard/Kconfig" > source "board/warp/Kconfig" > +source "board/logicpd/imx6/Kconfig" Alphabetical order, please. >

[U-Boot] [PATCH] imx: i.mx6q: add the initial support for LogicPD i.MX6Q SOM

2017-03-22 Thread Adam Ford
Logic PD has an i.MX6Q system on module (SOM) with a development kit. This have been verified to boot the i.MX6Q version over either SD on the development kit or NAND built into the SOM. Signed-off-by: Adam Ford diff --git a/arch/arm/cpu/armv7/mx6/Kconfig b/arch/arm/cpu/armv7/mx6/Kconfig index 1

[U-Boot] [PATCH 3/3] cramfs: basic symlink support

2017-03-22 Thread Tyler Hall
Handle symlinks to files in the current directory. Other cases could be handled with additional code, but this is a start. Add explicit errors for absolute paths and links found in the middle of a path (directories). Other cases like '..' or '.' will result with the file not being found as when th

[U-Boot] [PATCH 1/3] cmd: cramfs: use map_sysmem for sandbox support

2017-03-22 Thread Tyler Hall
As with most other commands, this needs to factor in the sysmem offset in the sandbox or it will try to dereference the simulated physical address directly. Signed-off-by: Tyler Hall --- cmd/cramfs.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/cmd/cramfs.c

[U-Boot] [PATCH 2/3] cramfs: block pointers are 32 bits

2017-03-22 Thread Tyler Hall
Using a variably-sized type is incorrect here since we're reading a fixed file format. Fixes cramfs on 64-bit platforms. Signed-off-by: Tyler Hall --- fs/cramfs/cramfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cramfs/cramfs.c b/fs/cramfs/cramfs.c index 05ed27240a..

[U-Boot] [PATCH 0/3] cramfs fixes and symlink support

2017-03-22 Thread Tyler Hall
This adds initial support for symlinks in cramfs and fixes cramfs so that it can be tested in the sandbox. "cramfs: block pointers are 32 bits" fixes a crash on 64-bit which I have experienced on ARMv8 as well as the sandbox. Tyler Hall (3): cmd: cramfs: use map_sysmem for sandbox support cram

Re: [U-Boot] [PATCH 4/4] drivers: omap_hsmmc: add support for CONFIG_BLK

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 04:00:34PM +0100, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/

Re: [U-Boot] [PATCH 2/4] drivers: omap_hsmmc: use mmc_get_blk_desc() to get the block device desc

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 04:00:32PM +0100, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/

Re: [U-Boot] [PATCH 3/4] drivers: omap_hsmmc: move the mmc_config to platdata when DM_MMC is used

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 04:00:33PM +0100, Jean-Jacques Hiblot wrote: > This is a preparation work for the support of CONFIG_BLK. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [PATCH 1/4] drivers: omap_hsmmc: use an accessor to get the private data

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 04:00:31PM +0100, Jean-Jacques Hiblot wrote: > For consistency, use an accessor to access the private data. Also for the > same reason, rename all priv_data to priv. > > Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini -- Tom signature.asc Description: Digit

Re: [U-Boot] STM32F7 SD/MMC Card Driver - Testing/Review

2017-03-22 Thread Philipp Rossak
Hi Jaehoon, I had a look in the include/mmc.h file and there are different types of cmd 6 command defined: ACMD6: Sets Bus width --> no data CMD6: Switch Function --> data But it was the right place to look for the error. I forgot to disable the DMA! Shame on me!!! I updated the code on gith

Re: [U-Boot] [PATCH v2 4/7] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-22 Thread Jernej Škrabec
Hi, Dne sreda, 22. marec 2017 ob 08:45:48 CET je Maxime Ripard napisal(a): > On Tue, Mar 21, 2017 at 11:26:46PM +0100, Jernej Škrabec wrote: > > Hi, > > > > Dne torek, 21. marec 2017 ob 20:34:33 CET je Maxime Ripard napisal(a): > > > Hi, > > > > > > On Mon, Mar 20, 2017 at 11:01:25PM +0100, Jern

Re: [U-Boot] [PATCH v2 1/6] fsl-lsch3: rename ls2080a_stream_id.h to stream_id_lsch3.h

2017-03-22 Thread york sun
On 03/22/2017 10:08 AM, Bharat Bhushan wrote: > > >> -Original Message- >> From: york sun >> Sent: Wednesday, March 22, 2017 9:50 PM >> To: Bharat Bhushan ; u-boot@lists.denx.de >> Cc: M.H. Lian ; s...@chromium.org; Z.Q. Hou >> ; Diana Madalina Craciun >> >> Subject: Re: [PATCH v2 1/6] fsl

Re: [U-Boot] [PATCH v2 1/6] fsl-lsch3: rename ls2080a_stream_id.h to stream_id_lsch3.h

2017-03-22 Thread Bharat Bhushan
> -Original Message- > From: york sun > Sent: Wednesday, March 22, 2017 9:50 PM > To: Bharat Bhushan ; u-boot@lists.denx.de > Cc: M.H. Lian ; s...@chromium.org; Z.Q. Hou > ; Diana Madalina Craciun > > Subject: Re: [PATCH v2 1/6] fsl-lsch3: rename ls2080a_stream_id.h to > stream_id_lsch3.

Re: [U-Boot] [PATCH v3 4/8] armv8: Add workaround for USB erratum A-009007

2017-03-22 Thread york sun
On 02/28/2017 08:06 PM, Suresh Gupta wrote: > OK York, will send new patch.. > Waiting for your update. York ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 00/16] RFC: Board init using driver model

2017-03-22 Thread york sun
On 03/19/2017 11:59 AM, Simon Glass wrote: > At present we have a lot of ad-hoc init functions related to boards, for > example board_early_init_f(), board_misc_init_f() and dram_init(). > > There are used in different ways by different boards as useful hooks to > do the required init and sequence

Re: [U-Boot] uboot information

2017-03-22 Thread Sébastien Basset
1/ No, As i am stuck on the mmc (pci controller internal soc), 2/ Now i try to boot on usb key, but i don't see controller usb Sorry, these are two different problems. 2017-03-22 17:22 GMT+01:00 Simon Glass : > Hi, > > On 22 March 2017 at 08:20, Sébastien Basset wrote: > > hi, > > > > i see co

Re: [U-Boot] uboot information

2017-03-22 Thread Simon Glass
Hi, On 22 March 2017 at 08:20, Sébastien Basset wrote: > hi, > > i see controller: > >src/soc/intel/braswell/chip.c/enable_dev ( Intel Braswell SoC ), > type: 2 >vendor: 0x8086. device: 0x2296 >class: 0x08 Generic system peripheral >subclass: 0x05 SD Host controlle

Re: [U-Boot] [PATCH v2 1/6] fsl-lsch3: rename ls2080a_stream_id.h to stream_id_lsch3.h

2017-03-22 Thread york sun
On 03/21/2017 11:38 PM, Bharat Bhushan wrote: > The stream ID allocation for Chasis3.0 devices, > LS1088, LS2088 and LS2080, can be shared. > > This patch renames this accordingly. > > Signed-off-by: Bharat Bhushan > --- You missed the change log. What change did you make for this version? I didn

Re: [U-Boot] [PATCH 00/16] RFC: Board init using driver model

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 08:43:54AM -0600, Simon Glass wrote: > Hi Tom, > > On 22 March 2017 at 08:37, Tom Rini wrote: > > On Wed, Mar 22, 2017 at 07:05:38AM -0600, Simon Glass wrote: > >> Hi Tom, > >> > >> On 19 March 2017 at 18:47, Tom Rini wrote: > >> > On Sun, Mar 19, 2017 at 12:59:19PM -0600

[U-Boot] [PATCH 0/4] mmc: omap_hsmmc: add support for CONFIG_BLK

2017-03-22 Thread Jean-Jacques Hiblot
This series is based on the RFC "mmc: omap_hsmmc: convert to use dm block devies" from Grygorii Strashko . The goal is to be able to compile u-boot with the CONFIG_BLK option. This will be required to move the sata to the driver model. The first 3 patches are essentially preparation work. The las

Re: [U-Boot] [PATCH] zynq: Move ENV location selection from zynq-common.h to config files.

2017-03-22 Thread Michal Simek
On 22.3.2017 15:49, Tom Rini wrote: > On Wed, Mar 22, 2017 at 03:30:09PM +0100, Michal Simek wrote: >> On 21.3.2017 19:56, Philip Balister wrote: >>> The ifdef's in zynq-common.h do a partial selection of the u-boot >>> environment >>> storage location. As u-boot added more, the ifdefs no longe co

Re: [U-Boot] [PATCH] zynq: Move ENV location selection from zynq-common.h to config files.

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 03:30:09PM +0100, Michal Simek wrote: > On 21.3.2017 19:56, Philip Balister wrote: > > The ifdef's in zynq-common.h do a partial selection of the u-boot > > environment > > storage location. As u-boot added more, the ifdefs no longe cope with all > > possible cases. Rather

Re: [U-Boot] [PATCH 1/3] tpm: Add function to load keys via their parent's SHA1 hash

2017-03-22 Thread Simon Glass
Hi Mario, On 22 March 2017 at 08:07, Mario Six wrote: > On Wed, Mar 22, 2017 at 2:27 PM, Simon Glass wrote: >> Hi Mario, >> >> On 22 March 2017 at 07:20, Mario Six wrote: >>> On Wed, Mar 22, 2017 at 2:05 PM, Simon Glass wrote: On 20 March 2017 at 03:28, Mario Six wrote: > If we want

[U-Boot] [PATCH 1/4] drivers: omap_hsmmc: use an accessor to get the private data

2017-03-22 Thread Jean-Jacques Hiblot
For consistency, use an accessor to access the private data. Also for the same reason, rename all priv_data to priv. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 54 +--- 1 file changed, 33 insertions(+), 21 deletions(-) diff --gi

[U-Boot] [PATCH 4/4] drivers: omap_hsmmc: add support for CONFIG_BLK

2017-03-22 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 104129f..83dda09 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -58,6 +58,7 @@

[U-Boot] [PATCH 3/4] drivers: omap_hsmmc: move the mmc_config to platdata when DM_MMC is used

2017-03-22 Thread Jean-Jacques Hiblot
This is a preparation work for the support of CONFIG_BLK. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index d985ac7..104129f 10

[U-Boot] [PATCH 2/4] drivers: omap_hsmmc: use mmc_get_blk_desc() to get the block device desc

2017-03-22 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/omap_hsmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index fe92908..d985ac7 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -166,7 +166,7 @@ s

Re: [U-Boot] [PATCH] part_iso: Cache align read buffer

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 02:43:24PM +0100, Martin Hundebøll wrote: > The global 'tmpbuf' variable in part_iso triggers invalid cache > alignment warnings when not being aligned to ARCH_DMA_MINALIGN: > > ERROR: v7_outer_cache_inval_range - start address is not aligned - > 0x4ffbb6ac > ERROR: v7

Re: [U-Boot] [PATCH v2 15/20] arm: socfpga: Add SPL support for Arria 10

2017-03-22 Thread Marek Vasut
On 03/22/2017 10:21 AM, Ley Foon Tan wrote: > On Wed, Mar 22, 2017 at 4:41 PM, Marek Vasut wrote: >> On 03/22/2017 09:28 AM, Ley Foon Tan wrote: >>> On Fri, Mar 10, 2017 at 9:52 AM, Marek Vasut wrote: On 03/09/2017 01:26 AM, Ley Foon Tan wrote: > Add SPL support for Arria 10 and add rese

Re: [U-Boot] [PATCH 00/16] RFC: Board init using driver model

2017-03-22 Thread Simon Glass
Hi Tom, On 22 March 2017 at 08:37, Tom Rini wrote: > On Wed, Mar 22, 2017 at 07:05:38AM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 19 March 2017 at 18:47, Tom Rini wrote: >> > On Sun, Mar 19, 2017 at 12:59:19PM -0600, Simon Glass wrote: >> >> At present we have a lot of ad-hoc init functions

Re: [U-Boot] [PATCH 00/16] RFC: Board init using driver model

2017-03-22 Thread Tom Rini
On Wed, Mar 22, 2017 at 07:05:38AM -0600, Simon Glass wrote: > Hi Tom, > > On 19 March 2017 at 18:47, Tom Rini wrote: > > On Sun, Mar 19, 2017 at 12:59:19PM -0600, Simon Glass wrote: > >> At present we have a lot of ad-hoc init functions related to boards, for > >> example board_early_init_f(), b

  1   2   >